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 void Swap32Write(
30 ClientPtr
/* pClient */,
34 extern void CopySwap32Write(
35 ClientPtr
/* pClient */,
39 extern void CopySwap16Write(
40 ClientPtr
/* pClient */,
44 extern void SGenericReply(
45 ClientPtr
/* pClient */,
47 xGenericReply
* /* pRep */);
49 extern void SGetWindowAttributesReply(
50 ClientPtr
/* pClient */,
52 xGetWindowAttributesReply
* /* pRep */);
54 extern void SGetGeometryReply(
55 ClientPtr
/* pClient */,
57 xGetGeometryReply
* /* pRep */);
59 extern void SQueryTreeReply(
60 ClientPtr
/* pClient */,
62 xQueryTreeReply
* /* pRep */);
64 extern void SInternAtomReply(
65 ClientPtr
/* pClient */,
67 xInternAtomReply
* /* pRep */);
69 extern void SGetAtomNameReply(
70 ClientPtr
/* pClient */,
72 xGetAtomNameReply
* /* pRep */);
74 extern void SGetPropertyReply(
75 ClientPtr
/* pClient */,
77 xGetPropertyReply
* /* pRep */);
79 extern void SListPropertiesReply(
80 ClientPtr
/* pClient */,
82 xListPropertiesReply
* /* pRep */);
84 extern void SGetSelectionOwnerReply(
85 ClientPtr
/* pClient */,
87 xGetSelectionOwnerReply
* /* pRep */);
89 extern void SQueryPointerReply(
90 ClientPtr
/* pClient */,
92 xQueryPointerReply
* /* pRep */);
94 extern void SwapTimeCoordWrite(
95 ClientPtr
/* pClient */,
97 xTimecoord
* /* pRep */);
99 extern void SGetMotionEventsReply(
100 ClientPtr
/* pClient */,
102 xGetMotionEventsReply
* /* pRep */);
104 extern void STranslateCoordsReply(
105 ClientPtr
/* pClient */,
107 xTranslateCoordsReply
* /* pRep */);
109 extern void SGetInputFocusReply(
110 ClientPtr
/* pClient */,
112 xGetInputFocusReply
* /* pRep */);
114 extern void SQueryKeymapReply(
115 ClientPtr
/* pClient */,
117 xQueryKeymapReply
* /* pRep */);
119 extern void SQueryFontReply(
120 ClientPtr
/* pClient */,
122 xQueryFontReply
* /* pRep */);
124 extern void SQueryTextExtentsReply(
125 ClientPtr
/* pClient */,
127 xQueryTextExtentsReply
* /* pRep */);
129 extern void SListFontsReply(
130 ClientPtr
/* pClient */,
132 xListFontsReply
* /* pRep */);
134 extern void SListFontsWithInfoReply(
135 ClientPtr
/* pClient */,
137 xListFontsWithInfoReply
* /* pRep */);
139 extern void SGetFontPathReply(
140 ClientPtr
/* pClient */,
142 xGetFontPathReply
* /* pRep */);
144 extern void SGetImageReply(
145 ClientPtr
/* pClient */,
147 xGetImageReply
* /* pRep */);
149 extern void SListInstalledColormapsReply(
150 ClientPtr
/* pClient */,
152 xListInstalledColormapsReply
* /* pRep */);
154 extern void SAllocColorReply(
155 ClientPtr
/* pClient */,
157 xAllocColorReply
* /* pRep */);
159 extern void SAllocNamedColorReply(
160 ClientPtr
/* pClient */,
162 xAllocNamedColorReply
* /* pRep */);
164 extern void SAllocColorCellsReply(
165 ClientPtr
/* pClient */,
167 xAllocColorCellsReply
* /* pRep */);
169 extern void SAllocColorPlanesReply(
170 ClientPtr
/* pClient */,
172 xAllocColorPlanesReply
* /* pRep */);
174 extern void SQColorsExtend(
175 ClientPtr
/* pClient */,
179 extern void SQueryColorsReply(
180 ClientPtr
/* pClient */,
182 xQueryColorsReply
* /* pRep */);
184 extern void SLookupColorReply(
185 ClientPtr
/* pClient */,
187 xLookupColorReply
* /* pRep */);
189 extern void SQueryBestSizeReply(
190 ClientPtr
/* pClient */,
192 xQueryBestSizeReply
* /* pRep */);
194 extern void SListExtensionsReply(
195 ClientPtr
/* pClient */,
197 xListExtensionsReply
* /* pRep */);
199 extern void SGetKeyboardMappingReply(
200 ClientPtr
/* pClient */,
202 xGetKeyboardMappingReply
* /* pRep */);
204 extern void SGetPointerMappingReply(
205 ClientPtr
/* pClient */,
207 xGetPointerMappingReply
* /* pRep */);
209 extern void SGetModifierMappingReply(
210 ClientPtr
/* pClient */,
212 xGetModifierMappingReply
* /* pRep */);
214 extern void SGetKeyboardControlReply(
215 ClientPtr
/* pClient */,
217 xGetKeyboardControlReply
* /* pRep */);
219 extern void SGetPointerControlReply(
220 ClientPtr
/* pClient */,
222 xGetPointerControlReply
* /* pRep */);
224 extern void SGetScreenSaverReply(
225 ClientPtr
/* pClient */,
227 xGetScreenSaverReply
* /* pRep */);
229 extern void SLHostsExtend(
230 ClientPtr
/* pClient */,
234 extern void SListHostsReply(
235 ClientPtr
/* pClient */,
237 xListHostsReply
* /* pRep */);
239 extern void SErrorEvent(
243 extern void SwapConnSetupInfo(
245 char * /* pInfoTBase */);
247 extern void WriteSConnectionInfo(
248 ClientPtr
/* pClient */,
249 unsigned long /* size */,
252 extern void SwapConnSetupPrefix(
253 xConnSetupPrefix
* /* pcspFrom */,
254 xConnSetupPrefix
* /* pcspTo */);
256 extern void WriteSConnSetupPrefix(
257 ClientPtr
/* pClient */,
258 xConnSetupPrefix
* /* pcsp */);
261 #define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */)
263 SWAPREP_PROC(SCirculateEvent
);
264 SWAPREP_PROC(SClientMessageEvent
);
265 SWAPREP_PROC(SColormapEvent
);
266 SWAPREP_PROC(SConfigureNotifyEvent
);
267 SWAPREP_PROC(SConfigureRequestEvent
);
268 SWAPREP_PROC(SCreateNotifyEvent
);
269 SWAPREP_PROC(SDestroyNotifyEvent
);
270 SWAPREP_PROC(SEnterLeaveEvent
);
271 SWAPREP_PROC(SExposeEvent
);
272 SWAPREP_PROC(SFocusEvent
);
273 SWAPREP_PROC(SGraphicsExposureEvent
);
274 SWAPREP_PROC(SGravityEvent
);
275 SWAPREP_PROC(SKeyButtonPtrEvent
);
276 SWAPREP_PROC(SKeymapNotifyEvent
);
277 SWAPREP_PROC(SMapNotifyEvent
);
278 SWAPREP_PROC(SMapRequestEvent
);
279 SWAPREP_PROC(SMappingEvent
);
280 SWAPREP_PROC(SNoExposureEvent
);
281 SWAPREP_PROC(SPropertyEvent
);
282 SWAPREP_PROC(SReparentEvent
);
283 SWAPREP_PROC(SResizeRequestEvent
);
284 SWAPREP_PROC(SSelectionClearEvent
);
285 SWAPREP_PROC(SSelectionNotifyEvent
);
286 SWAPREP_PROC(SSelectionRequestEvent
);
287 SWAPREP_PROC(SUnmapNotifyEvent
);
288 SWAPREP_PROC(SVisibilityEvent
);
292 #endif /* SWAPREP_H */