registry: Register TOG-CUP extension protocol names.
This commit is contained in:
parent
7e182a5d89
commit
f6226d3bfe
41
Xext/cup.c
41
Xext/cup.c
|
@ -39,6 +39,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "swapreq.h"
|
#include "swapreq.h"
|
||||||
|
#include "registry.h"
|
||||||
#define _XCUP_SERVER_
|
#define _XCUP_SERVER_
|
||||||
#include <X11/extensions/Xcupstr.h>
|
#include <X11/extensions/Xcupstr.h>
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
|
@ -51,11 +52,6 @@ static int ProcDispatch(ClientPtr client);
|
||||||
static int SProcDispatch(ClientPtr client);
|
static int SProcDispatch(ClientPtr client);
|
||||||
static void ResetProc(ExtensionEntry* extEntry);
|
static void ResetProc(ExtensionEntry* extEntry);
|
||||||
|
|
||||||
#if 0
|
|
||||||
static unsigned char ReqCode = 0;
|
|
||||||
static int ErrorBase;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(WIN32) || defined(TESTWIN32)
|
#if defined(WIN32) || defined(TESTWIN32)
|
||||||
#define HAVE_SPECIAL_DESKTOP_COLORS
|
#define HAVE_SPECIAL_DESKTOP_COLORS
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,30 +124,25 @@ static xColorItem citems[] = {
|
||||||
void
|
void
|
||||||
XcupExtensionInit (INITARGS)
|
XcupExtensionInit (INITARGS)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
ExtensionEntry* extEntry;
|
ExtensionEntry* extEntry;
|
||||||
|
|
||||||
if ((extEntry = AddExtension (XCUPNAME,
|
if (!(extEntry = AddExtension (XCUPNAME,
|
||||||
0,
|
0,
|
||||||
XcupNumberErrors,
|
XcupNumberErrors,
|
||||||
ProcDispatch,
|
ProcDispatch,
|
||||||
SProcDispatch,
|
SProcDispatch,
|
||||||
ResetProc,
|
ResetProc,
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode)))
|
||||||
ReqCode = (unsigned char)extEntry->base;
|
return;
|
||||||
ErrorBase = extEntry->errorBase;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
(void) AddExtension (XCUPNAME,
|
|
||||||
0,
|
|
||||||
XcupNumberErrors,
|
|
||||||
ProcDispatch,
|
|
||||||
SProcDispatch,
|
|
||||||
ResetProc,
|
|
||||||
StandardMinorOpcode);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* PC servers initialize the desktop colors (citems) here! */
|
/* PC servers initialize the desktop colors (citems) here! */
|
||||||
|
|
||||||
|
RegisterRequestName(extEntry->base, X_XcupQueryVersion,
|
||||||
|
XCUPNAME ":QueryVersion");
|
||||||
|
RegisterRequestName(extEntry->base, X_XcupGetReservedColormapEntries,
|
||||||
|
XCUPNAME ":GetReservedColormapEntries");
|
||||||
|
RegisterRequestName(extEntry->base, X_XcupStoreColors,
|
||||||
|
XCUPNAME ":StoreColors");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue