]> git.notmuchmail.org Git - apitrace/commitdiff
Minor tweaks to the spec.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 20 Apr 2012 06:15:38 +0000 (07:15 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 20 Apr 2012 06:15:38 +0000 (07:15 +0100)
specs/d3d9.py
specs/eglapi.py
specs/winapi.py

index 293be90a5353fa30fab9ecd3397fdf2ad78a5244..40f7db1b051b7ce9554c2060f61cba230dd79adc 100644 (file)
@@ -30,7 +30,7 @@ from d3d9types import *
 from d3d9caps import *
 
 
-D3DSHADER9 = Opaque("const DWORD *")
+D3DSHADER9 = OpaquePointer(Const(DWORD))
 
 D3DSPD = Flags(DWORD, [
     "D3DSPD_IUNKNOWN",
index 9790625459b30f1279c2509ab23adb63f1ce0cb5..d1ba6478a1f75d0197dd3ad8824f25ab71a86997 100644 (file)
@@ -293,7 +293,7 @@ eglapi = API("EGL")
 
 EGLAttribList = Array(Const(EGLattrib), "_AttribPairList_size(attrib_list, EGL_NONE)")
 
-PROC = Opaque("__eglMustCastToProperFunctionPointerType")
+EGLProc = Opaque("__eglMustCastToProperFunctionPointerType")
 
 def GlFunction(*args, **kwargs):
     kwargs.setdefault('call', 'GL_APIENTRY')
@@ -349,7 +349,7 @@ eglapi.addFunctions([
     Function(EGLBoolean, "eglSwapBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]),
     Function(EGLBoolean, "eglCopyBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLNativePixmapType, "target")]),
 
-    Function(PROC, "eglGetProcAddress", [(Const(CString), "procname")]),
+    Function(EGLProc, "eglGetProcAddress", [(Const(CString), "procname")]),
 
     # EGL_KHR_lock_surface
     Function(EGLBoolean, "eglLockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface"), (EGLAttribList, "attrib_list")]),
index 1638f6d8780b79fa68bc9d0e59e75dced42c0b92..409054d12775fb333bcd469407f2af6308a4e96c 100644 (file)
@@ -75,7 +75,7 @@ LARGE_INTEGER = Struct("LARGE_INTEGER", [
 SIZE_T = Alias("SIZE_T", SizeT)
 
 VOID = Void
-PVOID = Opaque("PVOID")
+PVOID = OpaquePointer(VOID)
 LPVOID = PVOID
 
 def DECLARE_HANDLE(expr):