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