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