registry: Register XC-MISC extension protocol names.
This commit is contained in:
parent
32fe282d5b
commit
35ae03871a
|
@ -39,6 +39,7 @@ from The Open Group.
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
|
#include "registry.h"
|
||||||
#include <X11/extensions/xcmiscstr.h>
|
#include <X11/extensions/xcmiscstr.h>
|
||||||
#include "modinit.h"
|
#include "modinit.h"
|
||||||
|
|
||||||
|
@ -48,10 +49,6 @@ from The Open Group.
|
||||||
#define UINT32_MAX 0xffffffffU
|
#define UINT32_MAX 0xffffffffU
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
static unsigned char XCMiscCode;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void XCMiscResetProc(
|
static void XCMiscResetProc(
|
||||||
ExtensionEntry * /* extEntry */
|
ExtensionEntry * /* extEntry */
|
||||||
);
|
);
|
||||||
|
@ -68,18 +65,19 @@ static DISPATCH_PROC(SProcXCMiscGetXIDRange);
|
||||||
void
|
void
|
||||||
XCMiscExtensionInit(INITARGS)
|
XCMiscExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
ExtensionEntry *extEntry;
|
ExtensionEntry *extEntry;
|
||||||
|
|
||||||
if ((extEntry = AddExtension(XCMiscExtensionName, 0, 0,
|
if (!(extEntry = AddExtension(XCMiscExtensionName, 0, 0,
|
||||||
ProcXCMiscDispatch, SProcXCMiscDispatch,
|
ProcXCMiscDispatch, SProcXCMiscDispatch,
|
||||||
XCMiscResetProc, StandardMinorOpcode)) != 0)
|
XCMiscResetProc, StandardMinorOpcode)))
|
||||||
XCMiscCode = (unsigned char)extEntry->base;
|
return;
|
||||||
#else
|
|
||||||
(void) AddExtension(XCMiscExtensionName, 0, 0,
|
RegisterRequestName(extEntry->base, X_XCMiscGetVersion,
|
||||||
ProcXCMiscDispatch, SProcXCMiscDispatch,
|
XCMiscExtensionName ":GetVersion");
|
||||||
XCMiscResetProc, StandardMinorOpcode);
|
RegisterRequestName(extEntry->base, X_XCMiscGetXIDRange,
|
||||||
#endif
|
XCMiscExtensionName ":GetXIDRange");
|
||||||
|
RegisterRequestName(extEntry->base, X_XCMiscGetXIDList,
|
||||||
|
XCMiscExtensionName ":GetXIDList");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue