registry: Register XTest extension protocol names.
This commit is contained in:
		
							parent
							
								
									3877faf7d9
								
							
						
					
					
						commit
						32fe282d5b
					
				
							
								
								
									
										26
									
								
								Xext/xtest.c
								
								
								
								
							
							
						
						
									
										26
									
								
								Xext/xtest.c
								
								
								
								
							|  | @ -42,6 +42,7 @@ from The Open Group. | ||||||
| #include "scrnintstr.h" | #include "scrnintstr.h" | ||||||
| #include "dixevents.h" | #include "dixevents.h" | ||||||
| #include "sleepuntil.h" | #include "sleepuntil.h" | ||||||
|  | #include "registry.h" | ||||||
| #define _XTEST_SERVER_ | #define _XTEST_SERVER_ | ||||||
| #include <X11/extensions/XTest.h> | #include <X11/extensions/XTest.h> | ||||||
| #include <X11/extensions/xteststr.h> | #include <X11/extensions/xteststr.h> | ||||||
|  | @ -53,10 +54,6 @@ from The Open Group. | ||||||
| 
 | 
 | ||||||
| #include "modinit.h" | #include "modinit.h" | ||||||
| 
 | 
 | ||||||
| #if 0 |  | ||||||
| static unsigned char XTestReqCode; |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| #ifdef XINPUT | #ifdef XINPUT | ||||||
| extern int DeviceValuator; | extern int DeviceValuator; | ||||||
| #endif /* XINPUT */ | #endif /* XINPUT */ | ||||||
|  | @ -88,18 +85,21 @@ static DISPATCH_PROC(SProcXTestGrabControl); | ||||||
| void | void | ||||||
| XTestExtensionInit(INITARGS) | XTestExtensionInit(INITARGS) | ||||||
| { | { | ||||||
| #if 0 |  | ||||||
|     ExtensionEntry *extEntry; |     ExtensionEntry *extEntry; | ||||||
| 
 | 
 | ||||||
|     if ((extEntry = AddExtension(XTestExtensionName, 0, 0, |     if (!(extEntry = AddExtension(XTestExtensionName, 0, 0, | ||||||
| 				  ProcXTestDispatch, SProcXTestDispatch, | 				  ProcXTestDispatch, SProcXTestDispatch, | ||||||
| 				 XTestResetProc, StandardMinorOpcode)) != 0) | 				  XTestResetProc, StandardMinorOpcode))) | ||||||
| 	XTestReqCode = (unsigned char)extEntry->base; | 	return; | ||||||
| #else | 
 | ||||||
|     (void) AddExtension(XTestExtensionName, 0, 0, |     RegisterRequestName(extEntry->base, X_XTestGetVersion, | ||||||
| 			ProcXTestDispatch, SProcXTestDispatch, | 			XTestExtensionName ":GetVersion"); | ||||||
| 			XTestResetProc, StandardMinorOpcode); |     RegisterRequestName(extEntry->base, X_XTestCompareCursor, | ||||||
| #endif | 			XTestExtensionName ":CompareCursor"); | ||||||
|  |     RegisterRequestName(extEntry->base, X_XTestFakeInput, | ||||||
|  | 			XTestExtensionName ":FakeInput"); | ||||||
|  |     RegisterRequestName(extEntry->base, X_XTestGrabControl, | ||||||
|  | 			XTestExtensionName ":GrabControl"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /*ARGSUSED*/ | /*ARGSUSED*/ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue