xref: /OK3568_Linux_fs/external/xserver/include/swaprep.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /************************************************************
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun                         All Rights Reserved
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun Permission to use, copy, modify, and distribute this software and its
8*4882a593Smuzhiyun documentation for any purpose and without fee is hereby granted,
9*4882a593Smuzhiyun provided that the above copyright notice appear in all copies and that
10*4882a593Smuzhiyun both that copyright notice and this permission notice appear in
11*4882a593Smuzhiyun supporting documentation, and that the name of the above listed
12*4882a593Smuzhiyun copyright holder(s) not be used in advertising or publicity pertaining
13*4882a593Smuzhiyun to distribution of the software without specific, written prior
14*4882a593Smuzhiyun permission.
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
17*4882a593Smuzhiyun TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18*4882a593Smuzhiyun AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
19*4882a593Smuzhiyun LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20*4882a593Smuzhiyun WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21*4882a593Smuzhiyun ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22*4882a593Smuzhiyun OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun ********************************************************/
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #ifndef SWAPREP_H
27*4882a593Smuzhiyun #define SWAPREP_H 1
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun extern void Swap32Write(ClientPtr /* pClient */ ,
30*4882a593Smuzhiyun                         int /* size */ ,
31*4882a593Smuzhiyun                         CARD32 * /* pbuf */ );
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun extern void CopySwap32Write(ClientPtr /* pClient */ ,
34*4882a593Smuzhiyun                             int /* size */ ,
35*4882a593Smuzhiyun                             CARD32 * /* pbuf */ );
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun extern void CopySwap16Write(ClientPtr /* pClient */ ,
38*4882a593Smuzhiyun                             int /* size */ ,
39*4882a593Smuzhiyun                             short * /* pbuf */ );
40*4882a593Smuzhiyun 
41*4882a593Smuzhiyun extern void SGenericReply(ClientPtr /* pClient */ ,
42*4882a593Smuzhiyun                           int /* size */ ,
43*4882a593Smuzhiyun                           xGenericReply * /* pRep */ );
44*4882a593Smuzhiyun 
45*4882a593Smuzhiyun extern void SGetWindowAttributesReply(ClientPtr /* pClient */ ,
46*4882a593Smuzhiyun                                       int /* size */ ,
47*4882a593Smuzhiyun                                       xGetWindowAttributesReply *
48*4882a593Smuzhiyun                                       /* pRep */ );
49*4882a593Smuzhiyun 
50*4882a593Smuzhiyun extern void SGetGeometryReply(ClientPtr /* pClient */ ,
51*4882a593Smuzhiyun                               int /* size */ ,
52*4882a593Smuzhiyun                               xGetGeometryReply * /* pRep */ );
53*4882a593Smuzhiyun 
54*4882a593Smuzhiyun extern void SQueryTreeReply(ClientPtr /* pClient */ ,
55*4882a593Smuzhiyun                             int /* size */ ,
56*4882a593Smuzhiyun                             xQueryTreeReply * /* pRep */ );
57*4882a593Smuzhiyun 
58*4882a593Smuzhiyun extern void SInternAtomReply(ClientPtr /* pClient */ ,
59*4882a593Smuzhiyun                              int /* size */ ,
60*4882a593Smuzhiyun                              xInternAtomReply * /* pRep */ );
61*4882a593Smuzhiyun 
62*4882a593Smuzhiyun extern void SGetAtomNameReply(ClientPtr /* pClient */ ,
63*4882a593Smuzhiyun                               int /* size */ ,
64*4882a593Smuzhiyun                               xGetAtomNameReply * /* pRep */ );
65*4882a593Smuzhiyun 
66*4882a593Smuzhiyun extern void SGetPropertyReply(ClientPtr /* pClient */ ,
67*4882a593Smuzhiyun                               int /* size */ ,
68*4882a593Smuzhiyun                               xGetPropertyReply * /* pRep */ );
69*4882a593Smuzhiyun 
70*4882a593Smuzhiyun extern void SListPropertiesReply(ClientPtr /* pClient */ ,
71*4882a593Smuzhiyun                                  int /* size */ ,
72*4882a593Smuzhiyun                                  xListPropertiesReply * /* pRep */ );
73*4882a593Smuzhiyun 
74*4882a593Smuzhiyun extern void SGetSelectionOwnerReply(ClientPtr /* pClient */ ,
75*4882a593Smuzhiyun                                     int /* size */ ,
76*4882a593Smuzhiyun                                     xGetSelectionOwnerReply *
77*4882a593Smuzhiyun                                     /* pRep */ );
78*4882a593Smuzhiyun 
79*4882a593Smuzhiyun extern void SQueryPointerReply(ClientPtr /* pClient */ ,
80*4882a593Smuzhiyun                                int /* size */ ,
81*4882a593Smuzhiyun                                xQueryPointerReply * /* pRep */ );
82*4882a593Smuzhiyun 
83*4882a593Smuzhiyun extern void SwapTimeCoordWrite(ClientPtr /* pClient */ ,
84*4882a593Smuzhiyun                                int /* size */ ,
85*4882a593Smuzhiyun                                xTimecoord * /* pRep */ );
86*4882a593Smuzhiyun 
87*4882a593Smuzhiyun extern void SGetMotionEventsReply(ClientPtr /* pClient */ ,
88*4882a593Smuzhiyun                                   int /* size */ ,
89*4882a593Smuzhiyun                                   xGetMotionEventsReply *       /* pRep */
90*4882a593Smuzhiyun     );
91*4882a593Smuzhiyun 
92*4882a593Smuzhiyun extern void STranslateCoordsReply(ClientPtr /* pClient */ ,
93*4882a593Smuzhiyun                                   int /* size */ ,
94*4882a593Smuzhiyun                                   xTranslateCoordsReply *       /* pRep */
95*4882a593Smuzhiyun     );
96*4882a593Smuzhiyun 
97*4882a593Smuzhiyun extern void SGetInputFocusReply(ClientPtr /* pClient */ ,
98*4882a593Smuzhiyun                                 int /* size */ ,
99*4882a593Smuzhiyun                                 xGetInputFocusReply * /* pRep */ );
100*4882a593Smuzhiyun 
101*4882a593Smuzhiyun extern void SQueryKeymapReply(ClientPtr /* pClient */ ,
102*4882a593Smuzhiyun                               int /* size */ ,
103*4882a593Smuzhiyun                               xQueryKeymapReply * /* pRep */ );
104*4882a593Smuzhiyun 
105*4882a593Smuzhiyun extern void SQueryFontReply(ClientPtr /* pClient */ ,
106*4882a593Smuzhiyun                             int /* size */ ,
107*4882a593Smuzhiyun                             xQueryFontReply * /* pRep */ );
108*4882a593Smuzhiyun 
109*4882a593Smuzhiyun extern void SQueryTextExtentsReply(ClientPtr /* pClient */ ,
110*4882a593Smuzhiyun                                    int /* size */ ,
111*4882a593Smuzhiyun                                    xQueryTextExtentsReply *     /* pRep */
112*4882a593Smuzhiyun     );
113*4882a593Smuzhiyun 
114*4882a593Smuzhiyun extern void SListFontsReply(ClientPtr /* pClient */ ,
115*4882a593Smuzhiyun                             int /* size */ ,
116*4882a593Smuzhiyun                             xListFontsReply * /* pRep */ );
117*4882a593Smuzhiyun 
118*4882a593Smuzhiyun extern void SListFontsWithInfoReply(ClientPtr /* pClient */ ,
119*4882a593Smuzhiyun                                     int /* size */ ,
120*4882a593Smuzhiyun                                     xListFontsWithInfoReply *
121*4882a593Smuzhiyun                                     /* pRep */ );
122*4882a593Smuzhiyun 
123*4882a593Smuzhiyun extern void SGetFontPathReply(ClientPtr /* pClient */ ,
124*4882a593Smuzhiyun                               int /* size */ ,
125*4882a593Smuzhiyun                               xGetFontPathReply * /* pRep */ );
126*4882a593Smuzhiyun 
127*4882a593Smuzhiyun extern void SGetImageReply(ClientPtr /* pClient */ ,
128*4882a593Smuzhiyun                            int /* size */ ,
129*4882a593Smuzhiyun                            xGetImageReply * /* pRep */ );
130*4882a593Smuzhiyun 
131*4882a593Smuzhiyun extern void SListInstalledColormapsReply(ClientPtr /* pClient */ ,
132*4882a593Smuzhiyun                                          int /* size */ ,
133*4882a593Smuzhiyun                                          xListInstalledColormapsReply
134*4882a593Smuzhiyun                                          * /* pRep */ );
135*4882a593Smuzhiyun 
136*4882a593Smuzhiyun extern void SAllocColorReply(ClientPtr /* pClient */ ,
137*4882a593Smuzhiyun                              int /* size */ ,
138*4882a593Smuzhiyun                              xAllocColorReply * /* pRep */ );
139*4882a593Smuzhiyun 
140*4882a593Smuzhiyun extern void SAllocNamedColorReply(ClientPtr /* pClient */ ,
141*4882a593Smuzhiyun                                   int /* size */ ,
142*4882a593Smuzhiyun                                   xAllocNamedColorReply *       /* pRep */
143*4882a593Smuzhiyun     );
144*4882a593Smuzhiyun 
145*4882a593Smuzhiyun extern void SAllocColorCellsReply(ClientPtr /* pClient */ ,
146*4882a593Smuzhiyun                                   int /* size */ ,
147*4882a593Smuzhiyun                                   xAllocColorCellsReply *       /* pRep */
148*4882a593Smuzhiyun     );
149*4882a593Smuzhiyun 
150*4882a593Smuzhiyun extern void SAllocColorPlanesReply(ClientPtr /* pClient */ ,
151*4882a593Smuzhiyun                                    int /* size */ ,
152*4882a593Smuzhiyun                                    xAllocColorPlanesReply *     /* pRep */
153*4882a593Smuzhiyun     );
154*4882a593Smuzhiyun 
155*4882a593Smuzhiyun extern void SQColorsExtend(ClientPtr /* pClient */ ,
156*4882a593Smuzhiyun                            int /* size */ ,
157*4882a593Smuzhiyun                            xrgb * /* prgb */ );
158*4882a593Smuzhiyun 
159*4882a593Smuzhiyun extern void SQueryColorsReply(ClientPtr /* pClient */ ,
160*4882a593Smuzhiyun                               int /* size */ ,
161*4882a593Smuzhiyun                               xQueryColorsReply * /* pRep */ );
162*4882a593Smuzhiyun 
163*4882a593Smuzhiyun extern void SLookupColorReply(ClientPtr /* pClient */ ,
164*4882a593Smuzhiyun                               int /* size */ ,
165*4882a593Smuzhiyun                               xLookupColorReply * /* pRep */ );
166*4882a593Smuzhiyun 
167*4882a593Smuzhiyun extern void SQueryBestSizeReply(ClientPtr /* pClient */ ,
168*4882a593Smuzhiyun                                 int /* size */ ,
169*4882a593Smuzhiyun                                 xQueryBestSizeReply * /* pRep */ );
170*4882a593Smuzhiyun 
171*4882a593Smuzhiyun extern void SListExtensionsReply(ClientPtr /* pClient */ ,
172*4882a593Smuzhiyun                                  int /* size */ ,
173*4882a593Smuzhiyun                                  xListExtensionsReply * /* pRep */ );
174*4882a593Smuzhiyun 
175*4882a593Smuzhiyun extern void SGetKeyboardMappingReply(ClientPtr /* pClient */ ,
176*4882a593Smuzhiyun                                      int /* size */ ,
177*4882a593Smuzhiyun                                      xGetKeyboardMappingReply *
178*4882a593Smuzhiyun                                      /* pRep */ );
179*4882a593Smuzhiyun 
180*4882a593Smuzhiyun extern void SGetPointerMappingReply(ClientPtr /* pClient */ ,
181*4882a593Smuzhiyun                                     int /* size */ ,
182*4882a593Smuzhiyun                                     xGetPointerMappingReply *
183*4882a593Smuzhiyun                                     /* pRep */ );
184*4882a593Smuzhiyun 
185*4882a593Smuzhiyun extern void SGetModifierMappingReply(ClientPtr /* pClient */ ,
186*4882a593Smuzhiyun                                      int /* size */ ,
187*4882a593Smuzhiyun                                      xGetModifierMappingReply *
188*4882a593Smuzhiyun                                      /* pRep */ );
189*4882a593Smuzhiyun 
190*4882a593Smuzhiyun extern void SGetKeyboardControlReply(ClientPtr /* pClient */ ,
191*4882a593Smuzhiyun                                      int /* size */ ,
192*4882a593Smuzhiyun                                      xGetKeyboardControlReply *
193*4882a593Smuzhiyun                                      /* pRep */ );
194*4882a593Smuzhiyun 
195*4882a593Smuzhiyun extern void SGetPointerControlReply(ClientPtr /* pClient */ ,
196*4882a593Smuzhiyun                                     int /* size */ ,
197*4882a593Smuzhiyun                                     xGetPointerControlReply *
198*4882a593Smuzhiyun                                     /* pRep */ );
199*4882a593Smuzhiyun 
200*4882a593Smuzhiyun extern void SGetScreenSaverReply(ClientPtr /* pClient */ ,
201*4882a593Smuzhiyun                                  int /* size */ ,
202*4882a593Smuzhiyun                                  xGetScreenSaverReply * /* pRep */ );
203*4882a593Smuzhiyun 
204*4882a593Smuzhiyun extern void SLHostsExtend(ClientPtr /* pClient */ ,
205*4882a593Smuzhiyun                           int /* size */ ,
206*4882a593Smuzhiyun                           char * /* buf */ );
207*4882a593Smuzhiyun 
208*4882a593Smuzhiyun extern void SListHostsReply(ClientPtr /* pClient */ ,
209*4882a593Smuzhiyun                             int /* size */ ,
210*4882a593Smuzhiyun                             xListHostsReply * /* pRep */ );
211*4882a593Smuzhiyun 
212*4882a593Smuzhiyun extern void SErrorEvent(xError * /* from */ ,
213*4882a593Smuzhiyun                         xError * /* to */ );
214*4882a593Smuzhiyun 
215*4882a593Smuzhiyun extern void SwapConnSetupInfo(char * /* pInfo */ ,
216*4882a593Smuzhiyun                               char * /* pInfoTBase */ );
217*4882a593Smuzhiyun 
218*4882a593Smuzhiyun extern void WriteSConnectionInfo(ClientPtr /* pClient */ ,
219*4882a593Smuzhiyun                                  unsigned long /* size */ ,
220*4882a593Smuzhiyun                                  char * /* pInfo */ );
221*4882a593Smuzhiyun 
222*4882a593Smuzhiyun extern void SwapConnSetupPrefix(xConnSetupPrefix * /* pcspFrom */ ,
223*4882a593Smuzhiyun                                 xConnSetupPrefix * /* pcspTo */ );
224*4882a593Smuzhiyun 
225*4882a593Smuzhiyun extern void WriteSConnSetupPrefix(ClientPtr /* pClient */ ,
226*4882a593Smuzhiyun                                   xConnSetupPrefix * /* pcsp */ );
227*4882a593Smuzhiyun 
228*4882a593Smuzhiyun #undef SWAPREP_PROC
229*4882a593Smuzhiyun #define SWAPREP_PROC(func) extern void func(xEvent * /* from */, xEvent * /* to */)
230*4882a593Smuzhiyun 
231*4882a593Smuzhiyun SWAPREP_PROC(SCirculateEvent);
232*4882a593Smuzhiyun SWAPREP_PROC(SClientMessageEvent);
233*4882a593Smuzhiyun SWAPREP_PROC(SColormapEvent);
234*4882a593Smuzhiyun SWAPREP_PROC(SConfigureNotifyEvent);
235*4882a593Smuzhiyun SWAPREP_PROC(SConfigureRequestEvent);
236*4882a593Smuzhiyun SWAPREP_PROC(SCreateNotifyEvent);
237*4882a593Smuzhiyun SWAPREP_PROC(SDestroyNotifyEvent);
238*4882a593Smuzhiyun SWAPREP_PROC(SEnterLeaveEvent);
239*4882a593Smuzhiyun SWAPREP_PROC(SExposeEvent);
240*4882a593Smuzhiyun SWAPREP_PROC(SFocusEvent);
241*4882a593Smuzhiyun SWAPREP_PROC(SGraphicsExposureEvent);
242*4882a593Smuzhiyun SWAPREP_PROC(SGravityEvent);
243*4882a593Smuzhiyun SWAPREP_PROC(SKeyButtonPtrEvent);
244*4882a593Smuzhiyun SWAPREP_PROC(SKeymapNotifyEvent);
245*4882a593Smuzhiyun SWAPREP_PROC(SMapNotifyEvent);
246*4882a593Smuzhiyun SWAPREP_PROC(SMapRequestEvent);
247*4882a593Smuzhiyun SWAPREP_PROC(SMappingEvent);
248*4882a593Smuzhiyun SWAPREP_PROC(SNoExposureEvent);
249*4882a593Smuzhiyun SWAPREP_PROC(SPropertyEvent);
250*4882a593Smuzhiyun SWAPREP_PROC(SReparentEvent);
251*4882a593Smuzhiyun SWAPREP_PROC(SResizeRequestEvent);
252*4882a593Smuzhiyun SWAPREP_PROC(SSelectionClearEvent);
253*4882a593Smuzhiyun SWAPREP_PROC(SSelectionNotifyEvent);
254*4882a593Smuzhiyun SWAPREP_PROC(SSelectionRequestEvent);
255*4882a593Smuzhiyun SWAPREP_PROC(SUnmapNotifyEvent);
256*4882a593Smuzhiyun SWAPREP_PROC(SVisibilityEvent);
257*4882a593Smuzhiyun 
258*4882a593Smuzhiyun #undef SWAPREP_PROC
259*4882a593Smuzhiyun 
260*4882a593Smuzhiyun #endif                          /* SWAPREP_H */
261