Imported Upstream version 0.1.0+git20131207+e452e83
[deb_libhybris.git] / hybris / egl / ws.h
CommitLineData
d42e7319
JB
1#ifndef __LIBHYBRIS_WS_H
2#define __LIBHYBRIS_WS_H
3#include <EGL/egl.h>
4
5struct 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
14int ws_IsValidDisplay(EGLNativeDisplayType display);
15EGLNativeWindowType ws_CreateWindow(EGLNativeWindowType win, EGLNativeDisplayType display);
16void ws_DestroyWindow(EGLNativeWindowType win);
17__eglMustCastToProperFunctionPointerType ws_eglGetProcAddress(const char *procname);
18void ws_passthroughImageKHR(EGLContext *ctx, EGLenum *target, EGLClientBuffer *buffer, const EGLint **attrib_list);
19const char *ws_eglQueryString(EGLDisplay dpy, EGLint name, const char *(*real_eglQueryString)(EGLDisplay dpy, EGLint name));
20
21#endif