From 3464b419230c6d17e940d967b567c5d2cb22d232 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Mon, 15 Oct 2007 15:45:12 -0400 Subject: [PATCH] registry: Register APPLEDRI extension protocol names. --- hw/darwin/quartz/xpr/appledri.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/hw/darwin/quartz/xpr/appledri.c b/hw/darwin/quartz/xpr/appledri.c index 70b740077..d9690fdb1 100644 --- a/hw/darwin/quartz/xpr/appledri.c +++ b/hw/darwin/quartz/xpr/appledri.c @@ -53,6 +53,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "swaprep.h" #include "dri.h" #include "dristruct.h" +#include "registry.h" static int DRIErrorBase = 0; @@ -92,7 +93,33 @@ AppleDRIExtensionInit(void) DRIErrorBase = extEntry->errorBase; DRIEventBase = extEntry->eventBase; EventSwapVector[DRIEventBase] = (EventSwapPtr) SNotifyEvent; - } + } else + return; + + RegisterRequestName(DRIReqCode, X_AppleDRIQueryVersion, + APPLEDRINAME ":QueryVersion"); + RegisterRequestName(DRIReqCode, X_AppleDRIQueryDirectRenderingCapable, + APPLEDRINAME ":QueryDirectRenderingCapable"); + RegisterRequestName(DRIReqCode, X_AppleDRICreateSurface, + APPLEDRINAME ":CreateSurface"); + RegisterRequestName(DRIReqCode, X_AppleDRIDestroySurface, + APPLEDRINAME ":DestroySurface"); + RegisterRequestName(DRIReqCode, X_AppleDRIAuthConnection, + APPLEDRINAME ":AuthConnection"); + + RegisterEventName(DRIEventBase + AppleDRIObsoleteEvent1, + APPLEDRINAME ":ObsoleteEvent1"); + RegisterEventName(DRIEventBase + AppleDRIObsoleteEvent2, + APPLEDRINAME ":ObsoleteEvent2"); + RegisterEventName(DRIEventBase + AppleDRIObsoleteEvent3, + APPLEDRINAME ":ObsoleteEvent3"); + RegisterEventName(DRIEventBase + AppleDRISurfaceNotify, + APPLEDRINAME ":SurfaceNotify"); + + RegisterErrorName(DRIEventBase + AppleDRIClientNotLocal, + APPLEDRINAME ":ClientNotLocal"); + RegisterErrorName(DRIEventBase + AppleDRIOperationNotSupported, + APPLEDRINAME ":OperationNotSupported"); } /*ARGSUSED*/