Imported Upstream version 1.15.1
[deb_xorg-server.git] / include / swaprep.h
CommitLineData
a09e091a
JB
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 _X_EXPORT void Swap32Write(ClientPtr /* pClient */ ,
30 int /* size */ ,
31 CARD32 * /* pbuf */ );
32
33extern _X_EXPORT void CopySwap32Write(ClientPtr /* pClient */ ,
34 int /* size */ ,
35 CARD32 * /* pbuf */ );
36
37extern _X_EXPORT void CopySwap16Write(ClientPtr /* pClient */ ,
38 int /* size */ ,
39 short * /* pbuf */ );
40
41extern _X_EXPORT void SGenericReply(ClientPtr /* pClient */ ,
42 int /* size */ ,
43 xGenericReply * /* pRep */ );
44
45extern _X_EXPORT void SGetWindowAttributesReply(ClientPtr /* pClient */ ,
46 int /* size */ ,
47 xGetWindowAttributesReply *
48 /* pRep */ );
49
50extern _X_EXPORT void SGetGeometryReply(ClientPtr /* pClient */ ,
51 int /* size */ ,
52 xGetGeometryReply * /* pRep */ );
53
54extern _X_EXPORT void SQueryTreeReply(ClientPtr /* pClient */ ,
55 int /* size */ ,
56 xQueryTreeReply * /* pRep */ );
57
58extern _X_EXPORT void SInternAtomReply(ClientPtr /* pClient */ ,
59 int /* size */ ,
60 xInternAtomReply * /* pRep */ );
61
62extern _X_EXPORT void SGetAtomNameReply(ClientPtr /* pClient */ ,
63 int /* size */ ,
64 xGetAtomNameReply * /* pRep */ );
65
66extern _X_EXPORT void SGetPropertyReply(ClientPtr /* pClient */ ,
67 int /* size */ ,
68 xGetPropertyReply * /* pRep */ );
69
70extern _X_EXPORT void SListPropertiesReply(ClientPtr /* pClient */ ,
71 int /* size */ ,
72 xListPropertiesReply * /* pRep */ );
73
74extern _X_EXPORT void SGetSelectionOwnerReply(ClientPtr /* pClient */ ,
75 int /* size */ ,
76 xGetSelectionOwnerReply *
77 /* pRep */ );
78
79extern _X_EXPORT void SQueryPointerReply(ClientPtr /* pClient */ ,
80 int /* size */ ,
81 xQueryPointerReply * /* pRep */ );
82
83extern _X_EXPORT void SwapTimeCoordWrite(ClientPtr /* pClient */ ,
84 int /* size */ ,
85 xTimecoord * /* pRep */ );
86
87extern _X_EXPORT void SGetMotionEventsReply(ClientPtr /* pClient */ ,
88 int /* size */ ,
89 xGetMotionEventsReply * /* pRep */
90 );
91
92extern _X_EXPORT void STranslateCoordsReply(ClientPtr /* pClient */ ,
93 int /* size */ ,
94 xTranslateCoordsReply * /* pRep */
95 );
96
97extern _X_EXPORT void SGetInputFocusReply(ClientPtr /* pClient */ ,
98 int /* size */ ,
99 xGetInputFocusReply * /* pRep */ );
100
101extern _X_EXPORT void SQueryKeymapReply(ClientPtr /* pClient */ ,
102 int /* size */ ,
103 xQueryKeymapReply * /* pRep */ );
104
105extern _X_EXPORT void SQueryFontReply(ClientPtr /* pClient */ ,
106 int /* size */ ,
107 xQueryFontReply * /* pRep */ );
108
109extern _X_EXPORT void SQueryTextExtentsReply(ClientPtr /* pClient */ ,
110 int /* size */ ,
111 xQueryTextExtentsReply * /* pRep */
112 );
113
114extern _X_EXPORT void SListFontsReply(ClientPtr /* pClient */ ,
115 int /* size */ ,
116 xListFontsReply * /* pRep */ );
117
118extern _X_EXPORT void SListFontsWithInfoReply(ClientPtr /* pClient */ ,
119 int /* size */ ,
120 xListFontsWithInfoReply *
121 /* pRep */ );
122
123extern _X_EXPORT void SGetFontPathReply(ClientPtr /* pClient */ ,
124 int /* size */ ,
125 xGetFontPathReply * /* pRep */ );
126
127extern _X_EXPORT void SGetImageReply(ClientPtr /* pClient */ ,
128 int /* size */ ,
129 xGetImageReply * /* pRep */ );
130
131extern _X_EXPORT void SListInstalledColormapsReply(ClientPtr /* pClient */ ,
132 int /* size */ ,
133 xListInstalledColormapsReply
134 * /* pRep */ );
135
136extern _X_EXPORT void SAllocColorReply(ClientPtr /* pClient */ ,
137 int /* size */ ,
138 xAllocColorReply * /* pRep */ );
139
140extern _X_EXPORT void SAllocNamedColorReply(ClientPtr /* pClient */ ,
141 int /* size */ ,
142 xAllocNamedColorReply * /* pRep */
143 );
144
145extern _X_EXPORT void SAllocColorCellsReply(ClientPtr /* pClient */ ,
146 int /* size */ ,
147 xAllocColorCellsReply * /* pRep */
148 );
149
150extern _X_EXPORT void SAllocColorPlanesReply(ClientPtr /* pClient */ ,
151 int /* size */ ,
152 xAllocColorPlanesReply * /* pRep */
153 );
154
155extern _X_EXPORT void SQColorsExtend(ClientPtr /* pClient */ ,
156 int /* size */ ,
157 xrgb * /* prgb */ );
158
159extern _X_EXPORT void SQueryColorsReply(ClientPtr /* pClient */ ,
160 int /* size */ ,
161 xQueryColorsReply * /* pRep */ );
162
163extern _X_EXPORT void SLookupColorReply(ClientPtr /* pClient */ ,
164 int /* size */ ,
165 xLookupColorReply * /* pRep */ );
166
167extern _X_EXPORT void SQueryBestSizeReply(ClientPtr /* pClient */ ,
168 int /* size */ ,
169 xQueryBestSizeReply * /* pRep */ );
170
171extern _X_EXPORT void SListExtensionsReply(ClientPtr /* pClient */ ,
172 int /* size */ ,
173 xListExtensionsReply * /* pRep */ );
174
175extern _X_EXPORT void SGetKeyboardMappingReply(ClientPtr /* pClient */ ,
176 int /* size */ ,
177 xGetKeyboardMappingReply *
178 /* pRep */ );
179
180extern _X_EXPORT void SGetPointerMappingReply(ClientPtr /* pClient */ ,
181 int /* size */ ,
182 xGetPointerMappingReply *
183 /* pRep */ );
184
185extern _X_EXPORT void SGetModifierMappingReply(ClientPtr /* pClient */ ,
186 int /* size */ ,
187 xGetModifierMappingReply *
188 /* pRep */ );
189
190extern _X_EXPORT void SGetKeyboardControlReply(ClientPtr /* pClient */ ,
191 int /* size */ ,
192 xGetKeyboardControlReply *
193 /* pRep */ );
194
195extern _X_EXPORT void SGetPointerControlReply(ClientPtr /* pClient */ ,
196 int /* size */ ,
197 xGetPointerControlReply *
198 /* pRep */ );
199
200extern _X_EXPORT void SGetScreenSaverReply(ClientPtr /* pClient */ ,
201 int /* size */ ,
202 xGetScreenSaverReply * /* pRep */ );
203
204extern _X_EXPORT void SLHostsExtend(ClientPtr /* pClient */ ,
205 int /* size */ ,
206 char * /* buf */ );
207
208extern _X_EXPORT void SListHostsReply(ClientPtr /* pClient */ ,
209 int /* size */ ,
210 xListHostsReply * /* pRep */ );
211
212extern _X_EXPORT void SErrorEvent(xError * /* from */ ,
213 xError * /* to */ );
214
215extern _X_EXPORT void SwapConnSetupInfo(char * /* pInfo */ ,
216 char * /* pInfoTBase */ );
217
218extern _X_EXPORT void WriteSConnectionInfo(ClientPtr /* pClient */ ,
219 unsigned long /* size */ ,
220 char * /* pInfo */ );
221
222extern _X_EXPORT void SwapConnSetupPrefix(xConnSetupPrefix * /* pcspFrom */ ,
223 xConnSetupPrefix * /* pcspTo */ );
224
225extern _X_EXPORT void WriteSConnSetupPrefix(ClientPtr /* pClient */ ,
226 xConnSetupPrefix * /* pcsp */ );
227
228#undef SWAPREP_PROC
229#define SWAPREP_PROC(func) extern _X_EXPORT 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 */