EGL Platform null: Don't do named struct assignments

When hooking up the ws functions to struct ws_module, do not use named
struct assignments. This way, additions and removals to/from struct
ws_module generate warnings instead of being silenced.

Signed-off-by: Thomas Perl <thomas.perl@jollamobile.com>
EGL: Add support for ws_DestroyWindow

Some EGL platform like fbdev need to know when a window surface is
destroyed, so that it can carry out clean ups in its internal state.

egl/ws.*: Add ws_module::DestroyWindow and ws_DestroyWindow
egl/helper.*: Add simple surface->window mapping using std::map
egl/egl.c: Maintain mapping and call ws_DestroyWindow
egl/platforms/*: Add DestroyWindow implementations

The DestroyWindow implementation for hwcomposer, null and wayland might
need some additional work - I've added TODO comments where I wasn't sure
if deleting what okay at that point.

ws_DestroyWindow will be called after the real EGLDestroySurface has
returned, but before our wrapper EGLDestroySurface function returns.

Signed-off-by: Thomas Perl <thomas.perl@jollamobile.com>
properties: separate properties in another library

So it can be used without necessarily depending on libhybris.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
properties: add support to get/set property via the property service

The property service is running inside the android init daemon and
creates a socket in /dev/socket/property_service which we can use
for setting properties (getting is done via an extra android patch
to add 'get' and 'list' support in the property service).

Additional patches for the Android init system can be found at
http://people.canonical.com/~rsalveti/properties/

Based on a similar patch by Simon Busch <morphis@gravedo.de>.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Merge pull request #110 from morphis/morphis/default-egl-platform

Add configure option to change default used EGL platform
Merge pull request #114 from rsalveti/property-system

Implement get/set property via property service
eglCreateImageKHR: sgx doesn't ignore unknown attribs as it should

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #117 from groleo/upstream

eglCreateImageKHR: sgx doesn't ignore unknown attribs as it should
Merge pull request #111 from thp/egl_ws_destroywindow

EGL: Add support for ws_DestroyWindow
Implement EGL_HYBRIS_native_buffer

This is an EGL extension that lets applications allocate/lock/release GPU buffers; for zero-copy textures on some systems; or fast render targets needed for browsers.

Copy hybris_nativebufferext.h into your application and eglGetProcAddress()
for eglHybrisCreateNativeBuffer, eglHybrisLockNativeBuffer,
eglHybrisUnlockNativeBuffer, eglHybrisReleaseNativeBuffer.

More implementation to come on Wayland side, sharing buffers.

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #116 from stskeeps/egl_hybris_native_buffer

Implement EGL_HYBRIS_native_buffer
properties.c: better handling for name and value sizes

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Add HYBRIS_LD_LIBRARY_PATH ability to JB linker

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #118 from rsalveti/property-fixes

properties.c: better handling for name and value sizes
Merge pull request #119 from stskeeps/hybris_ld_library_path

Add HYBRIS_LD_LIBRARY_PATH ability to JB linker
AUTHORS update

v2: add email addresses for  Martin Jansa and Florian Hanel (morphis)
Merge pull request #120 from groleo/authors

AUTHORS update
Wayland: Flush display connection after commit; solves stalling issue

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #121 from stskeeps/wayland_flush

Wayland: Flush display connection after commit; solves stalling issue
test_gps: Fix AGPS call parameters