diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-11-20 18:13:43 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-11-20 18:13:43 -0500 |
commit | 40a0da044e911ea51de003f3621331ffbe2842bc (patch) | |
tree | 539f2e7fe8e5652b188dccc87bb92fa8d96d810d /Xext | |
parent | 46412baf60ed639ddc1d5fb601f73a75e39737f7 (diff) |
registry: Remove registry code from Fontcache extension.
Moving all the names into dix/registry.c
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/fontcache.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/Xext/fontcache.c b/Xext/fontcache.c index 9fae2d70b..06b0c854b 100644 --- a/Xext/fontcache.c +++ b/Xext/fontcache.c @@ -42,7 +42,6 @@ #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> @@ -71,31 +70,9 @@ static DISPATCH_PROC(SProcFontCacheChangeCacheSettings); void FontCacheExtensionInit(INITARGS) { - ExtensionEntry* extEntry; - - if (! - (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"); + AddExtension(FONTCACHENAME, FontCacheNumberEvents, FontCacheNumberErrors, + ProcFontCacheDispatch, SProcFontCacheDispatch, + FontCacheResetProc, StandardMinorOpcode))) } /*ARGSUSED*/ |