]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/include/swaprep.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / programs / Xserver / include / swaprep.h
1 /* $XFree86: xc/programs/Xserver/include/swaprep.h,v 3.0 1996/04/15 11:34:34 dawes Exp $ */
2 /************************************************************
3
4 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
5
6                         All Rights Reserved
7
8 Permission to use, copy, modify, and distribute this software and its
9 documentation for any purpose and without fee is hereby granted,
10 provided that the above copyright notice appear in all copies and that
11 both that copyright notice and this permission notice appear in
12 supporting documentation, and that the name of the above listed
13 copyright holder(s) not be used in advertising or publicity pertaining
14 to distribution of the software without specific, written prior
15 permission.
16
17 THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
18 TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19 AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
20 LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
22 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
23 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
25 ********************************************************/
26
27 #ifndef SWAPREP_H
28 #define SWAPREP_H 1
29
30 void
31 Swap32Write(
32 #if NeedFunctionPrototypes
33     ClientPtr /* pClient */,
34     int /* size */,
35     CARD32 * /* pbuf */
36 #endif
37 );
38
39 void
40 CopySwap32Write(
41 #if NeedFunctionPrototypes
42     ClientPtr /* pClient */,
43     int /* size */,
44     CARD32 * /* pbuf */
45 #endif
46 );
47
48 void
49 CopySwap16Write(
50 #if NeedFunctionPrototypes
51     ClientPtr /* pClient */,
52     int /* size */,
53     short * /* pbuf */
54 #endif
55 );
56
57 void
58 SGenericReply(
59 #if NeedFunctionPrototypes
60     ClientPtr /* pClient */,
61     int /* size */,
62     xGenericReply * /* pRep */
63 #endif
64 );
65
66 void
67 SGetWindowAttributesReply(
68 #if NeedFunctionPrototypes
69     ClientPtr /* pClient */,
70     int /* size */,
71     xGetWindowAttributesReply * /* pRep */
72 #endif
73 );
74
75 void
76 SGetGeometryReply(
77 #if NeedFunctionPrototypes
78     ClientPtr /* pClient */,
79     int /* size */,
80     xGetGeometryReply * /* pRep */
81 #endif
82 );
83
84 void
85 SQueryTreeReply(
86 #if NeedFunctionPrototypes
87     ClientPtr /* pClient */,
88     int /* size */,
89     xQueryTreeReply * /* pRep */
90 #endif
91 );
92
93 void
94 SInternAtomReply(
95 #if NeedFunctionPrototypes
96     ClientPtr /* pClient */,
97     int /* size */,
98     xInternAtomReply * /* pRep */
99 #endif
100 );
101
102 void
103 SGetAtomNameReply(
104 #if NeedFunctionPrototypes
105     ClientPtr /* pClient */,
106     int /* size */,
107     xGetAtomNameReply * /* pRep */
108 #endif
109 );
110
111 void
112 SGetPropertyReply(
113 #if NeedFunctionPrototypes
114     ClientPtr /* pClient */,
115     int /* size */,
116     xGetPropertyReply * /* pRep */
117 #endif
118 );
119
120 void
121 SListPropertiesReply(
122 #if NeedFunctionPrototypes
123     ClientPtr /* pClient */,
124     int /* size */,
125     xListPropertiesReply * /* pRep */
126 #endif
127 );
128
129 void
130 SGetSelectionOwnerReply(
131 #if NeedFunctionPrototypes
132     ClientPtr /* pClient */,
133     int /* size */,
134     xGetSelectionOwnerReply * /* pRep */
135 #endif
136 );
137
138 void
139 SQueryPointerReply(
140 #if NeedFunctionPrototypes
141     ClientPtr /* pClient */,
142     int /* size */,
143     xQueryPointerReply * /* pRep */
144 #endif
145 );
146
147 void
148 SwapTimecoord(
149 #if NeedFunctionPrototypes
150     xTimecoord * /* pCoord */
151 #endif
152 );
153
154 void
155 SwapTimeCoordWrite(
156 #if NeedFunctionPrototypes
157     ClientPtr /* pClient */,
158     int /* size */,
159     xTimecoord * /* pRep */
160 #endif
161 );
162
163 void
164 SGetMotionEventsReply(
165 #if NeedFunctionPrototypes
166     ClientPtr /* pClient */,
167     int /* size */,
168     xGetMotionEventsReply * /* pRep */
169 #endif
170 );
171
172 void
173 STranslateCoordsReply(
174 #if NeedFunctionPrototypes
175     ClientPtr /* pClient */,
176     int /* size */,
177     xTranslateCoordsReply * /* pRep */
178 #endif
179 );
180
181 void
182 SGetInputFocusReply(
183 #if NeedFunctionPrototypes
184     ClientPtr /* pClient */,
185     int /* size */,
186     xGetInputFocusReply * /* pRep */
187 #endif
188 );
189
190 void
191 SQueryKeymapReply(
192 #if NeedFunctionPrototypes
193     ClientPtr /* pClient */,
194     int /* size */,
195     xQueryKeymapReply * /* pRep */
196 #endif
197 );
198
199 #ifdef LBX
200 void
201 SwapCharInfo(
202 #if NeedFunctionPrototypes
203     xCharInfo * /* pInfo */
204 #endif
205 );
206 #endif
207
208 #ifdef LBX
209 void
210 SwapFont(
211 #if NeedFunctionPrototypes
212     xQueryFontReply * /* pr */,
213     Bool /* hasGlyphs */
214 #endif
215 );
216 #endif
217
218 void
219 SQueryFontReply(
220 #if NeedFunctionPrototypes
221     ClientPtr /* pClient */,
222     int /* size */,
223     xQueryFontReply * /* pRep */
224 #endif
225 );
226
227 void
228 SQueryTextExtentsReply(
229 #if NeedFunctionPrototypes
230     ClientPtr /* pClient */,
231     int /* size */,
232     xQueryTextExtentsReply * /* pRep */
233 #endif
234 );
235
236 void
237 SListFontsReply(
238 #if NeedFunctionPrototypes
239     ClientPtr /* pClient */,
240     int /* size */,
241     xListFontsReply * /* pRep */
242 #endif
243 );
244
245 void
246 SListFontsWithInfoReply(
247 #if NeedFunctionPrototypes
248     ClientPtr /* pClient */,
249     int /* size */,
250     xListFontsWithInfoReply * /* pRep */
251 #endif
252 );
253
254 void
255 SGetFontPathReply(
256 #if NeedFunctionPrototypes
257     ClientPtr /* pClient */,
258     int /* size */,
259     xGetFontPathReply * /* pRep */
260 #endif
261 );
262
263 void
264 SGetImageReply(
265 #if NeedFunctionPrototypes
266     ClientPtr /* pClient */,
267     int /* size */,
268     xGetImageReply * /* pRep */
269 #endif
270 );
271
272 void
273 SListInstalledColormapsReply(
274 #if NeedFunctionPrototypes
275     ClientPtr /* pClient */,
276     int /* size */,
277     xListInstalledColormapsReply * /* pRep */
278 #endif
279 );
280
281 void
282 SAllocColorReply(
283 #if NeedFunctionPrototypes
284     ClientPtr /* pClient */,
285     int /* size */,
286     xAllocColorReply * /* pRep */
287 #endif
288 );
289
290 void
291 SAllocNamedColorReply(
292 #if NeedFunctionPrototypes
293     ClientPtr /* pClient */,
294     int /* size */,
295     xAllocNamedColorReply * /* pRep */
296 #endif
297 );
298
299 void
300 SAllocColorCellsReply(
301 #if NeedFunctionPrototypes
302     ClientPtr /* pClient */,
303     int /* size */,
304     xAllocColorCellsReply * /* pRep */
305 #endif
306 );
307
308 void
309 SAllocColorPlanesReply(
310 #if NeedFunctionPrototypes
311     ClientPtr /* pClient */,
312     int /* size */,
313     xAllocColorPlanesReply * /* pRep */
314 #endif
315 );
316
317 void
318 SwapRGB(
319 #if NeedFunctionPrototypes
320     xrgb * /* prgb */
321 #endif
322 );
323
324 void
325 SQColorsExtend(
326 #if NeedFunctionPrototypes
327     ClientPtr /* pClient */,
328     int /* size */,
329     xrgb * /* prgb */
330 #endif
331 );
332
333 void
334 SQueryColorsReply(
335 #if NeedFunctionPrototypes
336     ClientPtr /* pClient */,
337     int /* size */,
338     xQueryColorsReply * /* pRep */
339 #endif
340 );
341
342 void
343 SLookupColorReply(
344 #if NeedFunctionPrototypes
345     ClientPtr /* pClient */,
346     int /* size */,
347     xLookupColorReply * /* pRep */
348 #endif
349 );
350
351 void
352 SQueryBestSizeReply(
353 #if NeedFunctionPrototypes
354     ClientPtr /* pClient */,
355     int /* size */,
356     xQueryBestSizeReply * /* pRep */
357 #endif
358 );
359
360 void
361 SListExtensionsReply(
362 #if NeedFunctionPrototypes
363     ClientPtr /* pClient */,
364     int /* size */,
365     xListExtensionsReply * /* pRep */
366 #endif
367 );
368
369 void
370 SGetKeyboardMappingReply(
371 #if NeedFunctionPrototypes
372     ClientPtr /* pClient */,
373     int /* size */,
374     xGetKeyboardMappingReply * /* pRep */
375 #endif
376 );
377
378 void
379 SGetPointerMappingReply(
380 #if NeedFunctionPrototypes
381     ClientPtr /* pClient */,
382     int /* size */,
383     xGetPointerMappingReply * /* pRep */
384 #endif
385 );
386
387 void
388 SGetModifierMappingReply(
389 #if NeedFunctionPrototypes
390     ClientPtr /* pClient */,
391     int /* size */,
392     xGetModifierMappingReply * /* pRep */
393 #endif
394 );
395
396 void
397 SGetKeyboardControlReply(
398 #if NeedFunctionPrototypes
399     ClientPtr /* pClient */,
400     int /* size */,
401     xGetKeyboardControlReply * /* pRep */
402 #endif
403 );
404
405 void
406 SGetPointerControlReply(
407 #if NeedFunctionPrototypes
408     ClientPtr /* pClient */,
409     int /* size */,
410     xGetPointerControlReply * /* pRep */
411 #endif
412 );
413
414 void
415 SGetScreenSaverReply(
416 #if NeedFunctionPrototypes
417     ClientPtr /* pClient */,
418     int /* size */,
419     xGetScreenSaverReply * /* pRep */
420 #endif
421 );
422
423 void
424 SLHostsExtend(
425 #if NeedFunctionPrototypes
426     ClientPtr /* pClient */,
427     int /* size */,
428     char * /* buf */
429 #endif
430 );
431
432 void
433 SListHostsReply(
434 #if NeedFunctionPrototypes
435     ClientPtr /* pClient */,
436     int /* size */,
437     xListHostsReply * /* pRep */
438 #endif
439 );
440
441 void
442 SErrorEvent(
443 #if NeedFunctionPrototypes
444     xError * /* from */,
445     xError * /* to */
446 #endif
447 );
448
449 void
450 SwapConnSetupInfo(
451 #if NeedFunctionPrototypes
452     char * /* pInfo */,
453     char * /* pInfoTBase */
454 #endif
455 );
456
457 void
458 WriteSConnectionInfo(
459 #if NeedFunctionPrototypes
460     ClientPtr /* pClient */,
461     unsigned long /* size */,
462     char * /* pInfo */
463 #endif
464 );
465
466 void
467 SwapConnSetup(
468 #if NeedFunctionPrototypes
469     xConnSetup * /* pConnSetup */,
470     xConnSetup * /* pConnSetupT */
471 #endif
472 );
473
474 void
475 SwapWinRoot(
476 #if NeedFunctionPrototypes
477     xWindowRoot * /* pRoot */,
478     xWindowRoot * /* pRootT */
479 #endif
480 );
481
482 void
483 SwapVisual(
484 #if NeedFunctionPrototypes
485     xVisualType * /* pVis */,
486     xVisualType * /* pVisT */
487 #endif
488 );
489
490 void
491 SwapConnSetupPrefix(
492 #if NeedFunctionPrototypes
493     xConnSetupPrefix * /* pcspFrom */,
494     xConnSetupPrefix * /* pcspTo */
495 #endif
496 );
497
498 void
499 WriteSConnSetupPrefix(
500 #if NeedFunctionPrototypes
501     ClientPtr /* pClient */,
502     xConnSetupPrefix * /* pcsp */
503 #endif
504 );
505
506 #undef SWAPREP_PROC
507 #if NeedFunctionPrototypes
508 #define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */)
509 #else
510 #define SWAPREP_PROC(func) void func(/* xEvent * from,    xEvent *    to */)
511 #endif
512
513 SWAPREP_PROC(SCirculateEvent);
514 SWAPREP_PROC(SClientMessageEvent);
515 SWAPREP_PROC(SColormapEvent);
516 SWAPREP_PROC(SConfigureNotifyEvent);
517 SWAPREP_PROC(SConfigureRequestEvent);
518 SWAPREP_PROC(SCreateNotifyEvent);
519 SWAPREP_PROC(SDestroyNotifyEvent);
520 SWAPREP_PROC(SEnterLeaveEvent);
521 SWAPREP_PROC(SExposeEvent);
522 SWAPREP_PROC(SFocusEvent);
523 SWAPREP_PROC(SGraphicsExposureEvent);
524 SWAPREP_PROC(SGravityEvent);
525 SWAPREP_PROC(SKeyButtonPtrEvent);
526 SWAPREP_PROC(SKeymapNotifyEvent);
527 SWAPREP_PROC(SMapNotifyEvent);
528 SWAPREP_PROC(SMapRequestEvent);
529 SWAPREP_PROC(SMappingEvent);
530 SWAPREP_PROC(SNoExposureEvent);
531 SWAPREP_PROC(SPropertyEvent);
532 SWAPREP_PROC(SReparentEvent);
533 SWAPREP_PROC(SResizeRequestEvent);
534 SWAPREP_PROC(SSelectionClearEvent);
535 SWAPREP_PROC(SSelectionNotifyEvent);
536 SWAPREP_PROC(SSelectionRequestEvent);
537 SWAPREP_PROC(SUnmapNotifyEvent);
538 SWAPREP_PROC(SVisibilityEvent);
539
540 #undef SWAPREP_PROC
541
542 #endif /* SWAPREP_H */