eglapi: move entrypoints list out to its own file
authorEric Engestrom <eric@engestrom.ch>
Tue, 21 Feb 2017 23:56:49 +0000 (23:56 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 24 Feb 2017 17:00:50 +0000 (17:00 +0000)
This will allow us to make sure the list is always sorted in the next
commit.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/Makefile.sources
src/egl/main/eglapi.c
src/egl/main/eglentrypoint.h [new file with mode: 0644]

index 48db8518f8a6b2290a71ceb376fc7899f9344fe0..e6fd3f114c0f8ae070e2afc692d87feccddf42b1 100644 (file)
@@ -26,6 +26,7 @@ LIBEGL_C_FILES := \
        main/eglsurface.h \
        main/eglsync.c \
        main/eglsync.h \
+       main/eglentrypoint.h \
        main/egltypedefs.h
 
 dri2_backend_core_FILES := \
index 4597e1082134ba5e6d2655554e805ade85f96066..77ec5426ec86e3c7e81a0babf15daa1cdb474c23 100644 (file)
@@ -2358,83 +2358,7 @@ eglGetProcAddress(const char *procname)
       _EGLProc function;
    } egl_functions[] = {
 #define EGL_ENTRYPOINT(f) { .name = #f, .function = (_EGLProc) f },
-      /* core functions queryable in the presence of
-       * EGL_KHR_get_all_proc_addresses or EGL 1.5
-       */
-      /* alphabetical order */
-      EGL_ENTRYPOINT(eglBindAPI)
-      EGL_ENTRYPOINT(eglBindTexImage)
-      EGL_ENTRYPOINT(eglBindWaylandDisplayWL)
-      EGL_ENTRYPOINT(eglChooseConfig)
-      EGL_ENTRYPOINT(eglClientWaitSync)
-      EGL_ENTRYPOINT(eglClientWaitSyncKHR)
-      EGL_ENTRYPOINT(eglCopyBuffers)
-      EGL_ENTRYPOINT(eglCreateContext)
-      EGL_ENTRYPOINT(eglCreateDRMImageMESA)
-      EGL_ENTRYPOINT(eglCreateImage)
-      EGL_ENTRYPOINT(eglCreateImageKHR)
-      EGL_ENTRYPOINT(eglCreatePbufferFromClientBuffer)
-      EGL_ENTRYPOINT(eglCreatePbufferSurface)
-      EGL_ENTRYPOINT(eglCreatePixmapSurface)
-      EGL_ENTRYPOINT(eglCreatePlatformPixmapSurface)
-      EGL_ENTRYPOINT(eglCreatePlatformPixmapSurfaceEXT)
-      EGL_ENTRYPOINT(eglCreatePlatformWindowSurface)
-      EGL_ENTRYPOINT(eglCreatePlatformWindowSurfaceEXT)
-      EGL_ENTRYPOINT(eglCreateSync)
-      EGL_ENTRYPOINT(eglCreateSync64KHR)
-      EGL_ENTRYPOINT(eglCreateSyncKHR)
-      EGL_ENTRYPOINT(eglCreateWaylandBufferFromImageWL)
-      EGL_ENTRYPOINT(eglCreateWindowSurface)
-      EGL_ENTRYPOINT(eglDebugMessageControlKHR)
-      EGL_ENTRYPOINT(eglDestroyContext)
-      EGL_ENTRYPOINT(eglDestroyImage)
-      EGL_ENTRYPOINT(eglDestroyImageKHR)
-      EGL_ENTRYPOINT(eglDestroySurface)
-      EGL_ENTRYPOINT(eglDestroySync)
-      EGL_ENTRYPOINT(eglDestroySyncKHR)
-      EGL_ENTRYPOINT(eglDupNativeFenceFDANDROID)
-      EGL_ENTRYPOINT(eglExportDMABUFImageMESA)
-      EGL_ENTRYPOINT(eglExportDMABUFImageQueryMESA)
-      EGL_ENTRYPOINT(eglExportDRMImageMESA)
-      EGL_ENTRYPOINT(eglGetConfigAttrib)
-      EGL_ENTRYPOINT(eglGetConfigs)
-      EGL_ENTRYPOINT(eglGetCurrentContext)
-      EGL_ENTRYPOINT(eglGetCurrentDisplay)
-      EGL_ENTRYPOINT(eglGetCurrentSurface)
-      EGL_ENTRYPOINT(eglGetDisplay)
-      EGL_ENTRYPOINT(eglGetError)
-      EGL_ENTRYPOINT(eglGetPlatformDisplay)
-      EGL_ENTRYPOINT(eglGetPlatformDisplayEXT)
-      EGL_ENTRYPOINT(eglGetProcAddress)
-      EGL_ENTRYPOINT(eglGetSyncAttrib)
-      EGL_ENTRYPOINT(eglGetSyncAttribKHR)
-      EGL_ENTRYPOINT(eglGetSyncValuesCHROMIUM)
-      EGL_ENTRYPOINT(eglInitialize)
-      EGL_ENTRYPOINT(eglLabelObjectKHR)
-      EGL_ENTRYPOINT(eglMakeCurrent)
-      EGL_ENTRYPOINT(eglPostSubBufferNV)
-      EGL_ENTRYPOINT(eglQueryAPI)
-      EGL_ENTRYPOINT(eglQueryContext)
-      EGL_ENTRYPOINT(eglQueryDebugKHR)
-      EGL_ENTRYPOINT(eglQueryString)
-      EGL_ENTRYPOINT(eglQuerySurface)
-      EGL_ENTRYPOINT(eglQueryWaylandBufferWL)
-      EGL_ENTRYPOINT(eglReleaseTexImage)
-      EGL_ENTRYPOINT(eglReleaseThread)
-      EGL_ENTRYPOINT(eglSignalSyncKHR)
-      EGL_ENTRYPOINT(eglSurfaceAttrib)
-      EGL_ENTRYPOINT(eglSwapBuffers)
-      EGL_ENTRYPOINT(eglSwapBuffersRegionNOK)
-      EGL_ENTRYPOINT(eglSwapBuffersWithDamageEXT)
-      EGL_ENTRYPOINT(eglSwapBuffersWithDamageKHR)
-      EGL_ENTRYPOINT(eglSwapInterval)
-      EGL_ENTRYPOINT(eglTerminate)
-      EGL_ENTRYPOINT(eglUnbindWaylandDisplayWL)
-      EGL_ENTRYPOINT(eglWaitClient)
-      EGL_ENTRYPOINT(eglWaitGL)
-      EGL_ENTRYPOINT(eglWaitNative)
-      EGL_ENTRYPOINT(eglWaitSync)
-      EGL_ENTRYPOINT(eglWaitSyncKHR)
+#include "eglentrypoint.h"
 #undef EGL_ENTRYPOINT
    };
    EGLint i;
