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