61062d428973279446f65453f97bf4d7f0a8202d
[platform/core/uifw/coregl.git] / src / headers / sym_egl.h
1 // Defult use-case for exporting symbols
2 #ifndef _COREGL_SYMBOL
3 #define _COREGL_SYMBOL_NOT_DEFINED
4 #define _COREGL_SYMBOL(IS_EXTENSION, RET_TYPE, FUNC_NAME, PARAM_LIST)     COREGL_API extern RET_TYPE FUNC_NAME PARAM_LIST;
5 #endif
6 #ifndef _COREGL_EXT_SYMBOL
7 #define _COREGL_EXT_SYMBOL_NOT_DEFINED
8 #define _COREGL_EXT_SYMBOL(IS_EXTENSION, RET_TYPE, FUNC_NAME, PARAM_LIST)   _COREGL_SYMBOL(IS_EXTENSION, RET_TYPE, FUNC_NAME, PARAM_LIST)
9 #endif
10 #ifndef _COREGL_EXT_SYMBOL_ALIAS
11 #define _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
12 #define _COREGL_EXT_SYMBOL_ALIAS(FUNC_NAME, ALIAS_NAME)
13 #endif
14 #ifndef _COREGL_EXT_SYMBOL_FASTPATH_PASS
15 #define _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
16 #define _COREGL_EXT_SYMBOL_FASTPATH_PASS(FUNC_NAME)
17 #endif
18 #ifndef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK
19 #define _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
20 #define _COREGL_EXT_SYMBOL_FASTPATH_BLOCK(FUNC_NAME)
21 #endif
22
23 // Standard EGL APIs
24
25 _COREGL_SYMBOL(GL_FALSE, EGLint, eglGetError, (void))
26 _COREGL_SYMBOL(GL_FALSE, EGLDisplay, eglGetDisplay, (EGLNativeDisplayType display_id))
27 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglInitialize, (EGLDisplay dpy, EGLint* major, EGLint *minor))
28 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglTerminate, (EGLDisplay dpy))
29 _COREGL_SYMBOL(GL_FALSE, const char*, eglQueryString, (EGLDisplay dpy, EGLint name))
30
31 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglGetConfigs, (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config))
32 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglChooseConfig, (EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config))
33 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglGetConfigAttrib, (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value))
34
35 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglCreateWindowSurface, (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list))
36 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglCreatePbufferSurface, (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list))
37 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglCreatePixmapSurface, (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list))
38 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglDestroySurface, (EGLDisplay dpy, EGLSurface surface))
39 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglQuerySurface, (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value))
40
41 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglBindAPI, (EGLenum api))
42 _COREGL_SYMBOL(GL_FALSE, EGLenum, eglQueryAPI, (void))
43 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglWaitClient, (void))
44 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglReleaseThread, (void))
45 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglCreatePbufferFromClientBuffer, (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list))
46
47 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglSurfaceAttrib, (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value))
48 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglBindTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
49 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglReleaseTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
50 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglSwapInterval, (EGLDisplay dpy, EGLint interval))
51 _COREGL_SYMBOL(GL_FALSE, EGLContext, eglCreateContext, (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list))
52 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglDestroyContext, (EGLDisplay dpy, EGLContext ctx))
53 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglMakeCurrent, (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx))
54 _COREGL_SYMBOL(GL_FALSE, EGLContext, eglGetCurrentContext, (void))
55 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglGetCurrentSurface, (EGLint readdraw))
56 _COREGL_SYMBOL(GL_FALSE, EGLDisplay, eglGetCurrentDisplay, (void))
57
58 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglQueryContext, (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value))
59 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglWaitGL, (void))
60 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglWaitNative, (EGLint engine))
61 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglSwapBuffers, (EGLDisplay dpy, EGLSurface surface))
62 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglCopyBuffers, (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target))
63
64 _COREGL_SYMBOL(GL_FALSE, _eng_fn, eglGetProcAddress, (const char* procname))
65
66
67 // Extensions
68 _COREGL_EXT_SYMBOL(GL_TRUE, EGLImageKHR, eglCreateImageKHR, (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list))
69 _COREGL_EXT_SYMBOL_ALIAS(eglCreateImageKHR, eglCreateImage)
70 _COREGL_EXT_SYMBOL(GL_TRUE, EGLBoolean, eglDestroyImageKHR, (EGLDisplay dpy, EGLImageKHR image))
71 _COREGL_EXT_SYMBOL_ALIAS(eglDestroyImageKHR, eglDestroyImage)
72
73 _COREGL_EXT_SYMBOL(GL_TRUE, void*, eglMapImageSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint device_type, EGLint access_option))
74 _COREGL_EXT_SYMBOL_ALIAS(eglMapImageSEC, eglMapImage)
75 _COREGL_EXT_SYMBOL(GL_TRUE, EGLBoolean, eglUnmapImageSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint device_type))
76 _COREGL_EXT_SYMBOL_ALIAS(eglUnmapImageSEC, eglUnmapImage)
77 _COREGL_EXT_SYMBOL(GL_TRUE, EGLBoolean, eglGetImageAttribSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint attribute, EGLint *value))
78 _COREGL_EXT_SYMBOL_ALIAS(eglGetImageAttribSEC, eglGetImageAttrib)
79
80 _COREGL_EXT_SYMBOL(GL_TRUE, EGLBoolean, eglLockSurfaceKHR, (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list))
81 _COREGL_EXT_SYMBOL_ALIAS(eglLockSurfaceKHR, eglLockSurface)
82 _COREGL_EXT_SYMBOL(GL_TRUE, EGLBoolean, eglUnlockSurfaceKHR, (EGLDisplay display, EGLSurface surface))
83 _COREGL_EXT_SYMBOL_ALIAS(eglUnlockSurfaceKHR, eglUnlockSurface)
84
85 // Verified extensions
86 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglSwapBuffersRegionSEC)
87
88 // Blocked extensions
89 //_COREGL_EXT_SYMBOL_FASTPATH_BLOCK()
90
91 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
92 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
93 #undef _COREGL_EXT_SYMBOL
94 #endif
95
96 #ifdef _COREGL_SYMBOL_NOT_DEFINED
97 #undef _COREGL_SYMBOL_NOT_DEFINED
98 #undef _COREGL_SYMBOL
99 #endif
100
101 #ifdef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
102 #undef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
103 #undef _COREGL_EXT_SYMBOL_ALIAS
104 #endif
105
106 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
107 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
108 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS
109 #endif
110
111 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
112 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
113 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK
114 #endif
115