Xext: add a few lines of comments to XGE.
This commit is contained in:
		
							parent
							
								
									745b90cde1
								
							
						
					
					
						commit
						d0890c40b9
					
				
							
								
								
									
										15
									
								
								Xext/geext.c
								
								
								
								
							
							
						
						
									
										15
									
								
								Xext/geext.c
								
								
								
								
							| 
						 | 
					@ -178,7 +178,7 @@ static void GEClientCallback(CallbackListPtr *list,
 | 
				
			||||||
    pGEClient->minor_version = 0;
 | 
					    pGEClient->minor_version = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* reset extension */
 | 
					/* Reset extension. Called on server shutdown. */
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
GEResetProc(ExtensionEntry *extEntry)
 | 
					GEResetProc(ExtensionEntry *extEntry)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -190,7 +190,13 @@ GEResetProc(ExtensionEntry *extEntry)
 | 
				
			||||||
    GEEventType = 0;
 | 
					    GEEventType = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*  Calls the registered event swap function for the extension. */
 | 
					/*  Calls the registered event swap function for the extension.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  Each extension can register a swap function to handle GenericEvents being
 | 
				
			||||||
 | 
					 *  swapped properly. The server calls SGEGenericEvent() before the event is
 | 
				
			||||||
 | 
					 *  written on the wire, this one calls the registered swap function to do the
 | 
				
			||||||
 | 
					 *  work.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
SGEGenericEvent(xEvent* from, xEvent* to)
 | 
					SGEGenericEvent(xEvent* from, xEvent* to)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -207,7 +213,10 @@ SGEGenericEvent(xEvent* from, xEvent* to)
 | 
				
			||||||
        GEExtensions[gefrom->extension & 0x7F].evswap(gefrom, geto);
 | 
					        GEExtensions[gefrom->extension & 0x7F].evswap(gefrom, geto);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* init extension, register at server */
 | 
					/* Init extension, register at server.
 | 
				
			||||||
 | 
					 * Since other extensions may rely on XGE (XInput does already), it is a good
 | 
				
			||||||
 | 
					 * idea to init XGE first, before any other extension.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
GEExtensionInit(void)
 | 
					GEExtensionInit(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue