Imported Upstream version 0.1.0+git20131207+e452e83
[deb_libhybris.git] / hybris / egl / ws.h
1 #ifndef __LIBHYBRIS_WS_H
2 #define __LIBHYBRIS_WS_H
3 #include <EGL/egl.h>
4
5 struct ws_module {
6 int (*IsValidDisplay)(EGLNativeDisplayType display_id);
7 EGLNativeWindowType (*CreateWindow)(EGLNativeWindowType win, EGLNativeDisplayType display);
8 void (*DestroyWindow)(EGLNativeWindowType win);
9 __eglMustCastToProperFunctionPointerType (*eglGetProcAddress)(const char *procname);
10 void (*passthroughImageKHR)(EGLContext *ctx, EGLenum *target, EGLClientBuffer *buffer, const EGLint **attrib_list);
11 const char *(*eglQueryString)(EGLDisplay dpy, EGLint name, const char *(*real_eglQueryString)(EGLDisplay dpy, EGLint name));
12 };
13
14 int ws_IsValidDisplay(EGLNativeDisplayType display);
15 EGLNativeWindowType ws_CreateWindow(EGLNativeWindowType win, EGLNativeDisplayType display);
16 void ws_DestroyWindow(EGLNativeWindowType win);
17 __eglMustCastToProperFunctionPointerType ws_eglGetProcAddress(const char *procname);
18 void ws_passthroughImageKHR(EGLContext *ctx, EGLenum *target, EGLClientBuffer *buffer, const EGLint **attrib_list);
19 const char *ws_eglQueryString(EGLDisplay dpy, EGLint name, const char *(*real_eglQueryString)(EGLDisplay dpy, EGLint name));
20
21 #endif