registry: Register DPMS extension protocol names.
This commit is contained in:
		
							parent
							
								
									f077578e42
								
							
						
					
					
						commit
						16764a2d29
					
				
							
								
								
									
										31
									
								
								Xext/dpms.c
								
								
								
								
							
							
						
						
									
										31
									
								
								Xext/dpms.c
								
								
								
								
							| 
						 | 
					@ -44,15 +44,13 @@ 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>
 | 
				
			||||||
#include "dpmsproc.h"
 | 
					#include "dpmsproc.h"
 | 
				
			||||||
#include "modinit.h"
 | 
					#include "modinit.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if 0
 | 
					 | 
				
			||||||
static unsigned char DPMSCode;
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
static DISPATCH_PROC(ProcDPMSDispatch);
 | 
					static DISPATCH_PROC(ProcDPMSDispatch);
 | 
				
			||||||
static DISPATCH_PROC(SProcDPMSDispatch);
 | 
					static DISPATCH_PROC(SProcDPMSDispatch);
 | 
				
			||||||
static DISPATCH_PROC(ProcDPMSGetVersion);
 | 
					static DISPATCH_PROC(ProcDPMSGetVersion);
 | 
				
			||||||
| 
						 | 
					@ -76,18 +74,29 @@ static void DPMSResetProc(ExtensionEntry* extEntry);
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
DPMSExtensionInit(INITARGS)
 | 
					DPMSExtensionInit(INITARGS)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#if 0
 | 
					 | 
				
			||||||
    ExtensionEntry *extEntry;
 | 
					    ExtensionEntry *extEntry;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if ((extEntry = AddExtension(DPMSExtensionName, 0, 0,
 | 
					    if (!(extEntry = AddExtension(DPMSExtensionName, 0, 0,
 | 
				
			||||||
				  ProcDPMSDispatch, SProcDPMSDispatch,
 | 
									  ProcDPMSDispatch, SProcDPMSDispatch,
 | 
				
			||||||
				  DPMSResetProc, StandardMinorOpcode)))
 | 
									  DPMSResetProc, StandardMinorOpcode)))
 | 
				
			||||||
	DPMSCode = (unsigned char)extEntry->base;
 | 
						return;
 | 
				
			||||||
#else
 | 
					
 | 
				
			||||||
    (void) AddExtension(DPMSExtensionName, 0, 0,
 | 
					    RegisterRequestName(extEntry->base, X_DPMSGetVersion,
 | 
				
			||||||
			ProcDPMSDispatch, SProcDPMSDispatch,
 | 
								DPMSExtensionName ":GetVersion");
 | 
				
			||||||
			DPMSResetProc, StandardMinorOpcode);
 | 
					    RegisterRequestName(extEntry->base, X_DPMSCapable,
 | 
				
			||||||
#endif
 | 
								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