1 /************************************************************
3 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the name of the above listed
12 copyright holder(s) not be used in advertising or publicity pertaining
13 to distribution of the software without specific, written prior
16 THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
17 TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
19 LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 ********************************************************/
29 extern _X_EXPORT void Swap32Write(ClientPtr /* pClient */ ,
31 CARD32 * /* pbuf */ );
33 extern _X_EXPORT void CopySwap32Write(ClientPtr /* pClient */ ,
35 CARD32 * /* pbuf */ );
37 extern _X_EXPORT void CopySwap16Write(ClientPtr /* pClient */ ,
41 extern _X_EXPORT void SGenericReply(ClientPtr /* pClient */ ,
43 xGenericReply * /* pRep */ );
45 extern _X_EXPORT void SGetWindowAttributesReply(ClientPtr /* pClient */ ,
47 xGetWindowAttributesReply *
50 extern _X_EXPORT void SGetGeometryReply(ClientPtr /* pClient */ ,
52 xGetGeometryReply * /* pRep */ );
54 extern _X_EXPORT void SQueryTreeReply(ClientPtr /* pClient */ ,
56 xQueryTreeReply * /* pRep */ );
58 extern _X_EXPORT void SInternAtomReply(ClientPtr /* pClient */ ,
60 xInternAtomReply * /* pRep */ );
62 extern _X_EXPORT void SGetAtomNameReply(ClientPtr /* pClient */ ,
64 xGetAtomNameReply * /* pRep */ );
66 extern _X_EXPORT void SGetPropertyReply(ClientPtr /* pClient */ ,
68 xGetPropertyReply * /* pRep */ );
70 extern _X_EXPORT void SListPropertiesReply(ClientPtr /* pClient */ ,
72 xListPropertiesReply * /* pRep */ );
74 extern _X_EXPORT void SGetSelectionOwnerReply(ClientPtr /* pClient */ ,
76 xGetSelectionOwnerReply *
79 extern _X_EXPORT void SQueryPointerReply(ClientPtr /* pClient */ ,
81 xQueryPointerReply * /* pRep */ );
83 extern _X_EXPORT void SwapTimeCoordWrite(ClientPtr /* pClient */ ,
85 xTimecoord * /* pRep */ );
87 extern _X_EXPORT void SGetMotionEventsReply(ClientPtr /* pClient */ ,
89 xGetMotionEventsReply * /* pRep */
92 extern _X_EXPORT void STranslateCoordsReply(ClientPtr /* pClient */ ,
94 xTranslateCoordsReply * /* pRep */
97 extern _X_EXPORT void SGetInputFocusReply(ClientPtr /* pClient */ ,
99 xGetInputFocusReply * /* pRep */ );
101 extern _X_EXPORT void SQueryKeymapReply(ClientPtr /* pClient */ ,
103 xQueryKeymapReply * /* pRep */ );
105 extern _X_EXPORT void SQueryFontReply(ClientPtr /* pClient */ ,
107 xQueryFontReply * /* pRep */ );
109 extern _X_EXPORT void SQueryTextExtentsReply(ClientPtr /* pClient */ ,
111 xQueryTextExtentsReply * /* pRep */
114 extern _X_EXPORT void SListFontsReply(ClientPtr /* pClient */ ,
116 xListFontsReply * /* pRep */ );
118 extern _X_EXPORT void SListFontsWithInfoReply(ClientPtr /* pClient */ ,
120 xListFontsWithInfoReply *
123 extern _X_EXPORT void SGetFontPathReply(ClientPtr /* pClient */ ,
125 xGetFontPathReply * /* pRep */ );
127 extern _X_EXPORT void SGetImageReply(ClientPtr /* pClient */ ,
129 xGetImageReply * /* pRep */ );
131 extern _X_EXPORT void SListInstalledColormapsReply(ClientPtr /* pClient */ ,
133 xListInstalledColormapsReply
136 extern _X_EXPORT void SAllocColorReply(ClientPtr /* pClient */ ,
138 xAllocColorReply * /* pRep */ );
140 extern _X_EXPORT void SAllocNamedColorReply(ClientPtr /* pClient */ ,
142 xAllocNamedColorReply * /* pRep */
145 extern _X_EXPORT void SAllocColorCellsReply(ClientPtr /* pClient */ ,
147 xAllocColorCellsReply * /* pRep */
150 extern _X_EXPORT void SAllocColorPlanesReply(ClientPtr /* pClient */ ,
152 xAllocColorPlanesReply * /* pRep */
155 extern _X_EXPORT void SQColorsExtend(ClientPtr /* pClient */ ,
159 extern _X_EXPORT void SQueryColorsReply(ClientPtr /* pClient */ ,
161 xQueryColorsReply * /* pRep */ );
163 extern _X_EXPORT void SLookupColorReply(ClientPtr /* pClient */ ,
165 xLookupColorReply * /* pRep */ );
167 extern _X_EXPORT void SQueryBestSizeReply(ClientPtr /* pClient */ ,
169 xQueryBestSizeReply * /* pRep */ );
171 extern _X_EXPORT void SListExtensionsReply(ClientPtr /* pClient */ ,
173 xListExtensionsReply * /* pRep */ );
175 extern _X_EXPORT void SGetKeyboardMappingReply(ClientPtr /* pClient */ ,
177 xGetKeyboardMappingReply *
180 extern _X_EXPORT void SGetPointerMappingReply(ClientPtr /* pClient */ ,
182 xGetPointerMappingReply *
185 extern _X_EXPORT void SGetModifierMappingReply(ClientPtr /* pClient */ ,
187 xGetModifierMappingReply *
190 extern _X_EXPORT void SGetKeyboardControlReply(ClientPtr /* pClient */ ,
192 xGetKeyboardControlReply *
195 extern _X_EXPORT void SGetPointerControlReply(ClientPtr /* pClient */ ,
197 xGetPointerControlReply *
200 extern _X_EXPORT void SGetScreenSaverReply(ClientPtr /* pClient */ ,
202 xGetScreenSaverReply * /* pRep */ );
204 extern _X_EXPORT void SLHostsExtend(ClientPtr /* pClient */ ,
208 extern _X_EXPORT void SListHostsReply(ClientPtr /* pClient */ ,
210 xListHostsReply * /* pRep */ );
212 extern _X_EXPORT void SErrorEvent(xError * /* from */ ,
215 extern _X_EXPORT void SwapConnSetupInfo(char * /* pInfo */ ,
216 char * /* pInfoTBase */ );
218 extern _X_EXPORT void WriteSConnectionInfo(ClientPtr /* pClient */ ,
219 unsigned long /* size */ ,
220 char * /* pInfo */ );
222 extern _X_EXPORT void SwapConnSetupPrefix(xConnSetupPrefix * /* pcspFrom */ ,
223 xConnSetupPrefix * /* pcspTo */ );
225 extern _X_EXPORT void WriteSConnSetupPrefix(ClientPtr /* pClient */ ,
226 xConnSetupPrefix * /* pcsp */ );
229 #define SWAPREP_PROC(func) extern _X_EXPORT void func(xEvent * /* from */, xEvent * /* to */)
231 SWAPREP_PROC(SCirculateEvent);
232 SWAPREP_PROC(SClientMessageEvent);
233 SWAPREP_PROC(SColormapEvent);
234 SWAPREP_PROC(SConfigureNotifyEvent);
235 SWAPREP_PROC(SConfigureRequestEvent);
236 SWAPREP_PROC(SCreateNotifyEvent);
237 SWAPREP_PROC(SDestroyNotifyEvent);
238 SWAPREP_PROC(SEnterLeaveEvent);
239 SWAPREP_PROC(SExposeEvent);
240 SWAPREP_PROC(SFocusEvent);
241 SWAPREP_PROC(SGraphicsExposureEvent);
242 SWAPREP_PROC(SGravityEvent);
243 SWAPREP_PROC(SKeyButtonPtrEvent);
244 SWAPREP_PROC(SKeymapNotifyEvent);
245 SWAPREP_PROC(SMapNotifyEvent);
246 SWAPREP_PROC(SMapRequestEvent);
247 SWAPREP_PROC(SMappingEvent);
248 SWAPREP_PROC(SNoExposureEvent);
249 SWAPREP_PROC(SPropertyEvent);
250 SWAPREP_PROC(SReparentEvent);
251 SWAPREP_PROC(SResizeRequestEvent);
252 SWAPREP_PROC(SSelectionClearEvent);
253 SWAPREP_PROC(SSelectionNotifyEvent);
254 SWAPREP_PROC(SSelectionRequestEvent);
255 SWAPREP_PROC(SUnmapNotifyEvent);
256 SWAPREP_PROC(SVisibilityEvent);
260 #endif /* SWAPREP_H */