registry: Register Fontcache extension protocol names.
This commit is contained in:
parent
e987648cf2
commit
1254cc399c
|
@ -42,6 +42,7 @@
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
|
#include "registry.h"
|
||||||
#define _FONTCACHE_SERVER_
|
#define _FONTCACHE_SERVER_
|
||||||
#include <X11/extensions/fontcacheP.h>
|
#include <X11/extensions/fontcacheP.h>
|
||||||
#include <X11/extensions/fontcachstr.h>
|
#include <X11/extensions/fontcachstr.h>
|
||||||
|
@ -67,28 +68,34 @@ static DISPATCH_PROC(SProcFontCacheGetCacheStatistics);
|
||||||
static DISPATCH_PROC(SProcFontCacheQueryVersion);
|
static DISPATCH_PROC(SProcFontCacheQueryVersion);
|
||||||
static DISPATCH_PROC(SProcFontCacheChangeCacheSettings);
|
static DISPATCH_PROC(SProcFontCacheChangeCacheSettings);
|
||||||
|
|
||||||
#if 0
|
|
||||||
static unsigned char FontCacheReqCode = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FontCacheExtensionInit(INITARGS)
|
FontCacheExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
ExtensionEntry* extEntry;
|
ExtensionEntry* extEntry;
|
||||||
|
|
||||||
if (
|
if (!
|
||||||
(extEntry = AddExtension(FONTCACHENAME,
|
(extEntry = AddExtension(FONTCACHENAME,
|
||||||
FontCacheNumberEvents,
|
FontCacheNumberEvents,
|
||||||
FontCacheNumberErrors,
|
FontCacheNumberErrors,
|
||||||
ProcFontCacheDispatch,
|
ProcFontCacheDispatch,
|
||||||
SProcFontCacheDispatch,
|
SProcFontCacheDispatch,
|
||||||
FontCacheResetProc,
|
FontCacheResetProc,
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode)))
|
||||||
#if 0
|
return;
|
||||||
FontCacheReqCode = (unsigned char)extEntry->base;
|
|
||||||
#endif
|
RegisterRequestName(extEntry->base, X_FontCacheQueryVersion,
|
||||||
miscErrorBase = extEntry->errorBase;
|
FONTCACHENAME ":QueryVersion");
|
||||||
}
|
RegisterRequestName(extEntry->base, X_FontCacheGetCacheSettings,
|
||||||
|
FONTCACHENAME ":GetCacheSettings");
|
||||||
|
RegisterRequestName(extEntry->base, X_FontCacheChangeCacheSettings,
|
||||||
|
FONTCACHENAME ":ChangeCacheSettings");
|
||||||
|
RegisterRequestName(extEntry->base, X_FontCacheGetCacheStatistics,
|
||||||
|
FONTCACHENAME ":GetCacheStatistics");
|
||||||
|
|
||||||
|
RegisterErrorName(extEntry->errorBase + FontCacheBadProtocol,
|
||||||
|
FONTCACHENAME ":BadProtocol");
|
||||||
|
RegisterErrorName(extEntry->errorBase + FontCacheCannotAllocMemory,
|
||||||
|
FONTCACHENAME ":CannotAllocMemory");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue