glx: use C99 initializers for GlxServerExports

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Emil Velikov 2018-02-19 15:18:09 +00:00 committed by Adam Jackson
parent 7fc7579869
commit edc00e0203

View File

@ -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 *