egl: add HYBRIS_EGLPLATFORM along EGL_PLATFORM

Mesa uses EGL_PLATFORM env variables for its own
purposes.
When the EGL_PLATFORM becomes wayland, mesa
will also try to initialize its wayland backend
when instead it should just stick to fbdev.

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
Merge pull request #73 from groleo/for-upstream

egl: add HYBRIS_EGLPLATFORM along EGL_PLATFORM
Adapt packaging to make possible to write an external egl platform plugin for libhybris

 * add the files ws.h and eglplatformcommon.h in the {includedir}/hybris/eglplatformcommon directory
 * create a hybris-egl-platform pkg-config file description

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
wayland_window: codestyle

Conflicts:
	hybris/egl/platforms/wayland/wayland_window.cpp
wayland_window: cleanups

Signed-off-by: Adrian Negreanu <groleo@gmail.com>

Conflicts:
	hybris/egl/platforms/wayland/wayland_window.cpp
Wait for fence to be signalled and close

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Add semi-proper buffer parameters change functionality. Still need to remove buffers when we've finished using them in queueBuffer

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Add JB safeguards for wayland

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Hook strtod

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Merge pull request #76 from stskeeps/wayland_plus_misc_fixes

Wayland plus misc fixes
Merge pull request #74 from Tofee/work

Adapt packaging to make possible to write an external egl platform plugi...
Revert "Hook strtod"

This reverts commit a58fd4b0a7d39f43062be0badef616f8fd74a013.
Properly implement strtod

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Merge pull request #77 from stskeeps/fix_strtod

Fix strtod
Adding headers and test to support the Android Audio HAL

Headers originally from AOSP 4.2.2_r1.2, changed to have the correct
include path from other files provided by libhybris.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
hooks.c: no need to map strcasestr

Glibc implementation has a different behavior (e.g mako's android audio
HAL fails to parse alsa ucm file), and mapping is not needed.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
jb/linker.c: allow debug of the linker and hooked symbols

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
jb/linker.c: reduce debugging output for prelinked libraries

Not to worry much about the messages as it's not supported by latest
Android version anymore.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
hooks.c: handle invalid mutex in pthread_mutex_destroy

Patch originally done by Ricardo Mendonza (ricardo.mendoza@canonical.com)

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Merge pull request #79 from rsalveti/linker-debug

Extend Linker Debug Support