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 SwapTimeCoordWrite(
|
---|
95 | ClientPtr /* pClient */,
|
---|
96 | int /* size */,
|
---|
97 | xTimecoord * /* pRep */);
|
---|
98 |
|
---|
99 | extern void SGetMotionEventsReply(
|
---|
100 | ClientPtr /* pClient */,
|
---|
101 | int /* size */,
|
---|
102 | xGetMotionEventsReply * /* pRep */);
|
---|
103 |
|
---|
104 | extern void STranslateCoordsReply(
|
---|
105 | ClientPtr /* pClient */,
|
---|
106 | int /* size */,
|
---|
107 | xTranslateCoordsReply * /* pRep */);
|
---|
108 |
|
---|
109 | extern void SGetInputFocusReply(
|
---|
110 | ClientPtr /* pClient */,
|
---|
111 | int /* size */,
|
---|
112 | xGetInputFocusReply * /* pRep */);
|
---|
113 |
|
---|
114 | extern void SQueryKeymapReply(
|
---|
115 | ClientPtr /* pClient */,
|
---|
116 | int /* size */,
|
---|
117 | xQueryKeymapReply * /* pRep */);
|
---|
118 |
|
---|
119 | extern void SQueryFontReply(
|
---|
120 | ClientPtr /* pClient */,
|
---|
121 | int /* size */,
|
---|
122 | xQueryFontReply * /* pRep */);
|
---|
123 |
|
---|
124 | extern void SQueryTextExtentsReply(
|
---|
125 | ClientPtr /* pClient */,
|
---|
126 | int /* size */,
|
---|
127 | xQueryTextExtentsReply * /* pRep */);
|
---|
128 |
|
---|
129 | extern void SListFontsReply(
|
---|
130 | ClientPtr /* pClient */,
|
---|
131 | int /* size */,
|
---|
132 | xListFontsReply * /* pRep */);
|
---|
133 |
|
---|
134 | extern void SListFontsWithInfoReply(
|
---|
135 | ClientPtr /* pClient */,
|
---|
136 | int /* size */,
|
---|
137 | xListFontsWithInfoReply * /* pRep */);
|
---|
138 |
|
---|
139 | extern void SGetFontPathReply(
|
---|
140 | ClientPtr /* pClient */,
|
---|
141 | int /* size */,
|
---|
142 | xGetFontPathReply * /* pRep */);
|
---|
143 |
|
---|
144 | extern void SGetImageReply(
|
---|
145 | ClientPtr /* pClient */,
|
---|
146 | int /* size */,
|
---|
147 | xGetImageReply * /* pRep */);
|
---|
148 |
|
---|
149 | extern void SListInstalledColormapsReply(
|
---|
150 | ClientPtr /* pClient */,
|
---|
151 | int /* size */,
|
---|
152 | xListInstalledColormapsReply * /* pRep */);
|
---|
153 |
|
---|
154 | extern void SAllocColorReply(
|
---|
155 | ClientPtr /* pClient */,
|
---|
156 | int /* size */,
|
---|
157 | xAllocColorReply * /* pRep */);
|
---|
158 |
|
---|
159 | extern void SAllocNamedColorReply(
|
---|
160 | ClientPtr /* pClient */,
|
---|
161 | int /* size */,
|
---|
162 | xAllocNamedColorReply * /* pRep */);
|
---|
163 |
|
---|
164 | extern void SAllocColorCellsReply(
|
---|
165 | ClientPtr /* pClient */,
|
---|
166 | int /* size */,
|
---|
167 | xAllocColorCellsReply * /* pRep */);
|
---|
168 |
|
---|
169 | extern void SAllocColorPlanesReply(
|
---|
170 | ClientPtr /* pClient */,
|
---|
171 | int /* size */,
|
---|
172 | xAllocColorPlanesReply * /* pRep */);
|
---|
173 |
|
---|
174 | extern void SQColorsExtend(
|
---|
175 | ClientPtr /* pClient */,
|
---|
176 | int /* size */,
|
---|
177 | xrgb * /* prgb */);
|
---|
178 |
|
---|
179 | extern void SQueryColorsReply(
|
---|
180 | ClientPtr /* pClient */,
|
---|
181 | int /* size */,
|
---|
182 | xQueryColorsReply * /* pRep */);
|
---|
183 |
|
---|
184 | extern void SLookupColorReply(
|
---|
185 | ClientPtr /* pClient */,
|
---|
186 | int /* size */,
|
---|
187 | xLookupColorReply * /* pRep */);
|
---|
188 |
|
---|
189 | extern void SQueryBestSizeReply(
|
---|
190 | ClientPtr /* pClient */,
|
---|
191 | int /* size */,
|
---|
192 | xQueryBestSizeReply * /* pRep */);
|
---|
193 |
|
---|
194 | extern void SListExtensionsReply(
|
---|
195 | ClientPtr /* pClient */,
|
---|
196 | int /* size */,
|
---|
197 | xListExtensionsReply * /* pRep */);
|
---|
198 |
|
---|
199 | extern void SGetKeyboardMappingReply(
|
---|
200 | ClientPtr /* pClient */,
|
---|
201 | int /* size */,
|
---|
202 | xGetKeyboardMappingReply * /* pRep */);
|
---|
203 |
|
---|
204 | extern void SGetPointerMappingReply(
|
---|
205 | ClientPtr /* pClient */,
|
---|
206 | int /* size */,
|
---|
207 | xGetPointerMappingReply * /* pRep */);
|
---|
208 |
|
---|
209 | extern void SGetModifierMappingReply(
|
---|
210 | ClientPtr /* pClient */,
|
---|
211 | int /* size */,
|
---|
212 | xGetModifierMappingReply * /* pRep */);
|
---|
213 |
|
---|
214 | extern void SGetKeyboardControlReply(
|
---|
215 | ClientPtr /* pClient */,
|
---|
216 | int /* size */,
|
---|
217 | xGetKeyboardControlReply * /* pRep */);
|
---|
218 |
|
---|
219 | extern void SGetPointerControlReply(
|
---|
220 | ClientPtr /* pClient */,
|
---|
221 | int /* size */,
|
---|
222 | xGetPointerControlReply * /* pRep */);
|
---|
223 |
|
---|
224 | extern void SGetScreenSaverReply(
|
---|
225 | ClientPtr /* pClient */,
|
---|
226 | int /* size */,
|
---|
227 | xGetScreenSaverReply * /* pRep */);
|
---|
228 |
|
---|
229 | extern void SLHostsExtend(
|
---|
230 | ClientPtr /* pClient */,
|
---|
231 | int /* size */,
|
---|
232 | char * /* buf */);
|
---|
233 |
|
---|
234 | extern void SListHostsReply(
|
---|
235 | ClientPtr /* pClient */,
|
---|
236 | int /* size */,
|
---|
237 | xListHostsReply * /* pRep */);
|
---|
238 |
|
---|
239 | extern void SErrorEvent(
|
---|
240 | xError * /* from */,
|
---|
241 | xError * /* to */);
|
---|
242 |
|
---|
243 | extern void SwapConnSetupInfo(
|
---|
244 | char * /* pInfo */,
|
---|
245 | char * /* pInfoTBase */);
|
---|
246 |
|
---|
247 | extern void WriteSConnectionInfo(
|
---|
248 | ClientPtr /* pClient */,
|
---|
249 | unsigned long /* size */,
|
---|
250 | char * /* pInfo */);
|
---|
251 |
|
---|
252 | extern void SwapConnSetupPrefix(
|
---|
253 | xConnSetupPrefix * /* pcspFrom */,
|
---|
254 | xConnSetupPrefix * /* pcspTo */);
|
---|
255 |
|
---|
256 | extern void WriteSConnSetupPrefix(
|
---|
257 | ClientPtr /* pClient */,
|
---|
258 | xConnSetupPrefix * /* pcsp */);
|
---|
259 |
|
---|
260 | #undef SWAPREP_PROC
|
---|
261 | #define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */)
|
---|
262 |
|
---|
263 | SWAPREP_PROC(SCirculateEvent);
|
---|
264 | SWAPREP_PROC(SClientMessageEvent);
|
---|
265 | SWAPREP_PROC(SColormapEvent);
|
---|
266 | SWAPREP_PROC(SConfigureNotifyEvent);
|
---|
267 | SWAPREP_PROC(SConfigureRequestEvent);
|
---|
268 | SWAPREP_PROC(SCreateNotifyEvent);
|
---|
269 | SWAPREP_PROC(SDestroyNotifyEvent);
|
---|
270 | SWAPREP_PROC(SEnterLeaveEvent);
|
---|
271 | SWAPREP_PROC(SExposeEvent);
|
---|
272 | SWAPREP_PROC(SFocusEvent);
|
---|
273 | SWAPREP_PROC(SGraphicsExposureEvent);
|
---|
274 | SWAPREP_PROC(SGravityEvent);
|
---|
275 | SWAPREP_PROC(SKeyButtonPtrEvent);
|
---|
276 | SWAPREP_PROC(SKeymapNotifyEvent);
|
---|
277 | SWAPREP_PROC(SMapNotifyEvent);
|
---|
278 | SWAPREP_PROC(SMapRequestEvent);
|
---|
279 | SWAPREP_PROC(SMappingEvent);
|
---|
280 | SWAPREP_PROC(SNoExposureEvent);
|
---|
281 | SWAPREP_PROC(SPropertyEvent);
|
---|
282 | SWAPREP_PROC(SReparentEvent);
|
---|
283 | SWAPREP_PROC(SResizeRequestEvent);
|
---|
284 | SWAPREP_PROC(SSelectionClearEvent);
|
---|
285 | SWAPREP_PROC(SSelectionNotifyEvent);
|
---|
286 | SWAPREP_PROC(SSelectionRequestEvent);
|
---|
287 | SWAPREP_PROC(SUnmapNotifyEvent);
|
---|
288 | SWAPREP_PROC(SVisibilityEvent);
|
---|
289 |
|
---|
290 | #undef SWAPREP_PROC
|
---|
291 |
|
---|
292 | #endif /* SWAPREP_H */
|
---|