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