[PATCH xserver 3/6] glx: use C99 initializers for GlxServerExports

Emil Velikov emil.l.velikov at gmail.com
Mon Feb 19 15:18:09 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 glx/vndext.c | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/glx/vndext.c b/glx/vndext.c
index f593c499a..aeefd7519 100644
--- a/glx/vndext.c
+++ b/glx/vndext.c
@@ -277,26 +277,26 @@ GlxFreeServerImports(GlxServerImports *imports)
 }
 
 _X_EXPORT const GlxServerExports glxServer = {
-    GLXSERVER_VENDOR_ABI_MAJOR_VERSION, // majorVersion
-    GLXSERVER_VENDOR_ABI_MINOR_VERSION, // minorVersion
-
-    &vndInitCallbackList,
-
-    GlxAllocateServerImports, // allocateServerImports
-    GlxFreeServerImports, // freeServerImports
-
-    GlxCreateVendor, // createVendor
-    GlxDestroyVendor, // destroyVendor
-    GlxSetScreenVendor, // setScreenVendor
-
-    GlxAddXIDMap, // addXIDMap
-    GlxGetXIDMap, // getXIDMap
-    GlxRemoveXIDMap, // removeXIDMap
-    GlxGetContextTag, // getContextTag
-    GlxSetContextTagPrivate, // setContextTagPrivate
-    GlxGetContextTagPrivate, // getContextTagPrivate
-    GlxGetVendorForScreen, // getVendorForScreen
-    GlxForwardRequest, // forwardRequest
+    .majorVersion = GLXSERVER_VENDOR_ABI_MAJOR_VERSION,
+    .minorVersion = GLXSERVER_VENDOR_ABI_MINOR_VERSION,
+
+    .extensionInitCallback = &vndInitCallbackList,
+
+    .allocateServerImports = GlxAllocateServerImports,
+    .freeServerImports = GlxFreeServerImports,
+
+    .createVendor = GlxCreateVendor,
+    .destroyVendor = GlxDestroyVendor,
+    .setScreenVendor = GlxSetScreenVendor,
+
+    .addXIDMap = GlxAddXIDMap,
+    .getXIDMap = GlxGetXIDMap,
+    .removeXIDMap = GlxRemoveXIDMap,
+    .getContextTag = GlxGetContextTag,
+    .setContextTagPrivate = GlxSetContextTagPrivate,
+    .getContextTagPrivate = GlxGetContextTagPrivate,
+    .getVendorForScreen = GlxGetVendorForScreen,
+    .forwardRequest =  GlxForwardRequest,
 };
 
 const GlxServerExports *
-- 
2.16.0



More information about the xorg-devel mailing list