1bbe1b32bSmrg/************************************************************
2bbe1b32bSmrg
3bbe1b32bSmrgCopyright 1998 by Thomas E. Dickey <dickey@clark.net>
4bbe1b32bSmrg
5bbe1b32bSmrg                        All Rights Reserved
6bbe1b32bSmrg
7bbe1b32bSmrgPermission to use, copy, modify, and distribute this software and its
8bbe1b32bSmrgdocumentation for any purpose and without fee is hereby granted,
9bbe1b32bSmrgprovided that the above copyright notice appear in all copies and that
10bbe1b32bSmrgboth that copyright notice and this permission notice appear in
11bbe1b32bSmrgsupporting documentation, and that the name of the above listed
12bbe1b32bSmrgcopyright holder(s) not be used in advertising or publicity pertaining
13bbe1b32bSmrgto distribution of the software without specific, written prior
14bbe1b32bSmrgpermission.
15bbe1b32bSmrg
16bbe1b32bSmrgTHE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
17bbe1b32bSmrgTO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18bbe1b32bSmrgAND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
19bbe1b32bSmrgLIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20bbe1b32bSmrgWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21bbe1b32bSmrgACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22bbe1b32bSmrgOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23bbe1b32bSmrg
24bbe1b32bSmrg********************************************************/
25bbe1b32bSmrg
26bbe1b32bSmrg/*
27bbe1b32bSmrg * difs/swaprep.c -- font server reply swapping
28bbe1b32bSmrg */
29bbe1b32bSmrg
30bbe1b32bSmrg
31bbe1b32bSmrg#ifndef _SWAPREP_H_
32bbe1b32bSmrg#define _SWAPREP_H_ 1
33bbe1b32bSmrg
34bbe1b32bSmrg#include	<misc.h>
35bbe1b32bSmrg
36bbe1b32bSmrgextern void CopySwap16Write (ClientPtr client, int size, short *pbuf);
37bbe1b32bSmrgextern void CopySwap32Write (ClientPtr client, int size, long *pbuf);
38bbe1b32bSmrgextern void SCreateACReply (ClientPtr client, int size, void * data);
39bbe1b32bSmrgextern void SErrorEvent (fsError *error, fsError *perror);
40bbe1b32bSmrgextern void SGenericReply (ClientPtr client, int size, void * data);
41bbe1b32bSmrgextern void SGetEventMaskReply (ClientPtr client, int size, void * data);
42bbe1b32bSmrgextern void SGetResolutionReply (ClientPtr client, int size, void * data);
43bbe1b32bSmrgextern void SListCataloguesReply (ClientPtr client, int size, void * data);
44bbe1b32bSmrgextern void SListExtensionsReply (ClientPtr client, int size, void * data);
45bbe1b32bSmrgextern void SListFontsReply (ClientPtr client, int size, void * data);
46bbe1b32bSmrgextern void SListFontsWithXInfoReply (ClientPtr client, int size, void * data);
47bbe1b32bSmrgextern void SOpenBitmapFontReply (ClientPtr client, int size, void * data);
48bbe1b32bSmrgextern void SQueryExtensionReply (ClientPtr client, int size, void * data);
49bbe1b32bSmrgextern void SQueryXBitmapsReply (ClientPtr client, int size, void * data);
50bbe1b32bSmrgextern void SQueryXExtentsReply (ClientPtr client, int size, void * data);
51bbe1b32bSmrgextern void SQueryXInfoReply (ClientPtr client, int size, void * data);
52bbe1b32bSmrgextern void Swap16Write (ClientPtr client, int size, short *pbuf);
53bbe1b32bSmrgextern void Swap32Write (ClientPtr client, int size, long *pbuf);
54bbe1b32bSmrgextern void SwapExtents (fsXCharInfo *extents, int num);
55bbe1b32bSmrgextern void SwapPropInfo (fsPropInfo *pi);
56bbe1b32bSmrgextern void WriteSConnSetup (ClientPtr client, fsConnSetup *pcsp);
57bbe1b32bSmrgextern void WriteSConnectionInfo (ClientPtr client, unsigned long size, char *pInfo);
58bbe1b32bSmrg
59bbe1b32bSmrg#endif /* _SWAPREP_H_ */
60