117ca54c3Smrg/*
217ca54c3Smrg * Copyright 1990, 1991 Network Computing Devices;
3ea1d6981Smrg * Portions Copyright 1987 by Digital Equipment Corporation
417ca54c3Smrg *
517ca54c3Smrg * Permission to use, copy, modify, distribute, and sell this software and
617ca54c3Smrg * its documentation for any purpose is hereby granted without fee, provided
717ca54c3Smrg * that the above copyright notice appear in all copies and that both that
817ca54c3Smrg * copyright notice and this permission notice appear in supporting
917ca54c3Smrg * documentation, and that the names of Network Computing Devices or Digital
1017ca54c3Smrg * not be used in advertising or publicity pertaining to distribution
1117ca54c3Smrg * of the software without specific, written prior permission.
12ea1d6981Smrg * Network Computing Devices and Digital make no representations
13ea1d6981Smrg * about the suitability of this software for any purpose.  It is provided
1417ca54c3Smrg * "as is" without express or implied warranty.
1517ca54c3Smrg *
1617ca54c3Smrg * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH
1717ca54c3Smrg * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
1817ca54c3Smrg * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
1917ca54c3Smrg * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
2017ca54c3Smrg * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
2117ca54c3Smrg * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
2217ca54c3Smrg * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
2317ca54c3Smrg * THIS SOFTWARE.
2417ca54c3Smrg */
2517ca54c3Smrg
2617ca54c3Smrg/*
2717ca54c3Smrg
2817ca54c3SmrgPortions Copyright 1987, 1994, 1998  The Open Group
2917ca54c3Smrg
3017ca54c3SmrgPermission to use, copy, modify, distribute, and sell this software and its
3117ca54c3Smrgdocumentation for any purpose is hereby granted without fee, provided that
3217ca54c3Smrgthe above copyright notice appear in all copies and that both that
3317ca54c3Smrgcopyright notice and this permission notice appear in supporting
3417ca54c3Smrgdocumentation.
3517ca54c3Smrg
3617ca54c3SmrgThe above copyright notice and this permission notice shall be included in
3717ca54c3Smrgall copies or substantial portions of the Software.
3817ca54c3Smrg
3917ca54c3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4017ca54c3SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4117ca54c3SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
4217ca54c3SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
4317ca54c3SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
4417ca54c3SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4517ca54c3Smrg
4617ca54c3SmrgExcept as contained in this notice, the name of The Open Group shall not be
4717ca54c3Smrgused in advertising or otherwise to promote the sale, use or other dealings
4817ca54c3Smrgin this Software without prior written authorization from The Open Group.
4917ca54c3Smrg
5017ca54c3Smrg*/
5117ca54c3Smrg
5217ca54c3Smrg#ifndef _FS_H_
5317ca54c3Smrg#define	_FS_H_
5417ca54c3Smrg
5517ca54c3Smrg#include <X11/Xdefs.h>
5617ca54c3Smrg#include <X11/fonts/fsmasks.h>
5717ca54c3Smrg
5817ca54c3Smrg#define	FS_PROTOCOL		2
5917ca54c3Smrg#define	FS_PROTOCOL_MINOR	0
6017ca54c3Smrg
6117ca54c3Smrg#ifndef X_PROTOCOL
62d63b911fSmrg/* protocol families */
6317ca54c3Smrg#define FamilyInternet          0
6417ca54c3Smrg#define FamilyDECnet            1
6517ca54c3Smrg#define FamilyChaos             2
6617ca54c3Smrg#define FamilyInternet6         6
6717ca54c3Smrg
6817ca54c3Smrg
6917ca54c3Smrgtypedef unsigned int    FSDrawDirection;
7017ca54c3Smrg#endif
7117ca54c3Smrg
7217ca54c3Smrg#ifndef None
7317ca54c3Smrg#define	None		0L
7417ca54c3Smrg#endif
7517ca54c3Smrg
7617ca54c3Smrg#define	LeftToRightDrawDirection	0
7717ca54c3Smrg#define	RightToLeftDrawDirection	1
7817ca54c3Smrg
7917ca54c3Smrg/* font info flags */
8017ca54c3Smrg#define	FontInfoAllCharsExist		(1L << 0)
8117ca54c3Smrg#define	FontInfoInkInside		(1L << 1)
8217ca54c3Smrg#define	FontInfoHorizontalOverlap	(1L << 2)
8317ca54c3Smrg
8417ca54c3Smrg/* auth status flags */
8517ca54c3Smrg#define	AuthSuccess	0
8617ca54c3Smrg#define	AuthContinue	1
8717ca54c3Smrg#define	AuthBusy	2
8817ca54c3Smrg#define	AuthDenied	3
8917ca54c3Smrg
9017ca54c3Smrg/* property types */
9117ca54c3Smrg#define	PropTypeString		0
9217ca54c3Smrg#define	PropTypeUnsigned	1
9317ca54c3Smrg#define	PropTypeSigned		2
9417ca54c3Smrg
9517ca54c3Smrg#ifndef LSBFirst
9617ca54c3Smrg/* byte order */
9717ca54c3Smrg#define LSBFirst                0
9817ca54c3Smrg#define MSBFirst                1
9917ca54c3Smrg#endif
10017ca54c3Smrg
10117ca54c3Smrg/* event masks */
10217ca54c3Smrg#define	CatalogueChangeNotifyMask	(1L << 0)
10317ca54c3Smrg#define	FontChangeNotifyMask		(1L << 1)
10417ca54c3Smrg
10517ca54c3Smrg/* errors */
10617ca54c3Smrg#define	FSSuccess		-1
10717ca54c3Smrg#define	FSBadRequest		0
10817ca54c3Smrg#define	FSBadFormat		1
10917ca54c3Smrg#define	FSBadFont		2
11017ca54c3Smrg#define	FSBadRange		3
11117ca54c3Smrg#define	FSBadEventMask		4
11217ca54c3Smrg#define	FSBadAccessContext	5
11317ca54c3Smrg#define	FSBadIDChoice		6
11417ca54c3Smrg#define	FSBadName		7
11517ca54c3Smrg#define	FSBadResolution		8
11617ca54c3Smrg#define	FSBadAlloc		9
11717ca54c3Smrg#define	FSBadLength		10
11817ca54c3Smrg#define	FSBadImplementation	11
11917ca54c3Smrg
12017ca54c3Smrg#define	FirstExtensionError	128
12117ca54c3Smrg#define	LastExtensionError	255
12217ca54c3Smrg
12317ca54c3Smrg/* events */
12417ca54c3Smrg#define	KeepAlive		0
12517ca54c3Smrg#define	CatalogueChangeNotify	1
12617ca54c3Smrg#define	FontChangeNotify	2
12717ca54c3Smrg#define FSLASTEvent		3
12817ca54c3Smrg
12917ca54c3Smrg#endif				/* _FS_H_ */
130