Add Git revision/remote + repo manifest info from headers

This makes it easier to trace back a set of extracted headers
to given AOSP/CM revisions (including possible local changes).
extract-headers.sh: Helper functions, better output

Useful for diagnostics, and avoids duplication when adding new headers.
egl: wayland: fix debug dump for first buffer sent to wayland compositor

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Merge pull request #172 from Tofee/master

egl: wayland: fix debug dump for first buffer sent to wayland compositor
hooks.c: adding hooks for asprintf and vasprintf (both use malloc/realloc internally)

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
egl: Fix calling down to eglCreateImageKHR() with proper arguments

We do want to call eglCreateImageKHR() with EGL_NO_CONTEXT, but ONLY
when the render target is EGL_NATIVE_BUFFER_ANDROID. Otherwise we'll
either not get a valid image even if we should or worse, end up crashing
if the drivers don't handle it properly. Credit goes to Menghan Cheng for
tracing this problem to its source.

While we are touching the code, change it so the ws has an opportunity to
change all the parameters should it have specific needs for things like this.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
Merge pull request #174 from kvahlman/fix-eglcreateimage

egl: Fix calling down to eglCreateImageKHR() with proper arguments
Optimized version of glesv2 hybris wrapper

With relatively minor changes the library size on device was dropped from 31.8kB into 19.8kB. In addition the size of each function dropped significantly,  http://pastebin.com/7zkuCvN3
Removed stdio include
Added to authors as specified in pull request comment
Removed comment
input_compatibility_layer.cpp: avoid blocking on exit/shutdown

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
compat/input: block poll, avoid waking up at every 500ms

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
compat: input: take full geometry by default in input windows

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
input: adding pkg-config file

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
camera_compatibility_layer.cpp: don't explicitly release frames

Release is not necessarily implemented in some devices, so don't
explicitly release the frames to avoid possible crashes (manta). Also
abandon texture only on disconnect.

Patch by: Guenter Schwann <guenter.schwann@canonical.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
compat: camera: make use of native buffer allocator instead of SF

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
test_camera.c: adding a default input area for the input stack

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
camera: adding pkg-config file

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
common/hooks.c: handle null attr in pthread_rwlock_init

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>