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