1706f2543Smrg/************************************************************ 2706f2543Smrg 3706f2543SmrgCopyright 1996 by Thomas E. Dickey <dickey@clark.net> 4706f2543Smrg 5706f2543Smrg All Rights Reserved 6706f2543Smrg 7706f2543SmrgPermission to use, copy, modify, and distribute this software and its 8706f2543Smrgdocumentation for any purpose and without fee is hereby granted, 9706f2543Smrgprovided that the above copyright notice appear in all copies and that 10706f2543Smrgboth that copyright notice and this permission notice appear in 11706f2543Smrgsupporting documentation, and that the name of the above listed 12706f2543Smrgcopyright holder(s) not be used in advertising or publicity pertaining 13706f2543Smrgto distribution of the software without specific, written prior 14706f2543Smrgpermission. 15706f2543Smrg 16706f2543SmrgTHE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17706f2543SmrgTO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18706f2543SmrgAND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19706f2543SmrgLIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20706f2543SmrgWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21706f2543SmrgACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22706f2543SmrgOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23706f2543Smrg 24706f2543Smrg********************************************************/ 25706f2543Smrg 26706f2543Smrg#ifndef SWAPREP_H 27706f2543Smrg#define SWAPREP_H 1 28706f2543Smrg 29706f2543Smrgextern _X_EXPORT void Swap32Write( 30706f2543Smrg ClientPtr /* pClient */, 31706f2543Smrg int /* size */, 32706f2543Smrg CARD32 * /* pbuf */); 33706f2543Smrg 34706f2543Smrgextern _X_EXPORT void CopySwap32Write( 35706f2543Smrg ClientPtr /* pClient */, 36706f2543Smrg int /* size */, 37706f2543Smrg CARD32 * /* pbuf */); 38706f2543Smrg 39706f2543Smrgextern _X_EXPORT void CopySwap16Write( 40706f2543Smrg ClientPtr /* pClient */, 41706f2543Smrg int /* size */, 42706f2543Smrg short * /* pbuf */); 43706f2543Smrg 44706f2543Smrgextern _X_EXPORT void SGenericReply( 45706f2543Smrg ClientPtr /* pClient */, 46706f2543Smrg int /* size */, 47706f2543Smrg xGenericReply * /* pRep */); 48706f2543Smrg 49706f2543Smrgextern _X_EXPORT void SGetWindowAttributesReply( 50706f2543Smrg ClientPtr /* pClient */, 51706f2543Smrg int /* size */, 52706f2543Smrg xGetWindowAttributesReply * /* pRep */); 53706f2543Smrg 54706f2543Smrgextern _X_EXPORT void SGetGeometryReply( 55706f2543Smrg ClientPtr /* pClient */, 56706f2543Smrg int /* size */, 57706f2543Smrg xGetGeometryReply * /* pRep */); 58706f2543Smrg 59706f2543Smrgextern _X_EXPORT void SQueryTreeReply( 60706f2543Smrg ClientPtr /* pClient */, 61706f2543Smrg int /* size */, 62706f2543Smrg xQueryTreeReply * /* pRep */); 63706f2543Smrg 64706f2543Smrgextern _X_EXPORT void SInternAtomReply( 65706f2543Smrg ClientPtr /* pClient */, 66706f2543Smrg int /* size */, 67706f2543Smrg xInternAtomReply * /* pRep */); 68706f2543Smrg 69706f2543Smrgextern _X_EXPORT void SGetAtomNameReply( 70706f2543Smrg ClientPtr /* pClient */, 71706f2543Smrg int /* size */, 72706f2543Smrg xGetAtomNameReply * /* pRep */); 73706f2543Smrg 74706f2543Smrgextern _X_EXPORT void SGetPropertyReply( 75706f2543Smrg ClientPtr /* pClient */, 76706f2543Smrg int /* size */, 77706f2543Smrg xGetPropertyReply * /* pRep */); 78706f2543Smrg 79706f2543Smrgextern _X_EXPORT void SListPropertiesReply( 80706f2543Smrg ClientPtr /* pClient */, 81706f2543Smrg int /* size */, 82706f2543Smrg xListPropertiesReply * /* pRep */); 83706f2543Smrg 84706f2543Smrgextern _X_EXPORT void SGetSelectionOwnerReply( 85706f2543Smrg ClientPtr /* pClient */, 86706f2543Smrg int /* size */, 87706f2543Smrg xGetSelectionOwnerReply * /* pRep */); 88706f2543Smrg 89706f2543Smrgextern _X_EXPORT void SQueryPointerReply( 90706f2543Smrg ClientPtr /* pClient */, 91706f2543Smrg int /* size */, 92706f2543Smrg xQueryPointerReply * /* pRep */); 93706f2543Smrg 94706f2543Smrgextern _X_EXPORT void SwapTimeCoordWrite( 95706f2543Smrg ClientPtr /* pClient */, 96706f2543Smrg int /* size */, 97706f2543Smrg xTimecoord * /* pRep */); 98706f2543Smrg 99706f2543Smrgextern _X_EXPORT void SGetMotionEventsReply( 100706f2543Smrg ClientPtr /* pClient */, 101706f2543Smrg int /* size */, 102706f2543Smrg xGetMotionEventsReply * /* pRep */); 103706f2543Smrg 104706f2543Smrgextern _X_EXPORT void STranslateCoordsReply( 105706f2543Smrg ClientPtr /* pClient */, 106706f2543Smrg int /* size */, 107706f2543Smrg xTranslateCoordsReply * /* pRep */); 108706f2543Smrg 109706f2543Smrgextern _X_EXPORT void SGetInputFocusReply( 110706f2543Smrg ClientPtr /* pClient */, 111706f2543Smrg int /* size */, 112706f2543Smrg xGetInputFocusReply * /* pRep */); 113706f2543Smrg 114706f2543Smrgextern _X_EXPORT void SQueryKeymapReply( 115706f2543Smrg ClientPtr /* pClient */, 116706f2543Smrg int /* size */, 117706f2543Smrg xQueryKeymapReply * /* pRep */); 118706f2543Smrg 119706f2543Smrgextern _X_EXPORT void SQueryFontReply( 120706f2543Smrg ClientPtr /* pClient */, 121706f2543Smrg int /* size */, 122706f2543Smrg xQueryFontReply * /* pRep */); 123706f2543Smrg 124706f2543Smrgextern _X_EXPORT void SQueryTextExtentsReply( 125706f2543Smrg ClientPtr /* pClient */, 126706f2543Smrg int /* size */, 127706f2543Smrg xQueryTextExtentsReply * /* pRep */); 128706f2543Smrg 129706f2543Smrgextern _X_EXPORT void SListFontsReply( 130706f2543Smrg ClientPtr /* pClient */, 131706f2543Smrg int /* size */, 132706f2543Smrg xListFontsReply * /* pRep */); 133706f2543Smrg 134706f2543Smrgextern _X_EXPORT void SListFontsWithInfoReply( 135706f2543Smrg ClientPtr /* pClient */, 136706f2543Smrg int /* size */, 137706f2543Smrg xListFontsWithInfoReply * /* pRep */); 138706f2543Smrg 139706f2543Smrgextern _X_EXPORT void SGetFontPathReply( 140706f2543Smrg ClientPtr /* pClient */, 141706f2543Smrg int /* size */, 142706f2543Smrg xGetFontPathReply * /* pRep */); 143706f2543Smrg 144706f2543Smrgextern _X_EXPORT void SGetImageReply( 145706f2543Smrg ClientPtr /* pClient */, 146706f2543Smrg int /* size */, 147706f2543Smrg xGetImageReply * /* pRep */); 148706f2543Smrg 149706f2543Smrgextern _X_EXPORT void SListInstalledColormapsReply( 150706f2543Smrg ClientPtr /* pClient */, 151706f2543Smrg int /* size */, 152706f2543Smrg xListInstalledColormapsReply * /* pRep */); 153706f2543Smrg 154706f2543Smrgextern _X_EXPORT void SAllocColorReply( 155706f2543Smrg ClientPtr /* pClient */, 156706f2543Smrg int /* size */, 157706f2543Smrg xAllocColorReply * /* pRep */); 158706f2543Smrg 159706f2543Smrgextern _X_EXPORT void SAllocNamedColorReply( 160706f2543Smrg ClientPtr /* pClient */, 161706f2543Smrg int /* size */, 162706f2543Smrg xAllocNamedColorReply * /* pRep */); 163706f2543Smrg 164706f2543Smrgextern _X_EXPORT void SAllocColorCellsReply( 165706f2543Smrg ClientPtr /* pClient */, 166706f2543Smrg int /* size */, 167706f2543Smrg xAllocColorCellsReply * /* pRep */); 168706f2543Smrg 169706f2543Smrgextern _X_EXPORT void SAllocColorPlanesReply( 170706f2543Smrg ClientPtr /* pClient */, 171706f2543Smrg int /* size */, 172706f2543Smrg xAllocColorPlanesReply * /* pRep */); 173706f2543Smrg 174706f2543Smrgextern _X_EXPORT void SQColorsExtend( 175706f2543Smrg ClientPtr /* pClient */, 176706f2543Smrg int /* size */, 177706f2543Smrg xrgb * /* prgb */); 178706f2543Smrg 179706f2543Smrgextern _X_EXPORT void SQueryColorsReply( 180706f2543Smrg ClientPtr /* pClient */, 181706f2543Smrg int /* size */, 182706f2543Smrg xQueryColorsReply * /* pRep */); 183706f2543Smrg 184706f2543Smrgextern _X_EXPORT void SLookupColorReply( 185706f2543Smrg ClientPtr /* pClient */, 186706f2543Smrg int /* size */, 187706f2543Smrg xLookupColorReply * /* pRep */); 188706f2543Smrg 189706f2543Smrgextern _X_EXPORT void SQueryBestSizeReply( 190706f2543Smrg ClientPtr /* pClient */, 191706f2543Smrg int /* size */, 192706f2543Smrg xQueryBestSizeReply * /* pRep */); 193706f2543Smrg 194706f2543Smrgextern _X_EXPORT void SListExtensionsReply( 195706f2543Smrg ClientPtr /* pClient */, 196706f2543Smrg int /* size */, 197706f2543Smrg xListExtensionsReply * /* pRep */); 198706f2543Smrg 199706f2543Smrgextern _X_EXPORT void SGetKeyboardMappingReply( 200706f2543Smrg ClientPtr /* pClient */, 201706f2543Smrg int /* size */, 202706f2543Smrg xGetKeyboardMappingReply * /* pRep */); 203706f2543Smrg 204706f2543Smrgextern _X_EXPORT void SGetPointerMappingReply( 205706f2543Smrg ClientPtr /* pClient */, 206706f2543Smrg int /* size */, 207706f2543Smrg xGetPointerMappingReply * /* pRep */); 208706f2543Smrg 209706f2543Smrgextern _X_EXPORT void SGetModifierMappingReply( 210706f2543Smrg ClientPtr /* pClient */, 211706f2543Smrg int /* size */, 212706f2543Smrg xGetModifierMappingReply * /* pRep */); 213706f2543Smrg 214706f2543Smrgextern _X_EXPORT void SGetKeyboardControlReply( 215706f2543Smrg ClientPtr /* pClient */, 216706f2543Smrg int /* size */, 217706f2543Smrg xGetKeyboardControlReply * /* pRep */); 218706f2543Smrg 219706f2543Smrgextern _X_EXPORT void SGetPointerControlReply( 220706f2543Smrg ClientPtr /* pClient */, 221706f2543Smrg int /* size */, 222706f2543Smrg xGetPointerControlReply * /* pRep */); 223706f2543Smrg 224706f2543Smrgextern _X_EXPORT void SGetScreenSaverReply( 225706f2543Smrg ClientPtr /* pClient */, 226706f2543Smrg int /* size */, 227706f2543Smrg xGetScreenSaverReply * /* pRep */); 228706f2543Smrg 229706f2543Smrgextern _X_EXPORT void SLHostsExtend( 230706f2543Smrg ClientPtr /* pClient */, 231706f2543Smrg int /* size */, 232706f2543Smrg char * /* buf */); 233706f2543Smrg 234706f2543Smrgextern _X_EXPORT void SListHostsReply( 235706f2543Smrg ClientPtr /* pClient */, 236706f2543Smrg int /* size */, 237706f2543Smrg xListHostsReply * /* pRep */); 238706f2543Smrg 239706f2543Smrgextern _X_EXPORT void SErrorEvent( 240706f2543Smrg xError * /* from */, 241706f2543Smrg xError * /* to */); 242706f2543Smrg 243706f2543Smrgextern _X_EXPORT void SwapConnSetupInfo( 244706f2543Smrg char * /* pInfo */, 245706f2543Smrg char * /* pInfoTBase */); 246706f2543Smrg 247706f2543Smrgextern _X_EXPORT void WriteSConnectionInfo( 248706f2543Smrg ClientPtr /* pClient */, 249706f2543Smrg unsigned long /* size */, 250706f2543Smrg char * /* pInfo */); 251706f2543Smrg 252706f2543Smrgextern _X_EXPORT void SwapConnSetupPrefix( 253706f2543Smrg xConnSetupPrefix * /* pcspFrom */, 254706f2543Smrg xConnSetupPrefix * /* pcspTo */); 255706f2543Smrg 256706f2543Smrgextern _X_EXPORT void WriteSConnSetupPrefix( 257706f2543Smrg ClientPtr /* pClient */, 258706f2543Smrg xConnSetupPrefix * /* pcsp */); 259706f2543Smrg 260706f2543Smrg#undef SWAPREP_PROC 261706f2543Smrg#define SWAPREP_PROC(func) extern _X_EXPORT void func(xEvent * /* from */, xEvent * /* to */) 262706f2543Smrg 263706f2543SmrgSWAPREP_PROC(SCirculateEvent); 264706f2543SmrgSWAPREP_PROC(SClientMessageEvent); 265706f2543SmrgSWAPREP_PROC(SColormapEvent); 266706f2543SmrgSWAPREP_PROC(SConfigureNotifyEvent); 267706f2543SmrgSWAPREP_PROC(SConfigureRequestEvent); 268706f2543SmrgSWAPREP_PROC(SCreateNotifyEvent); 269706f2543SmrgSWAPREP_PROC(SDestroyNotifyEvent); 270706f2543SmrgSWAPREP_PROC(SEnterLeaveEvent); 271706f2543SmrgSWAPREP_PROC(SExposeEvent); 272706f2543SmrgSWAPREP_PROC(SFocusEvent); 273706f2543SmrgSWAPREP_PROC(SGraphicsExposureEvent); 274706f2543SmrgSWAPREP_PROC(SGravityEvent); 275706f2543SmrgSWAPREP_PROC(SKeyButtonPtrEvent); 276706f2543SmrgSWAPREP_PROC(SKeymapNotifyEvent); 277706f2543SmrgSWAPREP_PROC(SMapNotifyEvent); 278706f2543SmrgSWAPREP_PROC(SMapRequestEvent); 279706f2543SmrgSWAPREP_PROC(SMappingEvent); 280706f2543SmrgSWAPREP_PROC(SNoExposureEvent); 281706f2543SmrgSWAPREP_PROC(SPropertyEvent); 282706f2543SmrgSWAPREP_PROC(SReparentEvent); 283706f2543SmrgSWAPREP_PROC(SResizeRequestEvent); 284706f2543SmrgSWAPREP_PROC(SSelectionClearEvent); 285706f2543SmrgSWAPREP_PROC(SSelectionNotifyEvent); 286706f2543SmrgSWAPREP_PROC(SSelectionRequestEvent); 287706f2543SmrgSWAPREP_PROC(SUnmapNotifyEvent); 288706f2543SmrgSWAPREP_PROC(SVisibilityEvent); 289706f2543Smrg 290706f2543Smrg#undef SWAPREP_PROC 291706f2543Smrg 292706f2543Smrg#endif /* SWAPREP_H */ 293