diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-10-15 18:50:06 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-10-15 18:50:06 -0400 |
commit | b38a91993364aa80cfd99721e319e1458d9fb760 (patch) | |
tree | f07269cad4fcf0eb641231eef6a6348b501fefd2 | |
parent | 106758893b68033f14f69c4ee6591fb6a149ba37 (diff) |
registry: Register XTrap extension protocol names.
-rw-r--r-- | XTrap/xtrapdi.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/XTrap/xtrapdi.c b/XTrap/xtrapdi.c index efad36f7a..734922ceb 100644 --- a/XTrap/xtrapdi.c +++ b/XTrap/xtrapdi.c @@ -62,6 +62,7 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "misc.h" /* Server swapping macros */ #include "dixstruct.h" /* Server ClientRec definitions */ #include "resource.h" /* Used with the MakeAtom call */ +#include "registry.h" #ifdef PC # include "scrintst.h" /* Screen struct */ # include "extnsist.h" @@ -463,6 +464,41 @@ void DEC_XTRAPInit() XETrap_avail.data.xtrap_revision); #endif + RegisterRequestName(extEntry->base, XETrap_Reset, + XTrapExtName ":Reset"); + RegisterRequestName(extEntry->base, XETrap_GetAvailable, + XTrapExtName ":GetAvailable"); + RegisterRequestName(extEntry->base, XETrap_Config, + XTrapExtName ":Config"); + RegisterRequestName(extEntry->base, XETrap_StartTrap, + XTrapExtName ":StartTrap"); + RegisterRequestName(extEntry->base, XETrap_StopTrap, + XTrapExtName ":StopTrap"); + RegisterRequestName(extEntry->base, XETrap_GetCurrent, + XTrapExtName ":GetCurrent"); + RegisterRequestName(extEntry->base, XETrap_GetStatistics, + XTrapExtName ":GetStatistics"); +#ifndef _XINPUT + RegisterRequestName(extEntry->base, XETrap_SimulateXEvent, + XTrapExtName ":SimulateXEvent"); +#endif + RegisterRequestName(extEntry->base, XETrap_GetVersion, + XTrapExtName ":GetVersion"); + RegisterRequestName(extEntry->base, XETrap_GetLastInpTime, + XTrapExtName ":GetLastInpTime"); + + RegisterEventName(extEntry->eventBase, XTrapExtName ":Event"); + + RegisterErrorName(extEntry->errorBase + BadIO, + XTrapExtName ":BadIO"); + RegisterErrorName(extEntry->errorBase + BadStatistics, + XTrapExtName ":BadStatistics"); + RegisterErrorName(extEntry->errorBase + BadDevices, + XTrapExtName ":BadDevices"); + RegisterErrorName(extEntry->errorBase + BadScreen, + XTrapExtName ":BadScreen"); + RegisterErrorName(extEntry->errorBase + BadSwapReq, + XTrapExtName ":BadSwapReq"); return; } |