Apply a patch for fixing TDIS-5990 (CVE-2013-1940 allow physically proximate attacker...
[framework/uifw/xorg/server/xorg-server.git] / include / swaprep.h
1 /************************************************************
2
3 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
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 _X_EXPORT void Swap32Write(ClientPtr /* pClient */ ,
30                                   int /* size */ ,
31                                   CARD32 * /* pbuf */ );
32
33 extern _X_EXPORT void CopySwap32Write(ClientPtr /* pClient */ ,
34                                       int /* size */ ,
35                                       CARD32 * /* pbuf */ );
36
37 extern _X_EXPORT void CopySwap16Write(ClientPtr /* pClient */ ,
38                                       int /* size */ ,
39                                       short * /* pbuf */ );
40
41 extern _X_EXPORT void SGenericReply(ClientPtr /* pClient */ ,
42                                     int /* size */ ,
43                                     xGenericReply * /* pRep */ );
44
45 extern _X_EXPORT void SGetWindowAttributesReply(ClientPtr /* pClient */ ,
46                                                 int /* size */ ,
47                                                 xGetWindowAttributesReply *
48                                                 /* pRep */ );
49
50 extern _X_EXPORT void SGetGeometryReply(ClientPtr /* pClient */ ,
51                                         int /* size */ ,
52                                         xGetGeometryReply * /* pRep */ );
53
54 extern _X_EXPORT void SQueryTreeReply(ClientPtr /* pClient */ ,
55                                       int /* size */ ,
56                                       xQueryTreeReply * /* pRep */ );
57
58 extern _X_EXPORT void SInternAtomReply(ClientPtr /* pClient */ ,
59                                        int /* size */ ,
60                                        xInternAtomReply * /* pRep */ );
61
62 extern _X_EXPORT void SGetAtomNameReply(ClientPtr /* pClient */ ,
63                                         int /* size */ ,
64                                         xGetAtomNameReply * /* pRep */ );
65
66 extern _X_EXPORT void SGetPropertyReply(ClientPtr /* pClient */ ,
67                                         int /* size */ ,
68                                         xGetPropertyReply * /* pRep */ );
69
70 extern _X_EXPORT void SListPropertiesReply(ClientPtr /* pClient */ ,
71                                            int /* size */ ,
72                                            xListPropertiesReply * /* pRep */ );
73
74 extern _X_EXPORT void SGetSelectionOwnerReply(ClientPtr /* pClient */ ,
75                                               int /* size */ ,
76                                               xGetSelectionOwnerReply *
77                                               /* pRep */ );
78
79 extern _X_EXPORT void SQueryPointerReply(ClientPtr /* pClient */ ,
80                                          int /* size */ ,
81                                          xQueryPointerReply * /* pRep */ );
82
83 extern _X_EXPORT void SwapTimeCoordWrite(ClientPtr /* pClient */ ,
84                                          int /* size */ ,
85                                          xTimecoord * /* pRep */ );
86
87 extern _X_EXPORT void SGetMotionEventsReply(ClientPtr /* pClient */ ,
88                                             int /* size */ ,
89                                             xGetMotionEventsReply * /* pRep */
90                                             );
91
92 extern _X_EXPORT void STranslateCoordsReply(ClientPtr /* pClient */ ,
93                                             int /* size */ ,
94                                             xTranslateCoordsReply * /* pRep */
95                                             );
96
97 extern _X_EXPORT void SGetInputFocusReply(ClientPtr /* pClient */ ,
98                                           int /* size */ ,
99                                           xGetInputFocusReply * /* pRep */ );
100
101 extern _X_EXPORT void SQueryKeymapReply(ClientPtr /* pClient */ ,
102                                         int /* size */ ,
103                                         xQueryKeymapReply * /* pRep */ );
104
105 extern _X_EXPORT void SQueryFontReply(ClientPtr /* pClient */ ,
106                                       int /* size */ ,
107                                       xQueryFontReply * /* pRep */ );
108
109 extern _X_EXPORT void SQueryTextExtentsReply(ClientPtr /* pClient */ ,
110                                              int /* size */ ,
111                                              xQueryTextExtentsReply * /* pRep */
112                                              );
113
114 extern _X_EXPORT void SListFontsReply(ClientPtr /* pClient */ ,
115                                       int /* size */ ,
116                                       xListFontsReply * /* pRep */ );
117
118 extern _X_EXPORT void SListFontsWithInfoReply(ClientPtr /* pClient */ ,
119                                               int /* size */ ,
120                                               xListFontsWithInfoReply *
121                                               /* pRep */ );
122
123 extern _X_EXPORT void SGetFontPathReply(ClientPtr /* pClient */ ,
124                                         int /* size */ ,
125                                         xGetFontPathReply * /* pRep */ );
126
127 extern _X_EXPORT void SGetImageReply(ClientPtr /* pClient */ ,
128                                      int /* size */ ,
129                                      xGetImageReply * /* pRep */ );
130
131 extern _X_EXPORT void SListInstalledColormapsReply(ClientPtr /* pClient */ ,
132                                                    int /* size */ ,
133                                                    xListInstalledColormapsReply
134                                                    * /* pRep */ );
135
136 extern _X_EXPORT void SAllocColorReply(ClientPtr /* pClient */ ,
137                                        int /* size */ ,
138                                        xAllocColorReply * /* pRep */ );
139
140 extern _X_EXPORT void SAllocNamedColorReply(ClientPtr /* pClient */ ,
141                                             int /* size */ ,
142                                             xAllocNamedColorReply * /* pRep */
143                                             );
144
145 extern _X_EXPORT void SAllocColorCellsReply(ClientPtr /* pClient */ ,
146                                             int /* size */ ,
147                                             xAllocColorCellsReply * /* pRep */
148                                             );
149
150 extern _X_EXPORT void SAllocColorPlanesReply(ClientPtr /* pClient */ ,
151                                              int /* size */ ,
152                                              xAllocColorPlanesReply * /* pRep */
153                                              );
154
155 extern _X_EXPORT void SQColorsExtend(ClientPtr /* pClient */ ,
156                                      int /* size */ ,
157                                      xrgb * /* prgb */ );
158
159 extern _X_EXPORT void SQueryColorsReply(ClientPtr /* pClient */ ,
160                                         int /* size */ ,
161                                         xQueryColorsReply * /* pRep */ );
162
163 extern _X_EXPORT void SLookupColorReply(ClientPtr /* pClient */ ,
164                                         int /* size */ ,
165                                         xLookupColorReply * /* pRep */ );
166
167 extern _X_EXPORT void SQueryBestSizeReply(ClientPtr /* pClient */ ,
168                                           int /* size */ ,
169                                           xQueryBestSizeReply * /* pRep */ );
170
171 extern _X_EXPORT void SListExtensionsReply(ClientPtr /* pClient */ ,
172                                            int /* size */ ,
173                                            xListExtensionsReply * /* pRep */ );
174
175 extern _X_EXPORT void SGetKeyboardMappingReply(ClientPtr /* pClient */ ,
176                                                int /* size */ ,
177                                                xGetKeyboardMappingReply *
178                                                /* pRep */ );
179
180 extern _X_EXPORT void SGetPointerMappingReply(ClientPtr /* pClient */ ,
181                                               int /* size */ ,
182                                               xGetPointerMappingReply *
183                                               /* pRep */ );
184
185 extern _X_EXPORT void SGetModifierMappingReply(ClientPtr /* pClient */ ,
186                                                int /* size */ ,
187                                                xGetModifierMappingReply *
188                                                /* pRep */ );
189
190 extern _X_EXPORT void SGetKeyboardControlReply(ClientPtr /* pClient */ ,
191                                                int /* size */ ,
192                                                xGetKeyboardControlReply *
193                                                /* pRep */ );
194
195 extern _X_EXPORT void SGetPointerControlReply(ClientPtr /* pClient */ ,
196                                               int /* size */ ,
197                                               xGetPointerControlReply *
198                                               /* pRep */ );
199
200 extern _X_EXPORT void SGetScreenSaverReply(ClientPtr /* pClient */ ,
201                                            int /* size */ ,
202                                            xGetScreenSaverReply * /* pRep */ );
203
204 extern _X_EXPORT void SLHostsExtend(ClientPtr /* pClient */ ,
205                                     int /* size */ ,
206                                     char * /* buf */ );
207
208 extern _X_EXPORT void SListHostsReply(ClientPtr /* pClient */ ,
209                                       int /* size */ ,
210                                       xListHostsReply * /* pRep */ );
211
212 extern _X_EXPORT void SErrorEvent(xError * /* from */ ,
213                                   xError * /* to */ );
214
215 extern _X_EXPORT void SwapConnSetupInfo(char * /* pInfo */ ,
216                                         char * /* pInfoTBase */ );
217
218 extern _X_EXPORT void WriteSConnectionInfo(ClientPtr /* pClient */ ,
219                                            unsigned long /* size */ ,
220                                            char * /* pInfo */ );
221
222 extern _X_EXPORT void SwapConnSetupPrefix(xConnSetupPrefix * /* pcspFrom */ ,
223                                           xConnSetupPrefix * /* pcspTo */ );
224
225 extern _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
231 SWAPREP_PROC(SCirculateEvent);
232 SWAPREP_PROC(SClientMessageEvent);
233 SWAPREP_PROC(SColormapEvent);
234 SWAPREP_PROC(SConfigureNotifyEvent);
235 SWAPREP_PROC(SConfigureRequestEvent);
236 SWAPREP_PROC(SCreateNotifyEvent);
237 SWAPREP_PROC(SDestroyNotifyEvent);
238 SWAPREP_PROC(SEnterLeaveEvent);
239 SWAPREP_PROC(SExposeEvent);
240 SWAPREP_PROC(SFocusEvent);
241 SWAPREP_PROC(SGraphicsExposureEvent);
242 SWAPREP_PROC(SGravityEvent);
243 SWAPREP_PROC(SKeyButtonPtrEvent);
244 SWAPREP_PROC(SKeymapNotifyEvent);
245 SWAPREP_PROC(SMapNotifyEvent);
246 SWAPREP_PROC(SMapRequestEvent);
247 SWAPREP_PROC(SMappingEvent);
248 SWAPREP_PROC(SNoExposureEvent);
249 SWAPREP_PROC(SPropertyEvent);
250 SWAPREP_PROC(SReparentEvent);
251 SWAPREP_PROC(SResizeRequestEvent);
252 SWAPREP_PROC(SSelectionClearEvent);
253 SWAPREP_PROC(SSelectionNotifyEvent);
254 SWAPREP_PROC(SSelectionRequestEvent);
255 SWAPREP_PROC(SUnmapNotifyEvent);
256 SWAPREP_PROC(SVisibilityEvent);
257
258 #undef SWAPREP_PROC
259
260 #endif                          /* SWAPREP_H */