Debian Codegraph @

nx-X11/include/Xdefs.h

raw
1
2 /***********************************************************
3
4 Copyright (c) 1999 The XFree86 Project Inc.
5
6 All Rights Reserved.
7
8 The above copyright notice and this permission notice shall be included in
9 all copies or substantial portions of the Software.
10
11 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
15 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
18 Except as contained in this notice, the name of The XFree86 Project
19 Inc. shall not be used in advertising or otherwise to promote the
20 sale, use or other dealings in this Software without prior written
21 authorization from The XFree86 Project Inc..
22
23 */
24
25 /**
26 ** Types definitions shared between server and clients
27 **/
28
29 #ifndef _XDEFS_H
30 #define _XDEFS_H
31
32 #ifdef _XSERVER64
33 #include <nx-X11/Xmd.h>
34 #endif
35
36 #ifndef _XTYPEDEF_ATOM
37 # define _XTYPEDEF_ATOM
38 # ifndef _XSERVER64
39 typedef unsigned long Atom;
40 # else
41 typedef CARD32 Atom;
42 # endif
43 #endif
44
45 #ifndef Bool
46 # ifndef _XTYPEDEF_BOOL
47 # define _XTYPEDEF_BOOL
48 typedef int Bool;
49 # endif
50 #endif
51
52 #ifndef _XTYPEDEF_POINTER
53 # define _XTYPEDEF_POINTER
54 typedef void *pointer;
55 #endif
56
57 #ifndef _XTYPEDEF_CLIENTPTR
58 typedef struct _Client *ClientPtr;
59 # define _XTYPEDEF_CLIENTPTR
60 #endif
61
62 #ifndef _XTYPEDEF_XID
63 # define _XTYPEDEF_XID
64 # ifndef _XSERVER64
65 typedef unsigned long XID;
66 # else
67 typedef CARD32 XID;
68 # endif
69 #endif
70
71 #ifndef _XTYPEDEF_MASK
72 # define _XTYPEDEF_MASK
73 # ifndef _XSERVER64
74 typedef unsigned long Mask;
75 # else
76 typedef CARD32 Mask;
77 # endif
78 #endif
79
80 #ifndef _XTYPEDEF_FONTPTR
81 # define _XTYPEDEF_FONTPTR
82 typedef struct _Font *FontPtr; /* also in fonts/include/font.h */
83 #endif
84
85 #ifndef _XTYPEDEF_FONT
86 # define _XTYPEDEF_FONT
87 typedef XID Font;
88 #endif
89
90 #ifndef _XTYPEDEF_FSID
91 # ifndef _XSERVER64
92 typedef unsigned long FSID;
93 # else
94 typedef CARD32 FSID;
95 # endif
96 #endif
97
98 typedef FSID AccContext;
99
100 /* OS independant time value
101 XXX Should probably go in Xos.h */
102 typedef struct timeval **OSTimePtr;
103
104
105 typedef void (* BlockHandlerProcPtr)(void * /* blockData */,
106 OSTimePtr /* pTimeout */,
107 void * /* pReadmask */);
108
109 #endif