74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $XFree86: xc/include/extensions/xtrapproto.h,v 1.2 2002/02/22 21:32:51 dawes Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef __XTRAPPROTO__
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define __XTRAPPROTO__
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*****************************************************************************
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncCopyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncPermission to use, copy, modify, and distribute this software and its
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncdocumentation for any purpose and without fee is hereby granted,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncprovided that the above copyright notice appear in all copies and that
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncboth that copyright notice and this permission notice appear in
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncsupporting documentation, and that the name of Digital not be
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncused in advertising or publicity pertaining to distribution of the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncsoftware without specific, written prior permission.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncSOFTWARE.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync*****************************************************************************/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync *
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * CONTRIBUTORS:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync *
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Dick Annicchiarico
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Robert Chesler
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Dan Coutu
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Gene Durso
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Marc Evans
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Alan Jamison
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Mark Henry
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Ken Miller
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync *
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * DESCRIPTION:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * This header file contains the function prototypes for extension
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * routines sorted by module (globally defined routines *only*).
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef Bool
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync# define Bool int
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* xtrapdi.c */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapDestroyEnv (pointer value , XID id );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETrapCloseDown ( ExtensionEntry *extEntry );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XETrapRedirectDevices (void );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid DEC_XTRAPInit (void );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapCreateEnv (ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapDispatch (ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapDispatch (ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapReset (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapGetAvailable (xXTrapGetReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapGetCurrent (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapGetStatistics (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapConfig (xXTrapConfigReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapStartTrap (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapStopTrap (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapGetVersion (xXTrapGetReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapGetLastInpTime (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapRequestVector (ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapKeyboard (xEvent *x_event , DevicePtr keybd , int count );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef VECTORED_EVENTS
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapPointer (xEvent *x_event , DevicePtr ptrdev , int count );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#else
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapEventVector (ClientPtr client , xEvent *x_event );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETrapStampAndMail (xEvent *x_event );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXTrapDispatch (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapWriteXLib (XETrapEnv *penv , BYTE *data , CARD32 nbytes );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* xtrapddmi.c */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETrapPlatformSetup (void );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* xtrapdiswap.c */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapReset (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapGetAvailable (xXTrapGetReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapConfig (xXTrapConfigReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapStartTrap (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapStopTrap (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapGetCurrent (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapGetStatistics (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapGetVersion (xXTrapGetReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint sXETrapGetLastInpTime (xXTrapReq *request , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXETrapGetAvail (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXETrapGetVers (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXETrapGetLITim (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXETrapGetCur (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sReplyXETrapGetStats (ClientPtr client , int size , char *reply );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid sXETrapHeader (XETrapHeader *hdr );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSimpleReq (xReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwResourceReq (xResourceReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreateWindow (xCreateWindowReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeWindowAttributes (xChangeWindowAttributesReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwReparentWindow (xReparentWindowReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwConfigureWindow (xConfigureWindowReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwInternAtom (xInternAtomReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeProperty (xChangePropertyReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwDeleteProperty (xDeletePropertyReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGetProperty (xGetPropertyReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetSelectionOwner (xSetSelectionOwnerReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwConvertSelection (xConvertSelectionReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSendEvent (xSendEventReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGrabPointer (xGrabPointerReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGrabButton (xGrabButtonReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwUngrabButton (xUngrabButtonReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeActivePointerGrab (xChangeActivePointerGrabReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGrabKeyboard (xGrabKeyboardReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGrabKey (xGrabKeyReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwUngrabKey (xUngrabKeyReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGetMotionEvents (xGetMotionEventsReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwTranslateCoords (xTranslateCoordsReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwWarpPointer (xWarpPointerReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetInputFocus (xSetInputFocusReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwOpenFont (xOpenFontReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwListFonts (xListFontsReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwListFontsWithInfo (xListFontsWithInfoReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetFontPath (xSetFontPathReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreatePixmap (xCreatePixmapReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreateGC (xCreateGCReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeGC (xChangeGCReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCopyGC (xCopyGCReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetDashes (xSetDashesReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetClipRectangles (xSetClipRectanglesReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwClearToBackground (xClearAreaReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCopyArea (xCopyAreaReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCopyPlane (xCopyPlaneReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwPoly (xPolyPointReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwFillPoly (xFillPolyReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwPutImage (xPutImageReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwGetImage (xGetImageReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwPolyText (xPolyTextReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwImageText (xImageTextReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreateColormap (xCreateColormapReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCopyColormapAndFree (xCopyColormapAndFreeReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwAllocColor (xAllocColorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwAllocNamedColor (xAllocNamedColorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwAllocColorCells (xAllocColorCellsReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwAllocColorPlanes (xAllocColorPlanesReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwFreeColors (xFreeColorsReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwStoreColors (xStoreColorsReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwStoreNamedColor (xStoreNamedColorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwQueryColors (xQueryColorsReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwLookupColor (xLookupColorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreateCursor (xCreateCursorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwCreateGlyphCursor (xCreateGlyphCursorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwRecolorCursor (xRecolorCursorReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwQueryBestSize (xQueryBestSizeReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwQueryExtension (xQueryExtensionReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeKeyboardMapping (xChangeKeyboardMappingReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeKeyboardControl (xChangeKeyboardControlReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangePointerControl (xChangePointerControlReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwSetScreenSaver (xSetScreenSaverReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwChangeHosts (xChangeHostsReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwRotateProperties (xRotatePropertiesReq *data , ClientPtr client );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid XETSwNoOperation (xReq *data );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifdef vms
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid SwapLongs (long *list , unsigned long count );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncvoid SwapShorts (short *list , unsigned long count );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint SwapColorItem (xColorItem *pItem );
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* vms */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* __XTRAPPROTO__ */