1 | /************************************************************
|
---|
2 |
|
---|
3 | Copyright 1996 by Thomas E. Dickey <[email protected]>
|
---|
4 |
|
---|
5 | All Rights Reserved
|
---|
6 |
|
---|
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
|
---|
14 | permission.
|
---|
15 |
|
---|
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.
|
---|
23 |
|
---|
24 | ********************************************************/
|
---|
25 |
|
---|
26 | #ifndef SWAPREP_H
|
---|
27 | #define SWAPREP_H 1
|
---|
28 |
|
---|
29 | extern void Swap32Write(
|
---|
30 | ClientPtr /* pClient */,
|
---|
31 | int /* size */,
|
---|
32 | CARD32 * /* pbuf */);
|
---|
33 |
|
---|
34 | extern void CopySwap32Write(
|
---|
35 | ClientPtr /* pClient */,
|
---|
36 | int /* size */,
|
---|
37 | CARD32 * /* pbuf */);
|
---|
38 |
|
---|
39 | extern void CopySwap16Write(
|
---|
40 | ClientPtr /* pClient */,
|
---|
41 | int /* size */,
|
---|
42 | short * /* pbuf */);
|
---|
43 |
|
---|
44 | extern void SGenericReply(
|
---|
45 | ClientPtr /* pClient */,
|
---|
46 | int /* size */,
|
---|
47 | xGenericReply * /* pRep */);
|
---|
48 |
|
---|
49 | extern void SGetWindowAttributesReply(
|
---|
50 | ClientPtr /* pClient */,
|
---|
51 | int /* size */,
|
---|
52 | xGetWindowAttributesReply * /* pRep */);
|
---|
53 |
|
---|
54 | extern void SGetGeometryReply(
|
---|
55 | ClientPtr /* pClient */,
|
---|
56 | int /* size */,
|
---|
57 | xGetGeometryReply * /* pRep */);
|
---|
58 |
|
---|
59 | extern void SQueryTreeReply(
|
---|
60 | ClientPtr /* pClient */,
|
---|
61 | int /* size */,
|
---|
62 | xQueryTreeReply * /* pRep */);
|
---|
63 |
|
---|
64 | extern void SInternAtomReply(
|
---|
65 | ClientPtr /* pClient */,
|
---|
66 | int /* size */,
|
---|
67 | xInternAtomReply * /* pRep */);
|
---|
68 |
|
---|
69 | extern void SGetAtomNameReply(
|
---|
70 | ClientPtr /* pClient */,
|
---|
71 | int /* size */,
|
---|
72 | xGetAtomNameReply * /* pRep */);
|
---|
73 |
|
---|
74 | extern void SGetPropertyReply(
|
---|
75 | ClientPtr /* pClient */,
|
---|
76 | int /* size */,
|
---|
77 | xGetPropertyReply * /* pRep */);
|
---|
78 |
|
---|
79 | extern void SListPropertiesReply(
|
---|
80 | ClientPtr /* pClient */,
|
---|
81 | int /* size */,
|
---|
82 | xListPropertiesReply * /* pRep */);
|
---|
83 |
|
---|
84 | extern void SGetSelectionOwnerReply(
|
---|
85 | ClientPtr /* pClient */,
|
---|
86 | int /* size */,
|
---|
87 | xGetSelectionOwnerReply * /* pRep */);
|
---|
88 |
|
---|
89 | extern void SQueryPointerReply(
|
---|
90 | ClientPtr /* pClient */,
|
---|
91 | int /* size */,
|
---|
92 | xQueryPointerReply * /* pRep */);
|
---|
93 |
|
---|
94 | extern void SwapTimecoord(
|
---|
95 | xTimecoord * /* pCoord */);
|
---|
96 |
|
---|
97 | extern void SwapTimeCoordWrite(
|
---|
98 | ClientPtr /* pClient */,
|
---|
99 | int /* size */,
|
---|
100 | xTimecoord * /* pRep */);
|
---|
101 |
|
---|
102 | extern void SGetMotionEventsReply(
|
---|
103 | ClientPtr /* pClient */,
|
---|
104 | int /* size */,
|
---|
105 | xGetMotionEventsReply * /* pRep */);
|
---|
106 |
|
---|
107 | extern void STranslateCoordsReply(
|
---|
108 | ClientPtr /* pClient */,
|
---|
109 | int /* size */,
|
---|
110 | xTranslateCoordsReply * /* pRep */);
|
---|
111 |
|
---|
112 | extern void SGetInputFocusReply(
|
---|
113 | ClientPtr /* pClient */,
|
---|
114 | int /* size */,
|
---|
115 | xGetInputFocusReply * /* pRep */);
|
---|
116 |
|
---|
117 | extern void SQueryKeymapReply(
|
---|
118 | ClientPtr /* pClient */,
|
---|
119 | int /* size */,
|
---|
120 | xQueryKeymapReply * /* pRep */);
|
---|
121 |
|
---|
122 | extern void SQueryFontReply(
|
---|
123 | ClientPtr /* pClient */,
|
---|
124 | int /* size */,
|
---|
125 | xQueryFontReply * /* pRep */);
|
---|
126 |
|
---|
127 | extern void SQueryTextExtentsReply(
|
---|
128 | ClientPtr /* pClient */,
|
---|
129 | int /* size */,
|
---|
130 | xQueryTextExtentsReply * /* pRep */);
|
---|
131 |
|
---|
132 | extern void SListFontsReply(
|
---|
133 | ClientPtr /* pClient */,
|
---|
134 | int /* size */,
|
---|
135 | xListFontsReply * /* pRep */);
|
---|
136 |
|
---|
137 | extern void SListFontsWithInfoReply(
|
---|
138 | ClientPtr /* pClient */,
|
---|
139 | int /* size */,
|
---|
140 | xListFontsWithInfoReply * /* pRep */);
|
---|
141 |
|
---|
142 | extern void SGetFontPathReply(
|
---|
143 | ClientPtr /* pClient */,
|
---|
144 | int /* size */,
|
---|
145 | xGetFontPathReply * /* pRep */);
|
---|
146 |
|
---|
147 | extern void SGetImageReply(
|
---|
148 | ClientPtr /* pClient */,
|
---|
149 | int /* size */,
|
---|
150 | xGetImageReply * /* pRep */);
|
---|
151 |
|
---|
152 | extern void SListInstalledColormapsReply(
|
---|
153 | ClientPtr /* pClient */,
|
---|
154 | int /* size */,
|
---|
155 | xListInstalledColormapsReply * /* pRep */);
|
---|
156 |
|
---|
157 | extern void SAllocColorReply(
|
---|
158 | ClientPtr /* pClient */,
|
---|
159 | int /* size */,
|
---|
160 | xAllocColorReply * /* pRep */);
|
---|
161 |
|
---|
162 | extern void SAllocNamedColorReply(
|
---|
163 | ClientPtr /* pClient */,
|
---|
164 | int /* size */,
|
---|
165 | xAllocNamedColorReply * /* pRep */);
|
---|
166 |
|
---|
167 | extern void SAllocColorCellsReply(
|
---|
168 | ClientPtr /* pClient */,
|
---|
169 | int /* size */,
|
---|
170 | xAllocColorCellsReply * /* pRep */);
|
---|
171 |
|
---|
172 | extern void SAllocColorPlanesReply(
|
---|
173 | ClientPtr /* pClient */,
|
---|
174 | int /* size */,
|
---|
175 | xAllocColorPlanesReply * /* pRep */);
|
---|
176 |
|
---|
177 | extern void SwapRGB(
|
---|
178 | xrgb * /* prgb */);
|
---|
179 |
|
---|
180 | extern void SQColorsExtend(
|
---|
181 | ClientPtr /* pClient */,
|
---|
182 | int /* size */,
|
---|
183 | xrgb * /* prgb */);
|
---|
184 |
|
---|
185 | extern void SQueryColorsReply(
|
---|
186 | ClientPtr /* pClient */,
|
---|
187 | int /* size */,
|
---|
188 | xQueryColorsReply * /* pRep */);
|
---|
189 |
|
---|
190 | extern void SLookupColorReply(
|
---|
191 | ClientPtr /* pClient */,
|
---|
192 | int /* size */,
|
---|
193 | xLookupColorReply * /* pRep */);
|
---|
194 |
|
---|
195 | extern void SQueryBestSizeReply(
|
---|
196 | ClientPtr /* pClient */,
|
---|
197 | int /* size */,
|
---|
198 | xQueryBestSizeReply * /* pRep */);
|
---|
199 |
|
---|
200 | extern void SListExtensionsReply(
|
---|
201 | ClientPtr /* pClient */,
|
---|
202 | int /* size */,
|
---|
203 | xListExtensionsReply * /* pRep */);
|
---|
204 |
|
---|
205 | extern void SGetKeyboardMappingReply(
|
---|
206 | ClientPtr /* pClient */,
|
---|
207 | int /* size */,
|
---|
208 | xGetKeyboardMappingReply * /* pRep */);
|
---|
209 |
|
---|
210 | extern void SGetPointerMappingReply(
|
---|
211 | ClientPtr /* pClient */,
|
---|
212 | int /* size */,
|
---|
213 | xGetPointerMappingReply * /* pRep */);
|
---|
214 |
|
---|
215 | extern void SGetModifierMappingReply(
|
---|
216 | ClientPtr /* pClient */,
|
---|
217 | int /* size */,
|
---|
218 | xGetModifierMappingReply * /* pRep */);
|
---|
219 |
|
---|
220 | extern void SGetKeyboardControlReply(
|
---|
221 | ClientPtr /* pClient */,
|
---|
222 | int /* size */,
|
---|
223 | xGetKeyboardControlReply * /* pRep */);
|
---|
224 |
|
---|
225 | extern void SGetPointerControlReply(
|
---|
226 | ClientPtr /* pClient */,
|
---|
227 | int /* size */,
|
---|
228 | xGetPointerControlReply * /* pRep */);
|
---|
229 |
|
---|
230 | extern void SGetScreenSaverReply(
|
---|
231 | ClientPtr /* pClient */,
|
---|
232 | int /* size */,
|
---|
233 | xGetScreenSaverReply * /* pRep */);
|
---|
234 |
|
---|
235 | extern void SLHostsExtend(
|
---|
236 | ClientPtr /* pClient */,
|
---|
237 | int /* size */,
|
---|
238 | char * /* buf */);
|
---|
239 |
|
---|
240 | extern void SListHostsReply(
|
---|
241 | ClientPtr /* pClient */,
|
---|
242 | int /* size */,
|
---|
243 | xListHostsReply * /* pRep */);
|
---|
244 |
|
---|
245 | extern void SErrorEvent(
|
---|
246 | xError * /* from */,
|
---|
247 | xError * /* to */);
|
---|
248 |
|
---|
249 | extern void SwapConnSetupInfo(
|
---|
250 | char * /* pInfo */,
|
---|
251 | char * /* pInfoTBase */);
|
---|
252 |
|
---|
253 | extern void WriteSConnectionInfo(
|
---|
254 | ClientPtr /* pClient */,
|
---|
255 | unsigned long /* size */,
|
---|
256 | char * /* pInfo */);
|
---|
257 |
|
---|
258 | extern void SwapConnSetup(
|
---|
259 | xConnSetup * /* pConnSetup */,
|
---|
260 | xConnSetup * /* pConnSetupT */);
|
---|
261 |
|
---|
262 | extern void SwapWinRoot(
|
---|
263 | xWindowRoot * /* pRoot */,
|
---|
264 | xWindowRoot * /* pRootT */);
|
---|
265 |
|
---|
266 | extern void SwapVisual(
|
---|
267 | xVisualType * /* pVis */,
|
---|
268 | xVisualType * /* pVisT */);
|
---|
269 |
|
---|
270 | extern void SwapConnSetupPrefix(
|
---|
271 | xConnSetupPrefix * /* pcspFrom */,
|
---|
272 | xConnSetupPrefix * /* pcspTo */);
|
---|
273 |
|
---|
274 | extern void WriteSConnSetupPrefix(
|
---|
275 | ClientPtr /* pClient */,
|
---|
276 | xConnSetupPrefix * /* pcsp */);
|
---|
277 |
|
---|
278 | #undef SWAPREP_PROC
|
---|
279 | #define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */)
|
---|
280 |
|
---|
281 | SWAPREP_PROC(SCirculateEvent);
|
---|
282 | SWAPREP_PROC(SClientMessageEvent);
|
---|
283 | SWAPREP_PROC(SColormapEvent);
|
---|
284 | SWAPREP_PROC(SConfigureNotifyEvent);
|
---|
285 | SWAPREP_PROC(SConfigureRequestEvent);
|
---|
286 | SWAPREP_PROC(SCreateNotifyEvent);
|
---|
287 | SWAPREP_PROC(SDestroyNotifyEvent);
|
---|
288 | SWAPREP_PROC(SEnterLeaveEvent);
|
---|
289 | SWAPREP_PROC(SExposeEvent);
|
---|
290 | SWAPREP_PROC(SFocusEvent);
|
---|
291 | SWAPREP_PROC(SGraphicsExposureEvent);
|
---|
292 | SWAPREP_PROC(SGravityEvent);
|
---|
293 | SWAPREP_PROC(SKeyButtonPtrEvent);
|
---|
294 | SWAPREP_PROC(SKeymapNotifyEvent);
|
---|
295 | SWAPREP_PROC(SMapNotifyEvent);
|
---|
296 | SWAPREP_PROC(SMapRequestEvent);
|
---|
297 | SWAPREP_PROC(SMappingEvent);
|
---|
298 | SWAPREP_PROC(SNoExposureEvent);
|
---|
299 | SWAPREP_PROC(SPropertyEvent);
|
---|
300 | SWAPREP_PROC(SReparentEvent);
|
---|
301 | SWAPREP_PROC(SResizeRequestEvent);
|
---|
302 | SWAPREP_PROC(SSelectionClearEvent);
|
---|
303 | SWAPREP_PROC(SSelectionNotifyEvent);
|
---|
304 | SWAPREP_PROC(SSelectionRequestEvent);
|
---|
305 | SWAPREP_PROC(SUnmapNotifyEvent);
|
---|
306 | SWAPREP_PROC(SVisibilityEvent);
|
---|
307 |
|
---|
308 | #undef SWAPREP_PROC
|
---|
309 |
|
---|
310 | #endif /* SWAPREP_H */
|
---|