swaprep.h revision 05b261ec
105b261ecSmrg/************************************************************
205b261ecSmrg
305b261ecSmrgCopyright 1996 by Thomas E. Dickey <dickey@clark.net>
405b261ecSmrg
505b261ecSmrg                        All Rights Reserved
605b261ecSmrg
705b261ecSmrgPermission to use, copy, modify, and distribute this software and its
805b261ecSmrgdocumentation for any purpose and without fee is hereby granted,
905b261ecSmrgprovided that the above copyright notice appear in all copies and that
1005b261ecSmrgboth that copyright notice and this permission notice appear in
1105b261ecSmrgsupporting documentation, and that the name of the above listed
1205b261ecSmrgcopyright holder(s) not be used in advertising or publicity pertaining
1305b261ecSmrgto distribution of the software without specific, written prior
1405b261ecSmrgpermission.
1505b261ecSmrg
1605b261ecSmrgTHE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
1705b261ecSmrgTO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1805b261ecSmrgAND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
1905b261ecSmrgLIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2005b261ecSmrgWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2105b261ecSmrgACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2205b261ecSmrgOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2305b261ecSmrg
2405b261ecSmrg********************************************************/
2505b261ecSmrg
2605b261ecSmrg#ifndef SWAPREP_H
2705b261ecSmrg#define SWAPREP_H 1
2805b261ecSmrg
2905b261ecSmrgextern void Swap32Write(
3005b261ecSmrg    ClientPtr /* pClient */,
3105b261ecSmrg    int /* size */,
3205b261ecSmrg    CARD32 * /* pbuf */);
3305b261ecSmrg
3405b261ecSmrgextern void CopySwap32Write(
3505b261ecSmrg    ClientPtr /* pClient */,
3605b261ecSmrg    int /* size */,
3705b261ecSmrg    CARD32 * /* pbuf */);
3805b261ecSmrg
3905b261ecSmrgextern void CopySwap16Write(
4005b261ecSmrg    ClientPtr /* pClient */,
4105b261ecSmrg    int /* size */,
4205b261ecSmrg    short * /* pbuf */);
4305b261ecSmrg
4405b261ecSmrgextern void SGenericReply(
4505b261ecSmrg    ClientPtr /* pClient */,
4605b261ecSmrg    int /* size */,
4705b261ecSmrg    xGenericReply * /* pRep */);
4805b261ecSmrg
4905b261ecSmrgextern void SGetWindowAttributesReply(
5005b261ecSmrg    ClientPtr /* pClient */,
5105b261ecSmrg    int /* size */,
5205b261ecSmrg    xGetWindowAttributesReply * /* pRep */);
5305b261ecSmrg
5405b261ecSmrgextern void SGetGeometryReply(
5505b261ecSmrg    ClientPtr /* pClient */,
5605b261ecSmrg    int /* size */,
5705b261ecSmrg    xGetGeometryReply * /* pRep */);
5805b261ecSmrg
5905b261ecSmrgextern void SQueryTreeReply(
6005b261ecSmrg    ClientPtr /* pClient */,
6105b261ecSmrg    int /* size */,
6205b261ecSmrg    xQueryTreeReply * /* pRep */);
6305b261ecSmrg
6405b261ecSmrgextern void SInternAtomReply(
6505b261ecSmrg    ClientPtr /* pClient */,
6605b261ecSmrg    int /* size */,
6705b261ecSmrg    xInternAtomReply * /* pRep */);
6805b261ecSmrg
6905b261ecSmrgextern void SGetAtomNameReply(
7005b261ecSmrg    ClientPtr /* pClient */,
7105b261ecSmrg    int /* size */,
7205b261ecSmrg    xGetAtomNameReply * /* pRep */);
7305b261ecSmrg
7405b261ecSmrgextern void SGetPropertyReply(
7505b261ecSmrg    ClientPtr /* pClient */,
7605b261ecSmrg    int /* size */,
7705b261ecSmrg    xGetPropertyReply * /* pRep */);
7805b261ecSmrg
7905b261ecSmrgextern void SListPropertiesReply(
8005b261ecSmrg    ClientPtr /* pClient */,
8105b261ecSmrg    int /* size */,
8205b261ecSmrg    xListPropertiesReply * /* pRep */);
8305b261ecSmrg
8405b261ecSmrgextern void SGetSelectionOwnerReply(
8505b261ecSmrg    ClientPtr /* pClient */,
8605b261ecSmrg    int /* size */,
8705b261ecSmrg    xGetSelectionOwnerReply * /* pRep */);
8805b261ecSmrg
8905b261ecSmrgextern void SQueryPointerReply(
9005b261ecSmrg    ClientPtr /* pClient */,
9105b261ecSmrg    int /* size */,
9205b261ecSmrg    xQueryPointerReply * /* pRep */);
9305b261ecSmrg
9405b261ecSmrgextern void SwapTimeCoordWrite(
9505b261ecSmrg    ClientPtr /* pClient */,
9605b261ecSmrg    int /* size */,
9705b261ecSmrg    xTimecoord * /* pRep */);
9805b261ecSmrg
9905b261ecSmrgextern void SGetMotionEventsReply(
10005b261ecSmrg    ClientPtr /* pClient */,
10105b261ecSmrg    int /* size */,
10205b261ecSmrg    xGetMotionEventsReply * /* pRep */);
10305b261ecSmrg
10405b261ecSmrgextern void STranslateCoordsReply(
10505b261ecSmrg    ClientPtr /* pClient */,
10605b261ecSmrg    int /* size */,
10705b261ecSmrg    xTranslateCoordsReply * /* pRep */);
10805b261ecSmrg
10905b261ecSmrgextern void SGetInputFocusReply(
11005b261ecSmrg    ClientPtr /* pClient */,
11105b261ecSmrg    int /* size */,
11205b261ecSmrg    xGetInputFocusReply * /* pRep */);
11305b261ecSmrg
11405b261ecSmrgextern void SQueryKeymapReply(
11505b261ecSmrg    ClientPtr /* pClient */,
11605b261ecSmrg    int /* size */,
11705b261ecSmrg    xQueryKeymapReply * /* pRep */);
11805b261ecSmrg
11905b261ecSmrgextern void SQueryFontReply(
12005b261ecSmrg    ClientPtr /* pClient */,
12105b261ecSmrg    int /* size */,
12205b261ecSmrg    xQueryFontReply * /* pRep */);
12305b261ecSmrg
12405b261ecSmrgextern void SQueryTextExtentsReply(
12505b261ecSmrg    ClientPtr /* pClient */,
12605b261ecSmrg    int /* size */,
12705b261ecSmrg    xQueryTextExtentsReply * /* pRep */);
12805b261ecSmrg
12905b261ecSmrgextern void SListFontsReply(
13005b261ecSmrg    ClientPtr /* pClient */,
13105b261ecSmrg    int /* size */,
13205b261ecSmrg    xListFontsReply * /* pRep */);
13305b261ecSmrg
13405b261ecSmrgextern void SListFontsWithInfoReply(
13505b261ecSmrg    ClientPtr /* pClient */,
13605b261ecSmrg    int /* size */,
13705b261ecSmrg    xListFontsWithInfoReply * /* pRep */);
13805b261ecSmrg
13905b261ecSmrgextern void SGetFontPathReply(
14005b261ecSmrg    ClientPtr /* pClient */,
14105b261ecSmrg    int /* size */,
14205b261ecSmrg    xGetFontPathReply * /* pRep */);
14305b261ecSmrg
14405b261ecSmrgextern void SGetImageReply(
14505b261ecSmrg    ClientPtr /* pClient */,
14605b261ecSmrg    int /* size */,
14705b261ecSmrg    xGetImageReply * /* pRep */);
14805b261ecSmrg
14905b261ecSmrgextern void SListInstalledColormapsReply(
15005b261ecSmrg    ClientPtr /* pClient */,
15105b261ecSmrg    int /* size */,
15205b261ecSmrg    xListInstalledColormapsReply * /* pRep */);
15305b261ecSmrg
15405b261ecSmrgextern void SAllocColorReply(
15505b261ecSmrg    ClientPtr /* pClient */,
15605b261ecSmrg    int /* size */,
15705b261ecSmrg    xAllocColorReply * /* pRep */);
15805b261ecSmrg
15905b261ecSmrgextern void SAllocNamedColorReply(
16005b261ecSmrg    ClientPtr /* pClient */,
16105b261ecSmrg    int /* size */,
16205b261ecSmrg    xAllocNamedColorReply * /* pRep */);
16305b261ecSmrg
16405b261ecSmrgextern void SAllocColorCellsReply(
16505b261ecSmrg    ClientPtr /* pClient */,
16605b261ecSmrg    int /* size */,
16705b261ecSmrg    xAllocColorCellsReply * /* pRep */);
16805b261ecSmrg
16905b261ecSmrgextern void SAllocColorPlanesReply(
17005b261ecSmrg    ClientPtr /* pClient */,
17105b261ecSmrg    int /* size */,
17205b261ecSmrg    xAllocColorPlanesReply * /* pRep */);
17305b261ecSmrg
17405b261ecSmrgextern void SQColorsExtend(
17505b261ecSmrg    ClientPtr /* pClient */,
17605b261ecSmrg    int /* size */,
17705b261ecSmrg    xrgb * /* prgb */);
17805b261ecSmrg
17905b261ecSmrgextern void SQueryColorsReply(
18005b261ecSmrg    ClientPtr /* pClient */,
18105b261ecSmrg    int /* size */,
18205b261ecSmrg    xQueryColorsReply * /* pRep */);
18305b261ecSmrg
18405b261ecSmrgextern void SLookupColorReply(
18505b261ecSmrg    ClientPtr /* pClient */,
18605b261ecSmrg    int /* size */,
18705b261ecSmrg    xLookupColorReply * /* pRep */);
18805b261ecSmrg
18905b261ecSmrgextern void SQueryBestSizeReply(
19005b261ecSmrg    ClientPtr /* pClient */,
19105b261ecSmrg    int /* size */,
19205b261ecSmrg    xQueryBestSizeReply * /* pRep */);
19305b261ecSmrg
19405b261ecSmrgextern void SListExtensionsReply(
19505b261ecSmrg    ClientPtr /* pClient */,
19605b261ecSmrg    int /* size */,
19705b261ecSmrg    xListExtensionsReply * /* pRep */);
19805b261ecSmrg
19905b261ecSmrgextern void SGetKeyboardMappingReply(
20005b261ecSmrg    ClientPtr /* pClient */,
20105b261ecSmrg    int /* size */,
20205b261ecSmrg    xGetKeyboardMappingReply * /* pRep */);
20305b261ecSmrg
20405b261ecSmrgextern void SGetPointerMappingReply(
20505b261ecSmrg    ClientPtr /* pClient */,
20605b261ecSmrg    int /* size */,
20705b261ecSmrg    xGetPointerMappingReply * /* pRep */);
20805b261ecSmrg
20905b261ecSmrgextern void SGetModifierMappingReply(
21005b261ecSmrg    ClientPtr /* pClient */,
21105b261ecSmrg    int /* size */,
21205b261ecSmrg    xGetModifierMappingReply * /* pRep */);
21305b261ecSmrg
21405b261ecSmrgextern void SGetKeyboardControlReply(
21505b261ecSmrg    ClientPtr /* pClient */,
21605b261ecSmrg    int /* size */,
21705b261ecSmrg    xGetKeyboardControlReply * /* pRep */);
21805b261ecSmrg
21905b261ecSmrgextern void SGetPointerControlReply(
22005b261ecSmrg    ClientPtr /* pClient */,
22105b261ecSmrg    int /* size */,
22205b261ecSmrg    xGetPointerControlReply * /* pRep */);
22305b261ecSmrg
22405b261ecSmrgextern void SGetScreenSaverReply(
22505b261ecSmrg    ClientPtr /* pClient */,
22605b261ecSmrg    int /* size */,
22705b261ecSmrg    xGetScreenSaverReply * /* pRep */);
22805b261ecSmrg
22905b261ecSmrgextern void SLHostsExtend(
23005b261ecSmrg    ClientPtr /* pClient */,
23105b261ecSmrg    int /* size */,
23205b261ecSmrg    char * /* buf */);
23305b261ecSmrg
23405b261ecSmrgextern void SListHostsReply(
23505b261ecSmrg    ClientPtr /* pClient */,
23605b261ecSmrg    int /* size */,
23705b261ecSmrg    xListHostsReply * /* pRep */);
23805b261ecSmrg
23905b261ecSmrgextern void SErrorEvent(
24005b261ecSmrg    xError * /* from */,
24105b261ecSmrg    xError * /* to */);
24205b261ecSmrg
24305b261ecSmrgextern void SwapConnSetupInfo(
24405b261ecSmrg    char * /* pInfo */,
24505b261ecSmrg    char * /* pInfoTBase */);
24605b261ecSmrg
24705b261ecSmrgextern void WriteSConnectionInfo(
24805b261ecSmrg    ClientPtr /* pClient */,
24905b261ecSmrg    unsigned long /* size */,
25005b261ecSmrg    char * /* pInfo */);
25105b261ecSmrg
25205b261ecSmrgextern void SwapConnSetupPrefix(
25305b261ecSmrg    xConnSetupPrefix * /* pcspFrom */,
25405b261ecSmrg    xConnSetupPrefix * /* pcspTo */);
25505b261ecSmrg
25605b261ecSmrgextern void WriteSConnSetupPrefix(
25705b261ecSmrg    ClientPtr /* pClient */,
25805b261ecSmrg    xConnSetupPrefix * /* pcsp */);
25905b261ecSmrg
26005b261ecSmrg#undef SWAPREP_PROC
26105b261ecSmrg#define SWAPREP_PROC(func) void func(xEvent * /* from */, xEvent * /* to */)
26205b261ecSmrg
26305b261ecSmrgSWAPREP_PROC(SCirculateEvent);
26405b261ecSmrgSWAPREP_PROC(SClientMessageEvent);
26505b261ecSmrgSWAPREP_PROC(SColormapEvent);
26605b261ecSmrgSWAPREP_PROC(SConfigureNotifyEvent);
26705b261ecSmrgSWAPREP_PROC(SConfigureRequestEvent);
26805b261ecSmrgSWAPREP_PROC(SCreateNotifyEvent);
26905b261ecSmrgSWAPREP_PROC(SDestroyNotifyEvent);
27005b261ecSmrgSWAPREP_PROC(SEnterLeaveEvent);
27105b261ecSmrgSWAPREP_PROC(SExposeEvent);
27205b261ecSmrgSWAPREP_PROC(SFocusEvent);
27305b261ecSmrgSWAPREP_PROC(SGraphicsExposureEvent);
27405b261ecSmrgSWAPREP_PROC(SGravityEvent);
27505b261ecSmrgSWAPREP_PROC(SKeyButtonPtrEvent);
27605b261ecSmrgSWAPREP_PROC(SKeymapNotifyEvent);
27705b261ecSmrgSWAPREP_PROC(SMapNotifyEvent);
27805b261ecSmrgSWAPREP_PROC(SMapRequestEvent);
27905b261ecSmrgSWAPREP_PROC(SMappingEvent);
28005b261ecSmrgSWAPREP_PROC(SNoExposureEvent);
28105b261ecSmrgSWAPREP_PROC(SPropertyEvent);
28205b261ecSmrgSWAPREP_PROC(SReparentEvent);
28305b261ecSmrgSWAPREP_PROC(SResizeRequestEvent);
28405b261ecSmrgSWAPREP_PROC(SSelectionClearEvent);
28505b261ecSmrgSWAPREP_PROC(SSelectionNotifyEvent);
28605b261ecSmrgSWAPREP_PROC(SSelectionRequestEvent);
28705b261ecSmrgSWAPREP_PROC(SUnmapNotifyEvent);
28805b261ecSmrgSWAPREP_PROC(SVisibilityEvent);
28905b261ecSmrg
29005b261ecSmrg#undef SWAPREP_PROC
29105b261ecSmrg
29205b261ecSmrg#endif /* SWAPREP_H */
293