1 | /* $XFree86: xc/include/extensions/xtrapproto.h,v 1.1 2001/11/02 23:29:26 dawes Exp $ */
|
---|
2 |
|
---|
3 | #ifndef __XTRAPPROTO__
|
---|
4 | #define __XTRAPPROTO__
|
---|
5 |
|
---|
6 | /*****************************************************************************
|
---|
7 | Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA
|
---|
8 |
|
---|
9 | Permission to use, copy, modify, and distribute this software and its
|
---|
10 | documentation for any purpose and without fee is hereby granted,
|
---|
11 | provided that the above copyright notice appear in all copies and that
|
---|
12 | both that copyright notice and this permission notice appear in
|
---|
13 | supporting documentation, and that the name of Digital not be
|
---|
14 | used in advertising or publicity pertaining to distribution of the
|
---|
15 | software without specific, written prior permission.
|
---|
16 |
|
---|
17 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
---|
18 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
---|
19 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
---|
20 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
---|
21 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
---|
22 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
---|
23 | SOFTWARE.
|
---|
24 |
|
---|
25 | *****************************************************************************/
|
---|
26 | /*
|
---|
27 | *
|
---|
28 | * CONTRIBUTORS:
|
---|
29 | *
|
---|
30 | * Dick Annicchiarico
|
---|
31 | * Robert Chesler
|
---|
32 | * Dan Coutu
|
---|
33 | * Gene Durso
|
---|
34 | * Marc Evans
|
---|
35 | * Alan Jamison
|
---|
36 | * Mark Henry
|
---|
37 | * Ken Miller
|
---|
38 | *
|
---|
39 | * DESCRIPTION:
|
---|
40 | * This header file contains the function prototypes for extension
|
---|
41 | * routines sorted by module (globally defined routines *only*).
|
---|
42 | */
|
---|
43 | #ifndef Bool
|
---|
44 | # define Bool int
|
---|
45 | #endif
|
---|
46 | /* xtrapdi.c */
|
---|
47 | int XETrapDestroyEnv (pointer value , XID id );
|
---|
48 | void XETrapCloseDown ( ExtensionEntry *extEntry );
|
---|
49 | Bool XETrapRedirectDevices (void );
|
---|
50 | void DEC_XTRAPInit (void );
|
---|
51 | int XETrapCreateEnv (ClientPtr client );
|
---|
52 | int XETrapDispatch (ClientPtr client );
|
---|
53 | int sXETrapDispatch (ClientPtr client );
|
---|
54 | int XETrapReset (xXTrapReq *request , ClientPtr client );
|
---|
55 | int XETrapGetAvailable (xXTrapGetReq *request , ClientPtr client );
|
---|
56 | int XETrapGetCurrent (xXTrapReq *request , ClientPtr client );
|
---|
57 | int XETrapGetStatistics (xXTrapReq *request , ClientPtr client );
|
---|
58 | int XETrapConfig (xXTrapConfigReq *request , ClientPtr client );
|
---|
59 | int XETrapStartTrap (xXTrapReq *request , ClientPtr client );
|
---|
60 | int XETrapStopTrap (xXTrapReq *request , ClientPtr client );
|
---|
61 | int XETrapGetVersion (xXTrapGetReq *request , ClientPtr client );
|
---|
62 | int XETrapGetLastInpTime (xXTrapReq *request , ClientPtr client );
|
---|
63 | int XETrapRequestVector (ClientPtr client );
|
---|
64 | int XETrapKeyboard (xEvent *x_event , DevicePtr keybd , int count );
|
---|
65 | #ifndef VECTORED_EVENTS
|
---|
66 | int XETrapPointer (xEvent *x_event , DevicePtr ptrdev , int count );
|
---|
67 | #else
|
---|
68 | int XETrapEventVector (ClientPtr client , xEvent *x_event );
|
---|
69 | #endif
|
---|
70 | void XETrapStampAndMail (xEvent *x_event );
|
---|
71 | void sReplyXTrapDispatch (ClientPtr client , int size , char *reply );
|
---|
72 | int XETrapWriteXLib (XETrapEnv *penv , BYTE *data , CARD32 nbytes );
|
---|
73 |
|
---|
74 | /* xtrapddmi.c */
|
---|
75 | void XETrapPlatformSetup (void );
|
---|
76 | int XETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client );
|
---|
77 |
|
---|
78 | /* xtrapdiswap.c */
|
---|
79 | int sXETrapReset (xXTrapReq *request , ClientPtr client );
|
---|
80 | int sXETrapGetAvailable (xXTrapGetReq *request , ClientPtr client );
|
---|
81 | int sXETrapConfig (xXTrapConfigReq *request , ClientPtr client );
|
---|
82 | int sXETrapStartTrap (xXTrapReq *request , ClientPtr client );
|
---|
83 | int sXETrapStopTrap (xXTrapReq *request , ClientPtr client );
|
---|
84 | int sXETrapGetCurrent (xXTrapReq *request , ClientPtr client );
|
---|
85 | int sXETrapGetStatistics (xXTrapReq *request , ClientPtr client );
|
---|
86 | int sXETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client );
|
---|
87 | int sXETrapGetVersion (xXTrapGetReq *request , ClientPtr client );
|
---|
88 | int sXETrapGetLastInpTime (xXTrapReq *request , ClientPtr client );
|
---|
89 | void sReplyXETrapGetAvail (ClientPtr client , int size , char *reply );
|
---|
90 | void sReplyXETrapGetVers (ClientPtr client , int size , char *reply );
|
---|
91 | void sReplyXETrapGetLITim (ClientPtr client , int size , char *reply );
|
---|
92 | void sReplyXETrapGetCur (ClientPtr client , int size , char *reply );
|
---|
93 | void sReplyXETrapGetStats (ClientPtr client , int size , char *reply );
|
---|
94 | void sXETrapHeader (XETrapHeader *hdr );
|
---|
95 | void XETSwSimpleReq (xReq *data );
|
---|
96 | void XETSwResourceReq (xResourceReq *data );
|
---|
97 | void XETSwCreateWindow (xCreateWindowReq *data , ClientPtr client );
|
---|
98 | void XETSwChangeWindowAttributes (xChangeWindowAttributesReq *data , ClientPtr client );
|
---|
99 | void XETSwReparentWindow (xReparentWindowReq *data );
|
---|
100 | void XETSwConfigureWindow (xConfigureWindowReq *data , ClientPtr client );
|
---|
101 | void XETSwInternAtom (xInternAtomReq *data );
|
---|
102 | void XETSwChangeProperty (xChangePropertyReq *data );
|
---|
103 | void XETSwDeleteProperty (xDeletePropertyReq *data );
|
---|
104 | void XETSwGetProperty (xGetPropertyReq *data );
|
---|
105 | void XETSwSetSelectionOwner (xSetSelectionOwnerReq *data );
|
---|
106 | void XETSwConvertSelection (xConvertSelectionReq *data );
|
---|
107 | void XETSwSendEvent (xSendEventReq *data );
|
---|
108 | void XETSwGrabPointer (xGrabPointerReq *data );
|
---|
109 | void XETSwGrabButton (xGrabButtonReq *data );
|
---|
110 | void XETSwUngrabButton (xUngrabButtonReq *data );
|
---|
111 | void XETSwChangeActivePointerGrab (xChangeActivePointerGrabReq *data );
|
---|
112 | void XETSwGrabKeyboard (xGrabKeyboardReq *data );
|
---|
113 | void XETSwGrabKey (xGrabKeyReq *data );
|
---|
114 | void XETSwUngrabKey (xUngrabKeyReq *data );
|
---|
115 | void XETSwGetMotionEvents (xGetMotionEventsReq *data );
|
---|
116 | void XETSwTranslateCoords (xTranslateCoordsReq *data );
|
---|
117 | void XETSwWarpPointer (xWarpPointerReq *data );
|
---|
118 | void XETSwSetInputFocus (xSetInputFocusReq *data );
|
---|
119 | void XETSwOpenFont (xOpenFontReq *data );
|
---|
120 | void XETSwListFonts (xListFontsReq *data );
|
---|
121 | void XETSwListFontsWithInfo (xListFontsWithInfoReq *data );
|
---|
122 | void XETSwSetFontPath (xSetFontPathReq *data );
|
---|
123 | void XETSwCreatePixmap (xCreatePixmapReq *data );
|
---|
124 | void XETSwCreateGC (xCreateGCReq *data , ClientPtr client );
|
---|
125 | void XETSwChangeGC (xChangeGCReq *data , ClientPtr client );
|
---|
126 | void XETSwCopyGC (xCopyGCReq *data );
|
---|
127 | void XETSwSetDashes (xSetDashesReq *data );
|
---|
128 | void XETSwSetClipRectangles (xSetClipRectanglesReq *data , ClientPtr client );
|
---|
129 | void XETSwClearToBackground (xClearAreaReq *data );
|
---|
130 | void XETSwCopyArea (xCopyAreaReq *data );
|
---|
131 | void XETSwCopyPlane (xCopyPlaneReq *data );
|
---|
132 | void XETSwPoly (xPolyPointReq *data , ClientPtr client );
|
---|
133 | void XETSwFillPoly (xFillPolyReq *data , ClientPtr client );
|
---|
134 | void XETSwPutImage (xPutImageReq *data );
|
---|
135 | void XETSwGetImage (xGetImageReq *data );
|
---|
136 | void XETSwPolyText (xPolyTextReq *data );
|
---|
137 | void XETSwImageText (xImageTextReq *data );
|
---|
138 | void XETSwCreateColormap (xCreateColormapReq *data );
|
---|
139 | void XETSwCopyColormapAndFree (xCopyColormapAndFreeReq *data );
|
---|
140 | void XETSwAllocColor (xAllocColorReq *data );
|
---|
141 | void XETSwAllocNamedColor (xAllocNamedColorReq *data );
|
---|
142 | void XETSwAllocColorCells (xAllocColorCellsReq *data );
|
---|
143 | void XETSwAllocColorPlanes (xAllocColorPlanesReq *data );
|
---|
144 | void XETSwFreeColors (xFreeColorsReq *data , ClientPtr client );
|
---|
145 | void XETSwStoreColors (xStoreColorsReq *data , ClientPtr client );
|
---|
146 | void XETSwStoreNamedColor (xStoreNamedColorReq *data );
|
---|
147 | void XETSwQueryColors (xQueryColorsReq *data , ClientPtr client );
|
---|
148 | void XETSwLookupColor (xLookupColorReq *data );
|
---|
149 | void XETSwCreateCursor (xCreateCursorReq *data );
|
---|
150 | void XETSwCreateGlyphCursor (xCreateGlyphCursorReq *data );
|
---|
151 | void XETSwRecolorCursor (xRecolorCursorReq *data );
|
---|
152 | void XETSwQueryBestSize (xQueryBestSizeReq *data );
|
---|
153 | void XETSwQueryExtension (xQueryExtensionReq *data );
|
---|
154 | void XETSwChangeKeyboardMapping (xChangeKeyboardMappingReq *data );
|
---|
155 | void XETSwChangeKeyboardControl (xChangeKeyboardControlReq *data , ClientPtr client );
|
---|
156 | void XETSwChangePointerControl (xChangePointerControlReq *data );
|
---|
157 | void XETSwSetScreenSaver (xSetScreenSaverReq *data );
|
---|
158 | void XETSwChangeHosts (xChangeHostsReq *data );
|
---|
159 | void XETSwRotateProperties (xRotatePropertiesReq *data , ClientPtr client );
|
---|
160 | void XETSwNoOperation (xReq *data );
|
---|
161 | #ifdef vms
|
---|
162 | void SwapLongs (long *list , unsigned long count );
|
---|
163 | void SwapShorts (short *list , unsigned long count );
|
---|
164 | int SwapColorItem (xColorItem *pItem );
|
---|
165 | #endif /* vms */
|
---|
166 |
|
---|
167 |
|
---|
168 | #endif /* __XTRAPPROTO__ */
|
---|