X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Feglapi.py;h=d34c282d66fa06472b6cacf2e256f2b3b1b5ba2e;hb=a083c51c66239841c42cc1a1c42ba8a259397115;hp=37576ff1efb83160f8d6714705f7a3d813153845;hpb=fe93afda27cd74da30f82549cad39f2a03b6e718;p=apitrace diff --git a/specs/eglapi.py b/specs/eglapi.py index 37576ff..d34c282 100644 --- a/specs/eglapi.py +++ b/specs/eglapi.py @@ -291,15 +291,15 @@ EGLuint64NV = Alias("EGLuint64NV", UInt64) eglapi = API("EGL") -EGLAttribList = Array(Const(EGLattrib), "__AttribList_size(attrib_list, EGL_NONE)") +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') return Function(*args, **kwargs) -eglapi.add_functions([ +eglapi.addFunctions([ # EGL 1.4 Function(EGLError, "eglGetError", [], sideeffects=False), @@ -307,7 +307,7 @@ eglapi.add_functions([ Function(EGLBoolean, "eglInitialize", [(EGLDisplay, "dpy"), Out(Pointer(EGLint), "major"), Out(Pointer(EGLint), "minor")]), Function(EGLBoolean, "eglTerminate", [(EGLDisplay, "dpy")]), - Function(Const(String("char *")), "eglQueryString", [(EGLDisplay, "dpy"), (EGLName, "name")], sideeffects=False), + Function(Const(CString), "eglQueryString", [(EGLDisplay, "dpy"), (EGLName, "name")], sideeffects=False), Function(EGLBoolean, "eglGetConfigs", [(EGLDisplay, "dpy"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]), Function(EGLBoolean, "eglChooseConfig", [(EGLDisplay, "dpy"), (EGLAttribList, "attrib_list"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]), @@ -349,7 +349,7 @@ eglapi.add_functions([ 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")]),