1 /*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 static struct _egl_funcs_by_name {
17     const char *name;
18     void *proc;
19 } egl_funcs_by_name[] = {
20     {"eglGetError", (void *)eglGetError},
21     {"eglGetDisplay", (void *)eglGetDisplay},
22     {"eglInitialize", (void *)eglInitialize},
23     {"eglTerminate", (void *)eglTerminate},
24     {"eglQueryString", (void *)eglQueryString},
25     {"eglGetConfigs", (void *)eglGetConfigs},
26     {"eglChooseConfig", (void *)eglChooseConfig},
27     {"eglGetConfigAttrib", (void *)eglGetConfigAttrib},
28     {"eglCreateWindowSurface", (void *)eglCreateWindowSurface},
29     {"eglCreatePbufferSurface", (void *)eglCreatePbufferSurface},
30     {"eglCreatePixmapSurface", (void *)eglCreatePixmapSurface},
31     {"eglDestroySurface", (void *)eglDestroySurface},
32     {"eglQuerySurface", (void *)eglQuerySurface},
33     {"eglBindAPI", (void *)eglBindAPI},
34     {"eglQueryAPI", (void *)eglQueryAPI},
35     {"eglWaitClient", (void *)eglWaitClient},
36     {"eglReleaseThread", (void *)eglReleaseThread},
37     {"eglCreatePbufferFromClientBuffer", (void *)eglCreatePbufferFromClientBuffer},
38     {"eglSurfaceAttrib", (void *)eglSurfaceAttrib},
39     {"eglBindTexImage", (void *)eglBindTexImage},
40     {"eglReleaseTexImage", (void *)eglReleaseTexImage},
41     {"eglSwapInterval", (void *)eglSwapInterval},
42     {"eglCreateContext", (void *)eglCreateContext},
43     {"eglDestroyContext", (void *)eglDestroyContext},
44     {"eglMakeCurrent", (void *)eglMakeCurrent},
45     {"eglGetCurrentContext", (void *)eglGetCurrentContext},
46     {"eglGetCurrentSurface", (void *)eglGetCurrentSurface},
47     {"eglGetCurrentDisplay", (void *)eglGetCurrentDisplay},
48     {"eglQueryContext", (void *)eglQueryContext},
49     {"eglWaitGL", (void *)eglWaitGL},
50     {"eglWaitNative", (void *)eglWaitNative},
51     {"eglSwapBuffers", (void *)eglSwapBuffers},
52     {"eglCopyBuffers", (void *)eglCopyBuffers},
53     {"eglGetProcAddress", (void *)eglGetProcAddress},
54     {"eglLockSurfaceKHR", (void *)eglLockSurfaceKHR},
55     {"eglUnlockSurfaceKHR", (void *)eglUnlockSurfaceKHR},
56     {"eglCreateImageKHR", (void *)eglCreateImageKHR},
57     {"eglDestroyImageKHR", (void *)eglDestroyImageKHR},
58     {"eglCreateSyncKHR", (void *)eglCreateSyncKHR},
59     {"eglDestroySyncKHR", (void *)eglDestroySyncKHR},
60     {"eglClientWaitSyncKHR", (void *)eglClientWaitSyncKHR},
61     {"eglSignalSyncKHR", (void *)eglSignalSyncKHR},
62     {"eglGetSyncAttribKHR", (void *)eglGetSyncAttribKHR},
63     {"eglSetSwapRectangleANDROID", (void *)eglSetSwapRectangleANDROID}
64 };
65 
66 static int egl_num_funcs = sizeof(egl_funcs_by_name) / sizeof(struct _egl_funcs_by_name);
67