1 /* $XConsortium: XGasP.h,v 1.1 91/04/18 09:49:00 dave Exp $ */ 2 3 /* Copyright Massachusetts Institute of Technology 1987, 1988 4 * 5 * Permission to use, copy, modify, distribute, and sell this software and its 6 * documentation for any purpose is hereby granted without fee, provided that 7 * the above copyright notice appear in all copies and that both that 8 * copyright notice and this permission notice appear in supporting 9 * documentation, and that the name of M.I.T. not be used in advertising or 10 * publicity pertaining to distribution of the software without specific, 11 * written prior permission. M.I.T. makes no representations about the 12 * suitability of this software for any purpose. It is provided "as is" 13 * without express or implied warranty. 14 * 15 * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. 17 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 19 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 20 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 21 * 22 */ 23 24 #ifndef _GasP_h 25 #define _GasP_h 26 27 #include "XGas.h" 28 /* include superclass private header file */ 29 #include <X11/CoreP.h> 30 31 /* define unique representation types not found in <X11/StringDefs.h> */ 32 33 #define XtRGasResource "GasResource" 34 35 typedef struct { 36 int empty; 37 } GasClassPart; 38 39 typedef struct _GasClassRec { 40 CoreClassPart core_class; 41 GasClassPart gas_class; 42 } GasClassRec; 43 44 extern GasClassRec gasClassRec; 45 46 typedef struct { 47 /* resources */ 48 char* resource; 49 XtCallbackList resize; 50 /* private state */ 51 } GasPart; 52 53 typedef struct _GasRec { 54 CorePart core; 55 GasPart gas; 56 } GasRec; 57 58 #endif /* _GasP_h */ 59