registry: Remove registry code from DPMS extension.
Moving all the names into dix/registry.c
This commit is contained in:
parent
76e89d45b4
commit
460c43032f
27
Xext/dpms.c
27
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*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user