tables.c revision 706f2543
1/***********************************************************
2
3Copyright 1987, 1998  The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25
26Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
27
28                        All Rights Reserved
29
30Permission to use, copy, modify, and distribute this software and its
31documentation for any purpose and without fee is hereby granted,
32provided that the above copyright notice appear in all copies and that
33both that copyright notice and this permission notice appear in
34supporting documentation, and that the name of Digital not be
35used in advertising or publicity pertaining to distribution of the
36software without specific, written prior permission.
37
38DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44SOFTWARE.
45
46******************************************************************/
47
48#ifdef HAVE_DIX_CONFIG_H
49#include <dix-config.h>
50#endif
51
52#include <X11/X.h>
53#include <X11/Xproto.h>
54#include "windowstr.h"
55#include "extnsionst.h"
56#include "dixstruct.h"
57#include "dixevents.h"
58#include "dispatch.h"
59#include "swaprep.h"
60#include "swapreq.h"
61
62int (* InitialVector[3]) (
63	ClientPtr /* client */
64    ) =
65{
66    0,
67    ProcInitialConnection,
68    ProcEstablishConnection
69};
70
71int (* ProcVector[256]) (
72	ClientPtr /* client */
73    ) =
74{
75    ProcBadRequest,
76    ProcCreateWindow,
77    ProcChangeWindowAttributes,
78    ProcGetWindowAttributes,
79    ProcDestroyWindow,
80    ProcDestroySubwindows,		/* 5 */
81    ProcChangeSaveSet,
82    ProcReparentWindow,
83    ProcMapWindow,
84    ProcMapSubwindows,
85    ProcUnmapWindow,			/* 10 */
86    ProcUnmapSubwindows,
87    ProcConfigureWindow,
88    ProcCirculateWindow,
89    ProcGetGeometry,
90    ProcQueryTree,			/* 15 */
91    ProcInternAtom,
92    ProcGetAtomName,
93    ProcChangeProperty,
94    ProcDeleteProperty,
95    ProcGetProperty,			/* 20 */
96    ProcListProperties,
97    ProcSetSelectionOwner,
98    ProcGetSelectionOwner,
99    ProcConvertSelection,
100    ProcSendEvent,			/* 25 */
101    ProcGrabPointer,
102    ProcUngrabPointer,
103    ProcGrabButton,
104    ProcUngrabButton,
105    ProcChangeActivePointerGrab,	/* 30 */
106    ProcGrabKeyboard,
107    ProcUngrabKeyboard,
108    ProcGrabKey,
109    ProcUngrabKey,
110    ProcAllowEvents,			/* 35 */
111    ProcGrabServer,
112    ProcUngrabServer,
113    ProcQueryPointer,
114    ProcGetMotionEvents,
115    ProcTranslateCoords,		/* 40 */
116    ProcWarpPointer,
117    ProcSetInputFocus,
118    ProcGetInputFocus,
119    ProcQueryKeymap,
120    ProcOpenFont,			/* 45 */
121    ProcCloseFont,
122    ProcQueryFont,
123    ProcQueryTextExtents,
124    ProcListFonts,
125    ProcListFontsWithInfo,		/* 50 */
126    ProcSetFontPath,
127    ProcGetFontPath,
128    ProcCreatePixmap,
129    ProcFreePixmap,
130    ProcCreateGC,			/* 55 */
131    ProcChangeGC,
132    ProcCopyGC,
133    ProcSetDashes,
134    ProcSetClipRectangles,
135    ProcFreeGC,				/* 60 */
136    ProcClearToBackground,
137    ProcCopyArea,
138    ProcCopyPlane,
139    ProcPolyPoint,
140    ProcPolyLine,			/* 65 */
141    ProcPolySegment,
142    ProcPolyRectangle,
143    ProcPolyArc,
144    ProcFillPoly,
145    ProcPolyFillRectangle,		/* 70 */
146    ProcPolyFillArc,
147    ProcPutImage,
148    ProcGetImage,
149    ProcPolyText,
150    ProcPolyText,			/* 75 */
151    ProcImageText8,
152    ProcImageText16,
153    ProcCreateColormap,
154    ProcFreeColormap,
155    ProcCopyColormapAndFree,		/* 80 */
156    ProcInstallColormap,
157    ProcUninstallColormap,
158    ProcListInstalledColormaps,
159    ProcAllocColor,
160    ProcAllocNamedColor,		/* 85 */
161    ProcAllocColorCells,
162    ProcAllocColorPlanes,
163    ProcFreeColors,
164    ProcStoreColors,
165    ProcStoreNamedColor,		/* 90 */
166    ProcQueryColors,
167    ProcLookupColor,
168    ProcCreateCursor,
169    ProcCreateGlyphCursor,
170    ProcFreeCursor,			/* 95 */
171    ProcRecolorCursor,
172    ProcQueryBestSize,
173    ProcQueryExtension,
174    ProcListExtensions,
175    ProcChangeKeyboardMapping,		/* 100 */
176    ProcGetKeyboardMapping,
177    ProcChangeKeyboardControl,
178    ProcGetKeyboardControl,
179    ProcBell,
180    ProcChangePointerControl,		/* 105 */
181    ProcGetPointerControl,
182    ProcSetScreenSaver,
183    ProcGetScreenSaver,
184    ProcChangeHosts,
185    ProcListHosts,			/* 110 */
186    ProcChangeAccessControl,
187    ProcChangeCloseDownMode,
188    ProcKillClient,
189    ProcRotateProperties,
190    ProcForceScreenSaver,		/* 115 */
191    ProcSetPointerMapping,
192    ProcGetPointerMapping,
193    ProcSetModifierMapping,
194    ProcGetModifierMapping,
195    ProcBadRequest,				/* 120 */
196    ProcBadRequest,
197    ProcBadRequest,
198    ProcBadRequest,
199    ProcBadRequest,
200    ProcBadRequest,				/* 125 */
201    ProcBadRequest,
202    ProcNoOperation,
203    ProcBadRequest,
204    ProcBadRequest,
205    ProcBadRequest,
206    ProcBadRequest,
207    ProcBadRequest,
208    ProcBadRequest,
209    ProcBadRequest,
210    ProcBadRequest,
211    ProcBadRequest,
212    ProcBadRequest,
213    ProcBadRequest,
214    ProcBadRequest,
215    ProcBadRequest,
216    ProcBadRequest,
217    ProcBadRequest,
218    ProcBadRequest,
219    ProcBadRequest,
220    ProcBadRequest,
221    ProcBadRequest,
222    ProcBadRequest,
223    ProcBadRequest,
224    ProcBadRequest,
225    ProcBadRequest,
226    ProcBadRequest,
227    ProcBadRequest,
228    ProcBadRequest,
229    ProcBadRequest,
230    ProcBadRequest,
231    ProcBadRequest,
232    ProcBadRequest,
233    ProcBadRequest,
234    ProcBadRequest,
235    ProcBadRequest,
236    ProcBadRequest,
237    ProcBadRequest,
238    ProcBadRequest,
239    ProcBadRequest,
240    ProcBadRequest,
241    ProcBadRequest,
242    ProcBadRequest,
243    ProcBadRequest,
244    ProcBadRequest,
245    ProcBadRequest,
246    ProcBadRequest,
247    ProcBadRequest,
248    ProcBadRequest,
249    ProcBadRequest,
250    ProcBadRequest,
251    ProcBadRequest,
252    ProcBadRequest,
253    ProcBadRequest,
254    ProcBadRequest,
255    ProcBadRequest,
256    ProcBadRequest,
257    ProcBadRequest,
258    ProcBadRequest,
259    ProcBadRequest,
260    ProcBadRequest,
261    ProcBadRequest,
262    ProcBadRequest,
263    ProcBadRequest,
264    ProcBadRequest,
265    ProcBadRequest,
266    ProcBadRequest,
267    ProcBadRequest,
268    ProcBadRequest,
269    ProcBadRequest,
270    ProcBadRequest,
271    ProcBadRequest,
272    ProcBadRequest,
273    ProcBadRequest,
274    ProcBadRequest,
275    ProcBadRequest,
276    ProcBadRequest,
277    ProcBadRequest,
278    ProcBadRequest,
279    ProcBadRequest,
280    ProcBadRequest,
281    ProcBadRequest,
282    ProcBadRequest,
283    ProcBadRequest,
284    ProcBadRequest,
285    ProcBadRequest,
286    ProcBadRequest,
287    ProcBadRequest,
288    ProcBadRequest,
289    ProcBadRequest,
290    ProcBadRequest,
291    ProcBadRequest,
292    ProcBadRequest,
293    ProcBadRequest,
294    ProcBadRequest,
295    ProcBadRequest,
296    ProcBadRequest,
297    ProcBadRequest,
298    ProcBadRequest,
299    ProcBadRequest,
300    ProcBadRequest,
301    ProcBadRequest,
302    ProcBadRequest,
303    ProcBadRequest,
304    ProcBadRequest,
305    ProcBadRequest,
306    ProcBadRequest,
307    ProcBadRequest,
308    ProcBadRequest,
309    ProcBadRequest,
310    ProcBadRequest,
311    ProcBadRequest,
312    ProcBadRequest,
313    ProcBadRequest,
314    ProcBadRequest,
315    ProcBadRequest,
316    ProcBadRequest,
317    ProcBadRequest,
318    ProcBadRequest,
319    ProcBadRequest,
320    ProcBadRequest,
321    ProcBadRequest,
322    ProcBadRequest,
323    ProcBadRequest,
324    ProcBadRequest,
325    ProcBadRequest,
326    ProcBadRequest,
327    ProcBadRequest,
328    ProcBadRequest,
329    ProcBadRequest,
330    ProcBadRequest
331};
332
333int (* SwappedProcVector[256]) (
334	ClientPtr /* client */
335    ) =
336{
337    ProcBadRequest,
338    SProcCreateWindow,
339    SProcChangeWindowAttributes,
340    SProcResourceReq,			/* GetWindowAttributes */
341    SProcResourceReq,			/* DestroyWindow */
342    SProcResourceReq,			/* 5 DestroySubwindows */
343    SProcResourceReq,			/* SProcChangeSaveSet, */
344    SProcReparentWindow,
345    SProcResourceReq,			/* MapWindow */
346    SProcResourceReq,			/* MapSubwindows */
347    SProcResourceReq,			/* 10 UnmapWindow */
348    SProcResourceReq,			/* UnmapSubwindows */
349    SProcConfigureWindow,
350    SProcResourceReq,			/* SProcCirculateWindow, */
351    SProcResourceReq,			/* GetGeometry */
352    SProcResourceReq,			/* 15 QueryTree */
353    SProcInternAtom,
354    SProcResourceReq,			/* SProcGetAtomName, */
355    SProcChangeProperty,
356    SProcDeleteProperty,
357    SProcGetProperty,			/* 20 */
358    SProcResourceReq,			/* SProcListProperties, */
359    SProcSetSelectionOwner,
360    SProcResourceReq, 			/* SProcGetSelectionOwner, */
361    SProcConvertSelection,
362    SProcSendEvent,			/* 25 */
363    SProcGrabPointer,
364    SProcResourceReq, 			/* SProcUngrabPointer, */
365    SProcGrabButton,
366    SProcUngrabButton,
367    SProcChangeActivePointerGrab,	/* 30 */
368    SProcGrabKeyboard,
369    SProcResourceReq,			/* SProcUngrabKeyboard, */
370    SProcGrabKey,
371    SProcUngrabKey,
372    SProcResourceReq,			/* 35 SProcAllowEvents, */
373    SProcSimpleReq,			/* SProcGrabServer, */
374    SProcSimpleReq,			/* SProcUngrabServer, */
375    SProcResourceReq,			/* SProcQueryPointer, */
376    SProcGetMotionEvents,
377    SProcTranslateCoords,		/*40 */
378    SProcWarpPointer,
379    SProcSetInputFocus,
380    SProcSimpleReq,			/* SProcGetInputFocus, */
381    SProcSimpleReq,			/* QueryKeymap, */
382    SProcOpenFont,			/* 45 */
383    SProcResourceReq,			/* SProcCloseFont, */
384    SProcResourceReq, 			/* SProcQueryFont, */
385    SProcResourceReq,			/* SProcQueryTextExtents,  */
386    SProcListFonts,
387    SProcListFontsWithInfo,		/* 50 */
388    SProcSetFontPath,
389    SProcSimpleReq,			/* GetFontPath, */
390    SProcCreatePixmap,
391    SProcResourceReq,			/* SProcFreePixmap, */
392    SProcCreateGC,			/* 55 */
393    SProcChangeGC,
394    SProcCopyGC,
395    SProcSetDashes,
396    SProcSetClipRectangles,
397    SProcResourceReq,			/* 60 SProcFreeGC, */
398    SProcClearToBackground,
399    SProcCopyArea,
400    SProcCopyPlane,
401    SProcPoly,				/* PolyPoint, */
402    SProcPoly,				/* 65 PolyLine */
403    SProcPoly,				/* PolySegment, */
404    SProcPoly,				/* PolyRectangle, */
405    SProcPoly,				/* PolyArc, */
406    SProcFillPoly,
407    SProcPoly,				/* 70 PolyFillRectangle */
408    SProcPoly,				/* PolyFillArc, */
409    SProcPutImage,
410    SProcGetImage,
411    SProcPolyText,
412    SProcPolyText,			/* 75 */
413    SProcImageText,
414    SProcImageText,
415    SProcCreateColormap,
416    SProcResourceReq,			/* SProcFreeColormap, */
417    SProcCopyColormapAndFree,		/* 80 */
418    SProcResourceReq,			/* SProcInstallColormap, */
419    SProcResourceReq,			/* SProcUninstallColormap, */
420    SProcResourceReq, 			/* SProcListInstalledColormaps, */
421    SProcAllocColor,
422    SProcAllocNamedColor,		/* 85 */
423    SProcAllocColorCells,
424    SProcAllocColorPlanes,
425    SProcFreeColors,
426    SProcStoreColors,
427    SProcStoreNamedColor,		/* 90 */
428    SProcQueryColors,
429    SProcLookupColor,
430    SProcCreateCursor,
431    SProcCreateGlyphCursor,
432    SProcResourceReq,			/* 95 SProcFreeCursor, */
433    SProcRecolorCursor,
434    SProcQueryBestSize,
435    SProcQueryExtension,
436    SProcSimpleReq,			/* ListExtensions, */
437    SProcChangeKeyboardMapping,		/* 100 */
438    SProcSimpleReq,			/* GetKeyboardMapping, */
439    SProcChangeKeyboardControl,
440    SProcSimpleReq,			/* GetKeyboardControl, */
441    SProcSimpleReq,			/* Bell, */
442    SProcChangePointerControl,		/* 105 */
443    SProcSimpleReq,			/* GetPointerControl, */
444    SProcSetScreenSaver,
445    SProcSimpleReq,			/* GetScreenSaver, */
446    SProcChangeHosts,
447    SProcSimpleReq,			/* 110 ListHosts, */
448    SProcSimpleReq,			/* SProcChangeAccessControl, */
449    SProcSimpleReq,			/* SProcChangeCloseDownMode, */
450    SProcResourceReq,			/* SProcKillClient, */
451    SProcRotateProperties,
452    SProcSimpleReq,			/* 115 ForceScreenSaver */
453    SProcSimpleReq,			/* SetPointerMapping, */
454    SProcSimpleReq,			/* GetPointerMapping, */
455    SProcSimpleReq,			/* SetModifierMapping, */
456    SProcSimpleReq,			/* GetModifierMapping, */
457    ProcBadRequest,				/* 120 */
458    ProcBadRequest,
459    ProcBadRequest,
460    ProcBadRequest,
461    ProcBadRequest,
462    ProcBadRequest,				/* 125 */
463    ProcBadRequest,
464    SProcNoOperation,
465    ProcBadRequest,
466    ProcBadRequest,
467    ProcBadRequest,
468    ProcBadRequest,
469    ProcBadRequest,
470    ProcBadRequest,
471    ProcBadRequest,
472    ProcBadRequest,
473    ProcBadRequest,
474    ProcBadRequest,
475    ProcBadRequest,
476    ProcBadRequest,
477    ProcBadRequest,
478    ProcBadRequest,
479    ProcBadRequest,
480    ProcBadRequest,
481    ProcBadRequest,
482    ProcBadRequest,
483    ProcBadRequest,
484    ProcBadRequest,
485    ProcBadRequest,
486    ProcBadRequest,
487    ProcBadRequest,
488    ProcBadRequest,
489    ProcBadRequest,
490    ProcBadRequest,
491    ProcBadRequest,
492    ProcBadRequest,
493    ProcBadRequest,
494    ProcBadRequest,
495    ProcBadRequest,
496    ProcBadRequest,
497    ProcBadRequest,
498    ProcBadRequest,
499    ProcBadRequest,
500    ProcBadRequest,
501    ProcBadRequest,
502    ProcBadRequest,
503    ProcBadRequest,
504    ProcBadRequest,
505    ProcBadRequest,
506    ProcBadRequest,
507    ProcBadRequest,
508    ProcBadRequest,
509    ProcBadRequest,
510    ProcBadRequest,
511    ProcBadRequest,
512    ProcBadRequest,
513    ProcBadRequest,
514    ProcBadRequest,
515    ProcBadRequest,
516    ProcBadRequest,
517    ProcBadRequest,
518    ProcBadRequest,
519    ProcBadRequest,
520    ProcBadRequest,
521    ProcBadRequest,
522    ProcBadRequest,
523    ProcBadRequest,
524    ProcBadRequest,
525    ProcBadRequest,
526    ProcBadRequest,
527    ProcBadRequest,
528    ProcBadRequest,
529    ProcBadRequest,
530    ProcBadRequest,
531    ProcBadRequest,
532    ProcBadRequest,
533    ProcBadRequest,
534    ProcBadRequest,
535    ProcBadRequest,
536    ProcBadRequest,
537    ProcBadRequest,
538    ProcBadRequest,
539    ProcBadRequest,
540    ProcBadRequest,
541    ProcBadRequest,
542    ProcBadRequest,
543    ProcBadRequest,
544    ProcBadRequest,
545    ProcBadRequest,
546    ProcBadRequest,
547    ProcBadRequest,
548    ProcBadRequest,
549    ProcBadRequest,
550    ProcBadRequest,
551    ProcBadRequest,
552    ProcBadRequest,
553    ProcBadRequest,
554    ProcBadRequest,
555    ProcBadRequest,
556    ProcBadRequest,
557    ProcBadRequest,
558    ProcBadRequest,
559    ProcBadRequest,
560    ProcBadRequest,
561    ProcBadRequest,
562    ProcBadRequest,
563    ProcBadRequest,
564    ProcBadRequest,
565    ProcBadRequest,
566    ProcBadRequest,
567    ProcBadRequest,
568    ProcBadRequest,
569    ProcBadRequest,
570    ProcBadRequest,
571    ProcBadRequest,
572    ProcBadRequest,
573    ProcBadRequest,
574    ProcBadRequest,
575    ProcBadRequest,
576    ProcBadRequest,
577    ProcBadRequest,
578    ProcBadRequest,
579    ProcBadRequest,
580    ProcBadRequest,
581    ProcBadRequest,
582    ProcBadRequest,
583    ProcBadRequest,
584    ProcBadRequest,
585    ProcBadRequest,
586    ProcBadRequest,
587    ProcBadRequest,
588    ProcBadRequest,
589    ProcBadRequest,
590    ProcBadRequest,
591    ProcBadRequest,
592    ProcBadRequest
593};
594
595EventSwapPtr EventSwapVector[128] =
596{
597    (EventSwapPtr)SErrorEvent,
598    NotImplemented,
599    SKeyButtonPtrEvent,
600    SKeyButtonPtrEvent,
601    SKeyButtonPtrEvent,
602    SKeyButtonPtrEvent,			/* 5 */
603    SKeyButtonPtrEvent,
604    SEnterLeaveEvent,
605    SEnterLeaveEvent,
606    SFocusEvent,
607    SFocusEvent,			/* 10 */
608    SKeymapNotifyEvent,
609    SExposeEvent,
610    SGraphicsExposureEvent,
611    SNoExposureEvent,
612    SVisibilityEvent,			/* 15 */
613    SCreateNotifyEvent,
614    SDestroyNotifyEvent,
615    SUnmapNotifyEvent,
616    SMapNotifyEvent,
617    SMapRequestEvent,			/* 20 */
618    SReparentEvent,
619    SConfigureNotifyEvent,
620    SConfigureRequestEvent,
621    SGravityEvent,
622    SResizeRequestEvent,		/* 25 */
623    SCirculateEvent,
624    SCirculateEvent,
625    SPropertyEvent,
626    SSelectionClearEvent,
627    SSelectionRequestEvent,		/* 30 */
628    SSelectionNotifyEvent,
629    SColormapEvent,
630    SClientMessageEvent,
631    SMappingEvent,
632    NotImplemented,
633    NotImplemented,
634    NotImplemented,
635    NotImplemented,
636    NotImplemented,
637    NotImplemented,
638    NotImplemented,
639    NotImplemented,
640    NotImplemented,
641    NotImplemented,
642    NotImplemented,
643    NotImplemented,
644    NotImplemented,
645    NotImplemented,
646    NotImplemented,
647    NotImplemented,
648    NotImplemented,
649    NotImplemented,
650    NotImplemented,
651    NotImplemented,
652    NotImplemented,
653    NotImplemented,
654    NotImplemented,
655    NotImplemented,
656    NotImplemented,
657    NotImplemented,
658    NotImplemented,
659    NotImplemented,
660    NotImplemented,
661    NotImplemented,
662    NotImplemented,
663    NotImplemented,
664    NotImplemented,
665    NotImplemented,
666    NotImplemented,
667    NotImplemented,
668    NotImplemented,
669    NotImplemented,
670    NotImplemented,
671    NotImplemented,
672    NotImplemented,
673    NotImplemented,
674    NotImplemented,
675    NotImplemented,
676    NotImplemented,
677    NotImplemented,
678    NotImplemented,
679    NotImplemented,
680    NotImplemented,
681    NotImplemented,
682    NotImplemented,
683    NotImplemented,
684    NotImplemented,
685    NotImplemented,
686    NotImplemented,
687    NotImplemented,
688    NotImplemented,
689    NotImplemented,
690    NotImplemented,
691    NotImplemented,
692    NotImplemented,
693    NotImplemented,
694    NotImplemented,
695    NotImplemented,
696    NotImplemented,
697    NotImplemented,
698    NotImplemented,
699    NotImplemented,
700    NotImplemented,
701    NotImplemented,
702    NotImplemented,
703    NotImplemented,
704    NotImplemented,
705    NotImplemented,
706    NotImplemented,
707    NotImplemented,
708    NotImplemented,
709    NotImplemented,
710    NotImplemented,
711    NotImplemented,
712    NotImplemented,
713    NotImplemented,
714    NotImplemented,
715    NotImplemented,
716    NotImplemented,
717    NotImplemented,
718    NotImplemented,
719    NotImplemented,
720    NotImplemented,
721    NotImplemented,
722    NotImplemented,
723    NotImplemented,
724    NotImplemented
725};
726
727
728ReplySwapPtr ReplySwapVector[256] =
729{
730    ReplyNotSwappd,
731    ReplyNotSwappd,
732    ReplyNotSwappd,
733    (ReplySwapPtr)SGetWindowAttributesReply,
734    ReplyNotSwappd,
735    ReplyNotSwappd,				/* 5 */
736    ReplyNotSwappd,
737    ReplyNotSwappd,
738    ReplyNotSwappd,
739    ReplyNotSwappd,
740    ReplyNotSwappd,				/* 10 */
741    ReplyNotSwappd,
742    ReplyNotSwappd,
743    ReplyNotSwappd,
744    (ReplySwapPtr)SGetGeometryReply,
745    (ReplySwapPtr)SQueryTreeReply,		/* 15 */
746    (ReplySwapPtr)SInternAtomReply,
747    (ReplySwapPtr)SGetAtomNameReply,
748    ReplyNotSwappd,
749    ReplyNotSwappd,
750    (ReplySwapPtr)SGetPropertyReply,		/* 20 */
751    (ReplySwapPtr)SListPropertiesReply,
752    ReplyNotSwappd,
753    (ReplySwapPtr)SGetSelectionOwnerReply,
754    ReplyNotSwappd,
755    ReplyNotSwappd,				/* 25 */
756    (ReplySwapPtr)SGenericReply,		/* SGrabPointerReply, */
757    ReplyNotSwappd,
758    ReplyNotSwappd,
759    ReplyNotSwappd,
760    ReplyNotSwappd,				/* 30 */
761    (ReplySwapPtr)SGenericReply,		/* SGrabKeyboardReply, */
762    ReplyNotSwappd,
763    ReplyNotSwappd,
764    ReplyNotSwappd,
765    ReplyNotSwappd,				/* 35 */
766    ReplyNotSwappd,
767    ReplyNotSwappd,
768    (ReplySwapPtr)SQueryPointerReply,
769    (ReplySwapPtr)SGetMotionEventsReply,
770    (ReplySwapPtr)STranslateCoordsReply,	/* 40 */
771    ReplyNotSwappd,
772    ReplyNotSwappd,
773    (ReplySwapPtr)SGetInputFocusReply,
774    (ReplySwapPtr)SQueryKeymapReply,
775    ReplyNotSwappd,				/* 45 */
776    ReplyNotSwappd,
777    (ReplySwapPtr)SQueryFontReply,
778    (ReplySwapPtr)SQueryTextExtentsReply,
779    (ReplySwapPtr)SListFontsReply,
780    (ReplySwapPtr)SListFontsWithInfoReply,	/* 50 */
781    ReplyNotSwappd,
782    (ReplySwapPtr)SGetFontPathReply,
783    ReplyNotSwappd,
784    ReplyNotSwappd,
785    ReplyNotSwappd,				/* 55 */
786    ReplyNotSwappd,
787    ReplyNotSwappd,
788    ReplyNotSwappd,
789    ReplyNotSwappd,
790    ReplyNotSwappd,				/* 60 */
791    ReplyNotSwappd,
792    ReplyNotSwappd,
793    ReplyNotSwappd,
794    ReplyNotSwappd,
795    ReplyNotSwappd,				/* 65 */
796    ReplyNotSwappd,
797    ReplyNotSwappd,
798    ReplyNotSwappd,
799    ReplyNotSwappd,
800    ReplyNotSwappd,				/* 70 */
801    ReplyNotSwappd,
802    ReplyNotSwappd,
803    (ReplySwapPtr)SGetImageReply,
804    ReplyNotSwappd,
805    ReplyNotSwappd,				/* 75 */
806    ReplyNotSwappd,
807    ReplyNotSwappd,
808    ReplyNotSwappd,
809    ReplyNotSwappd,
810    ReplyNotSwappd,				/* 80 */
811    ReplyNotSwappd,
812    ReplyNotSwappd,
813    (ReplySwapPtr)SListInstalledColormapsReply,
814    (ReplySwapPtr)SAllocColorReply,
815    (ReplySwapPtr)SAllocNamedColorReply,	/* 85 */
816    (ReplySwapPtr)SAllocColorCellsReply,
817    (ReplySwapPtr)SAllocColorPlanesReply,
818    ReplyNotSwappd,
819    ReplyNotSwappd,
820    ReplyNotSwappd,				/* 90 */
821    (ReplySwapPtr)SQueryColorsReply,
822    (ReplySwapPtr)SLookupColorReply,
823    ReplyNotSwappd,
824    ReplyNotSwappd,
825    ReplyNotSwappd,				/* 95 */
826    ReplyNotSwappd,
827    (ReplySwapPtr)SQueryBestSizeReply,
828    (ReplySwapPtr)SGenericReply,		/* SQueryExtensionReply, */
829    (ReplySwapPtr)SListExtensionsReply,
830    ReplyNotSwappd,				/* 100 */
831    (ReplySwapPtr)SGetKeyboardMappingReply,
832    ReplyNotSwappd,
833    (ReplySwapPtr)SGetKeyboardControlReply,
834    ReplyNotSwappd,
835    ReplyNotSwappd,				/* 105 */
836    (ReplySwapPtr)SGetPointerControlReply,
837    ReplyNotSwappd,
838    (ReplySwapPtr)SGetScreenSaverReply,
839    ReplyNotSwappd,
840    (ReplySwapPtr)SListHostsReply,		/* 110 */
841    ReplyNotSwappd,
842    ReplyNotSwappd,
843    ReplyNotSwappd,
844    ReplyNotSwappd,
845    ReplyNotSwappd,				/* 115 */
846    (ReplySwapPtr)SGenericReply,		/* SetPointerMapping */
847    (ReplySwapPtr)SGetPointerMappingReply,
848    (ReplySwapPtr)SGenericReply,		/* SetModifierMapping */
849    (ReplySwapPtr)SGetModifierMappingReply,	/* 119 */
850    ReplyNotSwappd,				/* 120 */
851    ReplyNotSwappd,				/* 121 */
852    ReplyNotSwappd,				/* 122 */
853    ReplyNotSwappd,				/* 123 */
854    ReplyNotSwappd,				/* 124 */
855    ReplyNotSwappd,				/* 125 */
856    ReplyNotSwappd,				/* 126 */
857    ReplyNotSwappd,				/* NoOperation */
858    ReplyNotSwappd,
859    ReplyNotSwappd,
860    ReplyNotSwappd,
861    ReplyNotSwappd,
862    ReplyNotSwappd,
863    ReplyNotSwappd,
864    ReplyNotSwappd,
865    ReplyNotSwappd,
866    ReplyNotSwappd,
867    ReplyNotSwappd,
868    ReplyNotSwappd,
869    ReplyNotSwappd,
870    ReplyNotSwappd,
871    ReplyNotSwappd,
872    ReplyNotSwappd,
873    ReplyNotSwappd,
874    ReplyNotSwappd,
875    ReplyNotSwappd,
876    ReplyNotSwappd,
877    ReplyNotSwappd,
878    ReplyNotSwappd,
879    ReplyNotSwappd,
880    ReplyNotSwappd,
881    ReplyNotSwappd,
882    ReplyNotSwappd,
883    ReplyNotSwappd,
884    ReplyNotSwappd,
885    ReplyNotSwappd,
886    ReplyNotSwappd,
887    ReplyNotSwappd,
888    ReplyNotSwappd,
889    ReplyNotSwappd,
890    ReplyNotSwappd,
891    ReplyNotSwappd,
892    ReplyNotSwappd,
893    ReplyNotSwappd,
894    ReplyNotSwappd,
895    ReplyNotSwappd,
896    ReplyNotSwappd,
897    ReplyNotSwappd,
898    ReplyNotSwappd,
899    ReplyNotSwappd,
900    ReplyNotSwappd,
901    ReplyNotSwappd,
902    ReplyNotSwappd,
903    ReplyNotSwappd,
904    ReplyNotSwappd,
905    ReplyNotSwappd,
906    ReplyNotSwappd,
907    ReplyNotSwappd,
908    ReplyNotSwappd,
909    ReplyNotSwappd,
910    ReplyNotSwappd,
911    ReplyNotSwappd,
912    ReplyNotSwappd,
913    ReplyNotSwappd,
914    ReplyNotSwappd,
915    ReplyNotSwappd,
916    ReplyNotSwappd,
917    ReplyNotSwappd,
918    ReplyNotSwappd,
919    ReplyNotSwappd,
920    ReplyNotSwappd,
921    ReplyNotSwappd,
922    ReplyNotSwappd,
923    ReplyNotSwappd,
924    ReplyNotSwappd,
925    ReplyNotSwappd,
926    ReplyNotSwappd,
927    ReplyNotSwappd,
928    ReplyNotSwappd,
929    ReplyNotSwappd,
930    ReplyNotSwappd,
931    ReplyNotSwappd,
932    ReplyNotSwappd,
933    ReplyNotSwappd,
934    ReplyNotSwappd,
935    ReplyNotSwappd,
936    ReplyNotSwappd,
937    ReplyNotSwappd,
938    ReplyNotSwappd,
939    ReplyNotSwappd,
940    ReplyNotSwappd,
941    ReplyNotSwappd,
942    ReplyNotSwappd,
943    ReplyNotSwappd,
944    ReplyNotSwappd,
945    ReplyNotSwappd,
946    ReplyNotSwappd,
947    ReplyNotSwappd,
948    ReplyNotSwappd,
949    ReplyNotSwappd,
950    ReplyNotSwappd,
951    ReplyNotSwappd,
952    ReplyNotSwappd,
953    ReplyNotSwappd,
954    ReplyNotSwappd,
955    ReplyNotSwappd,
956    ReplyNotSwappd,
957    ReplyNotSwappd,
958    ReplyNotSwappd,
959    ReplyNotSwappd,
960    ReplyNotSwappd,
961    ReplyNotSwappd,
962    ReplyNotSwappd,
963    ReplyNotSwappd,
964    ReplyNotSwappd,
965    ReplyNotSwappd,
966    ReplyNotSwappd,
967    ReplyNotSwappd,
968    ReplyNotSwappd,
969    ReplyNotSwappd,
970    ReplyNotSwappd,
971    ReplyNotSwappd,
972    ReplyNotSwappd,
973    ReplyNotSwappd,
974    ReplyNotSwappd,
975    ReplyNotSwappd,
976    ReplyNotSwappd,
977    ReplyNotSwappd,
978    ReplyNotSwappd,
979    ReplyNotSwappd,
980    ReplyNotSwappd,
981    ReplyNotSwappd,
982    ReplyNotSwappd,
983    ReplyNotSwappd,
984    ReplyNotSwappd,
985    ReplyNotSwappd
986};
987