summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-15 21:54:25 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-15 21:55:09 -0400
commitb504678ba5407a6fd8d47d051305f7c3d5606dfe (patch)
tree692e6cc44661d3b48309506f66d7b9edaf3159f2
parent6ec35a8cf539c900b334dd6df146b394f54e3706 (diff)
registry: Register APPGROUP extension protocol names.
-rw-r--r--Xext/appgroup.c38
1 files changed, 30 insertions, 8 deletions
diff --git a/Xext/appgroup.c b/Xext/appgroup.c
index c40782df5..4fb402066 100644
--- a/Xext/appgroup.c
+++ b/Xext/appgroup.c
@@ -39,6 +39,7 @@ from The Open Group.
#include "windowstr.h"
#include "colormapst.h"
#include "servermd.h"
+#include "registry.h"
#define _XAG_SERVER_
#include <X11/extensions/Xagstr.h>
#include "xacestr.h"
@@ -762,14 +763,35 @@ static void XagCallClientStateChange(
void
XagExtensionInit(INITARGS)
{
- if (AddExtension (XAGNAME,
- 0,
- XagNumberErrors,
- ProcXagDispatch,
- SProcXagDispatch,
- XagResetProc,
- StandardMinorOpcode)) {
+ ExtensionEntry *extEntry;
+
+ if ((extEntry = AddExtension (XAGNAME,
+ 0,
+ XagNumberErrors,
+ ProcXagDispatch,
+ SProcXagDispatch,
+ XagResetProc,
+ StandardMinorOpcode))) {
RT_APPGROUP = CreateNewResourceType (XagAppGroupFree);
XaceRegisterCallback(XACE_AUTH_AVAIL, XagCallClientStateChange, NULL);
- }
+ } else
+ return;
+
+ RegisterRequestName(extEntry->base, X_XagQueryVersion,
+ XAGNAME ":QueryVersion");
+ RegisterRequestName(extEntry->base, X_XagCreate,
+ XAGNAME ":Create");
+ RegisterRequestName(extEntry->base, X_XagDestroy,
+ XAGNAME ":Destroy");
+ RegisterRequestName(extEntry->base, X_XagGetAttr,
+ XAGNAME ":GetAttr");
+ RegisterRequestName(extEntry->base, X_XagQuery,
+ XAGNAME ":Query");
+ RegisterRequestName(extEntry->base, X_XagCreateAssoc,
+ XAGNAME ":CreateAssoc");
+ RegisterRequestName(extEntry->base, X_XagDestroyAssoc,
+ XAGNAME ":DestroyAssoc");
+
+ RegisterErrorName(extEntry->errorBase + XagBadAppGroup,
+ XAGNAME ":BadAppGroup");
}