]> git.cworth.org Git - apitrace/commitdiff
Symbolic names for GLX string queries.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 10 May 2011 19:33:43 +0000 (20:33 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 10 May 2011 19:33:43 +0000 (20:33 +0100)
glxapi.py

index 95f98d70760ea78f967b3597fe51ad636bd66f2c..80548c4ccc0bac52d71fae82809dd7d66c5da5dc 100644 (file)
--- 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),