diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-11-20 18:08:18 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-11-20 18:10:14 -0500 |
commit | 460c43032f05aad3f0f552901a52d199f61c7f4f (patch) | |
tree | 02543389b51c5811e2916c2f5c4a5ea80ca92434 /Xext/dpms.c | |
parent | 76e89d45b497d4afa4e60e1d0ec50b62f54f6b88 (diff) |
registry: Remove registry code from DPMS extension.
Moving all the names into dix/registry.c
Diffstat (limited to 'Xext/dpms.c')
-rw-r--r-- | Xext/dpms.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/Xext/dpms.c b/Xext/dpms.c index 613493aae..d518a16cc 100644 --- a/Xext/dpms.c +++ b/Xext/dpms.c @@ -44,7 +44,6 @@ Equipment Corporation. #include "dixstruct.h" #include "extnsionst.h" #include "opaque.h" -#include "registry.h" #define DPMS_SERVER #include <X11/extensions/dpms.h> #include <X11/extensions/dpmsstr.h> @@ -74,29 +73,9 @@ static void DPMSResetProc(ExtensionEntry* extEntry); void DPMSExtensionInit(INITARGS) { - ExtensionEntry *extEntry; - - if (!(extEntry = AddExtension(DPMSExtensionName, 0, 0, - ProcDPMSDispatch, SProcDPMSDispatch, - DPMSResetProc, StandardMinorOpcode))) - return; - - RegisterRequestName(extEntry->base, X_DPMSGetVersion, - DPMSExtensionName ":GetVersion"); - RegisterRequestName(extEntry->base, X_DPMSCapable, - DPMSExtensionName ":Capable"); - RegisterRequestName(extEntry->base, X_DPMSGetTimeouts, - DPMSExtensionName ":GetTimeouts"); - RegisterRequestName(extEntry->base, X_DPMSSetTimeouts, - DPMSExtensionName ":SetTimeouts"); - RegisterRequestName(extEntry->base, X_DPMSEnable, - DPMSExtensionName ":Enable"); - RegisterRequestName(extEntry->base, X_DPMSDisable, - DPMSExtensionName ":Disable"); - RegisterRequestName(extEntry->base, X_DPMSForceLevel, - DPMSExtensionName ":ForceLevel"); - RegisterRequestName(extEntry->base, X_DPMSInfo, - DPMSExtensionName ":Info"); + AddExtension(DPMSExtensionName, 0, 0, + ProcDPMSDispatch, SProcDPMSDispatch, + DPMSResetProc, StandardMinorOpcode))) } /*ARGSUSED*/ |