1
/* $XFree86: xc/include/Xdefs.h,v 1.2 1999/08/22 06:21:20 dawes Exp $ */
3
/***********************************************************
5
Copyright (c) 1999 The XFree86 Project Inc.
9
The above copyright notice and this permission notice shall be included in
10
all copies or substantial portions of the Software.
12
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
16
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
Except as contained in this notice, the name of The XFree86 Project
20
Inc. shall not be used in advertising or otherwise to promote the
21
sale, use or other dealings in this Software without prior written
22
authorization from The XFree86 Project Inc..
27
** Types definitions shared between server and clients
37
#ifndef _XTYPEDEF_ATOM
38
# define _XTYPEDEF_ATOM
40
typedef unsigned long Atom;
47
# ifndef _XTYPEDEF_BOOL
48
# define _XTYPEDEF_BOOL
53
#ifndef _XTYPEDEF_POINTER
54
# define _XTYPEDEF_POINTER
55
typedef void *pointer;
58
#ifndef _XTYPEDEF_CLIENTPTR
59
typedef struct _Client *ClientPtr;
60
# define _XTYPEDEF_CLIENTPTR
64
# define _XTYPEDEF_XID
66
typedef unsigned long XID;
72
#ifndef _XTYPEDEF_MASK
73
# define _XTYPEDEF_MASK
75
typedef unsigned long Mask;
81
#ifndef _XTYPEDEF_FONTPTR
82
# define _XTYPEDEF_FONTPTR
83
typedef struct _Font *FontPtr; /* also in fonts/include/font.h */
86
#ifndef _XTYPEDEF_FONT
87
# define _XTYPEDEF_FONT
91
#ifndef _XTYPEDEF_FSID
93
typedef unsigned long FSID;
99
typedef FSID AccContext;
101
/* OS independent time value
102
XXX Should probably go in Xos.h */
103
typedef struct timeval **OSTimePtr;
106
typedef void (* BlockHandlerProcPtr)(pointer /* blockData */,
107
OSTimePtr /* pTimeout */,
108
pointer /* pReadmask */);