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
2935c4bbdfSmrgextern void Swap32Write(ClientPtr /* pClient */ ,
3035c4bbdfSmrg                        int /* size */ ,
3135c4bbdfSmrg                        CARD32 * /* pbuf */ );
3235c4bbdfSmrg
3335c4bbdfSmrgextern void CopySwap32Write(ClientPtr /* pClient */ ,
3435c4bbdfSmrg                            int /* size */ ,
3535c4bbdfSmrg                            CARD32 * /* pbuf */ );
3635c4bbdfSmrg
3735c4bbdfSmrgextern void CopySwap16Write(ClientPtr /* pClient */ ,
3835c4bbdfSmrg                            int /* size */ ,
3935c4bbdfSmrg                            short * /* pbuf */ );
4035c4bbdfSmrg
4135c4bbdfSmrgextern void SGenericReply(ClientPtr /* pClient */ ,
4235c4bbdfSmrg                          int /* size */ ,
4335c4bbdfSmrg                          xGenericReply * /* pRep */ );
4435c4bbdfSmrg
4535c4bbdfSmrgextern void SGetWindowAttributesReply(ClientPtr /* pClient */ ,
4635c4bbdfSmrg                                      int /* size */ ,
4735c4bbdfSmrg                                      xGetWindowAttributesReply *
4835c4bbdfSmrg                                      /* pRep */ );
4935c4bbdfSmrg
5035c4bbdfSmrgextern void SGetGeometryReply(ClientPtr /* pClient */ ,
5135c4bbdfSmrg                              int /* size */ ,
5235c4bbdfSmrg                              xGetGeometryReply * /* pRep */ );
5335c4bbdfSmrg
5435c4bbdfSmrgextern void SQueryTreeReply(ClientPtr /* pClient */ ,
5535c4bbdfSmrg                            int /* size */ ,
5635c4bbdfSmrg                            xQueryTreeReply * /* pRep */ );
5735c4bbdfSmrg
5835c4bbdfSmrgextern void SInternAtomReply(ClientPtr /* pClient */ ,
5935c4bbdfSmrg                             int /* size */ ,
6035c4bbdfSmrg                             xInternAtomReply * /* pRep */ );
6135c4bbdfSmrg
6235c4bbdfSmrgextern void SGetAtomNameReply(ClientPtr /* pClient */ ,
6335c4bbdfSmrg                              int /* size */ ,
6435c4bbdfSmrg                              xGetAtomNameReply * /* pRep */ );
6535c4bbdfSmrg
6635c4bbdfSmrgextern void SGetPropertyReply(ClientPtr /* pClient */ ,
6735c4bbdfSmrg                              int /* size */ ,
6835c4bbdfSmrg                              xGetPropertyReply * /* pRep */ );
6935c4bbdfSmrg
7035c4bbdfSmrgextern void SListPropertiesReply(ClientPtr /* pClient */ ,
7135c4bbdfSmrg                                 int /* size */ ,
7235c4bbdfSmrg                                 xListPropertiesReply * /* pRep */ );
7335c4bbdfSmrg
7435c4bbdfSmrgextern void SGetSelectionOwnerReply(ClientPtr /* pClient */ ,
7535c4bbdfSmrg                                    int /* size */ ,
7635c4bbdfSmrg                                    xGetSelectionOwnerReply *
7735c4bbdfSmrg                                    /* pRep */ );
7835c4bbdfSmrg
7935c4bbdfSmrgextern void SQueryPointerReply(ClientPtr /* pClient */ ,
8035c4bbdfSmrg                               int /* size */ ,
8135c4bbdfSmrg                               xQueryPointerReply * /* pRep */ );
8235c4bbdfSmrg
8335c4bbdfSmrgextern void SwapTimeCoordWrite(ClientPtr /* pClient */ ,
8435c4bbdfSmrg                               int /* size */ ,
8535c4bbdfSmrg                               xTimecoord * /* pRep */ );
8635c4bbdfSmrg
8735c4bbdfSmrgextern void SGetMotionEventsReply(ClientPtr /* pClient */ ,
8835c4bbdfSmrg                                  int /* size */ ,
8935c4bbdfSmrg                                  xGetMotionEventsReply *       /* pRep */
9035c4bbdfSmrg    );
9135c4bbdfSmrg
9235c4bbdfSmrgextern void STranslateCoordsReply(ClientPtr /* pClient */ ,
9335c4bbdfSmrg                                  int /* size */ ,
9435c4bbdfSmrg                                  xTranslateCoordsReply *       /* pRep */
9535c4bbdfSmrg    );
9635c4bbdfSmrg
9735c4bbdfSmrgextern void SGetInputFocusReply(ClientPtr /* pClient */ ,
9835c4bbdfSmrg                                int /* size */ ,
9935c4bbdfSmrg                                xGetInputFocusReply * /* pRep */ );
10035c4bbdfSmrg
10135c4bbdfSmrgextern void SQueryKeymapReply(ClientPtr /* pClient */ ,
10235c4bbdfSmrg                              int /* size */ ,
10335c4bbdfSmrg                              xQueryKeymapReply * /* pRep */ );
10435c4bbdfSmrg
10535c4bbdfSmrgextern void SQueryFontReply(ClientPtr /* pClient */ ,
10635c4bbdfSmrg                            int /* size */ ,
10735c4bbdfSmrg                            xQueryFontReply * /* pRep */ );
10835c4bbdfSmrg
10935c4bbdfSmrgextern void SQueryTextExtentsReply(ClientPtr /* pClient */ ,
11035c4bbdfSmrg                                   int /* size */ ,
11135c4bbdfSmrg                                   xQueryTextExtentsReply *     /* pRep */
11235c4bbdfSmrg    );
11335c4bbdfSmrg
11435c4bbdfSmrgextern void SListFontsReply(ClientPtr /* pClient */ ,
11535c4bbdfSmrg                            int /* size */ ,
11635c4bbdfSmrg                            xListFontsReply * /* pRep */ );
11735c4bbdfSmrg
11835c4bbdfSmrgextern void SListFontsWithInfoReply(ClientPtr /* pClient */ ,
11935c4bbdfSmrg                                    int /* size */ ,
12035c4bbdfSmrg                                    xListFontsWithInfoReply *
12135c4bbdfSmrg                                    /* pRep */ );
12235c4bbdfSmrg
12335c4bbdfSmrgextern void SGetFontPathReply(ClientPtr /* pClient */ ,
12435c4bbdfSmrg                              int /* size */ ,
12535c4bbdfSmrg                              xGetFontPathReply * /* pRep */ );
12635c4bbdfSmrg
12735c4bbdfSmrgextern void SGetImageReply(ClientPtr /* pClient */ ,
12835c4bbdfSmrg                           int /* size */ ,
12935c4bbdfSmrg                           xGetImageReply * /* pRep */ );
13035c4bbdfSmrg
13135c4bbdfSmrgextern void SListInstalledColormapsReply(ClientPtr /* pClient */ ,
13235c4bbdfSmrg                                         int /* size */ ,
13335c4bbdfSmrg                                         xListInstalledColormapsReply
13435c4bbdfSmrg                                         * /* pRep */ );
13535c4bbdfSmrg
13635c4bbdfSmrgextern void SAllocColorReply(ClientPtr /* pClient */ ,
13735c4bbdfSmrg                             int /* size */ ,
13835c4bbdfSmrg                             xAllocColorReply * /* pRep */ );
13935c4bbdfSmrg
14035c4bbdfSmrgextern void SAllocNamedColorReply(ClientPtr /* pClient */ ,
14135c4bbdfSmrg                                  int /* size */ ,
14235c4bbdfSmrg                                  xAllocNamedColorReply *       /* pRep */
14335c4bbdfSmrg    );
14435c4bbdfSmrg
14535c4bbdfSmrgextern void SAllocColorCellsReply(ClientPtr /* pClient */ ,
14635c4bbdfSmrg                                  int /* size */ ,
14735c4bbdfSmrg                                  xAllocColorCellsReply *       /* pRep */
14835c4bbdfSmrg    );
14935c4bbdfSmrg
15035c4bbdfSmrgextern void SAllocColorPlanesReply(ClientPtr /* pClient */ ,
15135c4bbdfSmrg                                   int /* size */ ,
15235c4bbdfSmrg                                   xAllocColorPlanesReply *     /* pRep */
15335c4bbdfSmrg    );
15435c4bbdfSmrg
15535c4bbdfSmrgextern void SQColorsExtend(ClientPtr /* pClient */ ,
15635c4bbdfSmrg                           int /* size */ ,
15735c4bbdfSmrg                           xrgb * /* prgb */ );
15835c4bbdfSmrg
15935c4bbdfSmrgextern void SQueryColorsReply(ClientPtr /* pClient */ ,
16035c4bbdfSmrg                              int /* size */ ,
16135c4bbdfSmrg                              xQueryColorsReply * /* pRep */ );
16235c4bbdfSmrg
16335c4bbdfSmrgextern void SLookupColorReply(ClientPtr /* pClient */ ,
16435c4bbdfSmrg                              int /* size */ ,
16535c4bbdfSmrg                              xLookupColorReply * /* pRep */ );
16635c4bbdfSmrg
16735c4bbdfSmrgextern void SQueryBestSizeReply(ClientPtr /* pClient */ ,
16835c4bbdfSmrg                                int /* size */ ,
16935c4bbdfSmrg                                xQueryBestSizeReply * /* pRep */ );
17035c4bbdfSmrg
17135c4bbdfSmrgextern void SListExtensionsReply(ClientPtr /* pClient */ ,
17235c4bbdfSmrg                                 int /* size */ ,
17335c4bbdfSmrg                                 xListExtensionsReply * /* pRep */ );
17435c4bbdfSmrg
17535c4bbdfSmrgextern void SGetKeyboardMappingReply(ClientPtr /* pClient */ ,
17635c4bbdfSmrg                                     int /* size */ ,
17735c4bbdfSmrg                                     xGetKeyboardMappingReply *
17835c4bbdfSmrg                                     /* pRep */ );
17935c4bbdfSmrg
18035c4bbdfSmrgextern void SGetPointerMappingReply(ClientPtr /* pClient */ ,
18135c4bbdfSmrg                                    int /* size */ ,
18235c4bbdfSmrg                                    xGetPointerMappingReply *
18335c4bbdfSmrg                                    /* pRep */ );
18435c4bbdfSmrg
18535c4bbdfSmrgextern void SGetModifierMappingReply(ClientPtr /* pClient */ ,
18635c4bbdfSmrg                                     int /* size */ ,
18735c4bbdfSmrg                                     xGetModifierMappingReply *
18835c4bbdfSmrg                                     /* pRep */ );
18935c4bbdfSmrg
19035c4bbdfSmrgextern void SGetKeyboardControlReply(ClientPtr /* pClient */ ,
19135c4bbdfSmrg                                     int /* size */ ,
19235c4bbdfSmrg                                     xGetKeyboardControlReply *
19335c4bbdfSmrg                                     /* pRep */ );
19435c4bbdfSmrg
19535c4bbdfSmrgextern void SGetPointerControlReply(ClientPtr /* pClient */ ,
19635c4bbdfSmrg                                    int /* size */ ,
19735c4bbdfSmrg                                    xGetPointerControlReply *
19835c4bbdfSmrg                                    /* pRep */ );
19935c4bbdfSmrg
20035c4bbdfSmrgextern void SGetScreenSaverReply(ClientPtr /* pClient */ ,
20135c4bbdfSmrg                                 int /* size */ ,
20235c4bbdfSmrg                                 xGetScreenSaverReply * /* pRep */ );
20335c4bbdfSmrg
20435c4bbdfSmrgextern void SLHostsExtend(ClientPtr /* pClient */ ,
20535c4bbdfSmrg                          int /* size */ ,
20635c4bbdfSmrg                          char * /* buf */ );
20735c4bbdfSmrg
20835c4bbdfSmrgextern void SListHostsReply(ClientPtr /* pClient */ ,
20935c4bbdfSmrg                            int /* size */ ,
21035c4bbdfSmrg                            xListHostsReply * /* pRep */ );
21135c4bbdfSmrg
21235c4bbdfSmrgextern void SErrorEvent(xError * /* from */ ,
21335c4bbdfSmrg                        xError * /* to */ );
21435c4bbdfSmrg
21535c4bbdfSmrgextern void SwapConnSetupInfo(char * /* pInfo */ ,
21635c4bbdfSmrg                              char * /* pInfoTBase */ );
21735c4bbdfSmrg
21835c4bbdfSmrgextern void WriteSConnectionInfo(ClientPtr /* pClient */ ,
21935c4bbdfSmrg                                 unsigned long /* size */ ,
22035c4bbdfSmrg                                 char * /* pInfo */ );
22135c4bbdfSmrg
22235c4bbdfSmrgextern void SwapConnSetupPrefix(xConnSetupPrefix * /* pcspFrom */ ,
22335c4bbdfSmrg                                xConnSetupPrefix * /* pcspTo */ );
22435c4bbdfSmrg
22535c4bbdfSmrgextern void WriteSConnSetupPrefix(ClientPtr /* pClient */ ,
22635c4bbdfSmrg                                  xConnSetupPrefix * /* pcsp */ );
22705b261ecSmrg
22805b261ecSmrg#undef SWAPREP_PROC
22935c4bbdfSmrg#define SWAPREP_PROC(func) extern void func(xEvent * /* from */, xEvent * /* to */)
23005b261ecSmrg
23105b261ecSmrgSWAPREP_PROC(SCirculateEvent);
23205b261ecSmrgSWAPREP_PROC(SClientMessageEvent);
23305b261ecSmrgSWAPREP_PROC(SColormapEvent);
23405b261ecSmrgSWAPREP_PROC(SConfigureNotifyEvent);
23505b261ecSmrgSWAPREP_PROC(SConfigureRequestEvent);
23605b261ecSmrgSWAPREP_PROC(SCreateNotifyEvent);
23705b261ecSmrgSWAPREP_PROC(SDestroyNotifyEvent);
23805b261ecSmrgSWAPREP_PROC(SEnterLeaveEvent);
23905b261ecSmrgSWAPREP_PROC(SExposeEvent);
24005b261ecSmrgSWAPREP_PROC(SFocusEvent);
24105b261ecSmrgSWAPREP_PROC(SGraphicsExposureEvent);
24205b261ecSmrgSWAPREP_PROC(SGravityEvent);
24305b261ecSmrgSWAPREP_PROC(SKeyButtonPtrEvent);
24405b261ecSmrgSWAPREP_PROC(SKeymapNotifyEvent);
24505b261ecSmrgSWAPREP_PROC(SMapNotifyEvent);
24605b261ecSmrgSWAPREP_PROC(SMapRequestEvent);
24705b261ecSmrgSWAPREP_PROC(SMappingEvent);
24805b261ecSmrgSWAPREP_PROC(SNoExposureEvent);
24905b261ecSmrgSWAPREP_PROC(SPropertyEvent);
25005b261ecSmrgSWAPREP_PROC(SReparentEvent);
25105b261ecSmrgSWAPREP_PROC(SResizeRequestEvent);
25205b261ecSmrgSWAPREP_PROC(SSelectionClearEvent);
25305b261ecSmrgSWAPREP_PROC(SSelectionNotifyEvent);
25405b261ecSmrgSWAPREP_PROC(SSelectionRequestEvent);
25505b261ecSmrgSWAPREP_PROC(SUnmapNotifyEvent);
25605b261ecSmrgSWAPREP_PROC(SVisibilityEvent);
25705b261ecSmrg
25805b261ecSmrg#undef SWAPREP_PROC
25905b261ecSmrg
26035c4bbdfSmrg#endif                          /* SWAPREP_H */
261