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 293be90..40f7db1 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 9790625..d1ba647 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 1638f6d..409054d 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):