From: José Fonseca Date: Tue, 10 May 2011 19:33:43 +0000 (+0100) Subject: Symbolic names for GLX string queries. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=6467406c48d0ac71274100160002d37f74643af6;p=apitrace Symbolic names for GLX string queries. --- diff --git a/glxapi.py b/glxapi.py index 95f98d7..80548c4 100644 --- a/glxapi.py +++ b/glxapi.py @@ -141,6 +141,11 @@ GLXError = FakeEnum(Int, [ "GLX_BAD_ENUM", ]) +GLXname = FakeEnum(Int, [ + "GLX_VENDOR", + "GLX_VERSION", + "GLX_EXTENSIONS", +]) GLXbuffer = Flags(Int, [ "GLX_WINDOW_BIT", @@ -227,8 +232,8 @@ glxapi.add_functions([ # GLX 1.1 and later Function((Const(String("char *"))), "glXQueryExtensionsString", [(Display, "dpy"), (Int, "screen")]), - Function((Const(String("char *"))), "glXQueryServerString", [(Display, "dpy"), (Int, "screen"), (Int, "name")]), - Function((Const(String("char *"))), "glXGetClientString", [(Display, "dpy"), (Int, "name")]), + Function((Const(String("char *"))), "glXQueryServerString", [(Display, "dpy"), (Int, "screen"), (GLXname, "name")]), + Function((Const(String("char *"))), "glXGetClientString", [(Display, "dpy"), (GLXname, "name")]), # GLX 1.2 and later Function(Display, "glXGetCurrentDisplay", [], sideeffects=False),