Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:32

0001 /***********************************************************
0002 
0003 Copyright (c) 1999  The XFree86 Project Inc.
0004 
0005 All Rights Reserved.
0006 
0007 The above copyright notice and this permission notice shall be included in
0008 all copies or substantial portions of the Software.
0009 
0010 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0011 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0012 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0013 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0014 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0015 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0016 
0017 Except as contained in this notice, the name of The XFree86 Project
0018 Inc. shall not be used in advertising or otherwise to promote the
0019 sale, use or other dealings in this Software without prior written
0020 authorization from The XFree86 Project Inc..
0021 
0022 */
0023 
0024 /**
0025  ** Types definitions shared between server and clients 
0026  **/
0027 
0028 #ifndef _XDEFS_H
0029 #define _XDEFS_H
0030 
0031 #ifdef _XSERVER64
0032 #include <X11/Xmd.h>
0033 #endif 
0034 
0035 #ifndef _XTYPEDEF_ATOM
0036 #  define _XTYPEDEF_ATOM
0037 #  ifndef _XSERVER64
0038 typedef unsigned long Atom;
0039 #  else
0040 typedef CARD32 Atom;
0041 #  endif
0042 #endif
0043 
0044 #ifndef Bool
0045 #  ifndef _XTYPEDEF_BOOL
0046 #   define _XTYPEDEF_BOOL
0047 typedef int Bool;
0048 #  endif
0049 #endif
0050 
0051 #ifndef _XTYPEDEF_POINTER
0052 #  define _XTYPEDEF_POINTER
0053 typedef void *pointer;
0054 #endif
0055 
0056 #ifndef _XTYPEDEF_CLIENTPTR
0057 typedef struct _Client *ClientPtr;
0058 #  define _XTYPEDEF_CLIENTPTR
0059 #endif
0060 
0061 #ifndef _XTYPEDEF_XID
0062 #  define _XTYPEDEF_XID
0063 #  ifndef _XSERVER64
0064 typedef unsigned long XID;
0065 #  else
0066 typedef CARD32 XID;
0067 #  endif
0068 #endif
0069 
0070 #ifndef _XTYPEDEF_MASK
0071 #  define _XTYPEDEF_MASK
0072 #  ifndef _XSERVER64
0073 typedef unsigned long Mask;
0074 #  else
0075 typedef CARD32 Mask;
0076 #  endif
0077 #endif
0078 
0079 #ifndef _XTYPEDEF_FONTPTR
0080 #  define _XTYPEDEF_FONTPTR
0081 typedef struct _Font *FontPtr; /* also in fonts/include/font.h */
0082 #endif
0083 
0084 #ifndef _XTYPEDEF_FONT
0085 #  define _XTYPEDEF_FONT
0086 typedef XID Font;
0087 #endif
0088 
0089 #ifndef _XTYPEDEF_FSID
0090 #  ifndef _XSERVER64
0091 typedef unsigned long FSID;
0092 #  else
0093 typedef CARD32 FSID;
0094 #  endif
0095 #endif
0096 
0097 typedef FSID AccContext;
0098 
0099 /* OS independent time value 
0100    XXX Should probably go in Xos.h */
0101 typedef struct timeval **OSTimePtr;
0102 
0103 
0104 typedef void (* BlockHandlerProcPtr)(void * /* blockData */,
0105                      OSTimePtr /* pTimeout */,
0106                      void * /* pReadmask */);
0107 
0108 #endif