]> git.sesse.net Git - rdpsrv/blob - Xserver/include/fonts/FS.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / fonts / FS.h
1 /* $TOG: FS.h /main/9 1997/06/13 13:01:10 barstow $ */
2
3 /*
4  * Copyright 1990, 1991 Network Computing Devices;
5  * Portions Copyright 1987 by Digital Equipment Corporation 
6  *
7  * Permission to use, copy, modify, distribute, and sell this software and
8  * its documentation for any purpose is hereby granted without fee, provided
9  * that the above copyright notice appear in all copies and that both that
10  * copyright notice and this permission notice appear in supporting
11  * documentation, and that the names of Network Computing Devices or Digital
12  * not be used in advertising or publicity pertaining to distribution
13  * of the software without specific, written prior permission.
14  * Network Computing Devices and Digital make no representations 
15  * about the suitability of this software for any purpose.  It is provided 
16  * "as is" without express or implied warranty.
17  *
18  * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH
19  * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
21  * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
22  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
23  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
24  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
25  * THIS SOFTWARE.
26  */
27
28 /*
29
30 Portions Copyright (c) 1987, 1994  X Consortium
31
32 Permission is hereby granted, free of charge, to any person obtaining a copy
33 of this software and associated documentation files (the "Software"), to deal
34 in the Software without restriction, including without limitation the rights
35 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36 copies of the Software, and to permit persons to whom the Software is
37 furnished to do so, subject to the following conditions:
38
39 The above copyright notice and this permission notice shall be included in
40 all copies or substantial portions of the Software.
41
42 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
45 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
46 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
47 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48
49 Except as contained in this notice, the name of the X Consortium shall not be
50 used in advertising or otherwise to promote the sale, use or other dealings
51 in this Software without prior written authorization from the X Consortium.
52
53 */
54
55 #ifndef _FS_H_
56 #define _FS_H_
57
58 #include "fsmasks.h"
59
60 #define FS_PROTOCOL             2
61 #define FS_PROTOCOL_MINOR       0
62
63 typedef unsigned long FSID;
64
65 #ifndef X_PROTOCOL
66 /* protocol familes */
67 #define FamilyInternet          0
68 #define FamilyDECnet            1
69 #define FamilyChaos             2
70
71 typedef unsigned long Mask;
72
73 typedef FSID    Font;
74 typedef FSID    AccContext;
75
76 typedef unsigned int    FSDrawDirection;
77 #endif
78
79 #ifndef None
80 #define None            0L
81 #endif
82
83 #define LeftToRightDrawDirection        0
84 #define RightToLeftDrawDirection        1
85
86 /* font info flags */
87 #define FontInfoAllCharsExist           (1L << 0)
88 #define FontInfoInkInside               (1L << 1)
89 #define FontInfoHorizontalOverlap       (1L << 2)
90
91 /* auth status flags */
92 #define AuthSuccess     0
93 #define AuthContinue    1
94 #define AuthBusy        2
95 #define AuthDenied      3
96
97 /* property types */
98 #define PropTypeString          0
99 #define PropTypeUnsigned        1
100 #define PropTypeSigned          2
101
102 #ifndef LSBFirst
103 /* byte order */
104 #define LSBFirst                0
105 #define MSBFirst                1
106 #endif
107
108 /* event masks */
109 #define CatalogueChangeNotifyMask       (1L << 0)
110 #define FontChangeNotifyMask            (1L << 1)
111
112 /* errors */
113 #define FSSuccess               -1
114 #define FSBadRequest            0
115 #define FSBadFormat             1
116 #define FSBadFont               2
117 #define FSBadRange              3
118 #define FSBadEventMask          4
119 #define FSBadAccessContext      5
120 #define FSBadIDChoice           6
121 #define FSBadName               7
122 #define FSBadResolution         8
123 #define FSBadAlloc              9
124 #define FSBadLength             10
125 #define FSBadImplementation     11
126
127 #define FirstExtensionError     128
128 #define LastExtensionError      255
129
130 /* events */
131 #define KeepAlive               0
132 #define CatalogueChangeNotify   1
133 #define FontChangeNotify        2
134 #define FSLASTEvent             3
135
136 #endif                          /* _FS_H_ */