registry: Remove registry code from Fontcache extension.
Moving all the names into dix/registry.c
This commit is contained in:
parent
46412baf60
commit
40a0da044e
|
@ -42,7 +42,6 @@
|
||||||
#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>
|
||||||
|
@ -71,31 +70,9 @@ static DISPATCH_PROC(SProcFontCacheChangeCacheSettings);
|
||||||
void
|
void
|
||||||
FontCacheExtensionInit(INITARGS)
|
FontCacheExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
ExtensionEntry* extEntry;
|
AddExtension(FONTCACHENAME, FontCacheNumberEvents, FontCacheNumberErrors,
|
||||||
|
ProcFontCacheDispatch, SProcFontCacheDispatch,
|
||||||
if (!
|
FontCacheResetProc, StandardMinorOpcode)))
|
||||||
(extEntry = AddExtension(FONTCACHENAME,
|
|
||||||
FontCacheNumberEvents,
|
|
||||||
FontCacheNumberErrors,
|
|
||||||
ProcFontCacheDispatch,
|
|
||||||
SProcFontCacheDispatch,
|
|
||||||
FontCacheResetProc,
|
|
||||||
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*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user