X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=dispatch%2Fglproc.py;h=488f91279da853bd3b4ce3ad45efbcf5733180bc;hb=81301939f025407ceb284a9dcd5d5a1f05d27b8f;hp=abf4f00e20063a824373083f9de4c363694694b7;hpb=2b807458f983e01e6c5c49a6c77ee28a145a1b2d;p=apitrace diff --git a/dispatch/glproc.py b/dispatch/glproc.py index abf4f00..488f912 100644 --- a/dispatch/glproc.py +++ b/dispatch/glproc.py @@ -503,7 +503,7 @@ void * _getPublicProcAddress(const char *procName); void * _getPrivateProcAddress(const char *procName); ''' - def isFunctionPublic(self, api, function): + def isFunctionPublic(self, module, function): return function.name in public_symbols or function.name.startswith('CGL') @@ -519,25 +519,25 @@ if __name__ == '__main__': print dispatcher.header() print - dispatcher.dispatchApi(eglapi) + dispatcher.dispatchModule(eglapi) print print '#if defined(_WIN32)' print - dispatcher.dispatchApi(wglapi) + dispatcher.dispatchModule(wglapi) print print '#elif defined(__APPLE__)' print - dispatcher.dispatchApi(cglapi) + dispatcher.dispatchModule(cglapi) print print '#elif defined(HAVE_X11)' print - dispatcher.dispatchApi(glxapi) + dispatcher.dispatchModule(glxapi) print print '#endif' print - dispatcher.dispatchApi(glapi) + dispatcher.dispatchModule(glapi) print - dispatcher.dispatchApi(glesapi) + dispatcher.dispatchModule(glesapi) print print '#endif /* !_GLPROC_HPP_ */'