Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*
0002  * Copyright © 2007-2008 Peter Hutterer
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0020  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0021  * DEALINGS IN THE SOFTWARE.
0022  *
0023  * Authors: Peter Hutterer, University of South Australia, NICTA
0024  *
0025  */
0026 
0027 
0028 /* XGE Client interfaces */
0029 
0030 #ifndef _XGE_H_
0031 #define _XGE_H_
0032 
0033 #include <X11/Xlib.h>
0034 #include <X11/Xfuncproto.h>
0035 
0036 _XFUNCPROTOBEGIN
0037 
0038 /**
0039  * Generic Event mask.
0040  * To be used whenever a list of masks per extension has to be provided.
0041  *
0042  * But, don't actually use the CARD{8,16,32} types.  We can't get them them
0043  * defined here without polluting the namespace.
0044  */
0045 typedef struct {
0046     unsigned char       extension;
0047     unsigned char       pad0;
0048     unsigned short      pad1;
0049     unsigned int      evmask;
0050 } XGenericEventMask;
0051 
0052 Bool XGEQueryExtension(Display* dpy, int *event_basep, int *err_basep);
0053 Bool XGEQueryVersion(Display* dpy, int *major, int* minor);
0054 
0055 _XFUNCPROTOEND
0056 
0057 #endif /* _XGE_H_ */