registry: Remove registry code from DPMS extension.
Moving all the names into dix/registry.c
This commit is contained in:
parent
76e89d45b4
commit
460c43032f
23
Xext/dpms.c
23
Xext/dpms.c
|
@ -44,7 +44,6 @@ Equipment Corporation.
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "registry.h"
|
|
||||||
#define DPMS_SERVER
|
#define DPMS_SERVER
|
||||||
#include <X11/extensions/dpms.h>
|
#include <X11/extensions/dpms.h>
|
||||||
#include <X11/extensions/dpmsstr.h>
|
#include <X11/extensions/dpmsstr.h>
|
||||||
|
@ -74,29 +73,9 @@ static void DPMSResetProc(ExtensionEntry* extEntry);
|
||||||
void
|
void
|
||||||
DPMSExtensionInit(INITARGS)
|
DPMSExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
ExtensionEntry *extEntry;
|
AddExtension(DPMSExtensionName, 0, 0,
|
||||||
|
|
||||||
if (!(extEntry = AddExtension(DPMSExtensionName, 0, 0,
|
|
||||||
ProcDPMSDispatch, SProcDPMSDispatch,
|
ProcDPMSDispatch, SProcDPMSDispatch,
|
||||||
DPMSResetProc, StandardMinorOpcode)))
|
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user