diff --git a/src/egl/main/eglentrypoint.h b/src/egl/main/eglentrypoint.h
new file mode 100644 (file)
index 0000000..e6318b9
--- /dev/null
@@ -0,0 +1,77 @@
+/* core functions queryable in the presence of
+ * EGL_KHR_get_all_proc_addresses or EGL 1.5
+ */
+/* alphabetical order */
+EGL_ENTRYPOINT(eglBindAPI)
+EGL_ENTRYPOINT(eglBindTexImage)
+EGL_ENTRYPOINT(eglBindWaylandDisplayWL)
+EGL_ENTRYPOINT(eglChooseConfig)
+EGL_ENTRYPOINT(eglClientWaitSync)
+EGL_ENTRYPOINT(eglClientWaitSyncKHR)
+EGL_ENTRYPOINT(eglCopyBuffers)
+EGL_ENTRYPOINT(eglCreateContext)
+EGL_ENTRYPOINT(eglCreateDRMImageMESA)
+EGL_ENTRYPOINT(eglCreateImage)
+EGL_ENTRYPOINT(eglCreateImageKHR)
+EGL_ENTRYPOINT(eglCreatePbufferFromClientBuffer)
+EGL_ENTRYPOINT(eglCreatePbufferSurface)
+EGL_ENTRYPOINT(eglCreatePixmapSurface)
+EGL_ENTRYPOINT(eglCreatePlatformPixmapSurface)
+EGL_ENTRYPOINT(eglCreatePlatformPixmapSurfaceEXT)
+EGL_ENTRYPOINT(eglCreatePlatformWindowSurface)
+EGL_ENTRYPOINT(eglCreatePlatformWindowSurfaceEXT)
+EGL_ENTRYPOINT(eglCreateSync)
+EGL_ENTRYPOINT(eglCreateSync64KHR)
+EGL_ENTRYPOINT(eglCreateSyncKHR)
+EGL_ENTRYPOINT(eglCreateWaylandBufferFromImageWL)
+EGL_ENTRYPOINT(eglCreateWindowSurface)
+EGL_ENTRYPOINT(eglDebugMessageControlKHR)
+EGL_ENTRYPOINT(eglDestroyContext)
+EGL_ENTRYPOINT(eglDestroyImage)
+EGL_ENTRYPOINT(eglDestroyImageKHR)
+EGL_ENTRYPOINT(eglDestroySurface)
+EGL_ENTRYPOINT(eglDestroySync)
+EGL_ENTRYPOINT(eglDestroySyncKHR)
+EGL_ENTRYPOINT(eglDupNativeFenceFDANDROID)
+EGL_ENTRYPOINT(eglExportDMABUFImageMESA)
+EGL_ENTRYPOINT(eglExportDMABUFImageQueryMESA)
+EGL_ENTRYPOINT(eglExportDRMImageMESA)
+EGL_ENTRYPOINT(eglGetConfigAttrib)
+EGL_ENTRYPOINT(eglGetConfigs)
+EGL_ENTRYPOINT(eglGetCurrentContext)
+EGL_ENTRYPOINT(eglGetCurrentDisplay)
+EGL_ENTRYPOINT(eglGetCurrentSurface)
+EGL_ENTRYPOINT(eglGetDisplay)
+EGL_ENTRYPOINT(eglGetError)
+EGL_ENTRYPOINT(eglGetPlatformDisplay)
+EGL_ENTRYPOINT(eglGetPlatformDisplayEXT)
+EGL_ENTRYPOINT(eglGetProcAddress)
+EGL_ENTRYPOINT(eglGetSyncAttrib)
+EGL_ENTRYPOINT(eglGetSyncAttribKHR)
+EGL_ENTRYPOINT(eglGetSyncValuesCHROMIUM)
+EGL_ENTRYPOINT(eglInitialize)
+EGL_ENTRYPOINT(eglLabelObjectKHR)
+EGL_ENTRYPOINT(eglMakeCurrent)
+EGL_ENTRYPOINT(eglPostSubBufferNV)
+EGL_ENTRYPOINT(eglQueryAPI)
+EGL_ENTRYPOINT(eglQueryContext)
+EGL_ENTRYPOINT(eglQueryDebugKHR)
+EGL_ENTRYPOINT(eglQueryString)
+EGL_ENTRYPOINT(eglQuerySurface)
+EGL_ENTRYPOINT(eglQueryWaylandBufferWL)
+EGL_ENTRYPOINT(eglReleaseTexImage)
+EGL_ENTRYPOINT(eglReleaseThread)
+EGL_ENTRYPOINT(eglSignalSyncKHR)
+EGL_ENTRYPOINT(eglSurfaceAttrib)
+EGL_ENTRYPOINT(eglSwapBuffers)
+EGL_ENTRYPOINT(eglSwapBuffersRegionNOK)
+EGL_ENTRYPOINT(eglSwapBuffersWithDamageEXT)
+EGL_ENTRYPOINT(eglSwapBuffersWithDamageKHR)
+EGL_ENTRYPOINT(eglSwapInterval)
+EGL_ENTRYPOINT(eglTerminate)
+EGL_ENTRYPOINT(eglUnbindWaylandDisplayWL)
+EGL_ENTRYPOINT(eglWaitClient)
+EGL_ENTRYPOINT(eglWaitGL)
+EGL_ENTRYPOINT(eglWaitNative)
+EGL_ENTRYPOINT(eglWaitSync)
+EGL_ENTRYPOINT(eglWaitSyncKHR)