From edc00e020310d8f53ebc16295c373fe84ec6ec87 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 19 Feb 2018 15:18:09 +0000 Subject: [PATCH] glx: use C99 initializers for GlxServerExports Signed-off-by: Emil Velikov Reviewed-by: Adam Jackson --- glx/vndext.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 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 + .majorVersion = GLXSERVER_VENDOR_ABI_MAJOR_VERSION, + .minorVersion = GLXSERVER_VENDOR_ABI_MINOR_VERSION, - &vndInitCallbackList, + .extensionInitCallback = &vndInitCallbackList, - GlxAllocateServerImports, // allocateServerImports - GlxFreeServerImports, // freeServerImports + .allocateServerImports = GlxAllocateServerImports, + .freeServerImports = GlxFreeServerImports, - GlxCreateVendor, // createVendor - GlxDestroyVendor, // destroyVendor - GlxSetScreenVendor, // setScreenVendor + .createVendor = GlxCreateVendor, + .destroyVendor = GlxDestroyVendor, + .setScreenVendor = GlxSetScreenVendor, - GlxAddXIDMap, // addXIDMap - GlxGetXIDMap, // getXIDMap - GlxRemoveXIDMap, // removeXIDMap - GlxGetContextTag, // getContextTag - GlxSetContextTagPrivate, // setContextTagPrivate - GlxGetContextTagPrivate, // getContextTagPrivate - GlxGetVendorForScreen, // getVendorForScreen - GlxForwardRequest, // forwardRequest + .addXIDMap = GlxAddXIDMap, + .getXIDMap = GlxGetXIDMap, + .removeXIDMap = GlxRemoveXIDMap, + .getContextTag = GlxGetContextTag, + .setContextTagPrivate = GlxSetContextTagPrivate, + .getContextTagPrivate = GlxGetContextTagPrivate, + .getVendorForScreen = GlxGetVendorForScreen, + .forwardRequest = GlxForwardRequest, }; const GlxServerExports *