X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fcglapi.py;h=f85ae445c258323afc5042fdab5af93124ea67a3;hb=685c51509eb0d04fbd382bfb6ebc294a06376645;hp=89e89172c3ded08e1ab59904d5880ffb017e625a;hpb=d7c738e13decf8a8a891008c51b437ccbe3434fb;p=apitrace diff --git a/specs/cglapi.py b/specs/cglapi.py index 89e8917..f85ae44 100644 --- a/specs/cglapi.py +++ b/specs/cglapi.py @@ -245,17 +245,20 @@ cglapi.addFunctions([ Function(CGLError, "CGLSetSurface", [(CGLContextObj, "ctx"), (CGSConnectionID, "cid"), (CGSWindowID, "wid"), (CGSSurfaceID, "sid")]), Function(CGLError, "CGLGetSurface", [(CGLContextObj, "ctx"), (Pointer(CGSConnectionID), "cid"), (Pointer(CGSWindowID), "wid"), (Pointer(CGSSurfaceID), "sid")]), Function(CGLError, "CGLUpdateContext", [(CGLContextObj, "ctx")]), - # XXX: Confirm CGLOpenCLMuxLockDown - Function(CGLError, "CGLOpenCLMuxLockDown", []), - # FIXME: CGLAreContextsShared - # FIXME: CGLBackDispatch - # FIXME: CGLFrontDispatch - # FIXME: CGLGetNextContext - # FIXME: CGLRestoreDispatch - # FIXME: CGLRestoreDispatchFunction - # FIXME: CGLSelectDispatch - # FIXME: CGLSelectDispatchBounded - # FIXME: CGLSelectDispatchFunction - # FIXME: CGLSetPBufferVolatileState + # XXX: All the following prototypes are little more than guesses + # TODO: A potentially simpler alternative would be to use the + # DYLD_INTERPOSE mechanism and only intercept the calls that we + # really care about + Function(CGLError, "CGLOpenCLMuxLockDown", [], internal=True), + Function(GLboolean, "CGLAreContextsShared", [(CGLContextObj, "ctx1"), (CGLContextObj, "ctx2")], internal=True), + Function(CGLContextObj, "CGLGetNextContext", [(CGLContextObj, "ctx")], internal=True), + Function(OpaquePointer(Void), "CGLFrontDispatch", [(CGLContextObj, "ctx")], internal=True), + Function(OpaquePointer(Void), "CGLBackDispatch", [(CGLContextObj, "ctx")], internal=True), + Function(Void, "CGLSelectDispatch", [(CGLContextObj, "ctx"), (OpaquePointer(Void), "dispatch")], internal=True), + Function(Void, "CGLSelectDispatchBounded", [(CGLContextObj, "ctx"), (OpaquePointer(Void), "dispatch"), (GLint, "size")], internal=True), + Function(Void, "CGLSelectDispatchFunction", [(CGLContextObj, "ctx"), (OpaquePointer(Void), "functionPtr"), (GLint, "functionId")], internal=True), + Function(Void, "CGLRestoreDispatch", [(CGLContextObj, "ctx")], internal=True), + Function(Void, "CGLRestoreDispatchFunction", [(CGLContextObj, "ctx"), (GLint, "functionId")], internal=True), + Function(CGLError, "CGLSetPBufferVolatileState", [(CGLPBufferObj, "pbuffer"), (OpaquePointer(Void), "state")], internal=True), ])