From: José Fonseca Date: Fri, 20 Apr 2012 06:15:38 +0000 (+0100) Subject: Minor tweaks to the spec. X-Git-Tag: 2.0_alpha^2~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d93791ef6ea04f6ab5bce29aacff74e75b4035a5;p=tools%2Fapitrace.git Minor tweaks to the spec. --- diff --git a/specs/d3d9.py b/specs/d3d9.py index 293be90..40f7db1 100644 --- a/specs/d3d9.py +++ b/specs/d3d9.py @@ -30,7 +30,7 @@ from d3d9types import * from d3d9caps import * -D3DSHADER9 = Opaque("const DWORD *") +D3DSHADER9 = OpaquePointer(Const(DWORD)) D3DSPD = Flags(DWORD, [ "D3DSPD_IUNKNOWN", diff --git a/specs/eglapi.py b/specs/eglapi.py index 9790625..d1ba647 100644 --- a/specs/eglapi.py +++ b/specs/eglapi.py @@ -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")]), diff --git a/specs/winapi.py b/specs/winapi.py index 1638f6d..409054d 100644 --- a/specs/winapi.py +++ b/specs/winapi.py @@ -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):