diff options
| author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-05-09 16:52:15 +0000 |
|---|---|---|
| committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-05-09 16:52:15 +0000 |
| commit | 3bd8b94fbb6a6ac0979ec3193e6985cd060a9a19 (patch) | |
| tree | ed4f7237de0a59b115f1fa78c83b7f4871f5cded /meta | |
| parent | 6bc938582faf835bbaca71522b932fb21649bd50 (diff) | |
| download | poky-3bd8b94fbb6a6ac0979ec3193e6985cd060a9a19.tar.gz | |
xorg-headers-native: added
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1673 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
75 files changed, 27907 insertions, 0 deletions
diff --git a/meta/packages/xorg-lib/xorg-headers-native.bb b/meta/packages/xorg-lib/xorg-headers-native.bb new file mode 100644 index 0000000000..f88bcc7aee --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | inherit native | ||
| 2 | |||
| 3 | SRC_URI = "file://X11" | ||
| 4 | |||
| 5 | do_stage() { | ||
| 6 | install -d ${STAGING_INCDIR} | ||
| 7 | cp -pPfR ${WORKDIR}/X11 ${STAGING_INCDIR} | ||
| 8 | } | ||
| 9 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/CallbackI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/CallbackI.h new file mode 100644 index 0000000000..4ae08ab019 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/CallbackI.h | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | /* $Xorg: CallbackI.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | /*********************************************************** | ||
| 3 | |||
| 4 | Copyright 1987, 1988, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | |||
| 26 | |||
| 27 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 28 | |||
| 29 | All Rights Reserved | ||
| 30 | |||
| 31 | Permission to use, copy, modify, and distribute this software and its | ||
| 32 | documentation for any purpose and without fee is hereby granted, | ||
| 33 | provided that the above copyright notice appear in all copies and that | ||
| 34 | both that copyright notice and this permission notice appear in | ||
| 35 | supporting documentation, and that the name of Digital not be | ||
| 36 | used in advertising or publicity pertaining to distribution of the | ||
| 37 | software without specific, written prior permission. | ||
| 38 | |||
| 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 45 | SOFTWARE. | ||
| 46 | |||
| 47 | ******************************************************************/ | ||
| 48 | /* $XFree86$ */ | ||
| 49 | |||
| 50 | /**************************************************************** | ||
| 51 | * | ||
| 52 | * Callbacks | ||
| 53 | * | ||
| 54 | ****************************************************************/ | ||
| 55 | |||
| 56 | typedef XrmResource **CallbackTable; | ||
| 57 | |||
| 58 | #define _XtCBCalling 1 | ||
| 59 | #define _XtCBFreeAfterCalling 2 | ||
| 60 | |||
| 61 | typedef struct internalCallbackRec { | ||
| 62 | unsigned short count; | ||
| 63 | char is_padded; /* contains NULL padding for external form */ | ||
| 64 | char call_state; /* combination of _XtCB{FreeAfter}Calling */ | ||
| 65 | #ifdef LONG64 | ||
| 66 | unsigned int align_pad; /* padding to align callback list */ | ||
| 67 | #endif | ||
| 68 | /* XtCallbackList */ | ||
| 69 | } InternalCallbackRec, *InternalCallbackList; | ||
| 70 | |||
| 71 | typedef Boolean (*_XtConditionProc)( | ||
| 72 | XtPointer /* data */ | ||
| 73 | ); | ||
| 74 | |||
| 75 | extern void _XtAddCallback( | ||
| 76 | InternalCallbackList* /* callbacks */, | ||
| 77 | XtCallbackProc /* callback */, | ||
| 78 | XtPointer /* closure */ | ||
| 79 | ); | ||
| 80 | |||
| 81 | extern void _XtAddCallbackOnce( | ||
| 82 | InternalCallbackList* /* callbacks */, | ||
| 83 | XtCallbackProc /* callback */, | ||
| 84 | XtPointer /* closure */ | ||
| 85 | ); | ||
| 86 | |||
| 87 | extern InternalCallbackList _XtCompileCallbackList( | ||
| 88 | XtCallbackList /* xtcallbacks */ | ||
| 89 | ); | ||
| 90 | |||
| 91 | extern XtCallbackList _XtGetCallbackList( | ||
| 92 | InternalCallbackList* /* callbacks */ | ||
| 93 | ); | ||
| 94 | |||
| 95 | extern void _XtRemoveAllCallbacks( | ||
| 96 | InternalCallbackList* /* callbacks */ | ||
| 97 | ); | ||
| 98 | |||
| 99 | extern void _XtRemoveCallback( | ||
| 100 | InternalCallbackList* /* callbacks */, | ||
| 101 | XtCallbackProc /* callback */, | ||
| 102 | XtPointer /* closure */ | ||
| 103 | ); | ||
| 104 | |||
| 105 | extern void _XtPeekCallback( | ||
| 106 | Widget /* widget */, | ||
| 107 | XtCallbackList /* callbacks */, | ||
| 108 | XtCallbackProc * /* callback */, | ||
| 109 | XtPointer * /* closure */ | ||
| 110 | ); | ||
| 111 | |||
| 112 | extern void _XtCallConditionalCallbackList( | ||
| 113 | Widget /* widget */, | ||
| 114 | XtCallbackList /* callbacks */, | ||
| 115 | XtPointer /* call_data */, | ||
| 116 | _XtConditionProc /* cond_proc */ | ||
| 117 | ); | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Composite.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Composite.h new file mode 100644 index 0000000000..0a58332be5 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Composite.h | |||
| @@ -0,0 +1,105 @@ | |||
| 1 | /* $Xorg: Composite.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86$ */ | ||
| 50 | |||
| 51 | #ifndef _XtComposite_h | ||
| 52 | #define _XtComposite_h | ||
| 53 | |||
| 54 | typedef struct _CompositeClassRec *CompositeWidgetClass; | ||
| 55 | |||
| 56 | typedef Cardinal (*XtOrderProc)( | ||
| 57 | Widget /* child */ | ||
| 58 | ); | ||
| 59 | |||
| 60 | _XFUNCPROTOBEGIN | ||
| 61 | |||
| 62 | extern void XtManageChildren( | ||
| 63 | WidgetList /* children */, | ||
| 64 | Cardinal /* num_children */ | ||
| 65 | ); | ||
| 66 | |||
| 67 | extern void XtManageChild( | ||
| 68 | Widget /* child */ | ||
| 69 | ); | ||
| 70 | |||
| 71 | extern void XtUnmanageChildren( | ||
| 72 | WidgetList /* children */, | ||
| 73 | Cardinal /* num_children */ | ||
| 74 | ); | ||
| 75 | |||
| 76 | extern void XtUnmanageChild( | ||
| 77 | Widget /* child */ | ||
| 78 | ); | ||
| 79 | |||
| 80 | typedef void (*XtDoChangeProc)( | ||
| 81 | Widget /* composite_parent */, | ||
| 82 | WidgetList /* unmanage_children */, | ||
| 83 | Cardinal * /* num_unmanage_children */, | ||
| 84 | WidgetList /* manage_children */, | ||
| 85 | Cardinal * /* num_manage_children */, | ||
| 86 | XtPointer /* client_data */ | ||
| 87 | ); | ||
| 88 | |||
| 89 | extern void XtChangeManagedSet( | ||
| 90 | WidgetList /* unmanage_children */, | ||
| 91 | Cardinal /* num_unmanage_children */, | ||
| 92 | XtDoChangeProc /* do_change_proc */, | ||
| 93 | XtPointer /* client_data */, | ||
| 94 | WidgetList /* manage_children */, | ||
| 95 | Cardinal /* num_manage_children */ | ||
| 96 | ); | ||
| 97 | |||
| 98 | _XFUNCPROTOEND | ||
| 99 | |||
| 100 | #ifndef XT_COMPOSITE | ||
| 101 | externalref WidgetClass compositeWidgetClass; | ||
| 102 | #endif | ||
| 103 | |||
| 104 | #endif /* _XtComposite_h */ | ||
| 105 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/CompositeP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/CompositeP.h new file mode 100644 index 0000000000..ed055b21fa --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/CompositeP.h | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | /* $Xorg: CompositeP.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtCompositeP_h | ||
| 51 | #define _XtCompositeP_h | ||
| 52 | |||
| 53 | #include <X11/Composite.h> | ||
| 54 | |||
| 55 | /************************************************************************ | ||
| 56 | * | ||
| 57 | * Additional instance fields for widgets of (sub)class 'Composite' | ||
| 58 | * | ||
| 59 | ************************************************************************/ | ||
| 60 | |||
| 61 | typedef struct _CompositePart { | ||
| 62 | WidgetList children; /* array of ALL widget children */ | ||
| 63 | Cardinal num_children; /* total number of widget children */ | ||
| 64 | Cardinal num_slots; /* number of slots in children array */ | ||
| 65 | XtOrderProc insert_position; /* compute position of new child */ | ||
| 66 | } CompositePart,*CompositePtr; | ||
| 67 | |||
| 68 | typedef struct _CompositeRec { | ||
| 69 | CorePart core; | ||
| 70 | CompositePart composite; | ||
| 71 | } CompositeRec; | ||
| 72 | |||
| 73 | /********************************************************************* | ||
| 74 | * | ||
| 75 | * Additional class fields for widgets of (sub)class 'Composite' | ||
| 76 | * | ||
| 77 | ********************************************************************/ | ||
| 78 | |||
| 79 | typedef struct _CompositeClassPart { | ||
| 80 | XtGeometryHandler geometry_manager; /* geometry manager for children */ | ||
| 81 | XtWidgetProc change_managed; /* change managed state of child */ | ||
| 82 | XtWidgetProc insert_child; /* physically add child to parent */ | ||
| 83 | XtWidgetProc delete_child; /* physically remove child */ | ||
| 84 | XtPointer extension; /* pointer to extension record */ | ||
| 85 | } CompositeClassPart,*CompositePartPtr; | ||
| 86 | |||
| 87 | typedef struct { | ||
| 88 | XtPointer next_extension; /* 1st 4 mandated for all extension records */ | ||
| 89 | XrmQuark record_type; /* NULLQUARK; on CompositeClassPart */ | ||
| 90 | long version; /* must be XtCompositeExtensionVersion */ | ||
| 91 | Cardinal record_size; /* sizeof(CompositeClassExtensionRec) */ | ||
| 92 | Boolean accepts_objects; | ||
| 93 | Boolean allows_change_managed_set; | ||
| 94 | } CompositeClassExtensionRec, *CompositeClassExtension; | ||
| 95 | |||
| 96 | |||
| 97 | typedef struct _CompositeClassRec { | ||
| 98 | CoreClassPart core_class; | ||
| 99 | CompositeClassPart composite_class; | ||
| 100 | } CompositeClassRec; | ||
| 101 | |||
| 102 | externalref CompositeClassRec compositeClassRec; | ||
| 103 | |||
| 104 | #define XtCompositeExtensionVersion 2L | ||
| 105 | #define XtInheritGeometryManager ((XtGeometryHandler) _XtInherit) | ||
| 106 | #define XtInheritChangeManaged ((XtWidgetProc) _XtInherit) | ||
| 107 | #define XtInheritInsertChild ((XtWidgetProc) _XtInherit) | ||
| 108 | #define XtInheritDeleteChild ((XtWidgetProc) _XtInherit) | ||
| 109 | |||
| 110 | #endif /* _XtCompositeP_h */ | ||
| 111 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ConstrainP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ConstrainP.h new file mode 100644 index 0000000000..a90d19ac6c --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ConstrainP.h | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | /* $Xorg: ConstrainP.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: ConstrainP.h,v 1.2 88/08/18 15:54:15 asente Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtConstraintP_h | ||
| 51 | #define _XtConstraintP_h | ||
| 52 | |||
| 53 | #include <X11/Constraint.h> | ||
| 54 | |||
| 55 | typedef struct _ConstraintPart { | ||
| 56 | XtPointer mumble; /* No new fields, keep C compiler happy */ | ||
| 57 | } ConstraintPart; | ||
| 58 | |||
| 59 | typedef struct _ConstraintRec { | ||
| 60 | CorePart core; | ||
| 61 | CompositePart composite; | ||
| 62 | ConstraintPart constraint; | ||
| 63 | } ConstraintRec, *ConstraintWidget; | ||
| 64 | |||
| 65 | typedef struct _ConstraintClassPart { | ||
| 66 | XtResourceList resources; /* constraint resource list */ | ||
| 67 | Cardinal num_resources; /* number of constraints in list */ | ||
| 68 | Cardinal constraint_size; /* size of constraint record */ | ||
| 69 | XtInitProc initialize; /* constraint initialization */ | ||
| 70 | XtWidgetProc destroy; /* constraint destroy proc */ | ||
| 71 | XtSetValuesFunc set_values; /* constraint set_values proc */ | ||
| 72 | XtPointer extension; /* pointer to extension record */ | ||
| 73 | } ConstraintClassPart; | ||
| 74 | |||
| 75 | typedef struct { | ||
| 76 | XtPointer next_extension; /* 1st 4 mandated for all extension records */ | ||
| 77 | XrmQuark record_type; /* NULLQUARK; on ConstraintClassPart */ | ||
| 78 | long version; /* must be XtConstraintExtensionVersion */ | ||
| 79 | Cardinal record_size; /* sizeof(ConstraintClassExtensionRec) */ | ||
| 80 | XtArgsProc get_values_hook; | ||
| 81 | } ConstraintClassExtensionRec, *ConstraintClassExtension; | ||
| 82 | |||
| 83 | typedef struct _ConstraintClassRec { | ||
| 84 | CoreClassPart core_class; | ||
| 85 | CompositeClassPart composite_class; | ||
| 86 | ConstraintClassPart constraint_class; | ||
| 87 | } ConstraintClassRec; | ||
| 88 | |||
| 89 | externalref ConstraintClassRec constraintClassRec; | ||
| 90 | |||
| 91 | #define XtConstraintExtensionVersion 1L | ||
| 92 | |||
| 93 | #endif /* _XtConstraintP_h */ | ||
| 94 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Constraint.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Constraint.h new file mode 100644 index 0000000000..9bb962e0d2 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Constraint.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* $Xorg: Constraint.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: Constraint.h,v 1.2 88/08/18 15:54:18 asente Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtConstraint_h | ||
| 51 | #define _XtConstraint_h | ||
| 52 | |||
| 53 | typedef struct _ConstraintClassRec *ConstraintWidgetClass; | ||
| 54 | |||
| 55 | #ifndef CONSTRAINT | ||
| 56 | externalref WidgetClass constraintWidgetClass; | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #endif /* _XtConstraint_h */ | ||
| 60 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ConvertI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ConvertI.h new file mode 100644 index 0000000000..02c0e5ca08 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ConvertI.h | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | /* $Xorg: ConvertI.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/ConvertI.h,v 1.3 2001/12/14 19:56:09 dawes Exp $ */ | ||
| 50 | |||
| 51 | /* Representation types */ | ||
| 52 | |||
| 53 | extern XrmQuark _XtQString; | ||
| 54 | |||
| 55 | /* | ||
| 56 | * Resource conversions | ||
| 57 | */ | ||
| 58 | |||
| 59 | typedef struct _ConverterRec **ConverterTable; | ||
| 60 | |||
| 61 | extern void _XtAddDefaultConverters( | ||
| 62 | ConverterTable /* table */ | ||
| 63 | ); | ||
| 64 | |||
| 65 | extern void _XtSetDefaultConverterTable( | ||
| 66 | ConverterTable* /* table */ | ||
| 67 | ); | ||
| 68 | |||
| 69 | extern void _XtFreeConverterTable( | ||
| 70 | ConverterTable /* table */ | ||
| 71 | ); | ||
| 72 | |||
| 73 | extern void _XtTableAddConverter( | ||
| 74 | ConverterTable /* table */, | ||
| 75 | XrmRepresentation /* from_type */, | ||
| 76 | XrmRepresentation /* to_type */, | ||
| 77 | XtTypeConverter /* converter */, | ||
| 78 | XtConvertArgList /* convert_args */, | ||
| 79 | Cardinal /* num_args */, | ||
| 80 | _XtBoolean /* new_style */, | ||
| 81 | XtCacheType /* cache_type */, | ||
| 82 | XtDestructor /* destructor */, | ||
| 83 | _XtBoolean /* global */ | ||
| 84 | ); | ||
| 85 | |||
| 86 | extern Boolean _XtConvert( | ||
| 87 | Widget /* widget */, | ||
| 88 | XrmRepresentation /* from_type */, | ||
| 89 | XrmValuePtr /* from */, | ||
| 90 | XrmRepresentation /* to_type */, | ||
| 91 | XrmValuePtr /* to */, | ||
| 92 | XtCacheRef* /* cache_ref_return */ | ||
| 93 | ); | ||
| 94 | |||
| 95 | void _XtConvertInitialize(void); | ||
| 96 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Core.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Core.h new file mode 100644 index 0000000000..ff6cb75356 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Core.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: Core.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ | ||
| 3 | * $oHeader: Core.h,v 1.2 88/08/18 15:54:32 asente Exp $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | /*********************************************************** | ||
| 7 | |||
| 8 | Copyright 1987, 1988, 1998 The Open Group | ||
| 9 | |||
| 10 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 11 | documentation for any purpose is hereby granted without fee, provided that | ||
| 12 | the above copyright notice appear in all copies and that both that | ||
| 13 | copyright notice and this permission notice appear in supporting | ||
| 14 | documentation. | ||
| 15 | |||
| 16 | The above copyright notice and this permission notice shall be included in | ||
| 17 | all copies or substantial portions of the Software. | ||
| 18 | |||
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 25 | |||
| 26 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 27 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 28 | in this Software without prior written authorization from The Open Group. | ||
| 29 | |||
| 30 | |||
| 31 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 32 | |||
| 33 | All Rights Reserved | ||
| 34 | |||
| 35 | Permission to use, copy, modify, and distribute this software and its | ||
| 36 | documentation for any purpose and without fee is hereby granted, | ||
| 37 | provided that the above copyright notice appear in all copies and that | ||
| 38 | both that copyright notice and this permission notice appear in | ||
| 39 | supporting documentation, and that the name of Digital not be | ||
| 40 | used in advertising or publicity pertaining to distribution of the | ||
| 41 | software without specific, written prior permission. | ||
| 42 | |||
| 43 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 44 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 45 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 46 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 47 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 48 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 49 | SOFTWARE. | ||
| 50 | |||
| 51 | ******************************************************************/ | ||
| 52 | |||
| 53 | #ifndef _XtCore_h | ||
| 54 | #define _XtCore_h | ||
| 55 | |||
| 56 | typedef struct _WidgetClassRec *CoreWidgetClass; | ||
| 57 | typedef struct _WidgetRec *CoreWidget; | ||
| 58 | externalref WidgetClass coreWidgetClass; | ||
| 59 | |||
| 60 | #ifndef _XT_CORE_C | ||
| 61 | externalref WidgetClass widgetClass; | ||
| 62 | |||
| 63 | #endif | ||
| 64 | |||
| 65 | #endif /* _XtCore_h */ | ||
| 66 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/CoreP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/CoreP.h new file mode 100644 index 0000000000..e07f085e6e --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/CoreP.h | |||
| @@ -0,0 +1,171 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: CoreP.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ | ||
| 3 | * $oHeader: CoreP.h,v 1.2 88/08/18 15:54:37 asente Exp $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | /*********************************************************** | ||
| 7 | |||
| 8 | Copyright 1987, 1988, 1998 The Open Group | ||
| 9 | |||
| 10 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 11 | documentation for any purpose is hereby granted without fee, provided that | ||
| 12 | the above copyright notice appear in all copies and that both that | ||
| 13 | copyright notice and this permission notice appear in supporting | ||
| 14 | documentation. | ||
| 15 | |||
| 16 | The above copyright notice and this permission notice shall be included in | ||
| 17 | all copies or substantial portions of the Software. | ||
| 18 | |||
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 25 | |||
| 26 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 27 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 28 | in this Software without prior written authorization from The Open Group. | ||
| 29 | |||
| 30 | |||
| 31 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 32 | |||
| 33 | All Rights Reserved | ||
| 34 | |||
| 35 | Permission to use, copy, modify, and distribute this software and its | ||
| 36 | documentation for any purpose and without fee is hereby granted, | ||
| 37 | provided that the above copyright notice appear in all copies and that | ||
| 38 | both that copyright notice and this permission notice appear in | ||
| 39 | supporting documentation, and that the name of Digital not be | ||
| 40 | used in advertising or publicity pertaining to distribution of the | ||
| 41 | software without specific, written prior permission. | ||
| 42 | |||
| 43 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 44 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 45 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 46 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 47 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 48 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 49 | SOFTWARE. | ||
| 50 | |||
| 51 | ******************************************************************/ | ||
| 52 | |||
| 53 | #ifndef XtCoreP_h | ||
| 54 | #define XtCoreP_h | ||
| 55 | |||
| 56 | #include <X11/Core.h> | ||
| 57 | |||
| 58 | externalref int _XtInheritTranslations; | ||
| 59 | |||
| 60 | #define XtInheritTranslations ((String) &_XtInheritTranslations) | ||
| 61 | #define XtInheritRealize ((XtRealizeProc) _XtInherit) | ||
| 62 | #define XtInheritResize ((XtWidgetProc) _XtInherit) | ||
| 63 | #define XtInheritExpose ((XtExposeProc) _XtInherit) | ||
| 64 | #define XtInheritSetValuesAlmost ((XtAlmostProc) _XtInherit) | ||
| 65 | #define XtInheritAcceptFocus ((XtAcceptFocusProc) _XtInherit) | ||
| 66 | #define XtInheritQueryGeometry ((XtGeometryHandler) _XtInherit) | ||
| 67 | #define XtInheritDisplayAccelerator ((XtStringProc) _XtInherit) | ||
| 68 | |||
| 69 | /*************************************************************** | ||
| 70 | * Widget Core Data Structures | ||
| 71 | * | ||
| 72 | * | ||
| 73 | **************************************************************/ | ||
| 74 | |||
| 75 | typedef struct _CorePart { | ||
| 76 | Widget self; /* pointer to widget itself */ | ||
| 77 | WidgetClass widget_class; /* pointer to Widget's ClassRec */ | ||
| 78 | Widget parent; /* parent widget */ | ||
| 79 | XrmName xrm_name; /* widget resource name quarkified */ | ||
| 80 | Boolean being_destroyed; /* marked for destroy */ | ||
| 81 | XtCallbackList destroy_callbacks; /* who to call when widget destroyed */ | ||
| 82 | XtPointer constraints; /* constraint record */ | ||
| 83 | Position x, y; /* window position */ | ||
| 84 | Dimension width, height; /* window dimensions */ | ||
| 85 | Dimension border_width; /* window border width */ | ||
| 86 | Boolean managed; /* is widget geometry managed? */ | ||
| 87 | Boolean sensitive; /* is widget sensitive to user events*/ | ||
| 88 | Boolean ancestor_sensitive; /* are all ancestors sensitive? */ | ||
| 89 | XtEventTable event_table; /* private to event dispatcher */ | ||
| 90 | XtTMRec tm; /* translation management */ | ||
| 91 | XtTranslations accelerators; /* accelerator translations */ | ||
| 92 | Pixel border_pixel; /* window border pixel */ | ||
| 93 | Pixmap border_pixmap; /* window border pixmap or NULL */ | ||
| 94 | WidgetList popup_list; /* list of popups */ | ||
| 95 | Cardinal num_popups; /* how many popups */ | ||
| 96 | String name; /* widget resource name */ | ||
| 97 | Screen *screen; /* window's screen */ | ||
| 98 | Colormap colormap; /* colormap */ | ||
| 99 | Window window; /* window ID */ | ||
| 100 | Cardinal depth; /* number of planes in window */ | ||
| 101 | Pixel background_pixel; /* window background pixel */ | ||
| 102 | Pixmap background_pixmap; /* window background pixmap or NULL */ | ||
| 103 | Boolean visible; /* is window mapped and not occluded?*/ | ||
| 104 | Boolean mapped_when_managed;/* map window if it's managed? */ | ||
| 105 | } CorePart; | ||
| 106 | |||
| 107 | typedef struct _WidgetRec { | ||
| 108 | CorePart core; | ||
| 109 | } WidgetRec, CoreRec; | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | /****************************************************************** | ||
| 114 | * | ||
| 115 | * Core Class Structure. Widgets, regardless of their class, will have | ||
| 116 | * these fields. All widgets of a given class will have the same values | ||
| 117 | * for these fields. Widgets of a given class may also have additional | ||
| 118 | * common fields. These additional fields are included in incremental | ||
| 119 | * class structures, such as CommandClass. | ||
| 120 | * | ||
| 121 | * The fields that are specific to this subclass, as opposed to fields that | ||
| 122 | * are part of the superclass, are called "subclass fields" below. Many | ||
| 123 | * procedures are responsible only for the subclass fields, and not for | ||
| 124 | * any superclass fields. | ||
| 125 | * | ||
| 126 | ********************************************************************/ | ||
| 127 | |||
| 128 | typedef struct _CoreClassPart { | ||
| 129 | WidgetClass superclass; /* pointer to superclass ClassRec */ | ||
| 130 | String class_name; /* widget resource class name */ | ||
| 131 | Cardinal widget_size; /* size in bytes of widget record */ | ||
| 132 | XtProc class_initialize; /* class initialization proc */ | ||
| 133 | XtWidgetClassProc class_part_initialize; /* dynamic initialization */ | ||
| 134 | XtEnum class_inited; /* has class been initialized? */ | ||
| 135 | XtInitProc initialize; /* initialize subclass fields */ | ||
| 136 | XtArgsProc initialize_hook; /* notify that initialize called */ | ||
| 137 | XtRealizeProc realize; /* XCreateWindow for widget */ | ||
| 138 | XtActionList actions; /* widget semantics name to proc map */ | ||
| 139 | Cardinal num_actions; /* number of entries in actions */ | ||
| 140 | XtResourceList resources; /* resources for subclass fields */ | ||
| 141 | Cardinal num_resources; /* number of entries in resources */ | ||
| 142 | XrmClass xrm_class; /* resource class quarkified */ | ||
| 143 | Boolean compress_motion; /* compress MotionNotify for widget */ | ||
| 144 | XtEnum compress_exposure; /* compress Expose events for widget*/ | ||
| 145 | Boolean compress_enterleave;/* compress enter and leave events */ | ||
| 146 | Boolean visible_interest; /* select for VisibilityNotify */ | ||
| 147 | XtWidgetProc destroy; /* free data for subclass pointers */ | ||
| 148 | XtWidgetProc resize; /* geom manager changed widget size */ | ||
| 149 | XtExposeProc expose; /* rediplay window */ | ||
| 150 | XtSetValuesFunc set_values; /* set subclass resource values */ | ||
| 151 | XtArgsFunc set_values_hook; /* notify that set_values called */ | ||
| 152 | XtAlmostProc set_values_almost; /* set_values got "Almost" geo reply */ | ||
| 153 | XtArgsProc get_values_hook; /* notify that get_values called */ | ||
| 154 | XtAcceptFocusProc accept_focus; /* assign input focus to widget */ | ||
| 155 | XtVersionType version; /* version of intrinsics used */ | ||
| 156 | XtPointer callback_private; /* list of callback offsets */ | ||
| 157 | String tm_table; /* state machine */ | ||
| 158 | XtGeometryHandler query_geometry; /* return preferred geometry */ | ||
| 159 | XtStringProc display_accelerator;/* display your accelerator */ | ||
| 160 | XtPointer extension; /* pointer to extension record */ | ||
| 161 | } CoreClassPart; | ||
| 162 | |||
| 163 | typedef struct _WidgetClassRec { | ||
| 164 | CoreClassPart core_class; | ||
| 165 | } WidgetClassRec, CoreClassRec; | ||
| 166 | |||
| 167 | externalref WidgetClassRec widgetClassRec; | ||
| 168 | #define coreClassRec widgetClassRec | ||
| 169 | |||
| 170 | #endif /* _XtCoreP_h */ | ||
| 171 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/CreateI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/CreateI.h new file mode 100644 index 0000000000..87abb1d2d5 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/CreateI.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* $XFree86$ */ | ||
| 2 | |||
| 3 | #ifndef _XtcreateI_h | ||
| 4 | #define _XtcreateI_h | ||
| 5 | |||
| 6 | extern Widget _XtCreateWidget(String name, WidgetClass widget_class, | ||
| 7 | Widget parent, ArgList args, Cardinal num_args, | ||
| 8 | XtTypedArgList typed_args, | ||
| 9 | Cardinal num_typed_args); | ||
| 10 | extern Widget _XtCreatePopupShell(String name, WidgetClass widget_class, | ||
| 11 | Widget parent, ArgList args, | ||
| 12 | Cardinal num_args, XtTypedArgList typed_args, | ||
| 13 | Cardinal num_typed_args); | ||
| 14 | extern Widget _XtAppCreateShell(String name, String class, | ||
| 15 | WidgetClass widget_class, Display *display, | ||
| 16 | ArgList args, Cardinal num_args, | ||
| 17 | XtTypedArgList typed_args, | ||
| 18 | Cardinal num_typed_args); | ||
| 19 | extern Widget _XtCreateHookObj(Screen *screen); | ||
| 20 | |||
| 21 | |||
| 22 | #include <stdarg.h> | ||
| 23 | |||
| 24 | /* VarCreate.c */ | ||
| 25 | extern Widget _XtVaOpenApplication(XtAppContext *app_context_return, | ||
| 26 | _Xconst char* application_class, | ||
| 27 | XrmOptionDescList options, Cardinal num_options, | ||
| 28 | int *argc_in_out, String *argv_in_out, | ||
| 29 | String *fallback_resources, WidgetClass widget_class, | ||
| 30 | va_list var_args); | ||
| 31 | extern Widget _XtVaAppInitialize(XtAppContext *app_context_return, | ||
| 32 | _Xconst char* application_class, | ||
| 33 | XrmOptionDescList options, Cardinal num_options, | ||
| 34 | int *argc_in_out, String *argv_in_out, | ||
| 35 | String *fallback_resources, va_list var_args); | ||
| 36 | |||
| 37 | #endif /* _XtcreateI_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/DECkeysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/DECkeysym.h new file mode 100644 index 0000000000..6ab103e5df --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/DECkeysym.h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* $Xorg: DECkeysym.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | /* | ||
| 51 | * DEC private keysyms | ||
| 52 | * (29th bit set) | ||
| 53 | */ | ||
| 54 | |||
| 55 | /* two-key compose sequence initiators, chosen to map to Latin1 characters */ | ||
| 56 | |||
| 57 | #define DXK_ring_accent 0x1000FEB0 | ||
| 58 | #define DXK_circumflex_accent 0x1000FE5E | ||
| 59 | #define DXK_cedilla_accent 0x1000FE2C | ||
| 60 | #define DXK_acute_accent 0x1000FE27 | ||
| 61 | #define DXK_grave_accent 0x1000FE60 | ||
| 62 | #define DXK_tilde 0x1000FE7E | ||
| 63 | #define DXK_diaeresis 0x1000FE22 | ||
| 64 | |||
| 65 | /* special keysym for LK2** "Remove" key on editing keypad */ | ||
| 66 | |||
| 67 | #define DXK_Remove 0x1000FF00 /* Remove */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/EventI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/EventI.h new file mode 100644 index 0000000000..00858e71ea --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/EventI.h | |||
| @@ -0,0 +1,134 @@ | |||
| 1 | /* $Xorg: EventI.h,v 1.4 2001/02/09 02:03:54 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: EventI.h,v 1.3 88/08/24 09:21:11 asente Exp $ */ | ||
| 3 | |||
| 4 | /*********************************************************** | ||
| 5 | |||
| 6 | Copyright 1987, 1988, 1998 The Open Group | ||
| 7 | |||
| 8 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 9 | documentation for any purpose is hereby granted without fee, provided that | ||
| 10 | the above copyright notice appear in all copies and that both that | ||
| 11 | copyright notice and this permission notice appear in supporting | ||
| 12 | documentation. | ||
| 13 | |||
| 14 | The above copyright notice and this permission notice shall be included in | ||
| 15 | all copies or substantial portions of the Software. | ||
| 16 | |||
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 20 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 21 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 25 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 26 | in this Software without prior written authorization from The Open Group. | ||
| 27 | |||
| 28 | |||
| 29 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 30 | |||
| 31 | All Rights Reserved | ||
| 32 | |||
| 33 | Permission to use, copy, modify, and distribute this software and its | ||
| 34 | documentation for any purpose and without fee is hereby granted, | ||
| 35 | provided that the above copyright notice appear in all copies and that | ||
| 36 | both that copyright notice and this permission notice appear in | ||
| 37 | supporting documentation, and that the name of Digital not be | ||
| 38 | used in advertising or publicity pertaining to distribution of the | ||
| 39 | software without specific, written prior permission. | ||
| 40 | |||
| 41 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 42 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 43 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 44 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 45 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 46 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 47 | SOFTWARE. | ||
| 48 | |||
| 49 | ******************************************************************/ | ||
| 50 | /* $XFree86: xc/lib/Xt/EventI.h,v 1.3 2001/12/14 19:56:12 dawes Exp $ */ | ||
| 51 | |||
| 52 | /* | ||
| 53 | * Event.h - exported types and functions for toolkit event handler | ||
| 54 | * | ||
| 55 | * Author: Charles Haynes | ||
| 56 | * Digital Equipment Corporation | ||
| 57 | * Western Software Laboratory | ||
| 58 | * Date: Sun Dec 6 1987 | ||
| 59 | */ | ||
| 60 | |||
| 61 | #ifndef _Event_h_ | ||
| 62 | #define _Event_h_ | ||
| 63 | |||
| 64 | typedef struct _XtGrabRec *XtGrabList; | ||
| 65 | |||
| 66 | #include "PassivGraI.h" | ||
| 67 | |||
| 68 | extern void _XtEventInitialize( | ||
| 69 | void | ||
| 70 | ); | ||
| 71 | |||
| 72 | typedef struct _XtEventRec { | ||
| 73 | XtEventTable next; | ||
| 74 | EventMask mask; /* also select_data count for RecExt */ | ||
| 75 | XtEventHandler proc; | ||
| 76 | XtPointer closure; | ||
| 77 | unsigned int select:1; | ||
| 78 | unsigned int has_type_specifier:1; | ||
| 79 | unsigned int async:1; /* not used, here for Digital extension? */ | ||
| 80 | } XtEventRec; | ||
| 81 | |||
| 82 | typedef struct _XtGrabRec { | ||
| 83 | XtGrabList next; | ||
| 84 | Widget widget; | ||
| 85 | unsigned int exclusive:1; | ||
| 86 | unsigned int spring_loaded:1; | ||
| 87 | }XtGrabRec; | ||
| 88 | |||
| 89 | typedef struct _BlockHookRec { | ||
| 90 | struct _BlockHookRec* next; | ||
| 91 | XtAppContext app; | ||
| 92 | XtBlockHookProc proc; | ||
| 93 | XtPointer closure; | ||
| 94 | } BlockHookRec, *BlockHook; | ||
| 95 | |||
| 96 | extern void _XtFreeEventTable( | ||
| 97 | XtEventTable* /* event_table */ | ||
| 98 | ); | ||
| 99 | |||
| 100 | extern Boolean _XtOnGrabList( | ||
| 101 | Widget /* widget */, | ||
| 102 | XtGrabRec* /* grabList */ | ||
| 103 | ); | ||
| 104 | |||
| 105 | extern void _XtRemoveAllInputs( | ||
| 106 | XtAppContext /* app */ | ||
| 107 | ); | ||
| 108 | |||
| 109 | extern void _XtRefreshMapping( | ||
| 110 | XEvent* /* event */, | ||
| 111 | _XtBoolean /* dispatch */ | ||
| 112 | ); | ||
| 113 | |||
| 114 | extern void _XtSendFocusEvent( | ||
| 115 | Widget /* child */, | ||
| 116 | int /* type */); | ||
| 117 | |||
| 118 | extern EventMask _XtConvertTypeToMask( | ||
| 119 | int /* eventType */ | ||
| 120 | ); | ||
| 121 | |||
| 122 | /* EventUtil.c */ | ||
| 123 | extern Widget _XtFindRemapWidget(XEvent *event, Widget widget, | ||
| 124 | EventMask mask, XtPerDisplayInput pdi); | ||
| 125 | extern void _XtUngrabBadGrabs(XEvent *event, Widget widget, | ||
| 126 | EventMask mask, XtPerDisplayInput pdi); | ||
| 127 | extern void _XtFillAncestorList(Widget **listPtr, int *maxElemsPtr, | ||
| 128 | int *numElemsPtr, Widget start, | ||
| 129 | Widget breakWidget); | ||
| 130 | |||
| 131 | /* NextEvent.c */ | ||
| 132 | extern Boolean XtAppPeekEvent_SkipTimer; | ||
| 133 | |||
| 134 | #endif /* _Event_h_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/HPkeysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/HPkeysym.h new file mode 100644 index 0000000000..2d09277d83 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/HPkeysym.h | |||
| @@ -0,0 +1,165 @@ | |||
| 1 | /* $Xorg: HPkeysym.h,v 1.5 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1987, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 21 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization | ||
| 26 | from The Open Group. | ||
| 27 | |||
| 28 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the names of Hewlett Packard | ||
| 37 | or Digital not be | ||
| 38 | used in advertising or publicity pertaining to distribution of the | ||
| 39 | software without specific, written prior permission. | ||
| 40 | |||
| 41 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 42 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 43 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 44 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 45 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 46 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 47 | SOFTWARE. | ||
| 48 | |||
| 49 | HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD | ||
| 50 | TO THIS SOFWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 51 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 52 | PURPOSE. Hewlett-Packard shall not be liable for errors | ||
| 53 | contained herein or direct, indirect, special, incidental or | ||
| 54 | consequential damages in connection with the furnishing, | ||
| 55 | performance, or use of this material. | ||
| 56 | |||
| 57 | */ | ||
| 58 | |||
| 59 | #ifndef _HPKEYSYM_H | ||
| 60 | |||
| 61 | #define _HPKEYSYM | ||
| 62 | |||
| 63 | #define hpXK_ClearLine 0x1000FF6F | ||
| 64 | #define hpXK_InsertLine 0x1000FF70 | ||
| 65 | #define hpXK_DeleteLine 0x1000FF71 | ||
| 66 | #define hpXK_InsertChar 0x1000FF72 | ||
| 67 | #define hpXK_DeleteChar 0x1000FF73 | ||
| 68 | #define hpXK_BackTab 0x1000FF74 | ||
| 69 | #define hpXK_KP_BackTab 0x1000FF75 | ||
| 70 | #define hpXK_Modelock1 0x1000FF48 | ||
| 71 | #define hpXK_Modelock2 0x1000FF49 | ||
| 72 | #define hpXK_Reset 0x1000FF6C | ||
| 73 | #define hpXK_System 0x1000FF6D | ||
| 74 | #define hpXK_User 0x1000FF6E | ||
| 75 | #define hpXK_mute_acute 0x100000A8 | ||
| 76 | #define hpXK_mute_grave 0x100000A9 | ||
| 77 | #define hpXK_mute_asciicircum 0x100000AA | ||
| 78 | #define hpXK_mute_diaeresis 0x100000AB | ||
| 79 | #define hpXK_mute_asciitilde 0x100000AC | ||
| 80 | #define hpXK_lira 0x100000AF | ||
| 81 | #define hpXK_guilder 0x100000BE | ||
| 82 | #define hpXK_Ydiaeresis 0x100000EE | ||
| 83 | #define hpXK_IO 0x100000EE | ||
| 84 | #define hpXK_longminus 0x100000F6 | ||
| 85 | #define hpXK_block 0x100000FC | ||
| 86 | |||
| 87 | |||
| 88 | #ifndef _OSF_Keysyms | ||
| 89 | #define _OSF_Keysyms | ||
| 90 | |||
| 91 | #define osfXK_Copy 0x1004FF02 | ||
| 92 | #define osfXK_Cut 0x1004FF03 | ||
| 93 | #define osfXK_Paste 0x1004FF04 | ||
| 94 | #define osfXK_BackTab 0x1004FF07 | ||
| 95 | #define osfXK_BackSpace 0x1004FF08 | ||
| 96 | #define osfXK_Clear 0x1004FF0B | ||
| 97 | #define osfXK_Escape 0x1004FF1B | ||
| 98 | #define osfXK_AddMode 0x1004FF31 | ||
| 99 | #define osfXK_PrimaryPaste 0x1004FF32 | ||
| 100 | #define osfXK_QuickPaste 0x1004FF33 | ||
| 101 | #define osfXK_PageLeft 0x1004FF40 | ||
| 102 | #define osfXK_PageUp 0x1004FF41 | ||
| 103 | #define osfXK_PageDown 0x1004FF42 | ||
| 104 | #define osfXK_PageRight 0x1004FF43 | ||
| 105 | #define osfXK_Activate 0x1004FF44 | ||
| 106 | #define osfXK_MenuBar 0x1004FF45 | ||
| 107 | #define osfXK_Left 0x1004FF51 | ||
| 108 | #define osfXK_Up 0x1004FF52 | ||
| 109 | #define osfXK_Right 0x1004FF53 | ||
| 110 | #define osfXK_Down 0x1004FF54 | ||
| 111 | #define osfXK_EndLine 0x1004FF57 | ||
| 112 | #define osfXK_BeginLine 0x1004FF58 | ||
| 113 | #define osfXK_EndData 0x1004FF59 | ||
| 114 | #define osfXK_BeginData 0x1004FF5A | ||
| 115 | #define osfXK_PrevMenu 0x1004FF5B | ||
| 116 | #define osfXK_NextMenu 0x1004FF5C | ||
| 117 | #define osfXK_PrevField 0x1004FF5D | ||
| 118 | #define osfXK_NextField 0x1004FF5E | ||
| 119 | #define osfXK_Select 0x1004FF60 | ||
| 120 | #define osfXK_Insert 0x1004FF63 | ||
| 121 | #define osfXK_Undo 0x1004FF65 | ||
| 122 | #define osfXK_Menu 0x1004FF67 | ||
| 123 | #define osfXK_Cancel 0x1004FF69 | ||
| 124 | #define osfXK_Help 0x1004FF6A | ||
| 125 | #define osfXK_SelectAll 0x1004FF71 | ||
| 126 | #define osfXK_DeselectAll 0x1004FF72 | ||
| 127 | #define osfXK_Reselect 0x1004FF73 | ||
| 128 | #define osfXK_Extend 0x1004FF74 | ||
| 129 | #define osfXK_Restore 0x1004FF78 | ||
| 130 | #define osfXK_Delete 0x1004FFFF | ||
| 131 | |||
| 132 | #endif /* _OSF_Keysyms */ | ||
| 133 | |||
| 134 | |||
| 135 | /************************************************************** | ||
| 136 | * The use of the following macros is deprecated. | ||
| 137 | * They are listed below only for backwards compatibility. | ||
| 138 | */ | ||
| 139 | #define XK_Reset 0x1000FF6C | ||
| 140 | #define XK_System 0x1000FF6D | ||
| 141 | #define XK_User 0x1000FF6E | ||
| 142 | #define XK_ClearLine 0x1000FF6F | ||
| 143 | #define XK_InsertLine 0x1000FF70 | ||
| 144 | #define XK_DeleteLine 0x1000FF71 | ||
| 145 | #define XK_InsertChar 0x1000FF72 | ||
| 146 | #define XK_DeleteChar 0x1000FF73 | ||
| 147 | #define XK_BackTab 0x1000FF74 | ||
| 148 | #define XK_KP_BackTab 0x1000FF75 | ||
| 149 | #define XK_Ext16bit_L 0x1000FF76 | ||
| 150 | #define XK_Ext16bit_R 0x1000FF77 | ||
| 151 | #define XK_mute_acute 0x100000a8 | ||
| 152 | #define XK_mute_grave 0x100000a9 | ||
| 153 | #define XK_mute_asciicircum 0x100000aa | ||
| 154 | #define XK_mute_diaeresis 0x100000ab | ||
| 155 | #define XK_mute_asciitilde 0x100000ac | ||
| 156 | #define XK_lira 0x100000af | ||
| 157 | #define XK_guilder 0x100000be | ||
| 158 | #ifndef XK_Ydiaeresis | ||
| 159 | #define XK_Ydiaeresis 0x100000ee | ||
| 160 | #endif | ||
| 161 | #define XK_IO 0x100000ee | ||
| 162 | #define XK_longminus 0x100000f6 | ||
| 163 | #define XK_block 0x100000fc | ||
| 164 | |||
| 165 | #endif /* _HPKEYSYM_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/HookObjI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/HookObjI.h new file mode 100644 index 0000000000..c9a22a2565 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/HookObjI.h | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* $Xorg: HookObjI.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | */ | ||
| 28 | |||
| 29 | #ifndef _XtHookObjI_h | ||
| 30 | #define _XtHookObjI_h | ||
| 31 | |||
| 32 | /* This object is implementation-dependent and private to the library. */ | ||
| 33 | |||
| 34 | typedef struct _HookObjRec *HookObject; | ||
| 35 | typedef struct _HookObjClassRec *HookObjectClass; | ||
| 36 | |||
| 37 | externalref WidgetClass hookObjectClass; | ||
| 38 | |||
| 39 | typedef struct _HookObjPart { | ||
| 40 | /* resources */ | ||
| 41 | XtCallbackList createhook_callbacks; | ||
| 42 | XtCallbackList changehook_callbacks; | ||
| 43 | XtCallbackList confighook_callbacks; | ||
| 44 | XtCallbackList geometryhook_callbacks; | ||
| 45 | XtCallbackList destroyhook_callbacks; | ||
| 46 | WidgetList shells; | ||
| 47 | Cardinal num_shells; | ||
| 48 | /* private data */ | ||
| 49 | Cardinal max_shells; | ||
| 50 | Screen* screen; | ||
| 51 | }HookObjPart; | ||
| 52 | |||
| 53 | typedef struct _HookObjRec { | ||
| 54 | ObjectPart object; | ||
| 55 | HookObjPart hooks; | ||
| 56 | } HookObjRec; | ||
| 57 | |||
| 58 | typedef struct _HookObjClassPart { | ||
| 59 | int unused; | ||
| 60 | } HookObjClassPart; | ||
| 61 | |||
| 62 | typedef struct _HookObjClassRec { | ||
| 63 | ObjectClassPart object_class; | ||
| 64 | HookObjClassPart hook_class; | ||
| 65 | } HookObjClassRec; | ||
| 66 | |||
| 67 | externalref HookObjClassRec hookObjClassRec; | ||
| 68 | |||
| 69 | #endif /* ifndef _Xt_HookObjI_h */ | ||
| 70 | |||
| 71 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ImUtil.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ImUtil.h new file mode 100644 index 0000000000..89f0381177 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ImUtil.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* $XFree86: xc/lib/X11/ImUtil.h,v 1.2 2003/04/15 22:10:07 herrb Exp $ */ | ||
| 2 | |||
| 3 | #ifndef _IMUTIL_H_ | ||
| 4 | #define _IMUTIL_H_ | ||
| 5 | |||
| 6 | extern int | ||
| 7 | _XGetScanlinePad( | ||
| 8 | Display *dpy, | ||
| 9 | int depth); | ||
| 10 | |||
| 11 | extern int | ||
| 12 | _XGetBitsPerPixel( | ||
| 13 | Display *dpy, | ||
| 14 | int depth); | ||
| 15 | |||
| 16 | extern int | ||
| 17 | _XSetImage( | ||
| 18 | XImage *srcimg, | ||
| 19 | register XImage *dstimg, | ||
| 20 | register int x, | ||
| 21 | register int y); | ||
| 22 | |||
| 23 | extern int | ||
| 24 | _XReverse_Bytes( | ||
| 25 | register unsigned char *bpt, | ||
| 26 | register int nb); | ||
| 27 | extern void | ||
| 28 | _XInitImageFuncPtrs( | ||
| 29 | register XImage *image); | ||
| 30 | |||
| 31 | #endif /* _IMUTIL_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/InitialI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/InitialI.h new file mode 100644 index 0000000000..c2fe47c1ba --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/InitialI.h | |||
| @@ -0,0 +1,429 @@ | |||
| 1 | /* $Xorg: InitialI.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/InitialI.h,v 3.10 2001/12/14 19:56:18 dawes Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XtinitialI_h | ||
| 52 | #define _XtinitialI_h | ||
| 53 | |||
| 54 | /**************************************************************** | ||
| 55 | * | ||
| 56 | * Displays | ||
| 57 | * | ||
| 58 | ****************************************************************/ | ||
| 59 | |||
| 60 | #ifndef X_NOT_POSIX | ||
| 61 | #ifdef _POSIX_SOURCE | ||
| 62 | #include <limits.h> | ||
| 63 | #else | ||
| 64 | #define _POSIX_SOURCE | ||
| 65 | #include <limits.h> | ||
| 66 | #undef _POSIX_SOURCE | ||
| 67 | #endif | ||
| 68 | #endif | ||
| 69 | #ifndef PATH_MAX | ||
| 70 | #ifdef WIN32 | ||
| 71 | #define PATH_MAX 512 | ||
| 72 | #else | ||
| 73 | #include <sys/param.h> | ||
| 74 | #endif | ||
| 75 | #ifndef PATH_MAX | ||
| 76 | #ifdef MAXPATHLEN | ||
| 77 | #define PATH_MAX MAXPATHLEN | ||
| 78 | #else | ||
| 79 | #define PATH_MAX 1024 | ||
| 80 | #endif | ||
| 81 | #endif | ||
| 82 | #endif | ||
| 83 | |||
| 84 | #include <X11/Xos.h> | ||
| 85 | #include <X11/Xpoll.h> | ||
| 86 | |||
| 87 | typedef struct _TimerEventRec { | ||
| 88 | struct timeval te_timer_value; | ||
| 89 | struct _TimerEventRec *te_next; | ||
| 90 | XtTimerCallbackProc te_proc; | ||
| 91 | XtAppContext app; | ||
| 92 | XtPointer te_closure; | ||
| 93 | } TimerEventRec; | ||
| 94 | |||
| 95 | typedef struct _InputEvent { | ||
| 96 | XtInputCallbackProc ie_proc; | ||
| 97 | XtPointer ie_closure; | ||
| 98 | struct _InputEvent *ie_next; | ||
| 99 | struct _InputEvent *ie_oq; | ||
| 100 | XtAppContext app; | ||
| 101 | int ie_source; | ||
| 102 | XtInputMask ie_condition; | ||
| 103 | } InputEvent; | ||
| 104 | |||
| 105 | typedef struct _SignalEventRec { | ||
| 106 | XtSignalCallbackProc se_proc; | ||
| 107 | XtPointer se_closure; | ||
| 108 | struct _SignalEventRec *se_next; | ||
| 109 | XtAppContext app; | ||
| 110 | Boolean se_notice; | ||
| 111 | } SignalEventRec; | ||
| 112 | |||
| 113 | typedef struct _WorkProcRec { | ||
| 114 | XtWorkProc proc; | ||
| 115 | XtPointer closure; | ||
| 116 | struct _WorkProcRec *next; | ||
| 117 | XtAppContext app; | ||
| 118 | } WorkProcRec; | ||
| 119 | |||
| 120 | |||
| 121 | typedef struct | ||
| 122 | { | ||
| 123 | #ifndef USE_POLL | ||
| 124 | fd_set rmask; | ||
| 125 | fd_set wmask; | ||
| 126 | fd_set emask; | ||
| 127 | #endif | ||
| 128 | int nfds; | ||
| 129 | } FdStruct; | ||
| 130 | |||
| 131 | typedef struct _LangProcRec { | ||
| 132 | XtLanguageProc proc; | ||
| 133 | XtPointer closure; | ||
| 134 | } LangProcRec; | ||
| 135 | |||
| 136 | typedef struct _ProcessContextRec { | ||
| 137 | XtAppContext defaultAppContext; | ||
| 138 | XtAppContext appContextList; | ||
| 139 | ConverterTable globalConverterTable; | ||
| 140 | LangProcRec globalLangProcRec; | ||
| 141 | } ProcessContextRec, *ProcessContext; | ||
| 142 | |||
| 143 | typedef struct { | ||
| 144 | char* start; | ||
| 145 | char* current; | ||
| 146 | int bytes_remaining; | ||
| 147 | } Heap; | ||
| 148 | |||
| 149 | typedef struct _DestroyRec DestroyRec; | ||
| 150 | |||
| 151 | |||
| 152 | typedef struct _XtAppStruct { | ||
| 153 | XtAppContext next; /* link to next app in process context */ | ||
| 154 | ProcessContext process; /* back pointer to our process context */ | ||
| 155 | InternalCallbackList destroy_callbacks; | ||
| 156 | Display **list; | ||
| 157 | TimerEventRec *timerQueue; | ||
| 158 | WorkProcRec *workQueue; | ||
| 159 | InputEvent **input_list; | ||
| 160 | InputEvent *outstandingQueue; | ||
| 161 | SignalEventRec *signalQueue; | ||
| 162 | XrmDatabase errorDB; | ||
| 163 | XtErrorMsgHandler errorMsgHandler, warningMsgHandler; | ||
| 164 | XtErrorHandler errorHandler, warningHandler; | ||
| 165 | struct _ActionListRec *action_table; | ||
| 166 | ConverterTable converterTable; | ||
| 167 | unsigned long selectionTimeout; | ||
| 168 | FdStruct fds; | ||
| 169 | short count; /* num of assigned entries in list */ | ||
| 170 | short max; /* allocate size of list */ | ||
| 171 | short last; | ||
| 172 | short input_count; | ||
| 173 | short input_max; /* elts input_list init'd with */ | ||
| 174 | Boolean sync, being_destroyed, error_inited; | ||
| 175 | #ifndef NO_IDENTIFY_WINDOWS | ||
| 176 | Boolean identify_windows; /* debugging hack */ | ||
| 177 | #endif | ||
| 178 | Heap heap; | ||
| 179 | String * fallback_resources; /* Set by XtAppSetFallbackResources. */ | ||
| 180 | struct _ActionHookRec* action_hook_list; | ||
| 181 | struct _BlockHookRec* block_hook_list; | ||
| 182 | int destroy_list_size; /* state data for 2-phase destroy */ | ||
| 183 | int destroy_count; | ||
| 184 | int dispatch_level; | ||
| 185 | DestroyRec* destroy_list; | ||
| 186 | Widget in_phase2_destroy; | ||
| 187 | LangProcRec langProcRec; | ||
| 188 | struct _TMBindCacheRec * free_bindings; | ||
| 189 | String display_name_tried; | ||
| 190 | Display **dpy_destroy_list; | ||
| 191 | int dpy_destroy_count; | ||
| 192 | Boolean exit_flag; | ||
| 193 | Boolean rebuild_fdlist; | ||
| 194 | #ifdef XTHREADS | ||
| 195 | LockPtr lock_info; | ||
| 196 | ThreadAppProc lock; | ||
| 197 | ThreadAppProc unlock; | ||
| 198 | ThreadAppYieldLockProc yield_lock; | ||
| 199 | ThreadAppRestoreLockProc restore_lock; | ||
| 200 | ThreadAppProc free_lock; | ||
| 201 | #endif | ||
| 202 | } XtAppStruct; | ||
| 203 | |||
| 204 | extern void _XtHeapInit(Heap* heap); | ||
| 205 | extern void _XtHeapFree(Heap* heap); | ||
| 206 | |||
| 207 | #ifdef XTTRACEMEMORY | ||
| 208 | |||
| 209 | |||
| 210 | extern char *_XtHeapMalloc( | ||
| 211 | Heap* /* heap */, | ||
| 212 | Cardinal /* size */, | ||
| 213 | char * /* file */, | ||
| 214 | int /* line */ | ||
| 215 | ); | ||
| 216 | |||
| 217 | #define _XtHeapAlloc(heap,bytes) _XtHeapMalloc(heap, bytes, __FILE__, __LINE__) | ||
| 218 | |||
| 219 | #else /* XTTRACEMEMORY */ | ||
| 220 | |||
| 221 | extern char* _XtHeapAlloc( | ||
| 222 | Heap* /* heap */, | ||
| 223 | Cardinal /* size */ | ||
| 224 | ); | ||
| 225 | |||
| 226 | #endif /* XTTRACEMEMORY */ | ||
| 227 | |||
| 228 | extern void _XtSetDefaultErrorHandlers( | ||
| 229 | XtErrorMsgHandler* /* errMsg */, | ||
| 230 | XtErrorMsgHandler* /* warnMsg */, | ||
| 231 | XtErrorHandler* /* err */, | ||
| 232 | XtErrorHandler* /* warn */ | ||
| 233 | ); | ||
| 234 | |||
| 235 | extern void _XtSetDefaultSelectionTimeout( | ||
| 236 | unsigned long* /* timeout */ | ||
| 237 | ); | ||
| 238 | |||
| 239 | extern XtAppContext _XtDefaultAppContext( | ||
| 240 | void | ||
| 241 | ); | ||
| 242 | |||
| 243 | extern ProcessContext _XtGetProcessContext( | ||
| 244 | void | ||
| 245 | ); | ||
| 246 | |||
| 247 | Display * | ||
| 248 | _XtAppInit( | ||
| 249 | XtAppContext* /* app_context_return */, | ||
| 250 | String /* application_class */, | ||
| 251 | XrmOptionDescRec* /* options */, | ||
| 252 | Cardinal /* num_options */, | ||
| 253 | int* /* argc_in_out */, | ||
| 254 | String** /* argv_in_out */, | ||
| 255 | String* /* fallback_resources */ | ||
| 256 | ); | ||
| 257 | |||
| 258 | extern void _XtDestroyAppContexts( | ||
| 259 | void | ||
| 260 | ); | ||
| 261 | |||
| 262 | extern void _XtCloseDisplays( | ||
| 263 | XtAppContext /* app */ | ||
| 264 | ); | ||
| 265 | |||
| 266 | extern int _XtAppDestroyCount; | ||
| 267 | |||
| 268 | extern int _XtWaitForSomething( | ||
| 269 | XtAppContext /* app */, | ||
| 270 | _XtBoolean /* ignoreEvents */, | ||
| 271 | _XtBoolean /* ignoreTimers */, | ||
| 272 | _XtBoolean /* ignoreInputs */, | ||
| 273 | _XtBoolean /* ignoreSignals */, | ||
| 274 | _XtBoolean /* block */, | ||
| 275 | #ifdef XTHREADS | ||
| 276 | _XtBoolean /* drop_lock */, | ||
| 277 | #endif | ||
| 278 | unsigned long* /* howlong */ | ||
| 279 | ); | ||
| 280 | |||
| 281 | typedef struct _CaseConverterRec *CaseConverterPtr; | ||
| 282 | typedef struct _CaseConverterRec { | ||
| 283 | KeySym start; /* first KeySym valid in converter */ | ||
| 284 | KeySym stop; /* last KeySym valid in converter */ | ||
| 285 | XtCaseProc proc; /* case converter function */ | ||
| 286 | CaseConverterPtr next; /* next converter record */ | ||
| 287 | } CaseConverterRec; | ||
| 288 | |||
| 289 | typedef struct _ExtensionSelectorRec { | ||
| 290 | XtExtensionSelectProc proc; | ||
| 291 | int min, max; | ||
| 292 | XtPointer client_data; | ||
| 293 | } ExtSelectRec; | ||
| 294 | |||
| 295 | typedef struct _XtPerDisplayStruct { | ||
| 296 | InternalCallbackList destroy_callbacks; | ||
| 297 | Region region; | ||
| 298 | CaseConverterPtr case_cvt; /* user-registered case converters */ | ||
| 299 | XtKeyProc defaultKeycodeTranslator; | ||
| 300 | XtAppContext appContext; | ||
| 301 | unsigned long keysyms_serial; /* for tracking MappingNotify events */ | ||
| 302 | KeySym *keysyms; /* keycode to keysym table */ | ||
| 303 | int keysyms_per_keycode; /* number of keysyms for each keycode*/ | ||
| 304 | int min_keycode, max_keycode; /* range of keycodes */ | ||
| 305 | KeySym *modKeysyms; /* keysym values for modToKeysysm */ | ||
| 306 | ModToKeysymTable *modsToKeysyms; /* modifiers to Keysysms index table*/ | ||
| 307 | unsigned char isModifier[32]; /* key-is-modifier-p bit table */ | ||
| 308 | KeySym lock_meaning; /* Lock modifier meaning */ | ||
| 309 | Modifiers mode_switch; /* keyboard group modifiers */ | ||
| 310 | Modifiers num_lock; /* keyboard numlock modifiers */ | ||
| 311 | Boolean being_destroyed; | ||
| 312 | Boolean rv; /* reverse_video resource */ | ||
| 313 | XrmName name; /* resolved app name */ | ||
| 314 | XrmClass class; /* application class */ | ||
| 315 | Heap heap; | ||
| 316 | struct _GCrec *GClist; /* support for XtGetGC */ | ||
| 317 | Drawable **pixmap_tab; /* ditto for XtGetGC */ | ||
| 318 | String language; /* XPG language string */ | ||
| 319 | XEvent last_event; /* last event dispatched */ | ||
| 320 | Time last_timestamp; /* from last event dispatched */ | ||
| 321 | int multi_click_time; /* for XtSetMultiClickTime */ | ||
| 322 | struct _TMKeyContextRec* tm_context; /* for XtGetActionKeysym */ | ||
| 323 | InternalCallbackList mapping_callbacks; /* special case for TM */ | ||
| 324 | XtPerDisplayInputRec pdi; /* state for modal grabs & kbd focus */ | ||
| 325 | struct _WWTable *WWtable; /* window to widget table */ | ||
| 326 | XrmDatabase *per_screen_db; /* per screen resource databases */ | ||
| 327 | XrmDatabase cmd_db; /* db from command line, if needed */ | ||
| 328 | XrmDatabase server_db; /* resource property else .Xdefaults */ | ||
| 329 | XtEventDispatchProc* dispatcher_list; | ||
| 330 | ExtSelectRec* ext_select_list; | ||
| 331 | int ext_select_count; | ||
| 332 | Widget hook_object; | ||
| 333 | #ifndef X_NO_RESOURCE_CONFIGURATION_MANAGEMENT | ||
| 334 | Atom rcm_init; /* ResConfig - initialize */ | ||
| 335 | Atom rcm_data; /* ResConfig - data atom */ | ||
| 336 | #endif | ||
| 337 | } XtPerDisplayStruct, *XtPerDisplay; | ||
| 338 | |||
| 339 | typedef struct _PerDisplayTable { | ||
| 340 | Display *dpy; | ||
| 341 | XtPerDisplayStruct perDpy; | ||
| 342 | struct _PerDisplayTable *next; | ||
| 343 | } PerDisplayTable, *PerDisplayTablePtr; | ||
| 344 | |||
| 345 | extern PerDisplayTablePtr _XtperDisplayList; | ||
| 346 | |||
| 347 | extern XtPerDisplay _XtSortPerDisplayList( | ||
| 348 | Display* /* dpy */ | ||
| 349 | ); | ||
| 350 | |||
| 351 | extern XtPerDisplay _XtGetPerDisplay( | ||
| 352 | Display* /* dpy */ | ||
| 353 | ); | ||
| 354 | |||
| 355 | extern XtPerDisplayInputRec* _XtGetPerDisplayInput( | ||
| 356 | Display* /* dpy */ | ||
| 357 | ); | ||
| 358 | |||
| 359 | #if 0 | ||
| 360 | #ifdef DEBUG | ||
| 361 | #define _XtGetPerDisplay(display) \ | ||
| 362 | ((_XtperDisplayList != NULL && (_XtperDisplayList->dpy == (display))) \ | ||
| 363 | ? &_XtperDisplayList->perDpy \ | ||
| 364 | : _XtSortPerDisplayList(display)) | ||
| 365 | #define _XtGetPerDisplayInput(display) \ | ||
| 366 | ((_XtperDisplayList != NULL && (_XtperDisplayList->dpy == (display))) \ | ||
| 367 | ? &_XtperDisplayList->perDpy.pdi \ | ||
| 368 | : &_XtSortPerDisplayList(display)->pdi) | ||
| 369 | #else | ||
| 370 | #define _XtGetPerDisplay(display) \ | ||
| 371 | ((_XtperDisplayList->dpy == (display)) \ | ||
| 372 | ? &_XtperDisplayList->perDpy \ | ||
| 373 | : _XtSortPerDisplayList(display)) | ||
| 374 | #define _XtGetPerDisplayInput(display) \ | ||
| 375 | ((_XtperDisplayList->dpy == (display)) \ | ||
| 376 | ? &_XtperDisplayList->perDpy.pdi \ | ||
| 377 | : &_XtSortPerDisplayList(display)->pdi) | ||
| 378 | #endif /*DEBUG*/ | ||
| 379 | #endif | ||
| 380 | |||
| 381 | extern void _XtDisplayInitialize( | ||
| 382 | Display* /* dpy */, | ||
| 383 | XtPerDisplay /* pd */, | ||
| 384 | _Xconst char* /* name */, | ||
| 385 | XrmOptionDescRec* /* urlist */, | ||
| 386 | Cardinal /* num_urs */, | ||
| 387 | int* /* argc */, | ||
| 388 | char** /* argv */ | ||
| 389 | ); | ||
| 390 | |||
| 391 | extern void _XtCacheFlushTag( | ||
| 392 | XtAppContext /* app */, | ||
| 393 | XtPointer /* tag */ | ||
| 394 | ); | ||
| 395 | |||
| 396 | extern void _XtFreeActions( | ||
| 397 | struct _ActionListRec* /* action_table */ | ||
| 398 | ); | ||
| 399 | |||
| 400 | extern void _XtDoPhase2Destroy( | ||
| 401 | XtAppContext /* app */, | ||
| 402 | int /* dispatch_level */ | ||
| 403 | ); | ||
| 404 | |||
| 405 | extern void _XtDoFreeBindings( | ||
| 406 | XtAppContext /* app */ | ||
| 407 | ); | ||
| 408 | |||
| 409 | extern void _XtExtensionSelect( | ||
| 410 | Widget /* widget */ | ||
| 411 | ); | ||
| 412 | |||
| 413 | #define _XtSafeToDestroy(app) ((app)->dispatch_level == 0) | ||
| 414 | |||
| 415 | extern void _XtAllocWWTable( | ||
| 416 | XtPerDisplay pd | ||
| 417 | ); | ||
| 418 | |||
| 419 | extern void _XtFreeWWTable( | ||
| 420 | XtPerDisplay pd | ||
| 421 | ); | ||
| 422 | |||
| 423 | extern String _XtGetUserName(String dest, int len); | ||
| 424 | extern XrmDatabase _XtPreparseCommandLine(XrmOptionDescRec *urlist, | ||
| 425 | Cardinal num_urs, int argc, String *argv, | ||
| 426 | String *applName, String *displayName, | ||
| 427 | String *language); | ||
| 428 | |||
| 429 | #endif /* _XtinitialI_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Intrinsic.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Intrinsic.h new file mode 100644 index 0000000000..0461b842f4 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Intrinsic.h | |||
| @@ -0,0 +1,2589 @@ | |||
| 1 | /* $Xorg: Intrinsic.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts, | ||
| 5 | |||
| 6 | All Rights Reserved | ||
| 7 | |||
| 8 | Permission to use, copy, modify, and distribute this software and its | ||
| 9 | documentation for any purpose and without fee is hereby granted, | ||
| 10 | provided that the above copyright notice appear in all copies and that | ||
| 11 | both that copyright notice and this permission notice appear in | ||
| 12 | supporting documentation, and that the name Digital not be | ||
| 13 | used in advertising or publicity pertaining to distribution of the | ||
| 14 | software without specific, written prior permission. | ||
| 15 | |||
| 16 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 17 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 18 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 19 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 21 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 22 | SOFTWARE. | ||
| 23 | |||
| 24 | ******************************************************************/ | ||
| 25 | |||
| 26 | /* | ||
| 27 | |||
| 28 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 29 | |||
| 30 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 31 | documentation for any purpose is hereby granted without fee, provided that | ||
| 32 | the above copyright notice appear in all copies and that both that | ||
| 33 | copyright notice and this permission notice appear in supporting | ||
| 34 | documentation. | ||
| 35 | |||
| 36 | The above copyright notice and this permission notice shall be included in | ||
| 37 | all copies or substantial portions of the Software. | ||
| 38 | |||
| 39 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 40 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 41 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 42 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 43 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 44 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 45 | |||
| 46 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 47 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 48 | in this Software without prior written authorization from The Open Group. | ||
| 49 | |||
| 50 | */ | ||
| 51 | /* $XFree86: xc/lib/Xt/Intrinsic.h,v 3.8 2001/12/14 19:56:22 dawes Exp $ */ | ||
| 52 | |||
| 53 | #ifndef _XtIntrinsic_h | ||
| 54 | #define _XtIntrinsic_h | ||
| 55 | |||
| 56 | #include <X11/Xlib.h> | ||
| 57 | #include <X11/Xutil.h> | ||
| 58 | #include <X11/Xresource.h> | ||
| 59 | #include <X11/Xfuncproto.h> | ||
| 60 | #ifdef XT_BC | ||
| 61 | #include <X11/Xos.h> /* for R4 compatibility */ | ||
| 62 | #else | ||
| 63 | #include <X11/Xosdefs.h> | ||
| 64 | #include <string.h> /* for XtNewString */ | ||
| 65 | #endif /* XT_BC else */ | ||
| 66 | |||
| 67 | #define XtSpecificationRelease 6 | ||
| 68 | |||
| 69 | typedef char *String; | ||
| 70 | |||
| 71 | /* We do this in order to get "const" declarations to work right. We | ||
| 72 | * use _XtString instead of String so that C++ applications can | ||
| 73 | * #define String to something else if they choose, to avoid conflicts | ||
| 74 | * with other C++ libraries. | ||
| 75 | */ | ||
| 76 | #define _XtString char* | ||
| 77 | |||
| 78 | /* _Xt names are private to Xt implementation, do not use in client code */ | ||
| 79 | #if NeedWidePrototypes | ||
| 80 | #define _XtBoolean int | ||
| 81 | #define _XtDimension unsigned int | ||
| 82 | #define _XtKeyCode unsigned int | ||
| 83 | #define _XtPosition int | ||
| 84 | #define _XtXtEnum unsigned int | ||
| 85 | #else | ||
| 86 | #define _XtBoolean Boolean | ||
| 87 | #define _XtDimension Dimension | ||
| 88 | #define _XtKeyCode KeyCode | ||
| 89 | #define _XtPosition Position | ||
| 90 | #define _XtXtEnum XtEnum | ||
| 91 | #endif /* NeedWidePrototypes */ | ||
| 92 | |||
| 93 | #include <stddef.h> | ||
| 94 | |||
| 95 | #ifdef VMS | ||
| 96 | #define externalref globalref | ||
| 97 | #define externaldef(psect) globaldef {"psect"} noshare | ||
| 98 | #else | ||
| 99 | #define externalref extern | ||
| 100 | #define externaldef(psect) | ||
| 101 | #endif /* VMS */ | ||
| 102 | |||
| 103 | #ifndef FALSE | ||
| 104 | #define FALSE 0 | ||
| 105 | #define TRUE 1 | ||
| 106 | #endif | ||
| 107 | |||
| 108 | #define XtNumber(arr) ((Cardinal) (sizeof(arr) / sizeof(arr[0]))) | ||
| 109 | |||
| 110 | typedef struct _WidgetRec *Widget; | ||
| 111 | typedef Widget *WidgetList; | ||
| 112 | typedef struct _WidgetClassRec *WidgetClass; | ||
| 113 | typedef struct _CompositeRec *CompositeWidget; | ||
| 114 | typedef struct _XtActionsRec *XtActionList; | ||
| 115 | typedef struct _XtEventRec *XtEventTable; | ||
| 116 | |||
| 117 | typedef struct _XtAppStruct *XtAppContext; | ||
| 118 | typedef unsigned long XtValueMask; | ||
| 119 | typedef unsigned long XtIntervalId; | ||
| 120 | typedef unsigned long XtInputId; | ||
| 121 | typedef unsigned long XtWorkProcId; | ||
| 122 | typedef unsigned long XtSignalId; | ||
| 123 | typedef unsigned int XtGeometryMask; | ||
| 124 | typedef unsigned long XtGCMask; /* Mask of values that are used by widget*/ | ||
| 125 | typedef unsigned long Pixel; /* Index into colormap */ | ||
| 126 | typedef int XtCacheType; | ||
| 127 | #define XtCacheNone 0x001 | ||
| 128 | #define XtCacheAll 0x002 | ||
| 129 | #define XtCacheByDisplay 0x003 | ||
| 130 | #define XtCacheRefCount 0x100 | ||
| 131 | |||
| 132 | /**************************************************************** | ||
| 133 | * | ||
| 134 | * System Dependent Definitions; see spec for specific range | ||
| 135 | * requirements. Do not assume every implementation uses the | ||
| 136 | * same base types! | ||
| 137 | * | ||
| 138 | * | ||
| 139 | * XtArgVal ought to be a union of XtPointer, char *, long, int *, and proc * | ||
| 140 | * but casting to union types is not really supported. | ||
| 141 | * | ||
| 142 | * So the typedef for XtArgVal should be chosen such that | ||
| 143 | * | ||
| 144 | * sizeof (XtArgVal) >= sizeof(XtPointer) | ||
| 145 | * sizeof(char *) | ||
| 146 | * sizeof(long) | ||
| 147 | * sizeof(int *) | ||
| 148 | * sizeof(proc *) | ||
| 149 | * | ||
| 150 | * ArgLists rely heavily on the above typedef. | ||
| 151 | * | ||
| 152 | ****************************************************************/ | ||
| 153 | #ifdef CRAY | ||
| 154 | typedef long Boolean; | ||
| 155 | typedef char* XtArgVal; | ||
| 156 | typedef long XtEnum; | ||
| 157 | #else | ||
| 158 | typedef char Boolean; | ||
| 159 | typedef long XtArgVal; | ||
| 160 | typedef unsigned char XtEnum; | ||
| 161 | #endif | ||
| 162 | |||
| 163 | typedef unsigned int Cardinal; | ||
| 164 | typedef unsigned short Dimension; /* Size in pixels */ | ||
| 165 | typedef short Position; /* Offset from 0 coordinate */ | ||
| 166 | |||
| 167 | typedef void* XtPointer; | ||
| 168 | |||
| 169 | /* The type Opaque is NOT part of the Xt standard, do NOT use it. */ | ||
| 170 | /* (It remains here only for backward compatibility.) */ | ||
| 171 | typedef XtPointer Opaque; | ||
| 172 | |||
| 173 | #include <X11/Core.h> | ||
| 174 | #include <X11/Composite.h> | ||
| 175 | #include <X11/Constraint.h> | ||
| 176 | #include <X11/Object.h> | ||
| 177 | #include <X11/RectObj.h> | ||
| 178 | |||
| 179 | typedef struct _TranslationData *XtTranslations; | ||
| 180 | typedef struct _TranslationData *XtAccelerators; | ||
| 181 | typedef unsigned int Modifiers; | ||
| 182 | |||
| 183 | typedef void (*XtActionProc)( | ||
| 184 | Widget /* widget */, | ||
| 185 | XEvent* /* event */, | ||
| 186 | String* /* params */, | ||
| 187 | Cardinal* /* num_params */ | ||
| 188 | ); | ||
| 189 | |||
| 190 | typedef XtActionProc* XtBoundActions; | ||
| 191 | |||
| 192 | typedef struct _XtActionsRec{ | ||
| 193 | String string; | ||
| 194 | XtActionProc proc; | ||
| 195 | } XtActionsRec; | ||
| 196 | |||
| 197 | typedef enum { | ||
| 198 | /* address mode parameter representation */ | ||
| 199 | /* ------------ ------------------------ */ | ||
| 200 | XtAddress, /* address */ | ||
| 201 | XtBaseOffset, /* offset */ | ||
| 202 | XtImmediate, /* constant */ | ||
| 203 | XtResourceString, /* resource name string */ | ||
| 204 | XtResourceQuark, /* resource name quark */ | ||
| 205 | XtWidgetBaseOffset, /* offset from ancestor */ | ||
| 206 | XtProcedureArg /* procedure to invoke */ | ||
| 207 | } XtAddressMode; | ||
| 208 | |||
| 209 | typedef struct { | ||
| 210 | XtAddressMode address_mode; | ||
| 211 | XtPointer address_id; | ||
| 212 | Cardinal size; | ||
| 213 | } XtConvertArgRec, *XtConvertArgList; | ||
| 214 | |||
| 215 | typedef void (*XtConvertArgProc)( | ||
| 216 | Widget /* widget */, | ||
| 217 | Cardinal* /* size */, | ||
| 218 | XrmValue* /* value */ | ||
| 219 | ); | ||
| 220 | |||
| 221 | typedef struct { | ||
| 222 | XtGeometryMask request_mode; | ||
| 223 | Position x, y; | ||
| 224 | Dimension width, height, border_width; | ||
| 225 | Widget sibling; | ||
| 226 | int stack_mode; /* Above, Below, TopIf, BottomIf, Opposite, DontChange */ | ||
| 227 | } XtWidgetGeometry; | ||
| 228 | |||
| 229 | /* Additions to Xlib geometry requests: ask what would happen, don't do it */ | ||
| 230 | #define XtCWQueryOnly (1 << 7) | ||
| 231 | |||
| 232 | /* Additions to Xlib stack modes: don't change stack order */ | ||
| 233 | #define XtSMDontChange 5 | ||
| 234 | |||
| 235 | typedef void (*XtConverter)( /* obsolete */ | ||
| 236 | XrmValue* /* args */, | ||
| 237 | Cardinal* /* num_args */, | ||
| 238 | XrmValue* /* from */, | ||
| 239 | XrmValue* /* to */ | ||
| 240 | ); | ||
| 241 | |||
| 242 | typedef Boolean (*XtTypeConverter)( | ||
| 243 | Display* /* dpy */, | ||
| 244 | XrmValue* /* args */, | ||
| 245 | Cardinal* /* num_args */, | ||
| 246 | XrmValue* /* from */, | ||
| 247 | XrmValue* /* to */, | ||
| 248 | XtPointer* /* converter_data */ | ||
| 249 | ); | ||
| 250 | |||
| 251 | typedef void (*XtDestructor)( | ||
| 252 | XtAppContext /* app */, | ||
| 253 | XrmValue* /* to */, | ||
| 254 | XtPointer /* converter_data */, | ||
| 255 | XrmValue* /* args */, | ||
| 256 | Cardinal* /* num_args */ | ||
| 257 | ); | ||
| 258 | |||
| 259 | typedef Opaque XtCacheRef; | ||
| 260 | |||
| 261 | typedef Opaque XtActionHookId; | ||
| 262 | |||
| 263 | typedef void (*XtActionHookProc)( | ||
| 264 | Widget /* w */, | ||
| 265 | XtPointer /* client_data */, | ||
| 266 | String /* action_name */, | ||
| 267 | XEvent* /* event */, | ||
| 268 | String* /* params */, | ||
| 269 | Cardinal* /* num_params */ | ||
| 270 | ); | ||
| 271 | |||
| 272 | typedef unsigned long XtBlockHookId; | ||
| 273 | |||
| 274 | typedef void (*XtBlockHookProc)( | ||
| 275 | XtPointer /* client_data */ | ||
| 276 | ); | ||
| 277 | |||
| 278 | typedef void (*XtKeyProc)( | ||
| 279 | Display* /* dpy */, | ||
| 280 | _XtKeyCode /* keycode */, | ||
| 281 | Modifiers /* modifiers */, | ||
| 282 | Modifiers* /* modifiers_return */, | ||
| 283 | KeySym* /* keysym_return */ | ||
| 284 | ); | ||
| 285 | |||
| 286 | typedef void (*XtCaseProc)( | ||
| 287 | Display* /* display */, | ||
| 288 | KeySym /* keysym */, | ||
| 289 | KeySym* /* lower_return */, | ||
| 290 | KeySym* /* upper_return */ | ||
| 291 | ); | ||
| 292 | |||
| 293 | typedef void (*XtEventHandler)( | ||
| 294 | Widget /* widget */, | ||
| 295 | XtPointer /* closure */, | ||
| 296 | XEvent* /* event */, | ||
| 297 | Boolean* /* continue_to_dispatch */ | ||
| 298 | ); | ||
| 299 | typedef unsigned long EventMask; | ||
| 300 | |||
| 301 | typedef enum {XtListHead, XtListTail } XtListPosition; | ||
| 302 | |||
| 303 | typedef unsigned long XtInputMask; | ||
| 304 | #define XtInputNoneMask 0L | ||
| 305 | #define XtInputReadMask (1L<<0) | ||
| 306 | #define XtInputWriteMask (1L<<1) | ||
| 307 | #define XtInputExceptMask (1L<<2) | ||
| 308 | |||
| 309 | typedef void (*XtTimerCallbackProc)( | ||
| 310 | XtPointer /* closure */, | ||
| 311 | XtIntervalId* /* id */ | ||
| 312 | ); | ||
| 313 | |||
| 314 | typedef void (*XtInputCallbackProc)( | ||
| 315 | XtPointer /* closure */, | ||
| 316 | int* /* source */, | ||
| 317 | XtInputId* /* id */ | ||
| 318 | ); | ||
| 319 | |||
| 320 | typedef void (*XtSignalCallbackProc)( | ||
| 321 | XtPointer /* closure */, | ||
| 322 | XtSignalId* /* id */ | ||
| 323 | ); | ||
| 324 | |||
| 325 | typedef struct { | ||
| 326 | String name; | ||
| 327 | XtArgVal value; | ||
| 328 | } Arg, *ArgList; | ||
| 329 | |||
| 330 | typedef XtPointer XtVarArgsList; | ||
| 331 | |||
| 332 | typedef void (*XtCallbackProc)( | ||
| 333 | Widget /* widget */, | ||
| 334 | XtPointer /* closure */, /* data the application registered */ | ||
| 335 | XtPointer /* call_data */ /* callback specific data */ | ||
| 336 | ); | ||
| 337 | |||
| 338 | typedef struct _XtCallbackRec { | ||
| 339 | XtCallbackProc callback; | ||
| 340 | XtPointer closure; | ||
| 341 | } XtCallbackRec, *XtCallbackList; | ||
| 342 | |||
| 343 | typedef enum { | ||
| 344 | XtCallbackNoList, | ||
| 345 | XtCallbackHasNone, | ||
| 346 | XtCallbackHasSome | ||
| 347 | } XtCallbackStatus; | ||
| 348 | |||
| 349 | typedef enum { | ||
| 350 | XtGeometryYes, /* Request accepted. */ | ||
| 351 | XtGeometryNo, /* Request denied. */ | ||
| 352 | XtGeometryAlmost, /* Request denied, but willing to take replyBox. */ | ||
| 353 | XtGeometryDone /* Request accepted and done. */ | ||
| 354 | } XtGeometryResult; | ||
| 355 | |||
| 356 | typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind; | ||
| 357 | |||
| 358 | typedef struct { | ||
| 359 | Widget shell_widget; | ||
| 360 | Widget enable_widget; | ||
| 361 | } XtPopdownIDRec, *XtPopdownID; | ||
| 362 | |||
| 363 | typedef struct _XtResource { | ||
| 364 | String resource_name; /* Resource name */ | ||
| 365 | String resource_class; /* Resource class */ | ||
| 366 | String resource_type; /* Representation type desired */ | ||
| 367 | Cardinal resource_size; /* Size in bytes of representation */ | ||
| 368 | Cardinal resource_offset;/* Offset from base to put resource value */ | ||
| 369 | String default_type; /* representation type of specified default */ | ||
| 370 | XtPointer default_addr; /* Address of default resource */ | ||
| 371 | } XtResource, *XtResourceList; | ||
| 372 | |||
| 373 | typedef void (*XtResourceDefaultProc)( | ||
| 374 | Widget /* widget */, | ||
| 375 | int /* offset */, | ||
| 376 | XrmValue* /* value */ | ||
| 377 | ); | ||
| 378 | |||
| 379 | typedef String (*XtLanguageProc)( | ||
| 380 | Display* /* dpy */, | ||
| 381 | String /* xnl */, | ||
| 382 | XtPointer /* client_data */ | ||
| 383 | ); | ||
| 384 | |||
| 385 | typedef void (*XtErrorMsgHandler)( | ||
| 386 | String /* name */, | ||
| 387 | String /* type */, | ||
| 388 | String /* class */, | ||
| 389 | String /* default */, | ||
| 390 | String* /* params */, | ||
| 391 | Cardinal* /* num_params */ | ||
| 392 | ); | ||
| 393 | |||
| 394 | typedef void (*XtErrorHandler)( | ||
| 395 | String /* msg */ | ||
| 396 | ); | ||
| 397 | |||
| 398 | typedef void (*XtCreatePopupChildProc)( | ||
| 399 | Widget /* shell */ | ||
| 400 | ); | ||
| 401 | |||
| 402 | typedef Boolean (*XtWorkProc)( | ||
| 403 | XtPointer /* closure */ /* data the application registered */ | ||
| 404 | ); | ||
| 405 | |||
| 406 | typedef struct { | ||
| 407 | char match; | ||
| 408 | String substitution; | ||
| 409 | } SubstitutionRec, *Substitution; | ||
| 410 | |||
| 411 | typedef Boolean (*XtFilePredicate)( | ||
| 412 | String /* filename */ | ||
| 413 | ); | ||
| 414 | |||
| 415 | typedef XtPointer XtRequestId; | ||
| 416 | |||
| 417 | typedef Boolean (*XtConvertSelectionProc)( | ||
| 418 | Widget /* widget */, | ||
| 419 | Atom* /* selection */, | ||
| 420 | Atom* /* target */, | ||
| 421 | Atom* /* type_return */, | ||
| 422 | XtPointer* /* value_return */, | ||
| 423 | unsigned long* /* length_return */, | ||
| 424 | int* /* format_return */ | ||
| 425 | ); | ||
| 426 | |||
| 427 | typedef void (*XtLoseSelectionProc)( | ||
| 428 | Widget /* widget */, | ||
| 429 | Atom* /* selection */ | ||
| 430 | ); | ||
| 431 | |||
| 432 | typedef void (*XtSelectionDoneProc)( | ||
| 433 | Widget /* widget */, | ||
| 434 | Atom* /* selection */, | ||
| 435 | Atom* /* target */ | ||
| 436 | ); | ||
| 437 | |||
| 438 | typedef void (*XtSelectionCallbackProc)( | ||
| 439 | Widget /* widget */, | ||
| 440 | XtPointer /* closure */, | ||
| 441 | Atom* /* selection */, | ||
| 442 | Atom* /* type */, | ||
| 443 | XtPointer /* value */, | ||
| 444 | unsigned long* /* length */, | ||
| 445 | int* /* format */ | ||
| 446 | ); | ||
| 447 | |||
| 448 | typedef void (*XtLoseSelectionIncrProc)( | ||
| 449 | Widget /* widget */, | ||
| 450 | Atom* /* selection */, | ||
| 451 | XtPointer /* client_data */ | ||
| 452 | ); | ||
| 453 | |||
| 454 | typedef void (*XtSelectionDoneIncrProc)( | ||
| 455 | Widget /* widget */, | ||
| 456 | Atom* /* selection */, | ||
| 457 | Atom* /* target */, | ||
| 458 | XtRequestId* /* receiver_id */, | ||
| 459 | XtPointer /* client_data */ | ||
| 460 | ); | ||
| 461 | |||
| 462 | typedef Boolean (*XtConvertSelectionIncrProc)( | ||
| 463 | Widget /* widget */, | ||
| 464 | Atom* /* selection */, | ||
| 465 | Atom* /* target */, | ||
| 466 | Atom* /* type */, | ||
| 467 | XtPointer* /* value */, | ||
| 468 | unsigned long* /* length */, | ||
| 469 | int* /* format */, | ||
| 470 | unsigned long* /* max_length */, | ||
| 471 | XtPointer /* client_data */, | ||
| 472 | XtRequestId* /* receiver_id */ | ||
| 473 | ); | ||
| 474 | |||
| 475 | typedef void (*XtCancelConvertSelectionProc)( | ||
| 476 | Widget /* widget */, | ||
| 477 | Atom* /* selection */, | ||
| 478 | Atom* /* target */, | ||
| 479 | XtRequestId* /* receiver_id */, | ||
| 480 | XtPointer /* client_data */ | ||
| 481 | ); | ||
| 482 | |||
| 483 | typedef Boolean (*XtEventDispatchProc)( | ||
| 484 | XEvent* /* event */ | ||
| 485 | ); | ||
| 486 | |||
| 487 | typedef void (*XtExtensionSelectProc)( | ||
| 488 | Widget /* widget */, | ||
| 489 | int* /* event_types */, | ||
| 490 | XtPointer* /* select_data */, | ||
| 491 | int /* count */, | ||
| 492 | XtPointer /* client_data */ | ||
| 493 | ); | ||
| 494 | |||
| 495 | /*************************************************************** | ||
| 496 | * | ||
| 497 | * Exported Interfaces | ||
| 498 | * | ||
| 499 | ****************************************************************/ | ||
| 500 | |||
| 501 | _XFUNCPROTOBEGIN | ||
| 502 | |||
| 503 | extern Boolean XtConvertAndStore( | ||
| 504 | Widget /* widget */, | ||
| 505 | _Xconst _XtString /* from_type */, | ||
| 506 | XrmValue* /* from */, | ||
| 507 | _Xconst _XtString /* to_type */, | ||
| 508 | XrmValue* /* to_in_out */ | ||
| 509 | ); | ||
| 510 | |||
| 511 | extern Boolean XtCallConverter( | ||
| 512 | Display* /* dpy */, | ||
| 513 | XtTypeConverter /* converter */, | ||
| 514 | XrmValuePtr /* args */, | ||
| 515 | Cardinal /* num_args */, | ||
| 516 | XrmValuePtr /* from */, | ||
| 517 | XrmValue* /* to_in_out */, | ||
| 518 | XtCacheRef* /* cache_ref_return */ | ||
| 519 | ); | ||
| 520 | |||
| 521 | extern Boolean XtDispatchEvent( | ||
| 522 | XEvent* /* event */ | ||
| 523 | ); | ||
| 524 | |||
| 525 | extern Boolean XtCallAcceptFocus( | ||
| 526 | Widget /* widget */, | ||
| 527 | Time* /* time */ | ||
| 528 | ); | ||
| 529 | |||
| 530 | extern Boolean XtPeekEvent( /* obsolete */ | ||
| 531 | XEvent* /* event_return */ | ||
| 532 | ); | ||
| 533 | |||
| 534 | extern Boolean XtAppPeekEvent( | ||
| 535 | XtAppContext /* app_context */, | ||
| 536 | XEvent* /* event_return */ | ||
| 537 | ); | ||
| 538 | |||
| 539 | extern Boolean XtIsSubclass( | ||
| 540 | Widget /* widget */, | ||
| 541 | WidgetClass /* widgetClass */ | ||
| 542 | ); | ||
| 543 | |||
| 544 | extern Boolean XtIsObject( | ||
| 545 | Widget /* object */ | ||
| 546 | ); | ||
| 547 | |||
| 548 | extern Boolean _XtCheckSubclassFlag( /* implementation-private */ | ||
| 549 | Widget /* object */, | ||
| 550 | _XtXtEnum /* type_flag */ | ||
| 551 | ); | ||
| 552 | |||
| 553 | extern Boolean _XtIsSubclassOf( /* implementation-private */ | ||
| 554 | Widget /* object */, | ||
| 555 | WidgetClass /* widget_class */, | ||
| 556 | WidgetClass /* flag_class */, | ||
| 557 | _XtXtEnum /* type_flag */ | ||
| 558 | ); | ||
| 559 | |||
| 560 | extern Boolean XtIsManaged( | ||
| 561 | Widget /* rectobj */ | ||
| 562 | ); | ||
| 563 | |||
| 564 | extern Boolean XtIsRealized( | ||
| 565 | Widget /* widget */ | ||
| 566 | ); | ||
| 567 | |||
| 568 | extern Boolean XtIsSensitive( | ||
| 569 | Widget /* widget */ | ||
| 570 | ); | ||
| 571 | |||
| 572 | extern Boolean XtOwnSelection( | ||
| 573 | Widget /* widget */, | ||
| 574 | Atom /* selection */, | ||
| 575 | Time /* time */, | ||
| 576 | XtConvertSelectionProc /* convert */, | ||
| 577 | XtLoseSelectionProc /* lose */, | ||
| 578 | XtSelectionDoneProc /* done */ | ||
| 579 | ); | ||
| 580 | |||
| 581 | extern Boolean XtOwnSelectionIncremental( | ||
| 582 | Widget /* widget */, | ||
| 583 | Atom /* selection */, | ||
| 584 | Time /* time */, | ||
| 585 | XtConvertSelectionIncrProc /* convert_callback */, | ||
| 586 | XtLoseSelectionIncrProc /* lose_callback */, | ||
| 587 | XtSelectionDoneIncrProc /* done_callback */, | ||
| 588 | XtCancelConvertSelectionProc /* cancel_callback */, | ||
| 589 | XtPointer /* client_data */ | ||
| 590 | ); | ||
| 591 | |||
| 592 | extern XtGeometryResult XtMakeResizeRequest( | ||
| 593 | Widget /* widget */, | ||
| 594 | _XtDimension /* width */, | ||
| 595 | _XtDimension /* height */, | ||
| 596 | Dimension* /* width_return */, | ||
| 597 | Dimension* /* height_return */ | ||
| 598 | ); | ||
| 599 | |||
| 600 | extern void XtTranslateCoords( | ||
| 601 | Widget /* widget */, | ||
| 602 | _XtPosition /* x */, | ||
| 603 | _XtPosition /* y */, | ||
| 604 | Position* /* rootx_return */, | ||
| 605 | Position* /* rooty_return */ | ||
| 606 | ); | ||
| 607 | |||
| 608 | extern KeySym* XtGetKeysymTable( | ||
| 609 | Display* /* dpy */, | ||
| 610 | KeyCode* /* min_keycode_return */, | ||
| 611 | int* /* keysyms_per_keycode_return */ | ||
| 612 | ); | ||
| 613 | |||
| 614 | extern void XtKeysymToKeycodeList( | ||
| 615 | Display* /* dpy */, | ||
| 616 | KeySym /* keysym */, | ||
| 617 | KeyCode** /* keycodes_return */, | ||
| 618 | Cardinal* /* keycount_return */ | ||
| 619 | ); | ||
| 620 | |||
| 621 | extern void XtStringConversionWarning( /* obsolete */ | ||
| 622 | _Xconst _XtString /* from_value */, | ||
| 623 | _Xconst _XtString /* to_type */ | ||
| 624 | ); | ||
| 625 | |||
| 626 | extern void XtDisplayStringConversionWarning( | ||
| 627 | Display* /* dpy */, | ||
| 628 | _Xconst _XtString /* from_value */, | ||
| 629 | _Xconst _XtString /* to_type */ | ||
| 630 | ); | ||
| 631 | |||
| 632 | externalref XtConvertArgRec const colorConvertArgs[]; | ||
| 633 | externalref XtConvertArgRec const screenConvertArg[]; | ||
| 634 | |||
| 635 | extern void XtAppAddConverter( /* obsolete */ | ||
| 636 | XtAppContext /* app_context */, | ||
| 637 | _Xconst _XtString /* from_type */, | ||
| 638 | _Xconst _XtString /* to_type */, | ||
| 639 | XtConverter /* converter */, | ||
| 640 | XtConvertArgList /* convert_args */, | ||
| 641 | Cardinal /* num_args */ | ||
| 642 | ); | ||
| 643 | |||
| 644 | extern void XtAddConverter( /* obsolete */ | ||
| 645 | _Xconst _XtString /* from_type */, | ||
| 646 | _Xconst _XtString /* to_type */, | ||
| 647 | XtConverter /* converter */, | ||
| 648 | XtConvertArgList /* convert_args */, | ||
| 649 | Cardinal /* num_args */ | ||
| 650 | ); | ||
| 651 | |||
| 652 | extern void XtSetTypeConverter( | ||
| 653 | _Xconst _XtString /* from_type */, | ||
| 654 | _Xconst _XtString /* to_type */, | ||
| 655 | XtTypeConverter /* converter */, | ||
| 656 | XtConvertArgList /* convert_args */, | ||
| 657 | Cardinal /* num_args */, | ||
| 658 | XtCacheType /* cache_type */, | ||
| 659 | XtDestructor /* destructor */ | ||
| 660 | ); | ||
| 661 | |||
| 662 | extern void XtAppSetTypeConverter( | ||
| 663 | XtAppContext /* app_context */, | ||
| 664 | _Xconst _XtString /* from_type */, | ||
| 665 | _Xconst _XtString /* to_type */, | ||
| 666 | XtTypeConverter /* converter */, | ||
| 667 | XtConvertArgList /* convert_args */, | ||
| 668 | Cardinal /* num_args */, | ||
| 669 | XtCacheType /* cache_type */, | ||
| 670 | XtDestructor /* destructor */ | ||
| 671 | ); | ||
| 672 | |||
| 673 | extern void XtConvert( /* obsolete */ | ||
| 674 | Widget /* widget */, | ||
| 675 | _Xconst _XtString /* from_type */, | ||
| 676 | XrmValue* /* from */, | ||
| 677 | _Xconst _XtString /* to_type */, | ||
| 678 | XrmValue* /* to_return */ | ||
| 679 | ); | ||
| 680 | |||
| 681 | extern void XtDirectConvert( /* obsolete */ | ||
| 682 | XtConverter /* converter */, | ||
| 683 | XrmValuePtr /* args */, | ||
| 684 | Cardinal /* num_args */, | ||
| 685 | XrmValuePtr /* from */, | ||
| 686 | XrmValue* /* to_return */ | ||
| 687 | ); | ||
| 688 | |||
| 689 | /**************************************************************** | ||
| 690 | * | ||
| 691 | * Translation Management | ||
| 692 | * | ||
| 693 | ****************************************************************/ | ||
| 694 | |||
| 695 | extern XtTranslations XtParseTranslationTable( | ||
| 696 | _Xconst _XtString /* table */ | ||
| 697 | ); | ||
| 698 | |||
| 699 | extern XtAccelerators XtParseAcceleratorTable( | ||
| 700 | _Xconst _XtString /* source */ | ||
| 701 | ); | ||
| 702 | |||
| 703 | extern void XtOverrideTranslations( | ||
| 704 | Widget /* widget */, | ||
| 705 | XtTranslations /* translations */ | ||
| 706 | ); | ||
| 707 | |||
| 708 | extern void XtAugmentTranslations( | ||
| 709 | Widget /* widget */, | ||
| 710 | XtTranslations /* translations */ | ||
| 711 | ); | ||
| 712 | |||
| 713 | extern void XtInstallAccelerators( | ||
| 714 | Widget /* destination */, | ||
| 715 | Widget /* source */ | ||
| 716 | ); | ||
| 717 | |||
| 718 | extern void XtInstallAllAccelerators( | ||
| 719 | Widget /* destination */, | ||
| 720 | Widget /* source */ | ||
| 721 | ); | ||
| 722 | |||
| 723 | extern void XtUninstallTranslations( | ||
| 724 | Widget /* widget */ | ||
| 725 | ); | ||
| 726 | |||
| 727 | extern void XtAppAddActions( | ||
| 728 | XtAppContext /* app_context */, | ||
| 729 | XtActionList /* actions */, | ||
| 730 | Cardinal /* num_actions */ | ||
| 731 | ); | ||
| 732 | |||
| 733 | extern void XtAddActions( /* obsolete */ | ||
| 734 | XtActionList /* actions */, | ||
| 735 | Cardinal /* num_actions */ | ||
| 736 | ); | ||
| 737 | |||
| 738 | extern XtActionHookId XtAppAddActionHook( | ||
| 739 | XtAppContext /* app_context */, | ||
| 740 | XtActionHookProc /* proc */, | ||
| 741 | XtPointer /* client_data */ | ||
| 742 | ); | ||
| 743 | |||
| 744 | extern void XtRemoveActionHook( | ||
| 745 | XtActionHookId /* id */ | ||
| 746 | ); | ||
| 747 | |||
| 748 | extern void XtGetActionList( | ||
| 749 | WidgetClass /* widget_class */, | ||
| 750 | XtActionList* /* actions_return */, | ||
| 751 | Cardinal* /* num_actions_return */ | ||
| 752 | ); | ||
| 753 | |||
| 754 | extern void XtCallActionProc( | ||
| 755 | Widget /* widget */, | ||
| 756 | _Xconst _XtString /* action */, | ||
| 757 | XEvent* /* event */, | ||
| 758 | String* /* params */, | ||
| 759 | Cardinal /* num_params */ | ||
| 760 | ); | ||
| 761 | |||
| 762 | extern void XtRegisterGrabAction( | ||
| 763 | XtActionProc /* action_proc */, | ||
| 764 | _XtBoolean /* owner_events */, | ||
| 765 | unsigned int /* event_mask */, | ||
| 766 | int /* pointer_mode */, | ||
| 767 | int /* keyboard_mode */ | ||
| 768 | ); | ||
| 769 | |||
| 770 | extern void XtSetMultiClickTime( | ||
| 771 | Display* /* dpy */, | ||
| 772 | int /* milliseconds */ | ||
| 773 | ); | ||
| 774 | |||
| 775 | extern int XtGetMultiClickTime( | ||
| 776 | Display* /* dpy */ | ||
| 777 | ); | ||
| 778 | |||
| 779 | extern KeySym XtGetActionKeysym( | ||
| 780 | XEvent* /* event */, | ||
| 781 | Modifiers* /* modifiers_return */ | ||
| 782 | ); | ||
| 783 | |||
| 784 | /*************************************************************** | ||
| 785 | * | ||
| 786 | * Keycode and Keysym procedures for translation management | ||
| 787 | * | ||
| 788 | ****************************************************************/ | ||
| 789 | |||
| 790 | extern void XtTranslateKeycode( | ||
| 791 | Display* /* dpy */, | ||
| 792 | _XtKeyCode /* keycode */, | ||
| 793 | Modifiers /* modifiers */, | ||
| 794 | Modifiers* /* modifiers_return */, | ||
| 795 | KeySym* /* keysym_return */ | ||
| 796 | ); | ||
| 797 | |||
| 798 | extern void XtTranslateKey( | ||
| 799 | Display* /* dpy */, | ||
| 800 | _XtKeyCode /* keycode */, | ||
| 801 | Modifiers /* modifiers */, | ||
| 802 | Modifiers* /* modifiers_return */, | ||
| 803 | KeySym* /* keysym_return */ | ||
| 804 | ); | ||
| 805 | |||
| 806 | extern void XtSetKeyTranslator( | ||
| 807 | Display* /* dpy */, | ||
| 808 | XtKeyProc /* proc */ | ||
| 809 | ); | ||
| 810 | |||
| 811 | extern void XtRegisterCaseConverter( | ||
| 812 | Display* /* dpy */, | ||
| 813 | XtCaseProc /* proc */, | ||
| 814 | KeySym /* start */, | ||
| 815 | KeySym /* stop */ | ||
| 816 | ); | ||
| 817 | |||
| 818 | extern void XtConvertCase( | ||
| 819 | Display* /* dpy */, | ||
| 820 | KeySym /* keysym */, | ||
| 821 | KeySym* /* lower_return */, | ||
| 822 | KeySym* /* upper_return */ | ||
| 823 | ); | ||
| 824 | |||
| 825 | /**************************************************************** | ||
| 826 | * | ||
| 827 | * Event Management | ||
| 828 | * | ||
| 829 | ****************************************************************/ | ||
| 830 | |||
| 831 | /* XtAllEvents is valid only for XtRemoveEventHandler and | ||
| 832 | * XtRemoveRawEventHandler; don't use it to select events! | ||
| 833 | */ | ||
| 834 | #define XtAllEvents ((EventMask) -1L) | ||
| 835 | |||
| 836 | extern void XtAddEventHandler( | ||
| 837 | Widget /* widget */, | ||
| 838 | EventMask /* event_mask */, | ||
| 839 | _XtBoolean /* nonmaskable */, | ||
| 840 | XtEventHandler /* proc */, | ||
| 841 | XtPointer /* closure */ | ||
| 842 | ); | ||
| 843 | |||
| 844 | extern void XtRemoveEventHandler( | ||
| 845 | Widget /* widget */, | ||
| 846 | EventMask /* event_mask */, | ||
| 847 | _XtBoolean /* nonmaskable */, | ||
| 848 | XtEventHandler /* proc */, | ||
| 849 | XtPointer /* closure */ | ||
| 850 | ); | ||
| 851 | |||
| 852 | extern void XtAddRawEventHandler( | ||
| 853 | Widget /* widget */, | ||
| 854 | EventMask /* event_mask */, | ||
| 855 | _XtBoolean /* nonmaskable */, | ||
| 856 | XtEventHandler /* proc */, | ||
| 857 | XtPointer /* closure */ | ||
| 858 | ); | ||
| 859 | |||
| 860 | extern void XtRemoveRawEventHandler( | ||
| 861 | Widget /* widget */, | ||
| 862 | EventMask /* event_mask */, | ||
| 863 | _XtBoolean /* nonmaskable */, | ||
| 864 | XtEventHandler /* proc */, | ||
| 865 | XtPointer /* closure */ | ||
| 866 | ); | ||
| 867 | |||
| 868 | extern void XtInsertEventHandler( | ||
| 869 | Widget /* widget */, | ||
| 870 | EventMask /* event_mask */, | ||
| 871 | _XtBoolean /* nonmaskable */, | ||
| 872 | XtEventHandler /* proc */, | ||
| 873 | XtPointer /* closure */, | ||
| 874 | XtListPosition /* position */ | ||
| 875 | ); | ||
| 876 | |||
| 877 | extern void XtInsertRawEventHandler( | ||
| 878 | Widget /* widget */, | ||
| 879 | EventMask /* event_mask */, | ||
| 880 | _XtBoolean /* nonmaskable */, | ||
| 881 | XtEventHandler /* proc */, | ||
| 882 | XtPointer /* closure */, | ||
| 883 | XtListPosition /* position */ | ||
| 884 | ); | ||
| 885 | |||
| 886 | extern XtEventDispatchProc XtSetEventDispatcher( | ||
| 887 | Display* /* dpy */, | ||
| 888 | int /* event_type */, | ||
| 889 | XtEventDispatchProc /* proc */ | ||
| 890 | ); | ||
| 891 | |||
| 892 | extern Boolean XtDispatchEventToWidget( | ||
| 893 | Widget /* widget */, | ||
| 894 | XEvent* /* event */ | ||
| 895 | ); | ||
| 896 | |||
| 897 | extern void XtInsertEventTypeHandler( | ||
| 898 | Widget /* widget */, | ||
| 899 | int /* type */, | ||
| 900 | XtPointer /* select_data */, | ||
| 901 | XtEventHandler /* proc */, | ||
| 902 | XtPointer /* closure */, | ||
| 903 | XtListPosition /* position */ | ||
| 904 | ); | ||
| 905 | |||
| 906 | extern void XtRemoveEventTypeHandler( | ||
| 907 | Widget /* widget */, | ||
| 908 | int /* type */, | ||
| 909 | XtPointer /* select_data */, | ||
| 910 | XtEventHandler /* proc */, | ||
| 911 | XtPointer /* closure */ | ||
| 912 | ); | ||
| 913 | |||
| 914 | extern EventMask XtBuildEventMask( | ||
| 915 | Widget /* widget */ | ||
| 916 | ); | ||
| 917 | |||
| 918 | extern void XtRegisterExtensionSelector( | ||
| 919 | Display* /* dpy */, | ||
| 920 | int /* min_event_type */, | ||
| 921 | int /* max_event_type */, | ||
| 922 | XtExtensionSelectProc /* proc */, | ||
| 923 | XtPointer /* client_data */ | ||
| 924 | ); | ||
| 925 | |||
| 926 | extern void XtAddGrab( | ||
| 927 | Widget /* widget */, | ||
| 928 | _XtBoolean /* exclusive */, | ||
| 929 | _XtBoolean /* spring_loaded */ | ||
| 930 | ); | ||
| 931 | |||
| 932 | extern void XtRemoveGrab( | ||
| 933 | Widget /* widget */ | ||
| 934 | ); | ||
| 935 | |||
| 936 | extern void XtProcessEvent( /* obsolete */ | ||
| 937 | XtInputMask /* mask */ | ||
| 938 | ); | ||
| 939 | |||
| 940 | extern void XtAppProcessEvent( | ||
| 941 | XtAppContext /* app_context */, | ||
| 942 | XtInputMask /* mask */ | ||
| 943 | ); | ||
| 944 | |||
| 945 | extern void XtMainLoop( /* obsolete */ | ||
| 946 | void | ||
| 947 | ); | ||
| 948 | |||
| 949 | extern void XtAppMainLoop( | ||
| 950 | XtAppContext /* app_context */ | ||
| 951 | ); | ||
| 952 | |||
| 953 | extern void XtAddExposureToRegion( | ||
| 954 | XEvent* /* event */, | ||
| 955 | Region /* region */ | ||
| 956 | ); | ||
| 957 | |||
| 958 | extern void XtSetKeyboardFocus( | ||
| 959 | Widget /* subtree */, | ||
| 960 | Widget /* descendent */ | ||
| 961 | ); | ||
| 962 | |||
| 963 | extern Widget XtGetKeyboardFocusWidget( | ||
| 964 | Widget /* widget */ | ||
| 965 | ); | ||
| 966 | |||
| 967 | extern XEvent* XtLastEventProcessed( | ||
| 968 | Display* /* dpy */ | ||
| 969 | ); | ||
| 970 | |||
| 971 | extern Time XtLastTimestampProcessed( | ||
| 972 | Display* /* dpy */ | ||
| 973 | ); | ||
| 974 | |||
| 975 | /**************************************************************** | ||
| 976 | * | ||
| 977 | * Event Gathering Routines | ||
| 978 | * | ||
| 979 | ****************************************************************/ | ||
| 980 | |||
| 981 | extern XtIntervalId XtAddTimeOut( /* obsolete */ | ||
| 982 | unsigned long /* interval */, | ||
| 983 | XtTimerCallbackProc /* proc */, | ||
| 984 | XtPointer /* closure */ | ||
| 985 | ); | ||
| 986 | |||
| 987 | extern XtIntervalId XtAppAddTimeOut( | ||
| 988 | XtAppContext /* app_context */, | ||
| 989 | unsigned long /* interval */, | ||
| 990 | XtTimerCallbackProc /* proc */, | ||
| 991 | XtPointer /* closure */ | ||
| 992 | ); | ||
| 993 | |||
| 994 | extern void XtRemoveTimeOut( | ||
| 995 | XtIntervalId /* timer */ | ||
| 996 | ); | ||
| 997 | |||
| 998 | extern XtInputId XtAddInput( /* obsolete */ | ||
| 999 | int /* source */, | ||
| 1000 | XtPointer /* condition */, | ||
| 1001 | XtInputCallbackProc /* proc */, | ||
| 1002 | XtPointer /* closure */ | ||
| 1003 | ); | ||
| 1004 | |||
| 1005 | extern XtInputId XtAppAddInput( | ||
| 1006 | XtAppContext /* app_context */, | ||
| 1007 | int /* source */, | ||
| 1008 | XtPointer /* condition */, | ||
| 1009 | XtInputCallbackProc /* proc */, | ||
| 1010 | XtPointer /* closure */ | ||
| 1011 | ); | ||
| 1012 | |||
| 1013 | extern void XtRemoveInput( | ||
| 1014 | XtInputId /* id */ | ||
| 1015 | ); | ||
| 1016 | |||
| 1017 | extern XtSignalId XtAddSignal( | ||
| 1018 | XtSignalCallbackProc /* proc */, | ||
| 1019 | XtPointer /* closure */); | ||
| 1020 | |||
| 1021 | extern XtSignalId XtAppAddSignal( | ||
| 1022 | XtAppContext /* app_context */, | ||
| 1023 | XtSignalCallbackProc /* proc */, | ||
| 1024 | XtPointer /* closure */ | ||
| 1025 | ); | ||
| 1026 | |||
| 1027 | extern void XtRemoveSignal( | ||
| 1028 | XtSignalId /* id */ | ||
| 1029 | ); | ||
| 1030 | |||
| 1031 | extern void XtNoticeSignal( | ||
| 1032 | XtSignalId /* id */ | ||
| 1033 | ); | ||
| 1034 | |||
| 1035 | extern void XtNextEvent( /* obsolete */ | ||
| 1036 | XEvent* /* event */ | ||
| 1037 | ); | ||
| 1038 | |||
| 1039 | extern void XtAppNextEvent( | ||
| 1040 | XtAppContext /* app_context */, | ||
| 1041 | XEvent* /* event_return */ | ||
| 1042 | ); | ||
| 1043 | |||
| 1044 | #define XtIMXEvent 1 | ||
| 1045 | #define XtIMTimer 2 | ||
| 1046 | #define XtIMAlternateInput 4 | ||
| 1047 | #define XtIMSignal 8 | ||
| 1048 | #define XtIMAll (XtIMXEvent | XtIMTimer | XtIMAlternateInput | XtIMSignal) | ||
| 1049 | |||
| 1050 | extern Boolean XtPending( /* obsolete */ | ||
| 1051 | void | ||
| 1052 | ); | ||
| 1053 | |||
| 1054 | extern XtInputMask XtAppPending( | ||
| 1055 | XtAppContext /* app_context */ | ||
| 1056 | ); | ||
| 1057 | |||
| 1058 | extern XtBlockHookId XtAppAddBlockHook( | ||
| 1059 | XtAppContext /* app_context */, | ||
| 1060 | XtBlockHookProc /* proc */, | ||
| 1061 | XtPointer /* client_data */ | ||
| 1062 | ); | ||
| 1063 | |||
| 1064 | extern void XtRemoveBlockHook( | ||
| 1065 | XtBlockHookId /* id */ | ||
| 1066 | ); | ||
| 1067 | |||
| 1068 | /**************************************************************** | ||
| 1069 | * | ||
| 1070 | * Random utility routines | ||
| 1071 | * | ||
| 1072 | ****************************************************************/ | ||
| 1073 | |||
| 1074 | #define XtIsRectObj(object) (_XtCheckSubclassFlag(object, (XtEnum)0x02)) | ||
| 1075 | #define XtIsWidget(object) (_XtCheckSubclassFlag(object, (XtEnum)0x04)) | ||
| 1076 | #define XtIsComposite(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x08)) | ||
| 1077 | #define XtIsConstraint(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x10)) | ||
| 1078 | #define XtIsShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x20)) | ||
| 1079 | |||
| 1080 | #undef XtIsOverrideShell | ||
| 1081 | extern Boolean XtIsOverrideShell(Widget /* object */); | ||
| 1082 | #define XtIsOverrideShell(widget) \ | ||
| 1083 | (_XtIsSubclassOf(widget, (WidgetClass)overrideShellWidgetClass, \ | ||
| 1084 | (WidgetClass)shellWidgetClass, (XtEnum)0x20)) | ||
| 1085 | |||
| 1086 | #define XtIsWMShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x40)) | ||
| 1087 | |||
| 1088 | #undef XtIsVendorShell | ||
| 1089 | extern Boolean XtIsVendorShell(Widget /* object */); | ||
| 1090 | #define XtIsVendorShell(widget) \ | ||
| 1091 | (_XtIsSubclassOf(widget, (WidgetClass)vendorShellWidgetClass, \ | ||
| 1092 | (WidgetClass)wmShellWidgetClass, (XtEnum)0x40)) | ||
| 1093 | |||
| 1094 | #undef XtIsTransientShell | ||
| 1095 | extern Boolean XtIsTransientShell(Widget /* object */); | ||
| 1096 | #define XtIsTransientShell(widget) \ | ||
| 1097 | (_XtIsSubclassOf(widget, (WidgetClass)transientShellWidgetClass, \ | ||
| 1098 | (WidgetClass)wmShellWidgetClass, (XtEnum)0x40)) | ||
| 1099 | #define XtIsTopLevelShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x80)) | ||
| 1100 | |||
| 1101 | #undef XtIsApplicationShell | ||
| 1102 | extern Boolean XtIsApplicationShell(Widget /* object */); | ||
| 1103 | #define XtIsApplicationShell(widget) \ | ||
| 1104 | (_XtIsSubclassOf(widget, (WidgetClass)applicationShellWidgetClass, \ | ||
| 1105 | (WidgetClass)topLevelShellWidgetClass, (XtEnum)0x80)) | ||
| 1106 | |||
| 1107 | #undef XtIsSessionShell | ||
| 1108 | extern Boolean XtIsSessionShell(Widget /* object */); | ||
| 1109 | #define XtIsSessionShell(widget) \ | ||
| 1110 | (_XtIsSubclassOf(widget, (WidgetClass)sessionShellWidgetClass, \ | ||
| 1111 | (WidgetClass)topLevelShellWidgetClass, (XtEnum)0x80)) | ||
| 1112 | |||
| 1113 | extern void XtRealizeWidget( | ||
| 1114 | Widget /* widget */ | ||
| 1115 | ); | ||
| 1116 | |||
| 1117 | void XtUnrealizeWidget( | ||
| 1118 | Widget /* widget */ | ||
| 1119 | ); | ||
| 1120 | |||
| 1121 | extern void XtDestroyWidget( | ||
| 1122 | Widget /* widget */ | ||
| 1123 | ); | ||
| 1124 | |||
| 1125 | extern void XtSetSensitive( | ||
| 1126 | Widget /* widget */, | ||
| 1127 | _XtBoolean /* sensitive */ | ||
| 1128 | ); | ||
| 1129 | |||
| 1130 | extern void XtSetMappedWhenManaged( | ||
| 1131 | Widget /* widget */, | ||
| 1132 | _XtBoolean /* mapped_when_managed */ | ||
| 1133 | ); | ||
| 1134 | |||
| 1135 | extern Widget XtNameToWidget( | ||
| 1136 | Widget /* reference */, | ||
| 1137 | _Xconst _XtString /* names */ | ||
| 1138 | ); | ||
| 1139 | |||
| 1140 | extern Widget XtWindowToWidget( | ||
| 1141 | Display* /* display */, | ||
| 1142 | Window /* window */ | ||
| 1143 | ); | ||
| 1144 | |||
| 1145 | extern XtPointer XtGetClassExtension( | ||
| 1146 | WidgetClass /* object_class */, | ||
| 1147 | Cardinal /* byte_offset */, | ||
| 1148 | XrmQuark /* type */, | ||
| 1149 | long /* version */, | ||
| 1150 | Cardinal /* record_size */ | ||
| 1151 | ); | ||
| 1152 | |||
| 1153 | /*************************************************************** | ||
| 1154 | * | ||
| 1155 | * Arg lists | ||
| 1156 | * | ||
| 1157 | ****************************************************************/ | ||
| 1158 | |||
| 1159 | |||
| 1160 | #define XtSetArg(arg, n, d) \ | ||
| 1161 | ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) )) | ||
| 1162 | |||
| 1163 | extern ArgList XtMergeArgLists( | ||
| 1164 | ArgList /* args1 */, | ||
| 1165 | Cardinal /* num_args1 */, | ||
| 1166 | ArgList /* args2 */, | ||
| 1167 | Cardinal /* num_args2 */ | ||
| 1168 | ); | ||
| 1169 | |||
| 1170 | /*************************************************************** | ||
| 1171 | * | ||
| 1172 | * Vararg lists | ||
| 1173 | * | ||
| 1174 | ****************************************************************/ | ||
| 1175 | |||
| 1176 | #define XtVaNestedList "XtVaNestedList" | ||
| 1177 | #define XtVaTypedArg "XtVaTypedArg" | ||
| 1178 | |||
| 1179 | extern XtVarArgsList XtVaCreateArgsList( | ||
| 1180 | XtPointer /*unused*/, ... | ||
| 1181 | ) _X_SENTINEL(0); | ||
| 1182 | |||
| 1183 | /************************************************************* | ||
| 1184 | * | ||
| 1185 | * Information routines | ||
| 1186 | * | ||
| 1187 | ************************************************************/ | ||
| 1188 | |||
| 1189 | #ifndef _XtIntrinsicP_h | ||
| 1190 | |||
| 1191 | /* We're not included from the private file, so define these */ | ||
| 1192 | |||
| 1193 | extern Display *XtDisplay( | ||
| 1194 | Widget /* widget */ | ||
| 1195 | ); | ||
| 1196 | |||
| 1197 | extern Display *XtDisplayOfObject( | ||
| 1198 | Widget /* object */ | ||
| 1199 | ); | ||
| 1200 | |||
| 1201 | extern Screen *XtScreen( | ||
| 1202 | Widget /* widget */ | ||
| 1203 | ); | ||
| 1204 | |||
| 1205 | extern Screen *XtScreenOfObject( | ||
| 1206 | Widget /* object */ | ||
| 1207 | ); | ||
| 1208 | |||
| 1209 | extern Window XtWindow( | ||
| 1210 | Widget /* widget */ | ||
| 1211 | ); | ||
| 1212 | |||
| 1213 | extern Window XtWindowOfObject( | ||
| 1214 | Widget /* object */ | ||
| 1215 | ); | ||
| 1216 | |||
| 1217 | extern String XtName( | ||
| 1218 | Widget /* object */ | ||
| 1219 | ); | ||
| 1220 | |||
| 1221 | extern WidgetClass XtSuperclass( | ||
| 1222 | Widget /* object */ | ||
| 1223 | ); | ||
| 1224 | |||
| 1225 | extern WidgetClass XtClass( | ||
| 1226 | Widget /* object */ | ||
| 1227 | ); | ||
| 1228 | |||
| 1229 | extern Widget XtParent( | ||
| 1230 | Widget /* widget */ | ||
| 1231 | ); | ||
| 1232 | |||
| 1233 | #endif /*_XtIntrinsicP_h*/ | ||
| 1234 | |||
| 1235 | #undef XtMapWidget | ||
| 1236 | extern void XtMapWidget(Widget /* w */); | ||
| 1237 | #define XtMapWidget(widget) XMapWindow(XtDisplay(widget), XtWindow(widget)) | ||
| 1238 | |||
| 1239 | #undef XtUnmapWidget | ||
| 1240 | extern void XtUnmapWidget(Widget /* w */); | ||
| 1241 | #define XtUnmapWidget(widget) \ | ||
| 1242 | XUnmapWindow(XtDisplay(widget), XtWindow(widget)) | ||
| 1243 | |||
| 1244 | extern void XtAddCallback( | ||
| 1245 | Widget /* widget */, | ||
| 1246 | _Xconst _XtString /* callback_name */, | ||
| 1247 | XtCallbackProc /* callback */, | ||
| 1248 | XtPointer /* closure */ | ||
| 1249 | ); | ||
| 1250 | |||
| 1251 | extern void XtRemoveCallback( | ||
| 1252 | Widget /* widget */, | ||
| 1253 | _Xconst _XtString /* callback_name */, | ||
| 1254 | XtCallbackProc /* callback */, | ||
| 1255 | XtPointer /* closure */ | ||
| 1256 | ); | ||
| 1257 | |||
| 1258 | extern void XtAddCallbacks( | ||
| 1259 | Widget /* widget */, | ||
| 1260 | _Xconst _XtString /* callback_name */, | ||
| 1261 | XtCallbackList /* callbacks */ | ||
| 1262 | ); | ||
| 1263 | |||
| 1264 | extern void XtRemoveCallbacks( | ||
| 1265 | Widget /* widget */, | ||
| 1266 | _Xconst _XtString /* callback_name */, | ||
| 1267 | XtCallbackList /* callbacks */ | ||
| 1268 | ); | ||
| 1269 | |||
| 1270 | extern void XtRemoveAllCallbacks( | ||
| 1271 | Widget /* widget */, | ||
| 1272 | _Xconst _XtString /* callback_name */ | ||
| 1273 | ); | ||
| 1274 | |||
| 1275 | |||
| 1276 | extern void XtCallCallbacks( | ||
| 1277 | Widget /* widget */, | ||
| 1278 | _Xconst _XtString /* callback_name */, | ||
| 1279 | XtPointer /* call_data */ | ||
| 1280 | ); | ||
| 1281 | |||
| 1282 | extern void XtCallCallbackList( | ||
| 1283 | Widget /* widget */, | ||
| 1284 | XtCallbackList /* callbacks */, | ||
| 1285 | XtPointer /* call_data */ | ||
| 1286 | ); | ||
| 1287 | |||
| 1288 | extern XtCallbackStatus XtHasCallbacks( | ||
| 1289 | Widget /* widget */, | ||
| 1290 | _Xconst _XtString /* callback_name */ | ||
| 1291 | ); | ||
| 1292 | |||
| 1293 | /**************************************************************** | ||
| 1294 | * | ||
| 1295 | * Geometry Management | ||
| 1296 | * | ||
| 1297 | ****************************************************************/ | ||
| 1298 | |||
| 1299 | |||
| 1300 | extern XtGeometryResult XtMakeGeometryRequest( | ||
| 1301 | Widget /* widget */, | ||
| 1302 | XtWidgetGeometry* /* request */, | ||
| 1303 | XtWidgetGeometry* /* reply_return */ | ||
| 1304 | ); | ||
| 1305 | |||
| 1306 | extern XtGeometryResult XtQueryGeometry( | ||
| 1307 | Widget /* widget */, | ||
| 1308 | XtWidgetGeometry* /* intended */, | ||
| 1309 | XtWidgetGeometry* /* preferred_return */ | ||
| 1310 | ); | ||
| 1311 | |||
| 1312 | extern Widget XtCreatePopupShell( | ||
| 1313 | _Xconst _XtString /* name */, | ||
| 1314 | WidgetClass /* widgetClass */, | ||
| 1315 | Widget /* parent */, | ||
| 1316 | ArgList /* args */, | ||
| 1317 | Cardinal /* num_args */ | ||
| 1318 | ); | ||
| 1319 | |||
| 1320 | extern Widget XtVaCreatePopupShell( | ||
| 1321 | _Xconst _XtString /* name */, | ||
| 1322 | WidgetClass /* widgetClass */, | ||
| 1323 | Widget /* parent */, | ||
| 1324 | ... | ||
| 1325 | ) _X_SENTINEL(0); | ||
| 1326 | |||
| 1327 | extern void XtPopup( | ||
| 1328 | Widget /* popup_shell */, | ||
| 1329 | XtGrabKind /* grab_kind */ | ||
| 1330 | ); | ||
| 1331 | |||
| 1332 | extern void XtPopupSpringLoaded( | ||
| 1333 | Widget /* popup_shell */ | ||
| 1334 | ); | ||
| 1335 | |||
| 1336 | extern void XtCallbackNone( | ||
| 1337 | Widget /* widget */, | ||
| 1338 | XtPointer /* closure */, | ||
| 1339 | XtPointer /* call_data */ | ||
| 1340 | ); | ||
| 1341 | |||
| 1342 | extern void XtCallbackNonexclusive( | ||
| 1343 | Widget /* widget */, | ||
| 1344 | XtPointer /* closure */, | ||
| 1345 | XtPointer /* call_data */ | ||
| 1346 | ); | ||
| 1347 | |||
| 1348 | extern void XtCallbackExclusive( | ||
| 1349 | Widget /* widget */, | ||
| 1350 | XtPointer /* closure */, | ||
| 1351 | XtPointer /* call_data */ | ||
| 1352 | ); | ||
| 1353 | |||
| 1354 | extern void XtPopdown( | ||
| 1355 | Widget /* popup_shell */ | ||
| 1356 | ); | ||
| 1357 | |||
| 1358 | extern void XtCallbackPopdown( | ||
| 1359 | Widget /* widget */, | ||
| 1360 | XtPointer /* closure */, | ||
| 1361 | XtPointer /* call_data */ | ||
| 1362 | ); | ||
| 1363 | |||
| 1364 | extern void XtMenuPopupAction( | ||
| 1365 | Widget /* widget */, | ||
| 1366 | XEvent* /* event */, | ||
| 1367 | String* /* params */, | ||
| 1368 | Cardinal* /* num_params */ | ||
| 1369 | ); | ||
| 1370 | |||
| 1371 | extern Widget XtCreateWidget( | ||
| 1372 | _Xconst _XtString /* name */, | ||
| 1373 | WidgetClass /* widget_class */, | ||
| 1374 | Widget /* parent */, | ||
| 1375 | ArgList /* args */, | ||
| 1376 | Cardinal /* num_args */ | ||
| 1377 | ); | ||
| 1378 | |||
| 1379 | extern Widget XtCreateManagedWidget( | ||
| 1380 | _Xconst _XtString /* name */, | ||
| 1381 | WidgetClass /* widget_class */, | ||
| 1382 | Widget /* parent */, | ||
| 1383 | ArgList /* args */, | ||
| 1384 | Cardinal /* num_args */ | ||
| 1385 | ); | ||
| 1386 | |||
| 1387 | extern Widget XtVaCreateWidget( | ||
| 1388 | _Xconst _XtString /* name */, | ||
| 1389 | WidgetClass /* widget */, | ||
| 1390 | Widget /* parent */, | ||
| 1391 | ... | ||
| 1392 | ) _X_SENTINEL(0); | ||
| 1393 | |||
| 1394 | extern Widget XtVaCreateManagedWidget( | ||
| 1395 | _Xconst _XtString /* name */, | ||
| 1396 | WidgetClass /* widget_class */, | ||
| 1397 | Widget /* parent */, | ||
| 1398 | ... | ||
| 1399 | ) _X_SENTINEL(0); | ||
| 1400 | |||
| 1401 | extern Widget XtCreateApplicationShell( /* obsolete */ | ||
| 1402 | _Xconst _XtString /* name */, | ||
| 1403 | WidgetClass /* widget_class */, | ||
| 1404 | ArgList /* args */, | ||
| 1405 | Cardinal /* num_args */ | ||
| 1406 | ); | ||
| 1407 | |||
| 1408 | extern Widget XtAppCreateShell( | ||
| 1409 | _Xconst _XtString /* application_name */, | ||
| 1410 | _Xconst _XtString /* application_class */, | ||
| 1411 | WidgetClass /* widget_class */, | ||
| 1412 | Display* /* display */, | ||
| 1413 | ArgList /* args */, | ||
| 1414 | Cardinal /* num_args */ | ||
| 1415 | ); | ||
| 1416 | |||
| 1417 | extern Widget XtVaAppCreateShell( | ||
| 1418 | _Xconst _XtString /* application_name */, | ||
| 1419 | _Xconst _XtString /* application_class */, | ||
| 1420 | WidgetClass /* widget_class */, | ||
| 1421 | Display* /* display */, | ||
| 1422 | ... | ||
| 1423 | ) _X_SENTINEL(0); | ||
| 1424 | |||
| 1425 | /**************************************************************** | ||
| 1426 | * | ||
| 1427 | * Toolkit initialization | ||
| 1428 | * | ||
| 1429 | ****************************************************************/ | ||
| 1430 | |||
| 1431 | extern void XtToolkitInitialize( | ||
| 1432 | void | ||
| 1433 | ); | ||
| 1434 | |||
| 1435 | extern XtLanguageProc XtSetLanguageProc( | ||
| 1436 | XtAppContext /* app_context */, | ||
| 1437 | XtLanguageProc /* proc */, | ||
| 1438 | XtPointer /* client_data */ | ||
| 1439 | ); | ||
| 1440 | |||
| 1441 | extern void XtDisplayInitialize( | ||
| 1442 | XtAppContext /* app_context */, | ||
| 1443 | Display* /* dpy */, | ||
| 1444 | _Xconst _XtString /* application_name */, | ||
| 1445 | _Xconst _XtString /* application_class */, | ||
| 1446 | XrmOptionDescRec* /* options */, | ||
| 1447 | Cardinal /* num_options */, | ||
| 1448 | int* /* argc */, | ||
| 1449 | char** /* argv */ | ||
| 1450 | ); | ||
| 1451 | |||
| 1452 | extern Widget XtOpenApplication( | ||
| 1453 | XtAppContext* /* app_context_return */, | ||
| 1454 | _Xconst _XtString /* application_class */, | ||
| 1455 | XrmOptionDescList /* options */, | ||
| 1456 | Cardinal /* num_options */, | ||
| 1457 | int* /* argc_in_out */, | ||
| 1458 | String* /* argv_in_out */, | ||
| 1459 | String* /* fallback_resources */, | ||
| 1460 | WidgetClass /* widget_class */, | ||
| 1461 | ArgList /* args */, | ||
| 1462 | Cardinal /* num_args */ | ||
| 1463 | ); | ||
| 1464 | |||
| 1465 | extern Widget XtVaOpenApplication( | ||
| 1466 | XtAppContext* /* app_context_return */, | ||
| 1467 | _Xconst _XtString /* application_class */, | ||
| 1468 | XrmOptionDescList /* options */, | ||
| 1469 | Cardinal /* num_options */, | ||
| 1470 | int* /* argc_in_out */, | ||
| 1471 | String* /* argv_in_out */, | ||
| 1472 | String* /* fallback_resources */, | ||
| 1473 | WidgetClass /* widget_class */, | ||
| 1474 | ... | ||
| 1475 | ) _X_SENTINEL(0); | ||
| 1476 | |||
| 1477 | extern Widget XtAppInitialize( /* obsolete */ | ||
| 1478 | XtAppContext* /* app_context_return */, | ||
| 1479 | _Xconst _XtString /* application_class */, | ||
| 1480 | XrmOptionDescList /* options */, | ||
| 1481 | Cardinal /* num_options */, | ||
| 1482 | int* /* argc_in_out */, | ||
| 1483 | String* /* argv_in_out */, | ||
| 1484 | String* /* fallback_resources */, | ||
| 1485 | ArgList /* args */, | ||
| 1486 | Cardinal /* num_args */ | ||
| 1487 | ); | ||
| 1488 | |||
| 1489 | extern Widget XtVaAppInitialize( /* obsolete */ | ||
| 1490 | XtAppContext* /* app_context_return */, | ||
| 1491 | _Xconst _XtString /* application_class */, | ||
| 1492 | XrmOptionDescList /* options */, | ||
| 1493 | Cardinal /* num_options */, | ||
| 1494 | int* /* argc_in_out */, | ||
| 1495 | String* /* argv_in_out */, | ||
| 1496 | String* /* fallback_resources */, | ||
| 1497 | ... | ||
| 1498 | ) _X_SENTINEL(0); | ||
| 1499 | |||
| 1500 | extern Widget XtInitialize( /* obsolete */ | ||
| 1501 | _Xconst _XtString /* shell_name */, | ||
| 1502 | _Xconst _XtString /* application_class */, | ||
| 1503 | XrmOptionDescRec* /* options */, | ||
| 1504 | Cardinal /* num_options */, | ||
| 1505 | int* /* argc */, | ||
| 1506 | char** /* argv */ | ||
| 1507 | ); | ||
| 1508 | |||
| 1509 | extern Display *XtOpenDisplay( | ||
| 1510 | XtAppContext /* app_context */, | ||
| 1511 | _Xconst _XtString /* display_string */, | ||
| 1512 | _Xconst _XtString /* application_name */, | ||
| 1513 | _Xconst _XtString /* application_class */, | ||
| 1514 | XrmOptionDescRec* /* options */, | ||
| 1515 | Cardinal /* num_options */, | ||
| 1516 | int* /* argc */, | ||
| 1517 | char** /* argv */ | ||
| 1518 | ); | ||
| 1519 | |||
| 1520 | extern XtAppContext XtCreateApplicationContext( | ||
| 1521 | void | ||
| 1522 | ); | ||
| 1523 | |||
| 1524 | extern void XtAppSetFallbackResources( | ||
| 1525 | XtAppContext /* app_context */, | ||
| 1526 | String* /* specification_list */ | ||
| 1527 | ); | ||
| 1528 | |||
| 1529 | extern void XtDestroyApplicationContext( | ||
| 1530 | XtAppContext /* app_context */ | ||
| 1531 | ); | ||
| 1532 | |||
| 1533 | extern void XtInitializeWidgetClass( | ||
| 1534 | WidgetClass /* widget_class */ | ||
| 1535 | ); | ||
| 1536 | |||
| 1537 | extern XtAppContext XtWidgetToApplicationContext( | ||
| 1538 | Widget /* widget */ | ||
| 1539 | ); | ||
| 1540 | |||
| 1541 | extern XtAppContext XtDisplayToApplicationContext( | ||
| 1542 | Display* /* dpy */ | ||
| 1543 | ); | ||
| 1544 | |||
| 1545 | extern XrmDatabase XtDatabase( | ||
| 1546 | Display* /* dpy */ | ||
| 1547 | ); | ||
| 1548 | |||
| 1549 | extern XrmDatabase XtScreenDatabase( | ||
| 1550 | Screen* /* screen */ | ||
| 1551 | ); | ||
| 1552 | |||
| 1553 | extern void XtCloseDisplay( | ||
| 1554 | Display* /* dpy */ | ||
| 1555 | ); | ||
| 1556 | |||
| 1557 | extern void XtGetApplicationResources( | ||
| 1558 | Widget /* widget */, | ||
| 1559 | XtPointer /* base */, | ||
| 1560 | XtResourceList /* resources */, | ||
| 1561 | Cardinal /* num_resources */, | ||
| 1562 | ArgList /* args */, | ||
| 1563 | Cardinal /* num_args */ | ||
| 1564 | ); | ||
| 1565 | |||
| 1566 | extern void XtVaGetApplicationResources( | ||
| 1567 | Widget /* widget */, | ||
| 1568 | XtPointer /* base */, | ||
| 1569 | XtResourceList /* resources */, | ||
| 1570 | Cardinal /* num_resources */, | ||
| 1571 | ... | ||
| 1572 | ) _X_SENTINEL(0); | ||
| 1573 | |||
| 1574 | extern void XtGetSubresources( | ||
| 1575 | Widget /* widget */, | ||
| 1576 | XtPointer /* base */, | ||
| 1577 | _Xconst _XtString /* name */, | ||
| 1578 | _Xconst _XtString /* class */, | ||
| 1579 | XtResourceList /* resources */, | ||
| 1580 | Cardinal /* num_resources */, | ||
| 1581 | ArgList /* args */, | ||
| 1582 | Cardinal /* num_args */ | ||
| 1583 | ); | ||
| 1584 | |||
| 1585 | extern void XtVaGetSubresources( | ||
| 1586 | Widget /* widget */, | ||
| 1587 | XtPointer /* base */, | ||
| 1588 | _Xconst _XtString /* name */, | ||
| 1589 | _Xconst _XtString /* class */, | ||
| 1590 | XtResourceList /* resources */, | ||
| 1591 | Cardinal /* num_resources */, | ||
| 1592 | ... | ||
| 1593 | ) _X_SENTINEL(0); | ||
| 1594 | |||
| 1595 | extern void XtSetValues( | ||
| 1596 | Widget /* widget */, | ||
| 1597 | ArgList /* args */, | ||
| 1598 | Cardinal /* num_args */ | ||
| 1599 | ); | ||
| 1600 | |||
| 1601 | extern void XtVaSetValues( | ||
| 1602 | Widget /* widget */, | ||
| 1603 | ... | ||
| 1604 | ) _X_SENTINEL(0); | ||
| 1605 | |||
| 1606 | extern void XtGetValues( | ||
| 1607 | Widget /* widget */, | ||
| 1608 | ArgList /* args */, | ||
| 1609 | Cardinal /* num_args */ | ||
| 1610 | ); | ||
| 1611 | |||
| 1612 | extern void XtVaGetValues( | ||
| 1613 | Widget /* widget */, | ||
| 1614 | ... | ||
| 1615 | ) _X_SENTINEL(0); | ||
| 1616 | |||
| 1617 | extern void XtSetSubvalues( | ||
| 1618 | XtPointer /* base */, | ||
| 1619 | XtResourceList /* resources */, | ||
| 1620 | Cardinal /* num_resources */, | ||
| 1621 | ArgList /* args */, | ||
| 1622 | Cardinal /* num_args */ | ||
| 1623 | ); | ||
| 1624 | |||
| 1625 | extern void XtVaSetSubvalues( | ||
| 1626 | XtPointer /* base */, | ||
| 1627 | XtResourceList /* resources */, | ||
| 1628 | Cardinal /* num_resources */, | ||
| 1629 | ... | ||
| 1630 | ) _X_SENTINEL(0); | ||
| 1631 | |||
| 1632 | extern void XtGetSubvalues( | ||
| 1633 | XtPointer /* base */, | ||
| 1634 | XtResourceList /* resources */, | ||
| 1635 | Cardinal /* num_resources */, | ||
| 1636 | ArgList /* args */, | ||
| 1637 | Cardinal /* num_args */ | ||
| 1638 | ); | ||
| 1639 | |||
| 1640 | extern void XtVaGetSubvalues( | ||
| 1641 | XtPointer /* base */, | ||
| 1642 | XtResourceList /* resources */, | ||
| 1643 | Cardinal /* num_resources */, | ||
| 1644 | ... | ||
| 1645 | ) _X_SENTINEL(0); | ||
| 1646 | |||
| 1647 | extern void XtGetResourceList( | ||
| 1648 | WidgetClass /* widget_class */, | ||
| 1649 | XtResourceList* /* resources_return */, | ||
| 1650 | Cardinal* /* num_resources_return */ | ||
| 1651 | ); | ||
| 1652 | |||
| 1653 | extern void XtGetConstraintResourceList( | ||
| 1654 | WidgetClass /* widget_class */, | ||
| 1655 | XtResourceList* /* resources_return */, | ||
| 1656 | Cardinal* /* num_resources_return */ | ||
| 1657 | ); | ||
| 1658 | |||
| 1659 | #define XtUnspecifiedPixmap ((Pixmap)2) | ||
| 1660 | #define XtUnspecifiedShellInt (-1) | ||
| 1661 | #define XtUnspecifiedWindow ((Window)2) | ||
| 1662 | #define XtUnspecifiedWindowGroup ((Window)3) | ||
| 1663 | #define XtCurrentDirectory "XtCurrentDirectory" | ||
| 1664 | #define XtDefaultForeground "XtDefaultForeground" | ||
| 1665 | #define XtDefaultBackground "XtDefaultBackground" | ||
| 1666 | #define XtDefaultFont "XtDefaultFont" | ||
| 1667 | #define XtDefaultFontSet "XtDefaultFontSet" | ||
| 1668 | |||
| 1669 | #if defined(CRAY) | ||
| 1670 | #define XtOffset(p_type,field) _Offsetof(p_type,field) | ||
| 1671 | #else /* ! CRAY */ | ||
| 1672 | #define XtOffset(p_type,field) \ | ||
| 1673 | ((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL))) | ||
| 1674 | #endif /* !CRAY */ | ||
| 1675 | |||
| 1676 | #ifdef offsetof | ||
| 1677 | #define XtOffsetOf(s_type,field) offsetof(s_type,field) | ||
| 1678 | #else | ||
| 1679 | #define XtOffsetOf(s_type,field) XtOffset(s_type*,field) | ||
| 1680 | #endif | ||
| 1681 | |||
| 1682 | /************************************************************* | ||
| 1683 | * | ||
| 1684 | * Session Management | ||
| 1685 | * | ||
| 1686 | ************************************************************/ | ||
| 1687 | |||
| 1688 | typedef struct _XtCheckpointTokenRec { | ||
| 1689 | int save_type; | ||
| 1690 | int interact_style; | ||
| 1691 | Boolean shutdown; | ||
| 1692 | Boolean fast; | ||
| 1693 | Boolean cancel_shutdown; | ||
| 1694 | int phase; | ||
| 1695 | int interact_dialog_type; /* return */ | ||
| 1696 | Boolean request_cancel; /* return */ | ||
| 1697 | Boolean request_next_phase; /* return */ | ||
| 1698 | Boolean save_success; /* return */ | ||
| 1699 | int type; /* implementation private */ | ||
| 1700 | Widget widget; /* implementation private */ | ||
| 1701 | } XtCheckpointTokenRec, *XtCheckpointToken; | ||
| 1702 | |||
| 1703 | XtCheckpointToken XtSessionGetToken( | ||
| 1704 | Widget /* widget */ | ||
| 1705 | ); | ||
| 1706 | |||
| 1707 | void XtSessionReturnToken( | ||
| 1708 | XtCheckpointToken /* token */ | ||
| 1709 | ); | ||
| 1710 | |||
| 1711 | /************************************************************* | ||
| 1712 | * | ||
| 1713 | * Error Handling | ||
| 1714 | * | ||
| 1715 | ************************************************************/ | ||
| 1716 | |||
| 1717 | extern XtErrorMsgHandler XtAppSetErrorMsgHandler( | ||
| 1718 | XtAppContext /* app_context */, | ||
| 1719 | XtErrorMsgHandler /* handler */ | ||
| 1720 | ); | ||
| 1721 | |||
| 1722 | extern void XtSetErrorMsgHandler( /* obsolete */ | ||
| 1723 | XtErrorMsgHandler /* handler */ | ||
| 1724 | ); | ||
| 1725 | |||
| 1726 | extern XtErrorMsgHandler XtAppSetWarningMsgHandler( | ||
| 1727 | XtAppContext /* app_context */, | ||
| 1728 | XtErrorMsgHandler /* handler */ | ||
| 1729 | ); | ||
| 1730 | |||
| 1731 | extern void XtSetWarningMsgHandler( /* obsolete */ | ||
| 1732 | XtErrorMsgHandler /* handler */ | ||
| 1733 | ); | ||
| 1734 | |||
| 1735 | extern void XtAppErrorMsg( | ||
| 1736 | XtAppContext /* app_context */, | ||
| 1737 | _Xconst _XtString /* name */, | ||
| 1738 | _Xconst _XtString /* type */, | ||
| 1739 | _Xconst _XtString /* class */, | ||
| 1740 | _Xconst _XtString /* default */, | ||
| 1741 | String* /* params */, | ||
| 1742 | Cardinal* /* num_params */ | ||
| 1743 | ); | ||
| 1744 | |||
| 1745 | extern void XtErrorMsg( /* obsolete */ | ||
| 1746 | _Xconst _XtString /* name */, | ||
| 1747 | _Xconst _XtString /* type */, | ||
| 1748 | _Xconst _XtString /* class */, | ||
| 1749 | _Xconst _XtString /* default */, | ||
| 1750 | String* /* params */, | ||
| 1751 | Cardinal* /* num_params */ | ||
| 1752 | ); | ||
| 1753 | |||
| 1754 | extern void XtAppWarningMsg( | ||
| 1755 | XtAppContext /* app_context */, | ||
| 1756 | _Xconst _XtString /* name */, | ||
| 1757 | _Xconst _XtString /* type */, | ||
| 1758 | _Xconst _XtString /* class */, | ||
| 1759 | _Xconst _XtString /* default */, | ||
| 1760 | String* /* params */, | ||
| 1761 | Cardinal* /* num_params */ | ||
| 1762 | ); | ||
| 1763 | |||
| 1764 | extern void XtWarningMsg( /* obsolete */ | ||
| 1765 | _Xconst _XtString /* name */, | ||
| 1766 | _Xconst _XtString /* type */, | ||
| 1767 | _Xconst _XtString /* class */, | ||
| 1768 | _Xconst _XtString /* default */, | ||
| 1769 | String* /* params */, | ||
| 1770 | Cardinal* /* num_params */ | ||
| 1771 | ); | ||
| 1772 | |||
| 1773 | extern XtErrorHandler XtAppSetErrorHandler( | ||
| 1774 | XtAppContext /* app_context */, | ||
| 1775 | XtErrorHandler /* handler */ | ||
| 1776 | ); | ||
| 1777 | |||
| 1778 | extern void XtSetErrorHandler( /* obsolete */ | ||
| 1779 | XtErrorHandler /* handler */ | ||
| 1780 | ); | ||
| 1781 | |||
| 1782 | extern XtErrorHandler XtAppSetWarningHandler( | ||
| 1783 | XtAppContext /* app_context */, | ||
| 1784 | XtErrorHandler /* handler */ | ||
| 1785 | ); | ||
| 1786 | |||
| 1787 | extern void XtSetWarningHandler( /* obsolete */ | ||
| 1788 | XtErrorHandler /* handler */ | ||
| 1789 | ); | ||
| 1790 | |||
| 1791 | extern void XtAppError( | ||
| 1792 | XtAppContext /* app_context */, | ||
| 1793 | _Xconst _XtString /* message */ | ||
| 1794 | ); | ||
| 1795 | |||
| 1796 | extern void XtError( /* obsolete */ | ||
| 1797 | _Xconst _XtString /* message */ | ||
| 1798 | ); | ||
| 1799 | |||
| 1800 | extern void XtAppWarning( | ||
| 1801 | XtAppContext /* app_context */, | ||
| 1802 | _Xconst _XtString /* message */ | ||
| 1803 | ); | ||
| 1804 | |||
| 1805 | extern void XtWarning( /* obsolete */ | ||
| 1806 | _Xconst _XtString /* message */ | ||
| 1807 | ); | ||
| 1808 | |||
| 1809 | extern XrmDatabase *XtAppGetErrorDatabase( | ||
| 1810 | XtAppContext /* app_context */ | ||
| 1811 | ); | ||
| 1812 | |||
| 1813 | extern XrmDatabase *XtGetErrorDatabase( /* obsolete */ | ||
| 1814 | void | ||
| 1815 | ); | ||
| 1816 | |||
| 1817 | extern void XtAppGetErrorDatabaseText( | ||
| 1818 | XtAppContext /* app_context */, | ||
| 1819 | _Xconst _XtString /* name */, | ||
| 1820 | _Xconst _XtString /* type */, | ||
| 1821 | _Xconst _XtString /* class */, | ||
| 1822 | _Xconst _XtString /* default */, | ||
| 1823 | String /* buffer_return */, | ||
| 1824 | int /* nbytes */, | ||
| 1825 | XrmDatabase /* database */ | ||
| 1826 | ); | ||
| 1827 | |||
| 1828 | extern void XtGetErrorDatabaseText( /* obsolete */ | ||
| 1829 | _Xconst _XtString /* name */, | ||
| 1830 | _Xconst _XtString /* type */, | ||
| 1831 | _Xconst _XtString /* class */, | ||
| 1832 | _Xconst _XtString /* default */, | ||
| 1833 | String /* buffer_return */, | ||
| 1834 | int /* nbytes */ | ||
| 1835 | ); | ||
| 1836 | |||
| 1837 | /**************************************************************** | ||
| 1838 | * | ||
| 1839 | * Memory Management | ||
| 1840 | * | ||
| 1841 | ****************************************************************/ | ||
| 1842 | |||
| 1843 | extern char *XtMalloc( | ||
| 1844 | Cardinal /* size */ | ||
| 1845 | ); | ||
| 1846 | |||
| 1847 | extern char *XtCalloc( | ||
| 1848 | Cardinal /* num */, | ||
| 1849 | Cardinal /* size */ | ||
| 1850 | ); | ||
| 1851 | |||
| 1852 | extern char *XtRealloc( | ||
| 1853 | char* /* ptr */, | ||
| 1854 | Cardinal /* num */ | ||
| 1855 | ); | ||
| 1856 | |||
| 1857 | extern void XtFree( | ||
| 1858 | char* /* ptr */ | ||
| 1859 | ); | ||
| 1860 | |||
| 1861 | #ifdef XTTRACEMEMORY | ||
| 1862 | |||
| 1863 | extern char *_XtMalloc( /* implementation-private */ | ||
| 1864 | Cardinal /* size */, | ||
| 1865 | char * /* file */, | ||
| 1866 | int /* line */ | ||
| 1867 | ); | ||
| 1868 | |||
| 1869 | extern char *_XtRealloc( /* implementation-private */ | ||
| 1870 | char * /* ptr */, | ||
| 1871 | Cardinal /* size */, | ||
| 1872 | char * /* file */, | ||
| 1873 | int /* line */ | ||
| 1874 | ); | ||
| 1875 | |||
| 1876 | extern char *_XtCalloc( /* implementation-private */ | ||
| 1877 | Cardinal /* num */, | ||
| 1878 | Cardinal /* size */, | ||
| 1879 | char * /* file */, | ||
| 1880 | int /* line */ | ||
| 1881 | ); | ||
| 1882 | |||
| 1883 | extern void _XtFree( /* implementation-private */ | ||
| 1884 | char * /* ptr */ | ||
| 1885 | ); | ||
| 1886 | |||
| 1887 | #define XtMalloc(size) _XtMalloc(size, __FILE__, __LINE__) | ||
| 1888 | #define XtRealloc(ptr,size) _XtRealloc(ptr, size, __FILE__, __LINE__) | ||
| 1889 | #define XtCalloc(num,size) _XtCalloc(num, size, __FILE__, __LINE__) | ||
| 1890 | #define XtFree(ptr) _XtFree(ptr) | ||
| 1891 | |||
| 1892 | #endif /* ifdef XTTRACEMEMORY */ | ||
| 1893 | |||
| 1894 | #define XtNew(type) ((type *) XtMalloc((unsigned) sizeof(type))) | ||
| 1895 | |||
| 1896 | #undef XtNewString | ||
| 1897 | extern String XtNewString(String /* str */); | ||
| 1898 | #define XtNewString(str) \ | ||
| 1899 | ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL) | ||
| 1900 | |||
| 1901 | /************************************************************* | ||
| 1902 | * | ||
| 1903 | * Work procs | ||
| 1904 | * | ||
| 1905 | **************************************************************/ | ||
| 1906 | |||
| 1907 | extern XtWorkProcId XtAddWorkProc( /* obsolete */ | ||
| 1908 | XtWorkProc /* proc */, | ||
| 1909 | XtPointer /* closure */ | ||
| 1910 | ); | ||
| 1911 | |||
| 1912 | extern XtWorkProcId XtAppAddWorkProc( | ||
| 1913 | XtAppContext /* app_context */, | ||
| 1914 | XtWorkProc /* proc */, | ||
| 1915 | XtPointer /* closure */ | ||
| 1916 | ); | ||
| 1917 | |||
| 1918 | extern void XtRemoveWorkProc( | ||
| 1919 | XtWorkProcId /* id */ | ||
| 1920 | ); | ||
| 1921 | |||
| 1922 | |||
| 1923 | /**************************************************************** | ||
| 1924 | * | ||
| 1925 | * Graphic Context Management | ||
| 1926 | *****************************************************************/ | ||
| 1927 | |||
| 1928 | extern GC XtGetGC( | ||
| 1929 | Widget /* widget */, | ||
| 1930 | XtGCMask /* valueMask */, | ||
| 1931 | XGCValues* /* values */ | ||
| 1932 | ); | ||
| 1933 | |||
| 1934 | extern GC XtAllocateGC( | ||
| 1935 | Widget /* widget */, | ||
| 1936 | Cardinal /* depth */, | ||
| 1937 | XtGCMask /* valueMask */, | ||
| 1938 | XGCValues* /* values */, | ||
| 1939 | XtGCMask /* dynamicMask */, | ||
| 1940 | XtGCMask /* unusedMask */ | ||
| 1941 | ); | ||
| 1942 | |||
| 1943 | /* This implementation of XtDestroyGC differs from the formal specification | ||
| 1944 | * for historic backwards compatibility reasons. As other implementations | ||
| 1945 | * may conform to the spec, use of XtReleaseGC is strongly encouraged. | ||
| 1946 | */ | ||
| 1947 | extern void XtDestroyGC( /* obsolete */ | ||
| 1948 | GC /* gc */ | ||
| 1949 | ); | ||
| 1950 | |||
| 1951 | extern void XtReleaseGC( | ||
| 1952 | Widget /* object */, | ||
| 1953 | GC /* gc */ | ||
| 1954 | ); | ||
| 1955 | |||
| 1956 | |||
| 1957 | |||
| 1958 | extern void XtAppReleaseCacheRefs( | ||
| 1959 | XtAppContext /* app_context */, | ||
| 1960 | XtCacheRef* /* cache_ref */ | ||
| 1961 | ); | ||
| 1962 | |||
| 1963 | extern void XtCallbackReleaseCacheRef( | ||
| 1964 | Widget /* widget */, | ||
| 1965 | XtPointer /* closure */, /* XtCacheRef */ | ||
| 1966 | XtPointer /* call_data */ | ||
| 1967 | ); | ||
| 1968 | |||
| 1969 | extern void XtCallbackReleaseCacheRefList( | ||
| 1970 | Widget /* widget */, | ||
| 1971 | XtPointer /* closure */, /* XtCacheRef* */ | ||
| 1972 | XtPointer /* call_data */ | ||
| 1973 | ); | ||
| 1974 | |||
| 1975 | extern void XtSetWMColormapWindows( | ||
| 1976 | Widget /* widget */, | ||
| 1977 | Widget* /* list */, | ||
| 1978 | Cardinal /* count */ | ||
| 1979 | ); | ||
| 1980 | |||
| 1981 | extern String XtFindFile( | ||
| 1982 | _Xconst _XtString /* path */, | ||
| 1983 | Substitution /* substitutions */, | ||
| 1984 | Cardinal /* num_substitutions */, | ||
| 1985 | XtFilePredicate /* predicate */ | ||
| 1986 | ); | ||
| 1987 | |||
| 1988 | extern String XtResolvePathname( | ||
| 1989 | Display* /* dpy */, | ||
| 1990 | _Xconst _XtString /* type */, | ||
| 1991 | _Xconst _XtString /* filename */, | ||
| 1992 | _Xconst _XtString /* suffix */, | ||
| 1993 | _Xconst _XtString /* path */, | ||
| 1994 | Substitution /* substitutions */, | ||
| 1995 | Cardinal /* num_substitutions */, | ||
| 1996 | XtFilePredicate /* predicate */ | ||
| 1997 | ); | ||
| 1998 | |||
| 1999 | /**************************************************************** | ||
| 2000 | * | ||
| 2001 | * Selections | ||
| 2002 | * | ||
| 2003 | *****************************************************************/ | ||
| 2004 | |||
| 2005 | #define XT_CONVERT_FAIL (Atom)0x80000001 | ||
| 2006 | |||
| 2007 | extern void XtDisownSelection( | ||
| 2008 | Widget /* widget */, | ||
| 2009 | Atom /* selection */, | ||
| 2010 | Time /* time */ | ||
| 2011 | ); | ||
| 2012 | |||
| 2013 | extern void XtGetSelectionValue( | ||
| 2014 | Widget /* widget */, | ||
| 2015 | Atom /* selection */, | ||
| 2016 | Atom /* target */, | ||
| 2017 | XtSelectionCallbackProc /* callback */, | ||
| 2018 | XtPointer /* closure */, | ||
| 2019 | Time /* time */ | ||
| 2020 | ); | ||
| 2021 | |||
| 2022 | extern void XtGetSelectionValues( | ||
| 2023 | Widget /* widget */, | ||
| 2024 | Atom /* selection */, | ||
| 2025 | Atom* /* targets */, | ||
| 2026 | int /* count */, | ||
| 2027 | XtSelectionCallbackProc /* callback */, | ||
| 2028 | XtPointer* /* closures */, | ||
| 2029 | Time /* time */ | ||
| 2030 | ); | ||
| 2031 | |||
| 2032 | extern void XtAppSetSelectionTimeout( | ||
| 2033 | XtAppContext /* app_context */, | ||
| 2034 | unsigned long /* timeout */ | ||
| 2035 | ); | ||
| 2036 | |||
| 2037 | extern void XtSetSelectionTimeout( /* obsolete */ | ||
| 2038 | unsigned long /* timeout */ | ||
| 2039 | ); | ||
| 2040 | |||
| 2041 | extern unsigned long XtAppGetSelectionTimeout( | ||
| 2042 | XtAppContext /* app_context */ | ||
| 2043 | ); | ||
| 2044 | |||
| 2045 | extern unsigned long XtGetSelectionTimeout( /* obsolete */ | ||
| 2046 | void | ||
| 2047 | ); | ||
| 2048 | |||
| 2049 | extern XSelectionRequestEvent *XtGetSelectionRequest( | ||
| 2050 | Widget /* widget */, | ||
| 2051 | Atom /* selection */, | ||
| 2052 | XtRequestId /* request_id */ | ||
| 2053 | ); | ||
| 2054 | |||
| 2055 | extern void XtGetSelectionValueIncremental( | ||
| 2056 | Widget /* widget */, | ||
| 2057 | Atom /* selection */, | ||
| 2058 | Atom /* target */, | ||
| 2059 | XtSelectionCallbackProc /* selection_callback */, | ||
| 2060 | XtPointer /* client_data */, | ||
| 2061 | Time /* time */ | ||
| 2062 | ); | ||
| 2063 | |||
| 2064 | extern void XtGetSelectionValuesIncremental( | ||
| 2065 | Widget /* widget */, | ||
| 2066 | Atom /* selection */, | ||
| 2067 | Atom* /* targets */, | ||
| 2068 | int /* count */, | ||
| 2069 | XtSelectionCallbackProc /* callback */, | ||
| 2070 | XtPointer* /* client_data */, | ||
| 2071 | Time /* time */ | ||
| 2072 | ); | ||
| 2073 | |||
| 2074 | extern void XtSetSelectionParameters( | ||
| 2075 | Widget /* requestor */, | ||
| 2076 | Atom /* selection */, | ||
| 2077 | Atom /* type */, | ||
| 2078 | XtPointer /* value */, | ||
| 2079 | unsigned long /* length */, | ||
| 2080 | int /* format */ | ||
| 2081 | ); | ||
| 2082 | |||
| 2083 | extern void XtGetSelectionParameters( | ||
| 2084 | Widget /* owner */, | ||
| 2085 | Atom /* selection */, | ||
| 2086 | XtRequestId /* request_id */, | ||
| 2087 | Atom* /* type_return */, | ||
| 2088 | XtPointer* /* value_return */, | ||
| 2089 | unsigned long* /* length_return */, | ||
| 2090 | int* /* format_return */ | ||
| 2091 | ); | ||
| 2092 | |||
| 2093 | extern void XtCreateSelectionRequest( | ||
| 2094 | Widget /* requestor */, | ||
| 2095 | Atom /* selection */ | ||
| 2096 | ); | ||
| 2097 | |||
| 2098 | extern void XtSendSelectionRequest( | ||
| 2099 | Widget /* requestor */, | ||
| 2100 | Atom /* selection */, | ||
| 2101 | Time /* time */ | ||
| 2102 | ); | ||
| 2103 | |||
| 2104 | extern void XtCancelSelectionRequest( | ||
| 2105 | Widget /* requestor */, | ||
| 2106 | Atom /* selection */ | ||
| 2107 | ); | ||
| 2108 | |||
| 2109 | extern Atom XtReservePropertyAtom( | ||
| 2110 | Widget /* widget */ | ||
| 2111 | ); | ||
| 2112 | |||
| 2113 | extern void XtReleasePropertyAtom( | ||
| 2114 | Widget /* widget */, | ||
| 2115 | Atom /* selection */ | ||
| 2116 | ); | ||
| 2117 | |||
| 2118 | extern void XtGrabKey( | ||
| 2119 | Widget /* widget */, | ||
| 2120 | _XtKeyCode /* keycode */, | ||
| 2121 | Modifiers /* modifiers */, | ||
| 2122 | _XtBoolean /* owner_events */, | ||
| 2123 | int /* pointer_mode */, | ||
| 2124 | int /* keyboard_mode */ | ||
| 2125 | ); | ||
| 2126 | |||
| 2127 | extern void XtUngrabKey( | ||
| 2128 | Widget /* widget */, | ||
| 2129 | _XtKeyCode /* keycode */, | ||
| 2130 | Modifiers /* modifiers */ | ||
| 2131 | ); | ||
| 2132 | |||
| 2133 | extern int XtGrabKeyboard( | ||
| 2134 | Widget /* widget */, | ||
| 2135 | _XtBoolean /* owner_events */, | ||
| 2136 | int /* pointer_mode */, | ||
| 2137 | int /* keyboard_mode */, | ||
| 2138 | Time /* time */ | ||
| 2139 | ); | ||
| 2140 | |||
| 2141 | extern void XtUngrabKeyboard( | ||
| 2142 | Widget /* widget */, | ||
| 2143 | Time /* time */ | ||
| 2144 | ); | ||
| 2145 | |||
| 2146 | extern void XtGrabButton( | ||
| 2147 | Widget /* widget */, | ||
| 2148 | int /* button */, | ||
| 2149 | Modifiers /* modifiers */, | ||
| 2150 | _XtBoolean /* owner_events */, | ||
| 2151 | unsigned int /* event_mask */, | ||
| 2152 | int /* pointer_mode */, | ||
| 2153 | int /* keyboard_mode */, | ||
| 2154 | Window /* confine_to */, | ||
| 2155 | Cursor /* cursor */ | ||
| 2156 | ); | ||
| 2157 | |||
| 2158 | extern void XtUngrabButton( | ||
| 2159 | Widget /* widget */, | ||
| 2160 | unsigned int /* button */, | ||
| 2161 | Modifiers /* modifiers */ | ||
| 2162 | ); | ||
| 2163 | |||
| 2164 | extern int XtGrabPointer( | ||
| 2165 | Widget /* widget */, | ||
| 2166 | _XtBoolean /* owner_events */, | ||
| 2167 | unsigned int /* event_mask */, | ||
| 2168 | int /* pointer_mode */, | ||
| 2169 | int /* keyboard_mode */, | ||
| 2170 | Window /* confine_to */, | ||
| 2171 | Cursor /* cursor */, | ||
| 2172 | Time /* time */ | ||
| 2173 | ); | ||
| 2174 | |||
| 2175 | extern void XtUngrabPointer( | ||
| 2176 | Widget /* widget */, | ||
| 2177 | Time /* time */ | ||
| 2178 | ); | ||
| 2179 | |||
| 2180 | extern void XtGetApplicationNameAndClass( | ||
| 2181 | Display* /* dpy */, | ||
| 2182 | String* /* name_return */, | ||
| 2183 | String* /* class_return */ | ||
| 2184 | ); | ||
| 2185 | |||
| 2186 | extern void XtRegisterDrawable( | ||
| 2187 | Display* /* dpy */, | ||
| 2188 | Drawable /* drawable */, | ||
| 2189 | Widget /* widget */ | ||
| 2190 | ); | ||
| 2191 | |||
| 2192 | extern void XtUnregisterDrawable( | ||
| 2193 | Display* /* dpy */, | ||
| 2194 | Drawable /* drawable */ | ||
| 2195 | ); | ||
| 2196 | |||
| 2197 | extern Widget XtHooksOfDisplay( | ||
| 2198 | Display* /* dpy */ | ||
| 2199 | ); | ||
| 2200 | |||
| 2201 | typedef struct { | ||
| 2202 | String type; | ||
| 2203 | Widget widget; | ||
| 2204 | ArgList args; | ||
| 2205 | Cardinal num_args; | ||
| 2206 | } XtCreateHookDataRec, *XtCreateHookData; | ||
| 2207 | |||
| 2208 | typedef struct { | ||
| 2209 | String type; | ||
| 2210 | Widget widget; | ||
| 2211 | XtPointer event_data; | ||
| 2212 | Cardinal num_event_data; | ||
| 2213 | } XtChangeHookDataRec, *XtChangeHookData; | ||
| 2214 | |||
| 2215 | typedef struct { | ||
| 2216 | Widget old, req; | ||
| 2217 | ArgList args; | ||
| 2218 | Cardinal num_args; | ||
| 2219 | } XtChangeHookSetValuesDataRec, *XtChangeHookSetValuesData; | ||
| 2220 | |||
| 2221 | typedef struct { | ||
| 2222 | String type; | ||
| 2223 | Widget widget; | ||
| 2224 | XtGeometryMask changeMask; | ||
| 2225 | XWindowChanges changes; | ||
| 2226 | } XtConfigureHookDataRec, *XtConfigureHookData; | ||
| 2227 | |||
| 2228 | typedef struct { | ||
| 2229 | String type; | ||
| 2230 | Widget widget; | ||
| 2231 | XtWidgetGeometry* request; | ||
| 2232 | XtWidgetGeometry* reply; | ||
| 2233 | XtGeometryResult result; | ||
| 2234 | } XtGeometryHookDataRec, *XtGeometryHookData; | ||
| 2235 | |||
| 2236 | typedef struct { | ||
| 2237 | String type; | ||
| 2238 | Widget widget; | ||
| 2239 | } XtDestroyHookDataRec, *XtDestroyHookData; | ||
| 2240 | |||
| 2241 | extern void XtGetDisplays( | ||
| 2242 | XtAppContext /* app_context */, | ||
| 2243 | Display*** /* dpy_return */, | ||
| 2244 | Cardinal* /* num_dpy_return */ | ||
| 2245 | ); | ||
| 2246 | |||
| 2247 | extern Boolean XtToolkitThreadInitialize( | ||
| 2248 | void | ||
| 2249 | ); | ||
| 2250 | |||
| 2251 | extern void XtAppSetExitFlag( | ||
| 2252 | XtAppContext /* app_context */ | ||
| 2253 | ); | ||
| 2254 | |||
| 2255 | extern Boolean XtAppGetExitFlag( | ||
| 2256 | XtAppContext /* app_context */ | ||
| 2257 | ); | ||
| 2258 | |||
| 2259 | extern void XtAppLock( | ||
| 2260 | XtAppContext /* app_context */ | ||
| 2261 | ); | ||
| 2262 | |||
| 2263 | extern void XtAppUnlock( | ||
| 2264 | XtAppContext /* app_context */ | ||
| 2265 | ); | ||
| 2266 | |||
| 2267 | /* | ||
| 2268 | * Predefined Resource Converters | ||
| 2269 | */ | ||
| 2270 | |||
| 2271 | |||
| 2272 | /* String converters */ | ||
| 2273 | |||
| 2274 | extern Boolean XtCvtStringToAcceleratorTable( | ||
| 2275 | Display* /* dpy */, | ||
| 2276 | XrmValuePtr /* args */, /* none */ | ||
| 2277 | Cardinal* /* num_args */, | ||
| 2278 | XrmValuePtr /* fromVal */, | ||
| 2279 | XrmValuePtr /* toVal */, | ||
| 2280 | XtPointer* /* closure_ret */ | ||
| 2281 | ); | ||
| 2282 | |||
| 2283 | extern Boolean XtCvtStringToAtom( | ||
| 2284 | Display* /* dpy */, | ||
| 2285 | XrmValuePtr /* args */, /* Display */ | ||
| 2286 | Cardinal* /* num_args */, | ||
| 2287 | XrmValuePtr /* fromVal */, | ||
| 2288 | XrmValuePtr /* toVal */, | ||
| 2289 | XtPointer* /* closure_ret */ | ||
| 2290 | ); | ||
| 2291 | |||
| 2292 | extern Boolean XtCvtStringToBool( | ||
| 2293 | Display* /* dpy */, | ||
| 2294 | XrmValuePtr /* args */, /* none */ | ||
| 2295 | Cardinal* /* num_args */, | ||
| 2296 | XrmValuePtr /* fromVal */, | ||
| 2297 | XrmValuePtr /* toVal */, | ||
| 2298 | XtPointer* /* closure_ret */ | ||
| 2299 | ); | ||
| 2300 | |||
| 2301 | extern Boolean XtCvtStringToBoolean( | ||
| 2302 | Display* /* dpy */, | ||
| 2303 | XrmValuePtr /* args */, /* none */ | ||
| 2304 | Cardinal* /* num_args */, | ||
| 2305 | XrmValuePtr /* fromVal */, | ||
| 2306 | XrmValuePtr /* toVal */, | ||
| 2307 | XtPointer* /* closure_ret */ | ||
| 2308 | ); | ||
| 2309 | |||
| 2310 | extern Boolean XtCvtStringToCommandArgArray( | ||
| 2311 | Display* /* dpy */, | ||
| 2312 | XrmValuePtr /* args */, /* none */ | ||
| 2313 | Cardinal* /* num_args */, | ||
| 2314 | XrmValuePtr /* fromVal */, | ||
| 2315 | XrmValuePtr /* toVal */, | ||
| 2316 | XtPointer* /* closure_ret */ | ||
| 2317 | ); | ||
| 2318 | |||
| 2319 | extern Boolean XtCvtStringToCursor( | ||
| 2320 | Display* /* dpy */, | ||
| 2321 | XrmValuePtr /* args */, /* Display */ | ||
| 2322 | Cardinal* /* num_args */, | ||
| 2323 | XrmValuePtr /* fromVal */, | ||
| 2324 | XrmValuePtr /* toVal */, | ||
| 2325 | XtPointer* /* closure_ret */ | ||
| 2326 | ); | ||
| 2327 | |||
| 2328 | extern Boolean XtCvtStringToDimension( | ||
| 2329 | Display* /* dpy */, | ||
| 2330 | XrmValuePtr /* args */, /* none */ | ||
| 2331 | Cardinal* /* num_args */, | ||
| 2332 | XrmValuePtr /* fromVal */, | ||
| 2333 | XrmValuePtr /* toVal */, | ||
| 2334 | XtPointer* /* closure_ret */ | ||
| 2335 | ); | ||
| 2336 | |||
| 2337 | extern Boolean XtCvtStringToDirectoryString( | ||
| 2338 | Display* /* dpy */, | ||
| 2339 | XrmValuePtr /* args */, /* none */ | ||
| 2340 | Cardinal* /* num_args */, | ||
| 2341 | XrmValuePtr /* fromVal */, | ||
| 2342 | XrmValuePtr /* toVal */, | ||
| 2343 | XtPointer* /* closure_ret */ | ||
| 2344 | ); | ||
| 2345 | |||
| 2346 | extern Boolean XtCvtStringToDisplay( | ||
| 2347 | Display* /* dpy */, | ||
| 2348 | XrmValuePtr /* args */, /* none */ | ||
| 2349 | Cardinal* /* num_args */, | ||
| 2350 | XrmValuePtr /* fromVal */, | ||
| 2351 | XrmValuePtr /* toVal */, | ||
| 2352 | XtPointer* /* closure_ret */ | ||
| 2353 | ); | ||
| 2354 | |||
| 2355 | extern Boolean XtCvtStringToFile( | ||
| 2356 | Display* /* dpy */, | ||
| 2357 | XrmValuePtr /* args */, /* none */ | ||
| 2358 | Cardinal* /* num_args */, | ||
| 2359 | XrmValuePtr /* fromVal */, | ||
| 2360 | XrmValuePtr /* toVal */, | ||
| 2361 | XtPointer* /* closure_ret */ | ||
| 2362 | ); | ||
| 2363 | |||
| 2364 | extern Boolean XtCvtStringToFloat( | ||
| 2365 | Display* /* dpy */, | ||
| 2366 | XrmValuePtr /* args */, /* none */ | ||
| 2367 | Cardinal* /* num_args */, | ||
| 2368 | XrmValuePtr /* fromVal */, | ||
| 2369 | XrmValuePtr /* toVal */, | ||
| 2370 | XtPointer* /* closure_ret */ | ||
| 2371 | ); | ||
| 2372 | |||
| 2373 | extern Boolean XtCvtStringToFont( | ||
| 2374 | Display* /* dpy */, | ||
| 2375 | XrmValuePtr /* args */, /* Display */ | ||
| 2376 | Cardinal* /* num_args */, | ||
| 2377 | XrmValuePtr /* fromVal */, | ||
| 2378 | XrmValuePtr /* toVal */, | ||
| 2379 | XtPointer* /* closure_ret */ | ||
| 2380 | ); | ||
| 2381 | |||
| 2382 | extern Boolean XtCvtStringToFontSet( | ||
| 2383 | Display* /* dpy */, | ||
| 2384 | XrmValuePtr /* args */, /* Display, locale */ | ||
| 2385 | Cardinal* /* num_args */, | ||
| 2386 | XrmValuePtr /* fromVal */, | ||
| 2387 | XrmValuePtr /* toVal */, | ||
| 2388 | XtPointer* /* closure_ret */ | ||
| 2389 | ); | ||
| 2390 | |||
| 2391 | extern Boolean XtCvtStringToFontStruct( | ||
| 2392 | Display* /* dpy */, | ||
| 2393 | XrmValuePtr /* args */, /* Display */ | ||
| 2394 | Cardinal* /* num_args */, | ||
| 2395 | XrmValuePtr /* fromVal */, | ||
| 2396 | XrmValuePtr /* toVal */, | ||
| 2397 | XtPointer* /* closure_ret */ | ||
| 2398 | ); | ||
| 2399 | |||
| 2400 | extern Boolean XtCvtStringToGravity( | ||
| 2401 | Display* /* dpy */, | ||
| 2402 | XrmValuePtr /* args */, | ||
| 2403 | Cardinal* /* num_args */, | ||
| 2404 | XrmValuePtr /* fromVal */, | ||
| 2405 | XrmValuePtr /* toVal */, | ||
| 2406 | XtPointer* /* closure_ret */ | ||
| 2407 | ); | ||
| 2408 | |||
| 2409 | extern Boolean XtCvtStringToInitialState( | ||
| 2410 | Display* /* dpy */, | ||
| 2411 | XrmValuePtr /* args */, /* none */ | ||
| 2412 | Cardinal* /* num_args */, | ||
| 2413 | XrmValuePtr /* fromVal */, | ||
| 2414 | XrmValuePtr /* toVal */, | ||
| 2415 | XtPointer* /* closure_ret */ | ||
| 2416 | ); | ||
| 2417 | |||
| 2418 | extern Boolean XtCvtStringToInt( | ||
| 2419 | Display* /* dpy */, | ||
| 2420 | XrmValuePtr /* args */, /* none */ | ||
| 2421 | Cardinal* /* num_args */, | ||
| 2422 | XrmValuePtr /* fromVal */, | ||
| 2423 | XrmValuePtr /* toVal */, | ||
| 2424 | XtPointer* /* closure_ret */ | ||
| 2425 | ); | ||
| 2426 | |||
| 2427 | extern Boolean XtCvtStringToPixel( | ||
| 2428 | Display* /* dpy */, | ||
| 2429 | XrmValuePtr /* args */, /* Screen, Colormap */ | ||
| 2430 | Cardinal* /* num_args */, | ||
| 2431 | XrmValuePtr /* fromVal */, | ||
| 2432 | XrmValuePtr /* toVal */, | ||
| 2433 | XtPointer* /* closure_ret */ | ||
| 2434 | ); | ||
| 2435 | |||
| 2436 | #define XtCvtStringToPosition XtCvtStringToShort | ||
| 2437 | |||
| 2438 | extern Boolean XtCvtStringToRestartStyle( | ||
| 2439 | Display* /* dpy */, | ||
| 2440 | XrmValuePtr /* args */, /* none */ | ||
| 2441 | Cardinal* /* num_args */, | ||
| 2442 | XrmValuePtr /* fromVal */, | ||
| 2443 | XrmValuePtr /* toVal */, | ||
| 2444 | XtPointer* /* closure_ret */ | ||
| 2445 | ); | ||
| 2446 | |||
| 2447 | extern Boolean XtCvtStringToShort( | ||
| 2448 | Display* /* dpy */, | ||
| 2449 | XrmValuePtr /* args */, /* none */ | ||
| 2450 | Cardinal* /* num_args */, | ||
| 2451 | XrmValuePtr /* fromVal */, | ||
| 2452 | XrmValuePtr /* toVal */, | ||
| 2453 | XtPointer* /* closure_ret */ | ||
| 2454 | ); | ||
| 2455 | |||
| 2456 | extern Boolean XtCvtStringToTranslationTable( | ||
| 2457 | Display* /* dpy */, | ||
| 2458 | XrmValuePtr /* args */, /* none */ | ||
| 2459 | Cardinal* /* num_args */, | ||
| 2460 | XrmValuePtr /* fromVal */, | ||
| 2461 | XrmValuePtr /* toVal */, | ||
| 2462 | XtPointer* /* closure_ret */ | ||
| 2463 | ); | ||
| 2464 | |||
| 2465 | extern Boolean XtCvtStringToUnsignedChar( | ||
| 2466 | Display* /* dpy */, | ||
| 2467 | XrmValuePtr /* args */, /* none */ | ||
| 2468 | Cardinal* /* num_args */, | ||
| 2469 | XrmValuePtr /* fromVal */, | ||
| 2470 | XrmValuePtr /* toVal */, | ||
| 2471 | XtPointer* /* closure_ret */ | ||
| 2472 | ); | ||
| 2473 | |||
| 2474 | extern Boolean XtCvtStringToVisual( | ||
| 2475 | Display* /* dpy */, | ||
| 2476 | XrmValuePtr /* args */, /* Screen, depth */ | ||
| 2477 | Cardinal* /* num_args */, | ||
| 2478 | XrmValuePtr /* fromVal */, | ||
| 2479 | XrmValuePtr /* toVal */, | ||
| 2480 | XtPointer* /* closure_ret */ | ||
| 2481 | ); | ||
| 2482 | |||
| 2483 | /* int converters */ | ||
| 2484 | |||
| 2485 | extern Boolean XtCvtIntToBool( | ||
| 2486 | Display* /* dpy */, | ||
| 2487 | XrmValuePtr /* args */, /* none */ | ||
| 2488 | Cardinal* /* num_args */, | ||
| 2489 | XrmValuePtr /* fromVal */, | ||
| 2490 | XrmValuePtr /* toVal */, | ||
| 2491 | XtPointer* /* closure_ret */ | ||
| 2492 | ); | ||
| 2493 | |||
| 2494 | extern Boolean XtCvtIntToBoolean( | ||
| 2495 | Display* /* dpy */, | ||
| 2496 | XrmValuePtr /* args */, /* none */ | ||
| 2497 | Cardinal* /* num_args */, | ||
| 2498 | XrmValuePtr /* fromVal */, | ||
| 2499 | XrmValuePtr /* toVal */, | ||
| 2500 | XtPointer* /* closure_ret */ | ||
| 2501 | ); | ||
| 2502 | |||
| 2503 | extern Boolean XtCvtIntToColor( | ||
| 2504 | Display* /* dpy */, | ||
| 2505 | XrmValuePtr /* args */, /* Screen, Colormap */ | ||
| 2506 | Cardinal* /* num_args */, | ||
| 2507 | XrmValuePtr /* fromVal */, | ||
| 2508 | XrmValuePtr /* toVal */, | ||
| 2509 | XtPointer* /* closure_ret */ | ||
| 2510 | ); | ||
| 2511 | |||
| 2512 | #define XtCvtIntToDimension XtCvtIntToShort | ||
| 2513 | |||
| 2514 | extern Boolean XtCvtIntToFloat( | ||
| 2515 | Display* /* dpy */, | ||
| 2516 | XrmValuePtr /* args */, /* none */ | ||
| 2517 | Cardinal* /* num_args */, | ||
| 2518 | XrmValuePtr /* fromVal */, | ||
| 2519 | XrmValuePtr /* toVal */, | ||
| 2520 | XtPointer* /* closure_ret */ | ||
| 2521 | ); | ||
| 2522 | |||
| 2523 | extern Boolean XtCvtIntToFont( | ||
| 2524 | Display* /* dpy */, | ||
| 2525 | XrmValuePtr /* args */, /* none */ | ||
| 2526 | Cardinal* /* num_args */, | ||
| 2527 | XrmValuePtr /* fromVal */, | ||
| 2528 | XrmValuePtr /* toVal */, | ||
| 2529 | XtPointer* /* closure_ret */ | ||
| 2530 | ); | ||
| 2531 | |||
| 2532 | extern Boolean XtCvtIntToPixel( | ||
| 2533 | Display* /* dpy */, | ||
| 2534 | XrmValuePtr /* args */, /* none */ | ||
| 2535 | Cardinal* /* num_args */, | ||
| 2536 | XrmValuePtr /* fromVal */, | ||
| 2537 | XrmValuePtr /* toVal */, | ||
| 2538 | XtPointer* /* closure_ret */ | ||
| 2539 | ); | ||
| 2540 | |||
| 2541 | extern Boolean XtCvtIntToPixmap( | ||
| 2542 | Display* /* dpy */, | ||
| 2543 | XrmValuePtr /* args */, /* none */ | ||
| 2544 | Cardinal* /* num_args */, | ||
| 2545 | XrmValuePtr /* fromVal */, | ||
| 2546 | XrmValuePtr /* toVal */, | ||
| 2547 | XtPointer* /* closure_ret */ | ||
| 2548 | ); | ||
| 2549 | |||
| 2550 | #define XtCvtIntToPosition XtCvtIntToShort | ||
| 2551 | |||
| 2552 | extern Boolean XtCvtIntToShort( | ||
| 2553 | Display* /* dpy */, | ||
| 2554 | XrmValuePtr /* args */, /* none */ | ||
| 2555 | Cardinal* /* num_args */, | ||
| 2556 | XrmValuePtr /* fromVal */, | ||
| 2557 | XrmValuePtr /* toVal */, | ||
| 2558 | XtPointer* /* closure_ret */ | ||
| 2559 | ); | ||
| 2560 | |||
| 2561 | extern Boolean XtCvtIntToUnsignedChar( | ||
| 2562 | Display* /* dpy */, | ||
| 2563 | XrmValuePtr /* args */, /* none */ | ||
| 2564 | Cardinal* /* num_args */, | ||
| 2565 | XrmValuePtr /* fromVal */, | ||
| 2566 | XrmValuePtr /* toVal */, | ||
| 2567 | XtPointer* /* closure_ret */ | ||
| 2568 | ); | ||
| 2569 | |||
| 2570 | /* Color converter */ | ||
| 2571 | |||
| 2572 | extern Boolean XtCvtColorToPixel( | ||
| 2573 | Display* /* dpy */, | ||
| 2574 | XrmValuePtr /* args */, /* none */ | ||
| 2575 | Cardinal* /* num_args */, | ||
| 2576 | XrmValuePtr /* fromVal */, | ||
| 2577 | XrmValuePtr /* toVal */, | ||
| 2578 | XtPointer* /* closure_ret */ | ||
| 2579 | ); | ||
| 2580 | |||
| 2581 | /* Pixel converter */ | ||
| 2582 | |||
| 2583 | #define XtCvtPixelToColor XtCvtIntToColor | ||
| 2584 | |||
| 2585 | |||
| 2586 | _XFUNCPROTOEND | ||
| 2587 | |||
| 2588 | #endif /*_XtIntrinsic_h*/ | ||
| 2589 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicI.h new file mode 100644 index 0000000000..d749867b85 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicI.h | |||
| @@ -0,0 +1,261 @@ | |||
| 1 | /* $Xorg: IntrinsicI.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/IntrinsicI.h,v 3.8 2001/12/14 19:56:25 dawes Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XtintrinsicI_h | ||
| 52 | #define _XtintrinsicI_h | ||
| 53 | |||
| 54 | #include "Xtos.h" | ||
| 55 | #include "IntrinsicP.h" | ||
| 56 | #ifdef WIN32 | ||
| 57 | #define _WILLWINSOCK_ | ||
| 58 | #endif | ||
| 59 | #include <X11/Xos.h> | ||
| 60 | |||
| 61 | #include "Object.h" | ||
| 62 | #include "RectObj.h" | ||
| 63 | #include "ObjectP.h" | ||
| 64 | #include "RectObjP.h" | ||
| 65 | |||
| 66 | #include "ConvertI.h" | ||
| 67 | #include "TranslateI.h" | ||
| 68 | |||
| 69 | #define RectObjClassFlag 0x02 | ||
| 70 | #define WidgetClassFlag 0x04 | ||
| 71 | #define CompositeClassFlag 0x08 | ||
| 72 | #define ConstraintClassFlag 0x10 | ||
| 73 | #define ShellClassFlag 0x20 | ||
| 74 | #define WMShellClassFlag 0x40 | ||
| 75 | #define TopLevelClassFlag 0x80 | ||
| 76 | |||
| 77 | /* | ||
| 78 | * The following macros, though very handy, are not suitable for | ||
| 79 | * IntrinsicP.h as they violate the rule that arguments are to | ||
| 80 | * be evaluated exactly once. | ||
| 81 | */ | ||
| 82 | |||
| 83 | #define XtDisplayOfObject(object) \ | ||
| 84 | (XtIsWidget(object) ? (object)->core.screen->display : \ | ||
| 85 | _XtIsHookObject(object) ? ((HookObject)(object))->hooks.screen->display : \ | ||
| 86 | _XtWindowedAncestor(object)->core.screen->display) | ||
| 87 | |||
| 88 | #define XtScreenOfObject(object) \ | ||
| 89 | (XtIsWidget(object) ? (object)->core.screen : \ | ||
| 90 | _XtIsHookObject(object) ? ((HookObject)(object))->hooks.screen : \ | ||
| 91 | _XtWindowedAncestor(object)->core.screen) | ||
| 92 | |||
| 93 | #define XtWindowOfObject(object) \ | ||
| 94 | ((XtIsWidget(object) ? (object) : _XtWindowedAncestor(object)) \ | ||
| 95 | ->core.window) | ||
| 96 | |||
| 97 | #define XtIsManaged(object) \ | ||
| 98 | (XtIsRectObj(object) ? (object)->core.managed : False) | ||
| 99 | |||
| 100 | #define XtIsSensitive(object) \ | ||
| 101 | (XtIsRectObj(object) ? ((object)->core.sensitive && \ | ||
| 102 | (object)->core.ancestor_sensitive) : False) | ||
| 103 | |||
| 104 | |||
| 105 | /**************************************************************** | ||
| 106 | * | ||
| 107 | * Byte utilities | ||
| 108 | * | ||
| 109 | ****************************************************************/ | ||
| 110 | |||
| 111 | #define _XBCOPYFUNC _XtBcopy | ||
| 112 | #include <X11/Xfuncs.h> | ||
| 113 | |||
| 114 | /* If the alignment characteristics of your machine are right, these may be | ||
| 115 | faster */ | ||
| 116 | |||
| 117 | #ifdef UNALIGNED | ||
| 118 | |||
| 119 | #define XtMemmove(dst, src, size) \ | ||
| 120 | if ((char *)(dst) != (char *)(src)) { \ | ||
| 121 | if (size == sizeof(int)) \ | ||
| 122 | *((int *) (dst)) = *((int *) (src)); \ | ||
| 123 | else if (size == sizeof(char)) \ | ||
| 124 | *((char *) (dst)) = *((char *) (src)); \ | ||
| 125 | else if (size == sizeof(short)) \ | ||
| 126 | *((short *) (dst)) = *((short *) (src)); \ | ||
| 127 | else \ | ||
| 128 | (void) memcpy((char *) (dst), (char *) (src), (int) (size)); \ | ||
| 129 | } | ||
| 130 | |||
| 131 | #define XtBZero(dst, size) \ | ||
| 132 | if (size == sizeof(int)) \ | ||
| 133 | *((int *) (dst)) = 0; \ | ||
| 134 | else \ | ||
| 135 | bzero((char *) (dst), (int) (size)) | ||
| 136 | |||
| 137 | #define XtMemcmp(b1, b2, size) \ | ||
| 138 | (size == sizeof(int) ? \ | ||
| 139 | *((int *) (b1)) != *((int *) (b2)) \ | ||
| 140 | : memcmp((char *) (b1), (char *) (b2), (int) (size)) \ | ||
| 141 | ) | ||
| 142 | |||
| 143 | #else | ||
| 144 | |||
| 145 | #define XtMemmove(dst, src, size) \ | ||
| 146 | if ((char *)(dst) != (char *)(src)) { \ | ||
| 147 | (void) memcpy((char *) (dst), (char *) (src), (int) (size)); \ | ||
| 148 | } | ||
| 149 | |||
| 150 | #define XtBZero(dst, size) \ | ||
| 151 | bzero((char *) (dst), (int) (size)) | ||
| 152 | |||
| 153 | #define XtMemcmp(b1, b2, size) \ | ||
| 154 | memcmp((char *) (b1), (char *) (b2), (int) (size)) | ||
| 155 | |||
| 156 | #endif | ||
| 157 | |||
| 158 | |||
| 159 | /**************************************************************** | ||
| 160 | * | ||
| 161 | * Stack cache allocation/free | ||
| 162 | * | ||
| 163 | ****************************************************************/ | ||
| 164 | |||
| 165 | #define XtStackAlloc(size, stack_cache_array) \ | ||
| 166 | ((size) <= sizeof(stack_cache_array) \ | ||
| 167 | ? (XtPointer)(stack_cache_array) \ | ||
| 168 | : XtMalloc((unsigned)(size))) | ||
| 169 | |||
| 170 | #define XtStackFree(pointer, stack_cache_array) \ | ||
| 171 | { if ((pointer) != ((XtPointer)(stack_cache_array))) XtFree(pointer); } | ||
| 172 | |||
| 173 | /*************************************************************** | ||
| 174 | * | ||
| 175 | * Filename defines | ||
| 176 | * | ||
| 177 | **************************************************************/ | ||
| 178 | |||
| 179 | /* used by XtResolvePathname */ | ||
| 180 | #ifndef XFILESEARCHPATHDEFAULT | ||
| 181 | #define XFILESEARCHPATHDEFAULT "/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S" | ||
| 182 | #endif | ||
| 183 | |||
| 184 | /* the following two were both "X Toolkit " prior to R4 */ | ||
| 185 | #ifndef XTERROR_PREFIX | ||
| 186 | #define XTERROR_PREFIX "" | ||
| 187 | #endif | ||
| 188 | |||
| 189 | #ifndef XTWARNING_PREFIX | ||
| 190 | #define XTWARNING_PREFIX "" | ||
| 191 | #endif | ||
| 192 | |||
| 193 | #ifndef ERRORDB | ||
| 194 | #define ERRORDB "/usr/lib/X11/XtErrorDB" | ||
| 195 | #endif | ||
| 196 | |||
| 197 | extern String XtCXtToolkitError; | ||
| 198 | |||
| 199 | extern void _XtAllocError( | ||
| 200 | String /* alloc_type */ | ||
| 201 | ); | ||
| 202 | |||
| 203 | extern void _XtCompileResourceList( | ||
| 204 | XtResourceList /* resources */, | ||
| 205 | Cardinal /* num_resources */ | ||
| 206 | ); | ||
| 207 | |||
| 208 | extern XtGeometryResult _XtMakeGeometryRequest( | ||
| 209 | Widget /* widget */, | ||
| 210 | XtWidgetGeometry* /* request */, | ||
| 211 | XtWidgetGeometry* /* reply_return */, | ||
| 212 | Boolean* /* clear_rect_obj */ | ||
| 213 | ); | ||
| 214 | |||
| 215 | extern Boolean _XtIsHookObject( | ||
| 216 | Widget /* widget */ | ||
| 217 | ); | ||
| 218 | |||
| 219 | extern void _XtAddShellToHookObj( | ||
| 220 | Widget /* widget */ | ||
| 221 | ); | ||
| 222 | |||
| 223 | /* GCManager.c */ | ||
| 224 | extern void _XtGClistFree(Display *dpy, XtPerDisplay pd); | ||
| 225 | |||
| 226 | /** GeoTattler stuff */ | ||
| 227 | |||
| 228 | #ifdef XT_GEO_TATTLER | ||
| 229 | |||
| 230 | extern void _XtGeoTab (int); | ||
| 231 | extern void _XtGeoTrace ( | ||
| 232 | Widget widget, | ||
| 233 | ... | ||
| 234 | ) _X_ATTRIBUTE_PRINTF(2,3); | ||
| 235 | |||
| 236 | #define CALLGEOTAT(f) f | ||
| 237 | |||
| 238 | #else /* XT_GEO_TATTLER */ | ||
| 239 | |||
| 240 | #define CALLGEOTAT(f) | ||
| 241 | |||
| 242 | #endif /* XT_GEO_TATTLER */ | ||
| 243 | |||
| 244 | #ifndef XTTRACEMEMORY | ||
| 245 | |||
| 246 | extern char* __XtMalloc ( | ||
| 247 | unsigned /* size */ | ||
| 248 | ); | ||
| 249 | extern char* __XtCalloc ( | ||
| 250 | unsigned /* num */, | ||
| 251 | unsigned /* size */ | ||
| 252 | ); | ||
| 253 | |||
| 254 | #else | ||
| 255 | |||
| 256 | #define __XtMalloc XtMalloc | ||
| 257 | #define __XtCalloc XtCalloc | ||
| 258 | #endif | ||
| 259 | |||
| 260 | #endif /* _XtintrinsicI_h */ | ||
| 261 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicP.h new file mode 100644 index 0000000000..517c55d2b9 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/IntrinsicP.h | |||
| @@ -0,0 +1,327 @@ | |||
| 1 | /* $Xorg: IntrinsicP.h,v 1.4 2001/02/09 02:03:55 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86$ */ | ||
| 50 | |||
| 51 | #ifndef _XtintrinsicP_h | ||
| 52 | #define _XtintrinsicP_h | ||
| 53 | |||
| 54 | #include <X11/Intrinsic.h> | ||
| 55 | |||
| 56 | /* | ||
| 57 | * Field sizes and offsets of XrmResource must match those of XtResource. | ||
| 58 | * Type long is used instead of XrmQuark here because XrmQuark and String | ||
| 59 | * are not the same size on all systems. | ||
| 60 | */ | ||
| 61 | typedef struct { | ||
| 62 | long xrm_name; /* Resource name quark */ | ||
| 63 | long xrm_class; /* Resource class quark */ | ||
| 64 | long xrm_type; /* Resource representation type quark */ | ||
| 65 | Cardinal xrm_size; /* Size in bytes of representation */ | ||
| 66 | int xrm_offset; /* -offset-1 */ | ||
| 67 | long xrm_default_type; /* Default representation type quark */ | ||
| 68 | XtPointer xrm_default_addr; /* Default resource address */ | ||
| 69 | } XrmResource, *XrmResourceList; | ||
| 70 | |||
| 71 | typedef unsigned long XtVersionType; | ||
| 72 | |||
| 73 | #define XT_VERSION 11 | ||
| 74 | #ifndef XT_REVISION | ||
| 75 | #define XT_REVISION 6 | ||
| 76 | #endif | ||
| 77 | #define XtVersion (XT_VERSION * 1000 + XT_REVISION) | ||
| 78 | #define XtVersionDontCheck 0 | ||
| 79 | |||
| 80 | typedef void (*XtProc)( | ||
| 81 | void | ||
| 82 | ); | ||
| 83 | |||
| 84 | typedef void (*XtWidgetClassProc)( | ||
| 85 | WidgetClass /* class */ | ||
| 86 | ); | ||
| 87 | |||
| 88 | typedef void (*XtWidgetProc)( | ||
| 89 | Widget /* widget */ | ||
| 90 | ); | ||
| 91 | |||
| 92 | typedef Boolean (*XtAcceptFocusProc)( | ||
| 93 | Widget /* widget */, | ||
| 94 | Time* /* time */ | ||
| 95 | ); | ||
| 96 | |||
| 97 | typedef void (*XtArgsProc)( | ||
| 98 | Widget /* widget */, | ||
| 99 | ArgList /* args */, | ||
| 100 | Cardinal* /* num_args */ | ||
| 101 | ); | ||
| 102 | |||
| 103 | typedef void (*XtInitProc)( | ||
| 104 | Widget /* request */, | ||
| 105 | Widget /* new */, | ||
| 106 | ArgList /* args */, | ||
| 107 | Cardinal* /* num_args */ | ||
| 108 | ); | ||
| 109 | |||
| 110 | typedef Boolean (*XtSetValuesFunc)( | ||
| 111 | Widget /* old */, | ||
| 112 | Widget /* request */, | ||
| 113 | Widget /* new */, | ||
| 114 | ArgList /* args */, | ||
| 115 | Cardinal* /* num_args */ | ||
| 116 | ); | ||
| 117 | |||
| 118 | typedef Boolean (*XtArgsFunc)( | ||
| 119 | Widget /* widget */, | ||
| 120 | ArgList /* args */, | ||
| 121 | Cardinal* /* num_args */ | ||
| 122 | ); | ||
| 123 | |||
| 124 | typedef void (*XtAlmostProc)( | ||
| 125 | Widget /* old */, | ||
| 126 | Widget /* new */, | ||
| 127 | XtWidgetGeometry* /* request */, | ||
| 128 | XtWidgetGeometry* /* reply */ | ||
| 129 | ); | ||
| 130 | |||
| 131 | typedef void (*XtExposeProc)( | ||
| 132 | Widget /* widget */, | ||
| 133 | XEvent* /* event */, | ||
| 134 | Region /* region */ | ||
| 135 | ); | ||
| 136 | |||
| 137 | /* compress_exposure options*/ | ||
| 138 | #define XtExposeNoCompress ((XtEnum)False) | ||
| 139 | #define XtExposeCompressSeries ((XtEnum)True) | ||
| 140 | #define XtExposeCompressMultiple 2 | ||
| 141 | #define XtExposeCompressMaximal 3 | ||
| 142 | |||
| 143 | /* modifiers */ | ||
| 144 | #define XtExposeGraphicsExpose 0x10 | ||
| 145 | #define XtExposeGraphicsExposeMerged 0x20 | ||
| 146 | #define XtExposeNoExpose 0x40 | ||
| 147 | #define XtExposeNoRegion 0x80 | ||
| 148 | |||
| 149 | typedef void (*XtRealizeProc)( | ||
| 150 | Widget /* widget */, | ||
| 151 | XtValueMask* /* mask */, | ||
| 152 | XSetWindowAttributes* /* attributes */ | ||
| 153 | ); | ||
| 154 | |||
| 155 | typedef XtGeometryResult (*XtGeometryHandler)( | ||
| 156 | Widget /* widget */, | ||
| 157 | XtWidgetGeometry* /* request */, | ||
| 158 | XtWidgetGeometry* /* reply */ | ||
| 159 | ); | ||
| 160 | |||
| 161 | typedef void (*XtStringProc)( | ||
| 162 | Widget /* widget */, | ||
| 163 | String /* str */ | ||
| 164 | ); | ||
| 165 | |||
| 166 | typedef struct { | ||
| 167 | String name; /* resource name */ | ||
| 168 | String type; /* representation type name */ | ||
| 169 | XtArgVal value; /* representation */ | ||
| 170 | int size; /* size of representation */ | ||
| 171 | } XtTypedArg, *XtTypedArgList; | ||
| 172 | |||
| 173 | typedef void (*XtAllocateProc)( | ||
| 174 | WidgetClass /* widget_class */, | ||
| 175 | Cardinal * /* constraint_size */, | ||
| 176 | Cardinal * /* more_bytes */, | ||
| 177 | ArgList /* args */, | ||
| 178 | Cardinal * /* num_args */, | ||
| 179 | XtTypedArgList /* typed_args */, | ||
| 180 | Cardinal * /* num_typed_args */, | ||
| 181 | Widget * /* widget_return */, | ||
| 182 | XtPointer * /* more_bytes_return */ | ||
| 183 | ); | ||
| 184 | |||
| 185 | typedef void (*XtDeallocateProc)( | ||
| 186 | Widget /* widget */, | ||
| 187 | XtPointer /* more_bytes */ | ||
| 188 | ); | ||
| 189 | |||
| 190 | struct _XtStateRec; /* Forward declare before use for C++ */ | ||
| 191 | |||
| 192 | typedef struct _XtTMRec { | ||
| 193 | XtTranslations translations; /* private to Translation Manager */ | ||
| 194 | XtBoundActions proc_table; /* procedure bindings for actions */ | ||
| 195 | struct _XtStateRec *current_state; /* Translation Manager state ptr */ | ||
| 196 | unsigned long lastEventTime; | ||
| 197 | } XtTMRec, *XtTM; | ||
| 198 | |||
| 199 | #include <X11/CoreP.h> | ||
| 200 | #include <X11/CompositeP.h> | ||
| 201 | #include <X11/ConstrainP.h> | ||
| 202 | #include <X11/ObjectP.h> | ||
| 203 | #include <X11/RectObjP.h> | ||
| 204 | |||
| 205 | #define XtDisplay(widget) DisplayOfScreen((widget)->core.screen) | ||
| 206 | #define XtScreen(widget) ((widget)->core.screen) | ||
| 207 | #define XtWindow(widget) ((widget)->core.window) | ||
| 208 | |||
| 209 | #define XtClass(widget) ((widget)->core.widget_class) | ||
| 210 | #define XtSuperclass(widget) (XtClass(widget)->core_class.superclass) | ||
| 211 | #define XtIsRealized(object) (XtWindowOfObject(object) != None) | ||
| 212 | #define XtParent(widget) ((widget)->core.parent) | ||
| 213 | |||
| 214 | #undef XtIsRectObj | ||
| 215 | extern Boolean XtIsRectObj(Widget); | ||
| 216 | #define XtIsRectObj(obj) \ | ||
| 217 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x02) | ||
| 218 | |||
| 219 | #undef XtIsWidget | ||
| 220 | extern Boolean XtIsWidget(Widget); | ||
| 221 | #define XtIsWidget(obj) \ | ||
| 222 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x04) | ||
| 223 | |||
| 224 | #undef XtIsComposite | ||
| 225 | extern Boolean XtIsComposite(Widget); | ||
| 226 | #define XtIsComposite(obj) \ | ||
| 227 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x08) | ||
| 228 | |||
| 229 | #undef XtIsConstraint | ||
| 230 | extern Boolean XtIsConstraint(Widget); | ||
| 231 | #define XtIsConstraint(obj) \ | ||
| 232 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x10) | ||
| 233 | |||
| 234 | #undef XtIsShell | ||
| 235 | extern Boolean XtIsShell(Widget); | ||
| 236 | #define XtIsShell(obj) \ | ||
| 237 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x20) | ||
| 238 | |||
| 239 | #undef XtIsWMShell | ||
| 240 | extern Boolean XtIsWMShell(Widget); | ||
| 241 | #define XtIsWMShell(obj) \ | ||
| 242 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x40) | ||
| 243 | |||
| 244 | #undef XtIsTopLevelShell | ||
| 245 | extern Boolean XtIsTopLevelShell(Widget); | ||
| 246 | #define XtIsTopLevelShell(obj) \ | ||
| 247 | (((Object)(obj))->object.widget_class->core_class.class_inited & 0x80) | ||
| 248 | |||
| 249 | #ifdef DEBUG | ||
| 250 | #define XtCheckSubclass(w, widget_class_ptr, message) \ | ||
| 251 | if (!XtIsSubclass(((Widget)(w)), (widget_class_ptr))) { \ | ||
| 252 | String params[3]; \ | ||
| 253 | Cardinal num_params = 3; \ | ||
| 254 | params[0] = ((Widget)(w))->core.widget_class->core_class.class_name;\ | ||
| 255 | params[1] = (widget_class_ptr)->core_class.class_name; \ | ||
| 256 | params[2] = (message); \ | ||
| 257 | XtAppErrorMsg(XtWidgetToApplicationContext((Widget)(w)), \ | ||
| 258 | "subclassMismatch", "xtCheckSubclass", "XtToolkitError", \ | ||
| 259 | "Widget class %s found when subclass of %s expected: %s",\ | ||
| 260 | params, &num_params); \ | ||
| 261 | } | ||
| 262 | #else | ||
| 263 | #define XtCheckSubclass(w, widget_class, message) /* nothing */ | ||
| 264 | #endif | ||
| 265 | |||
| 266 | _XFUNCPROTOBEGIN | ||
| 267 | |||
| 268 | extern Widget _XtWindowedAncestor( /* internal; implementation-dependent */ | ||
| 269 | Widget /* object */ | ||
| 270 | ); | ||
| 271 | |||
| 272 | extern void _XtInherit( | ||
| 273 | void | ||
| 274 | ); | ||
| 275 | |||
| 276 | extern void _XtHandleFocus( | ||
| 277 | Widget /* widget */, | ||
| 278 | XtPointer /* client_data */, | ||
| 279 | XEvent * /* event */, | ||
| 280 | Boolean * /* cont */); | ||
| 281 | |||
| 282 | extern void XtCreateWindow( | ||
| 283 | Widget /* widget */, | ||
| 284 | unsigned int /* window_class */, | ||
| 285 | Visual* /* visual */, | ||
| 286 | XtValueMask /* value_mask */, | ||
| 287 | XSetWindowAttributes* /* attributes */ | ||
| 288 | ); | ||
| 289 | |||
| 290 | extern void XtResizeWidget( | ||
| 291 | Widget /* widget */, | ||
| 292 | _XtDimension /* width */, | ||
| 293 | _XtDimension /* height */, | ||
| 294 | _XtDimension /* border_width */ | ||
| 295 | ); | ||
| 296 | |||
| 297 | extern void XtMoveWidget( | ||
| 298 | Widget /* widget */, | ||
| 299 | _XtPosition /* x */, | ||
| 300 | _XtPosition /* y */ | ||
| 301 | ); | ||
| 302 | |||
| 303 | extern void XtConfigureWidget( | ||
| 304 | Widget /* widget */, | ||
| 305 | _XtPosition /* x */, | ||
| 306 | _XtPosition /* y */, | ||
| 307 | _XtDimension /* width */, | ||
| 308 | _XtDimension /* height */, | ||
| 309 | _XtDimension /* border_width */ | ||
| 310 | ); | ||
| 311 | |||
| 312 | extern void XtResizeWindow( | ||
| 313 | Widget /* widget */ | ||
| 314 | ); | ||
| 315 | |||
| 316 | extern void XtProcessLock( | ||
| 317 | void | ||
| 318 | ); | ||
| 319 | |||
| 320 | extern void XtProcessUnlock( | ||
| 321 | void | ||
| 322 | ); | ||
| 323 | |||
| 324 | _XFUNCPROTOEND | ||
| 325 | |||
| 326 | #endif /* _XtIntrinsicP_h */ | ||
| 327 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Object.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Object.h new file mode 100644 index 0000000000..96723b16e5 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Object.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* $Xorg: Object.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: Object.h,v 1.2 88/08/18 15:55:32 asente Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtObject_h | ||
| 51 | #define _XtObject_h | ||
| 52 | |||
| 53 | typedef struct _ObjectRec *Object; | ||
| 54 | typedef struct _ObjectClassRec *ObjectClass; | ||
| 55 | |||
| 56 | #ifndef OBJECT | ||
| 57 | externalref WidgetClass objectClass; | ||
| 58 | #endif | ||
| 59 | #endif /* _XtObject_h */ | ||
| 60 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ObjectP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ObjectP.h new file mode 100644 index 0000000000..a24564ef29 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ObjectP.h | |||
| @@ -0,0 +1,139 @@ | |||
| 1 | /* $Xorg: ObjectP.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _Xt_ObjectP_h_ | ||
| 51 | #define _Xt_ObjectP_h_ | ||
| 52 | |||
| 53 | #include <X11/Object.h> | ||
| 54 | |||
| 55 | /********************************************************** | ||
| 56 | * Object Instance Data Structures | ||
| 57 | * | ||
| 58 | **********************************************************/ | ||
| 59 | /* these fields match CorePart and can not be changed */ | ||
| 60 | |||
| 61 | typedef struct _ObjectPart { | ||
| 62 | Widget self; /* pointer to widget itself */ | ||
| 63 | WidgetClass widget_class; /* pointer to Widget's ClassRec */ | ||
| 64 | Widget parent; /* parent widget */ | ||
| 65 | XrmName xrm_name; /* widget resource name quarkified */ | ||
| 66 | Boolean being_destroyed; /* marked for destroy */ | ||
| 67 | XtCallbackList destroy_callbacks; /* who to call when widget destroyed */ | ||
| 68 | XtPointer constraints; /* constraint record */ | ||
| 69 | } ObjectPart; | ||
| 70 | |||
| 71 | typedef struct _ObjectRec { | ||
| 72 | ObjectPart object; | ||
| 73 | } ObjectRec; | ||
| 74 | |||
| 75 | /******************************************************** | ||
| 76 | * Object Class Data Structures | ||
| 77 | * | ||
| 78 | ********************************************************/ | ||
| 79 | /* these fields match CoreClassPart and can not be changed */ | ||
| 80 | /* ideally these structures would only contain the fields required; | ||
| 81 | but because the CoreClassPart cannot be changed at this late date | ||
| 82 | extraneous fields are necessary to make the field offsets match */ | ||
| 83 | |||
| 84 | typedef struct _ObjectClassPart { | ||
| 85 | |||
| 86 | WidgetClass superclass; /* pointer to superclass ClassRec */ | ||
| 87 | String class_name; /* widget resource class name */ | ||
| 88 | Cardinal widget_size; /* size in bytes of widget record */ | ||
| 89 | XtProc class_initialize; /* class initialization proc */ | ||
| 90 | XtWidgetClassProc class_part_initialize; /* dynamic initialization */ | ||
| 91 | XtEnum class_inited; /* has class been initialized? */ | ||
| 92 | XtInitProc initialize; /* initialize subclass fields */ | ||
| 93 | XtArgsProc initialize_hook; /* notify that initialize called */ | ||
| 94 | XtProc obj1; /* NULL */ | ||
| 95 | XtPointer obj2; /* NULL */ | ||
| 96 | Cardinal obj3; /* NULL */ | ||
| 97 | XtResourceList resources; /* resources for subclass fields */ | ||
| 98 | Cardinal num_resources; /* number of entries in resources */ | ||
| 99 | XrmClass xrm_class; /* resource class quarkified */ | ||
| 100 | Boolean obj4; /* NULL */ | ||
| 101 | XtEnum obj5; /* NULL */ | ||
| 102 | Boolean obj6; /* NULL */ | ||
| 103 | Boolean obj7; /* NULL */ | ||
| 104 | XtWidgetProc destroy; /* free data for subclass pointers */ | ||
| 105 | XtProc obj8; /* NULL */ | ||
| 106 | XtProc obj9; /* NULL */ | ||
| 107 | XtSetValuesFunc set_values; /* set subclass resource values */ | ||
| 108 | XtArgsFunc set_values_hook; /* notify that set_values called */ | ||
| 109 | XtProc obj10; /* NULL */ | ||
| 110 | XtArgsProc get_values_hook; /* notify that get_values called */ | ||
| 111 | XtProc obj11; /* NULL */ | ||
| 112 | XtVersionType version; /* version of intrinsics used */ | ||
| 113 | XtPointer callback_private; /* list of callback offsets */ | ||
| 114 | String obj12; /* NULL */ | ||
| 115 | XtProc obj13; /* NULL */ | ||
| 116 | XtProc obj14; /* NULL */ | ||
| 117 | XtPointer extension; /* pointer to extension record */ | ||
| 118 | }ObjectClassPart; | ||
| 119 | |||
| 120 | typedef struct { | ||
| 121 | XtPointer next_extension; /* 1st 4 required for all extension records */ | ||
| 122 | XrmQuark record_type; /* NULLQUARK; when on ObjectClassPart */ | ||
| 123 | long version; /* must be XtObjectExtensionVersion */ | ||
| 124 | Cardinal record_size; /* sizeof(ObjectClassExtensionRec) */ | ||
| 125 | XtAllocateProc allocate; | ||
| 126 | XtDeallocateProc deallocate; | ||
| 127 | } ObjectClassExtensionRec, *ObjectClassExtension; | ||
| 128 | |||
| 129 | typedef struct _ObjectClassRec { | ||
| 130 | ObjectClassPart object_class; | ||
| 131 | } ObjectClassRec; | ||
| 132 | |||
| 133 | externalref ObjectClassRec objectClassRec; | ||
| 134 | |||
| 135 | #define XtObjectExtensionVersion 1L | ||
| 136 | #define XtInheritAllocate ((XtAllocateProc) _XtInherit) | ||
| 137 | #define XtInheritDeallocate ((XtDeallocateProc) _XtInherit) | ||
| 138 | |||
| 139 | #endif /*_Xt_ObjectP_h_*/ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/PassivGraI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/PassivGraI.h new file mode 100644 index 0000000000..02e2964845 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/PassivGraI.h | |||
| @@ -0,0 +1,186 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: PassivGraI.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ | ||
| 3 | */ | ||
| 4 | |||
| 5 | /******************************************************** | ||
| 6 | |||
| 7 | Copyright 1988 by Hewlett-Packard Company | ||
| 8 | Copyright 1987, 1988, 1989 by Digital Equipment Corporation, Maynard | ||
| 9 | |||
| 10 | Permission to use, copy, modify, and distribute this software | ||
| 11 | and its documentation for any purpose and without fee is hereby | ||
| 12 | granted, provided that the above copyright notice appear in all | ||
| 13 | copies and that both that copyright notice and this permission | ||
| 14 | notice appear in supporting documentation, and that the names of | ||
| 15 | Hewlett-Packard or Digital not be used in advertising or | ||
| 16 | publicity pertaining to distribution of the software without specific, | ||
| 17 | written prior permission. | ||
| 18 | |||
| 19 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 20 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 21 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 22 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 23 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 24 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 25 | SOFTWARE. | ||
| 26 | |||
| 27 | ********************************************************/ | ||
| 28 | |||
| 29 | /* | ||
| 30 | |||
| 31 | Copyright 1987, 1988, 1989, 1998 The Open Group | ||
| 32 | |||
| 33 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 34 | documentation for any purpose is hereby granted without fee, provided that | ||
| 35 | the above copyright notice appear in all copies and that both that | ||
| 36 | copyright notice and this permission notice appear in supporting | ||
| 37 | documentation. | ||
| 38 | |||
| 39 | The above copyright notice and this permission notice shall be included in | ||
| 40 | all copies or substantial portions of the Software. | ||
| 41 | |||
| 42 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 43 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 44 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 45 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 46 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 47 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 48 | |||
| 49 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 50 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 51 | in this Software without prior written authorization from The Open Group. | ||
| 52 | |||
| 53 | */ | ||
| 54 | /* $XFree86: xc/lib/Xt/PassivGraI.h,v 1.3 2001/12/14 19:56:27 dawes Exp $ */ | ||
| 55 | |||
| 56 | #ifndef _PDI_h_ | ||
| 57 | #define _PDI_h_ | ||
| 58 | |||
| 59 | |||
| 60 | #define KEYBOARD TRUE | ||
| 61 | #define POINTER FALSE | ||
| 62 | |||
| 63 | typedef enum { | ||
| 64 | XtNoServerGrab, | ||
| 65 | XtPassiveServerGrab, | ||
| 66 | XtActiveServerGrab, | ||
| 67 | XtPseudoPassiveServerGrab, | ||
| 68 | XtPseudoActiveServerGrab | ||
| 69 | }XtServerGrabType; | ||
| 70 | |||
| 71 | typedef struct _XtServerGrabRec { | ||
| 72 | struct _XtServerGrabRec *next; | ||
| 73 | Widget widget; | ||
| 74 | unsigned int ownerEvents:1; | ||
| 75 | unsigned int pointerMode:1; | ||
| 76 | unsigned int keyboardMode:1; | ||
| 77 | unsigned int hasExt:1; | ||
| 78 | unsigned int confineToIsWidgetWin:1; | ||
| 79 | KeyCode keybut; | ||
| 80 | unsigned short modifiers; | ||
| 81 | unsigned short eventMask; | ||
| 82 | } XtServerGrabRec, *XtServerGrabPtr; | ||
| 83 | |||
| 84 | typedef struct _XtGrabExtRec { | ||
| 85 | Mask *pKeyButMask; | ||
| 86 | Mask *pModifiersMask; | ||
| 87 | Window confineTo; | ||
| 88 | Cursor cursor; | ||
| 89 | } XtServerGrabExtRec, *XtServerGrabExtPtr; | ||
| 90 | |||
| 91 | #define GRABEXT(p) ((XtServerGrabExtPtr)((p)+1)) | ||
| 92 | |||
| 93 | typedef struct _XtDeviceRec{ | ||
| 94 | XtServerGrabRec grab; /* need copy in order to protect | ||
| 95 | during grab */ | ||
| 96 | XtServerGrabType grabType; | ||
| 97 | }XtDeviceRec, *XtDevice; | ||
| 98 | |||
| 99 | #define XtMyAncestor 0 | ||
| 100 | #define XtMyDescendant 1 | ||
| 101 | #define XtMyCousin 2 | ||
| 102 | #define XtMySelf 3 | ||
| 103 | #define XtUnrelated 4 | ||
| 104 | typedef char XtGeneology; /* do not use an enum makes PerWidgetInput larger */ | ||
| 105 | |||
| 106 | typedef struct { | ||
| 107 | Widget focusKid; | ||
| 108 | XtServerGrabPtr keyList, ptrList; | ||
| 109 | Widget queryEventDescendant; | ||
| 110 | unsigned int map_handler_added:1; | ||
| 111 | unsigned int realize_handler_added:1; | ||
| 112 | unsigned int active_handler_added:1; | ||
| 113 | unsigned int haveFocus:1; | ||
| 114 | XtGeneology focalPoint; | ||
| 115 | }XtPerWidgetInputRec, *XtPerWidgetInput; | ||
| 116 | |||
| 117 | typedef struct XtPerDisplayInputRec{ | ||
| 118 | XtGrabList grabList; | ||
| 119 | XtDeviceRec keyboard, pointer; | ||
| 120 | KeyCode activatingKey; | ||
| 121 | Widget *trace; | ||
| 122 | int traceDepth, traceMax; | ||
| 123 | Widget focusWidget; | ||
| 124 | }XtPerDisplayInputRec, *XtPerDisplayInput; | ||
| 125 | |||
| 126 | #define IsServerGrab(g) ((g == XtPassiveServerGrab) ||\ | ||
| 127 | (g == XtActiveServerGrab)) | ||
| 128 | |||
| 129 | #define IsAnyGrab(g) ((g == XtPassiveServerGrab) ||\ | ||
| 130 | (g == XtActiveServerGrab) ||\ | ||
| 131 | (g == XtPseudoPassiveServerGrab)) | ||
| 132 | |||
| 133 | #define IsEitherPassiveGrab(g) ((g == XtPassiveServerGrab) ||\ | ||
| 134 | (g == XtPseudoPassiveServerGrab)) | ||
| 135 | |||
| 136 | #define IsPseudoGrab(g) ((g == XtPseudoPassiveServerGrab)) | ||
| 137 | |||
| 138 | extern void _XtDestroyServerGrabs( | ||
| 139 | Widget /* w */, | ||
| 140 | XtPointer /* pwi */, /*XtPerWidgetInput*/ | ||
| 141 | XtPointer /* call_data */ | ||
| 142 | ); | ||
| 143 | |||
| 144 | extern XtPerWidgetInput _XtGetPerWidgetInput( | ||
| 145 | Widget /* widget */, | ||
| 146 | _XtBoolean /* create */ | ||
| 147 | ); | ||
| 148 | |||
| 149 | extern XtServerGrabPtr _XtCheckServerGrabsOnWidget( | ||
| 150 | XEvent* /* event */, | ||
| 151 | Widget /* widget */, | ||
| 152 | _XtBoolean /* isKeyboard */ | ||
| 153 | ); | ||
| 154 | |||
| 155 | /* | ||
| 156 | extern XtGrabList* _XtGetGrabList( XtPerDisplayInput ); | ||
| 157 | */ | ||
| 158 | |||
| 159 | #define _XtGetGrabList(pdi) (&(pdi)->grabList) | ||
| 160 | |||
| 161 | extern void _XtFreePerWidgetInput( | ||
| 162 | Widget /* w */, | ||
| 163 | XtPerWidgetInput /* pwi */ | ||
| 164 | ); | ||
| 165 | |||
| 166 | extern Widget _XtProcessKeyboardEvent( | ||
| 167 | XKeyEvent* /* event */, | ||
| 168 | Widget /* widget */, | ||
| 169 | XtPerDisplayInput /* pdi */ | ||
| 170 | ); | ||
| 171 | |||
| 172 | extern Widget _XtProcessPointerEvent( | ||
| 173 | XButtonEvent* /* event */, | ||
| 174 | Widget /* widget */, | ||
| 175 | XtPerDisplayInput /* pdi */ | ||
| 176 | ); | ||
| 177 | |||
| 178 | extern void _XtRegisterPassiveGrabs( | ||
| 179 | Widget /* widget */ | ||
| 180 | ); | ||
| 181 | |||
| 182 | extern void _XtClearAncestorCache( | ||
| 183 | Widget /* widget */ | ||
| 184 | ); | ||
| 185 | |||
| 186 | #endif /* _PDI_h_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/RectObj.h b/meta/packages/xorg-lib/xorg-headers-native/X11/RectObj.h new file mode 100644 index 0000000000..07615fab74 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/RectObj.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* $Xorg: RectObj.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: RectObj.h,v 1.2 88/08/18 17:39:17 asente Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtRect_h | ||
| 51 | #define _XtRect_h | ||
| 52 | |||
| 53 | typedef struct _RectObjRec *RectObj; | ||
| 54 | typedef struct _RectObjClassRec *RectObjClass; | ||
| 55 | |||
| 56 | #ifndef RECTOBJ | ||
| 57 | externalref WidgetClass rectObjClass; | ||
| 58 | #endif | ||
| 59 | #endif /* _XtRect_h */ | ||
| 60 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/RectObjP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/RectObjP.h new file mode 100644 index 0000000000..ca3b8ade78 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/RectObjP.h | |||
| @@ -0,0 +1,129 @@ | |||
| 1 | /* $Xorg: RectObjP.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | /* $oHeader: RectObjP.h,v 1.2 88/08/18 15:55:52 asente Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _Xt_RectObjP_h_ | ||
| 51 | #define _Xt_RectObjP_h_ | ||
| 52 | |||
| 53 | #include <X11/RectObj.h> | ||
| 54 | #include <X11/ObjectP.h> | ||
| 55 | |||
| 56 | /********************************************************** | ||
| 57 | * Rectangle Object Instance Data Structures | ||
| 58 | * | ||
| 59 | **********************************************************/ | ||
| 60 | /* these fields match CorePart and can not be changed */ | ||
| 61 | |||
| 62 | typedef struct _RectObjPart { | ||
| 63 | Position x, y; /* rectangle position */ | ||
| 64 | Dimension width, height; /* rectangle dimensions */ | ||
| 65 | Dimension border_width; /* rectangle border width */ | ||
| 66 | Boolean managed; /* is widget geometry managed? */ | ||
| 67 | Boolean sensitive; /* is widget sensitive to user events*/ | ||
| 68 | Boolean ancestor_sensitive; /* are all ancestors sensitive? */ | ||
| 69 | }RectObjPart; | ||
| 70 | |||
| 71 | typedef struct _RectObjRec { | ||
| 72 | ObjectPart object; | ||
| 73 | RectObjPart rectangle; | ||
| 74 | } RectObjRec; | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | /******************************************************** | ||
| 79 | * Rectangle Object Class Data Structures | ||
| 80 | * | ||
| 81 | ********************************************************/ | ||
| 82 | /* these fields match CoreClassPart and can not be changed */ | ||
| 83 | /* ideally these structures would only contain the fields required; | ||
| 84 | but because the CoreClassPart cannot be changed at this late date | ||
| 85 | extraneous fields are necessary to make the field offsets match */ | ||
| 86 | |||
| 87 | typedef struct _RectObjClassPart { | ||
| 88 | |||
| 89 | WidgetClass superclass; /* pointer to superclass ClassRec */ | ||
| 90 | String class_name; /* widget resource class name */ | ||
| 91 | Cardinal widget_size; /* size in bytes of widget record */ | ||
| 92 | XtProc class_initialize; /* class initialization proc */ | ||
| 93 | XtWidgetClassProc class_part_initialize; /* dynamic initialization */ | ||
| 94 | XtEnum class_inited; /* has class been initialized? */ | ||
| 95 | XtInitProc initialize; /* initialize subclass fields */ | ||
| 96 | XtArgsProc initialize_hook; /* notify that initialize called */ | ||
| 97 | XtProc rect1; /* NULL */ | ||
| 98 | XtPointer rect2; /* NULL */ | ||
| 99 | Cardinal rect3; /* NULL */ | ||
| 100 | XtResourceList resources; /* resources for subclass fields */ | ||
| 101 | Cardinal num_resources; /* number of entries in resources */ | ||
| 102 | XrmClass xrm_class; /* resource class quarkified */ | ||
| 103 | Boolean rect4; /* NULL */ | ||
| 104 | XtEnum rect5; /* NULL */ | ||
| 105 | Boolean rect6; /* NULL */ | ||
| 106 | Boolean rect7; /* NULL */ | ||
| 107 | XtWidgetProc destroy; /* free data for subclass pointers */ | ||
| 108 | XtWidgetProc resize; /* geom manager changed widget size */ | ||
| 109 | XtExposeProc expose; /* rediplay rectangle */ | ||
| 110 | XtSetValuesFunc set_values; /* set subclass resource values */ | ||
| 111 | XtArgsFunc set_values_hook; /* notify that set_values called */ | ||
| 112 | XtAlmostProc set_values_almost; /* set values almost for geometry */ | ||
| 113 | XtArgsProc get_values_hook; /* notify that get_values called */ | ||
| 114 | XtProc rect9; /* NULL */ | ||
| 115 | XtVersionType version; /* version of intrinsics used */ | ||
| 116 | XtPointer callback_private; /* list of callback offsets */ | ||
| 117 | String rect10; /* NULL */ | ||
| 118 | XtGeometryHandler query_geometry; /* return preferred geometry */ | ||
| 119 | XtProc rect11; /* NULL */ | ||
| 120 | XtPointer extension; /* pointer to extension record */ | ||
| 121 | } RectObjClassPart; | ||
| 122 | |||
| 123 | typedef struct _RectObjClassRec { | ||
| 124 | RectObjClassPart rect_class; | ||
| 125 | } RectObjClassRec; | ||
| 126 | |||
| 127 | externalref RectObjClassRec rectObjClassRec; | ||
| 128 | |||
| 129 | #endif /*_Xt_RectObjP_h_*/ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ResConfigP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ResConfigP.h new file mode 100644 index 0000000000..a06cda715d --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ResConfigP.h | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | /* $Xorg: ResConfigP.h,v 1.5 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1987, 1988, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | |||
| 26 | */ | ||
| 27 | /***************************************************************** | ||
| 28 | |||
| 29 | (C) COPYRIGHT International Business Machines Corp. 1992,1997 | ||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 33 | of this software and associated documentation files (the "Software"), to deal | ||
| 34 | in the Software without restriction, including without limitation the rights | ||
| 35 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 36 | copies of the Software. | ||
| 37 | |||
| 38 | The above copyright notice and this permission notice shall be included in | ||
| 39 | all copies or substantial portions of the Software. | ||
| 40 | |||
| 41 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 42 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 43 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
| 44 | THE IBM CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, | ||
| 45 | BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, | ||
| 46 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
| 47 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 48 | |||
| 49 | Except as contained in this notice, the name of the IBM Corporation shall | ||
| 50 | not be used in advertising or otherwise to promote the sale, use or other | ||
| 51 | dealings in this Software without prior written authorization from the IBM | ||
| 52 | Corporation. | ||
| 53 | |||
| 54 | ******************************************************************/ | ||
| 55 | /* $XFree86: xc/lib/Xt/ResConfigP.h,v 3.7 2001/12/20 19:40:59 tsi Exp $ */ | ||
| 56 | |||
| 57 | #ifndef _RESCONFIGP_H | ||
| 58 | #define _RESCONFIGP_H | ||
| 59 | |||
| 60 | #include <X11/Xfuncproto.h> | ||
| 61 | |||
| 62 | _XFUNCPROTOBEGIN | ||
| 63 | |||
| 64 | /* | ||
| 65 | * Atom names for resource configuration management customization tool. | ||
| 66 | */ | ||
| 67 | #define RCM_DATA "Custom Data" | ||
| 68 | #define RCM_INIT "Custom Init" | ||
| 69 | |||
| 70 | extern void _XtResourceConfigurationEH( | ||
| 71 | Widget /* w */, | ||
| 72 | XtPointer /* client_data */, | ||
| 73 | XEvent * /* event */ | ||
| 74 | ); | ||
| 75 | |||
| 76 | _XFUNCPROTOEND | ||
| 77 | |||
| 78 | #endif | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ResourceI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ResourceI.h new file mode 100644 index 0000000000..d6ed1df237 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ResourceI.h | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | /* $Xorg: ResourceI.h,v 1.4 2001/02/09 02:03:56 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/ResourceI.h,v 1.5 2001/12/14 19:56:28 dawes Exp $ */ | ||
| 50 | |||
| 51 | /**************************************************************** | ||
| 52 | * | ||
| 53 | * Resources | ||
| 54 | * | ||
| 55 | ****************************************************************/ | ||
| 56 | |||
| 57 | #ifndef _XtresourceI_h | ||
| 58 | #define _XtresourceI_h | ||
| 59 | |||
| 60 | #define StringToQuark(string) XrmStringToQuark(string) | ||
| 61 | #define StringToName(string) XrmStringToName(string) | ||
| 62 | #define StringToClass(string) XrmStringToClass(string) | ||
| 63 | |||
| 64 | extern void _XtDependencies( | ||
| 65 | XtResourceList * /* class_resp */, | ||
| 66 | Cardinal * /* class_num_resp */, | ||
| 67 | XrmResourceList * /* super_res */, | ||
| 68 | Cardinal /* super_num_res */, | ||
| 69 | Cardinal /* super_widget_size */); | ||
| 70 | |||
| 71 | extern void _XtResourceDependencies( | ||
| 72 | WidgetClass /* wc */ | ||
| 73 | ); | ||
| 74 | |||
| 75 | extern void _XtConstraintResDependencies( | ||
| 76 | ConstraintWidgetClass /* wc */ | ||
| 77 | ); | ||
| 78 | |||
| 79 | extern XtCacheRef* _XtGetResources( | ||
| 80 | Widget /* w */, | ||
| 81 | ArgList /* args */, | ||
| 82 | Cardinal /* num_args */, | ||
| 83 | XtTypedArgList /* typed_args */, | ||
| 84 | Cardinal* /* num_typed_args */ | ||
| 85 | ); | ||
| 86 | |||
| 87 | extern void _XtCopyFromParent( | ||
| 88 | Widget /* widget */, | ||
| 89 | int /* offset */, | ||
| 90 | XrmValue* /* value */ | ||
| 91 | ); | ||
| 92 | |||
| 93 | extern void _XtCopyToArg(char *src, XtArgVal *dst, unsigned int size); | ||
| 94 | extern void _XtCopyFromArg(XtArgVal src, char *dst, unsigned int size); | ||
| 95 | extern XrmResourceList* _XtCreateIndirectionTable(XtResourceList resources, | ||
| 96 | Cardinal num_resources); | ||
| 97 | extern void _XtResourceListInitialize(void); | ||
| 98 | |||
| 99 | |||
| 100 | #endif /* _XtresourceI_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/SelectionI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/SelectionI.h new file mode 100644 index 0000000000..e589aece54 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/SelectionI.h | |||
| @@ -0,0 +1,170 @@ | |||
| 1 | /* $Xorg: SelectionI.h,v 1.4 2001/02/09 02:03:58 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | #ifndef _XtselectionI_h | ||
| 51 | #define _XtselectionI_h | ||
| 52 | |||
| 53 | #include "Intrinsic.h" | ||
| 54 | |||
| 55 | typedef struct _RequestRec *Request; | ||
| 56 | typedef struct _SelectRec *Select; | ||
| 57 | |||
| 58 | typedef struct _RequestRec { | ||
| 59 | Select ctx; /* logical owner */ | ||
| 60 | Widget widget; /* widget actually receiving Selection events */ | ||
| 61 | Window requestor; | ||
| 62 | Atom property; | ||
| 63 | Atom target; | ||
| 64 | Atom type; | ||
| 65 | int format; | ||
| 66 | XtPointer value; | ||
| 67 | unsigned long bytelength; | ||
| 68 | unsigned long offset; | ||
| 69 | XtIntervalId timeout; | ||
| 70 | XSelectionRequestEvent event; /* for XtGetSelectionRequest */ | ||
| 71 | Boolean allSent; | ||
| 72 | } RequestRec; | ||
| 73 | |||
| 74 | typedef struct { | ||
| 75 | Atom prop; | ||
| 76 | Boolean avail; | ||
| 77 | } SelectionPropRec, *SelectionProp; | ||
| 78 | |||
| 79 | typedef struct { | ||
| 80 | Display *dpy; | ||
| 81 | Atom incr_atom, indirect_atom, timestamp_atom; | ||
| 82 | int propCount; | ||
| 83 | SelectionProp list; | ||
| 84 | } PropListRec, *PropList; | ||
| 85 | |||
| 86 | typedef struct _SelectRec { | ||
| 87 | Atom selection; /* constant */ | ||
| 88 | Display *dpy; /* constant */ | ||
| 89 | Widget widget; | ||
| 90 | Time time; | ||
| 91 | unsigned long serial; | ||
| 92 | XtConvertSelectionProc convert; | ||
| 93 | XtLoseSelectionProc loses; | ||
| 94 | XtSelectionDoneProc notify; | ||
| 95 | XtCancelConvertSelectionProc owner_cancel; | ||
| 96 | XtPointer owner_closure; | ||
| 97 | PropList prop_list; | ||
| 98 | Request req; /* state for local non-incr xfer */ | ||
| 99 | int ref_count; /* of active transfers */ | ||
| 100 | unsigned int incremental:1; | ||
| 101 | unsigned int free_when_done:1; | ||
| 102 | unsigned int was_disowned:1; | ||
| 103 | } SelectRec; | ||
| 104 | |||
| 105 | typedef struct _ParamRec { | ||
| 106 | Atom selection; | ||
| 107 | Atom param; | ||
| 108 | } ParamRec, *Param; | ||
| 109 | |||
| 110 | typedef struct _ParamInfoRec { | ||
| 111 | unsigned int count; | ||
| 112 | Param paramlist; | ||
| 113 | } ParamInfoRec, *ParamInfo; | ||
| 114 | |||
| 115 | typedef struct _QueuedRequestRec { | ||
| 116 | Atom selection; | ||
| 117 | Atom target; | ||
| 118 | Atom param; | ||
| 119 | XtSelectionCallbackProc callback; | ||
| 120 | XtPointer closure; | ||
| 121 | Time time; | ||
| 122 | Boolean incremental; | ||
| 123 | } QueuedRequestRec, *QueuedRequest; | ||
| 124 | |||
| 125 | typedef struct _QueuedRequestInfoRec { | ||
| 126 | int count; | ||
| 127 | Atom *selections; | ||
| 128 | QueuedRequest *requests; | ||
| 129 | } QueuedRequestInfoRec, *QueuedRequestInfo; | ||
| 130 | |||
| 131 | typedef struct { | ||
| 132 | XtSelectionCallbackProc *callbacks; | ||
| 133 | XtPointer *req_closure; | ||
| 134 | Atom property; | ||
| 135 | Atom *target; | ||
| 136 | Atom type; | ||
| 137 | int format; | ||
| 138 | char *value; | ||
| 139 | int bytelength; | ||
| 140 | int offset; | ||
| 141 | XtIntervalId timeout; | ||
| 142 | XtEventHandler proc; | ||
| 143 | Widget widget; | ||
| 144 | Time time; | ||
| 145 | Select ctx; | ||
| 146 | Boolean *incremental; | ||
| 147 | int current; | ||
| 148 | } CallBackInfoRec, *CallBackInfo; | ||
| 149 | |||
| 150 | typedef struct { | ||
| 151 | Atom target; | ||
| 152 | Atom property; | ||
| 153 | } IndirectPair; | ||
| 154 | |||
| 155 | #define IndirectPairWordSize 2 | ||
| 156 | |||
| 157 | typedef struct { | ||
| 158 | int active_transfer_count; | ||
| 159 | } RequestWindowRec; | ||
| 160 | |||
| 161 | #define MAX_SELECTION_INCR(dpy) (((65536 < XMaxRequestSize(dpy)) ? \ | ||
| 162 | (65536 << 2) : (XMaxRequestSize(dpy) << 2))-100) | ||
| 163 | |||
| 164 | #define MATCH_SELECT(event, info) ((event->time == info->time) && \ | ||
| 165 | (event->requestor == XtWindow(info->widget)) && \ | ||
| 166 | (event->selection == info->ctx->selection) && \ | ||
| 167 | (event->target == *info->target)) | ||
| 168 | |||
| 169 | #endif /* _XtselectionI_h */ | ||
| 170 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Shell.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Shell.h new file mode 100644 index 0000000000..5075ae2b81 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Shell.h | |||
| @@ -0,0 +1,567 @@ | |||
| 1 | /* $Xorg: Shell.ht,v 1.5 2001/02/09 02:03:59 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/util/Shell.ht,v 3.4 2001/07/29 05:01:12 tsi Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XtShell_h | ||
| 52 | #define _XtShell_h | ||
| 53 | |||
| 54 | #include <X11/SM/SMlib.h> | ||
| 55 | #include <X11/Intrinsic.h> | ||
| 56 | |||
| 57 | /*********************************************************************** | ||
| 58 | * | ||
| 59 | * Shell Widget | ||
| 60 | * | ||
| 61 | ***********************************************************************/ | ||
| 62 | /* | ||
| 63 | * Shell-specific resources names, classes, and a representation type. | ||
| 64 | */ | ||
| 65 | |||
| 66 | #ifndef XTSTRINGDEFINES | ||
| 67 | #define _XtShell_h_Const const | ||
| 68 | #endif | ||
| 69 | |||
| 70 | /* $Xorg: makestrs.c,v 1.6 2001/02/09 02:03:17 xorgcvs Exp $ */ | ||
| 71 | /* This file is automatically generated. */ | ||
| 72 | /* Default ABI version -- Do not edit */ | ||
| 73 | /* Xorg: string.list,v 1.3 2000/08/17 19:46:22 cpqbld Exp */ | ||
| 74 | |||
| 75 | #ifdef XTSTRINGDEFINES | ||
| 76 | #define XtNiconName "iconName" | ||
| 77 | #define XtCIconName "IconName" | ||
| 78 | #define XtNiconPixmap "iconPixmap" | ||
| 79 | #define XtCIconPixmap "IconPixmap" | ||
| 80 | #define XtNiconWindow "iconWindow" | ||
| 81 | #define XtCIconWindow "IconWindow" | ||
| 82 | #define XtNiconMask "iconMask" | ||
| 83 | #define XtCIconMask "IconMask" | ||
| 84 | #define XtNwindowGroup "windowGroup" | ||
| 85 | #define XtCWindowGroup "WindowGroup" | ||
| 86 | #define XtNvisual "visual" | ||
| 87 | #define XtCVisual "Visual" | ||
| 88 | #define XtNtitleEncoding "titleEncoding" | ||
| 89 | #define XtCTitleEncoding "TitleEncoding" | ||
| 90 | #define XtNsaveUnder "saveUnder" | ||
| 91 | #define XtCSaveUnder "SaveUnder" | ||
| 92 | #define XtNtransient "transient" | ||
| 93 | #define XtCTransient "Transient" | ||
| 94 | #define XtNoverrideRedirect "overrideRedirect" | ||
| 95 | #define XtCOverrideRedirect "OverrideRedirect" | ||
| 96 | #define XtNtransientFor "transientFor" | ||
| 97 | #define XtCTransientFor "TransientFor" | ||
| 98 | #define XtNiconNameEncoding "iconNameEncoding" | ||
| 99 | #define XtCIconNameEncoding "IconNameEncoding" | ||
| 100 | #define XtNallowShellResize "allowShellResize" | ||
| 101 | #define XtCAllowShellResize "AllowShellResize" | ||
| 102 | #define XtNcreatePopupChildProc "createPopupChildProc" | ||
| 103 | #define XtCCreatePopupChildProc "CreatePopupChildProc" | ||
| 104 | #define XtNtitle "title" | ||
| 105 | #define XtCTitle "Title" | ||
| 106 | #ifndef XtRAtom | ||
| 107 | #define XtRAtom "Atom" | ||
| 108 | #endif | ||
| 109 | #define XtNargc "argc" | ||
| 110 | #define XtCArgc "Argc" | ||
| 111 | #define XtNargv "argv" | ||
| 112 | #define XtCArgv "Argv" | ||
| 113 | #define XtNiconX "iconX" | ||
| 114 | #define XtCIconX "IconX" | ||
| 115 | #define XtNiconY "iconY" | ||
| 116 | #define XtCIconY "IconY" | ||
| 117 | #define XtNinput "input" | ||
| 118 | #define XtCInput "Input" | ||
| 119 | #define XtNiconic "iconic" | ||
| 120 | #define XtCIconic "Iconic" | ||
| 121 | #define XtNinitialState "initialState" | ||
| 122 | #define XtCInitialState "InitialState" | ||
| 123 | #define XtNgeometry "geometry" | ||
| 124 | #define XtCGeometry "Geometry" | ||
| 125 | #define XtNbaseWidth "baseWidth" | ||
| 126 | #define XtCBaseWidth "BaseWidth" | ||
| 127 | #define XtNbaseHeight "baseHeight" | ||
| 128 | #define XtCBaseHeight "BaseHeight" | ||
| 129 | #define XtNwinGravity "winGravity" | ||
| 130 | #define XtCWinGravity "WinGravity" | ||
| 131 | #define XtNminWidth "minWidth" | ||
| 132 | #define XtCMinWidth "MinWidth" | ||
| 133 | #define XtNminHeight "minHeight" | ||
| 134 | #define XtCMinHeight "MinHeight" | ||
| 135 | #define XtNmaxWidth "maxWidth" | ||
| 136 | #define XtCMaxWidth "MaxWidth" | ||
| 137 | #define XtNmaxHeight "maxHeight" | ||
| 138 | #define XtCMaxHeight "MaxHeight" | ||
| 139 | #define XtNwidthInc "widthInc" | ||
| 140 | #define XtCWidthInc "WidthInc" | ||
| 141 | #define XtNheightInc "heightInc" | ||
| 142 | #define XtCHeightInc "HeightInc" | ||
| 143 | #define XtNminAspectY "minAspectY" | ||
| 144 | #define XtCMinAspectY "MinAspectY" | ||
| 145 | #define XtNmaxAspectY "maxAspectY" | ||
| 146 | #define XtCMaxAspectY "MaxAspectY" | ||
| 147 | #define XtNminAspectX "minAspectX" | ||
| 148 | #define XtCMinAspectX "MinAspectX" | ||
| 149 | #define XtNmaxAspectX "maxAspectX" | ||
| 150 | #define XtCMaxAspectX "MaxAspectX" | ||
| 151 | #define XtNwmTimeout "wmTimeout" | ||
| 152 | #define XtCWmTimeout "WmTimeout" | ||
| 153 | #define XtNwaitForWm "waitforwm" | ||
| 154 | #define XtCWaitForWm "Waitforwm" | ||
| 155 | #define XtNwaitforwm "waitforwm" | ||
| 156 | #define XtCWaitforwm "Waitforwm" | ||
| 157 | #define XtNclientLeader "clientLeader" | ||
| 158 | #define XtCClientLeader "ClientLeader" | ||
| 159 | #define XtNwindowRole "windowRole" | ||
| 160 | #define XtCWindowRole "WindowRole" | ||
| 161 | #define XtNurgency "urgency" | ||
| 162 | #define XtCUrgency "Urgency" | ||
| 163 | #define XtNcancelCallback "cancelCallback" | ||
| 164 | #define XtNcloneCommand "cloneCommand" | ||
| 165 | #define XtCCloneCommand "CloneCommand" | ||
| 166 | #define XtNconnection "connection" | ||
| 167 | #define XtCConnection "Connection" | ||
| 168 | #define XtNcurrentDirectory "currentDirectory" | ||
| 169 | #define XtCCurrentDirectory "CurrentDirectory" | ||
| 170 | #define XtNdieCallback "dieCallback" | ||
| 171 | #define XtNdiscardCommand "discardCommand" | ||
| 172 | #define XtCDiscardCommand "DiscardCommand" | ||
| 173 | #define XtNenvironment "environment" | ||
| 174 | #define XtCEnvironment "Environment" | ||
| 175 | #define XtNinteractCallback "interactCallback" | ||
| 176 | #define XtNjoinSession "joinSession" | ||
| 177 | #define XtCJoinSession "JoinSession" | ||
| 178 | #define XtNprogramPath "programPath" | ||
| 179 | #define XtCProgramPath "ProgramPath" | ||
| 180 | #define XtNresignCommand "resignCommand" | ||
| 181 | #define XtCResignCommand "ResignCommand" | ||
| 182 | #define XtNrestartCommand "restartCommand" | ||
| 183 | #define XtCRestartCommand "RestartCommand" | ||
| 184 | #define XtNrestartStyle "restartStyle" | ||
| 185 | #define XtCRestartStyle "RestartStyle" | ||
| 186 | #define XtNsaveCallback "saveCallback" | ||
| 187 | #define XtNsaveCompleteCallback "saveCompleteCallback" | ||
| 188 | #define XtNsessionID "sessionID" | ||
| 189 | #define XtCSessionID "SessionID" | ||
| 190 | #define XtNshutdownCommand "shutdownCommand" | ||
| 191 | #define XtCShutdownCommand "ShutdownCommand" | ||
| 192 | #define XtNerrorCallback "errorCallback" | ||
| 193 | #else | ||
| 194 | extern _XtShell_h_Const char XtShellStrings[]; | ||
| 195 | #ifndef XtNiconName | ||
| 196 | #define XtNiconName ((char*)&XtShellStrings[0]) | ||
| 197 | #endif | ||
| 198 | #ifndef XtCIconName | ||
| 199 | #define XtCIconName ((char*)&XtShellStrings[9]) | ||
| 200 | #endif | ||
| 201 | #ifndef XtNiconPixmap | ||
| 202 | #define XtNiconPixmap ((char*)&XtShellStrings[18]) | ||
| 203 | #endif | ||
| 204 | #ifndef XtCIconPixmap | ||
| 205 | #define XtCIconPixmap ((char*)&XtShellStrings[29]) | ||
| 206 | #endif | ||
| 207 | #ifndef XtNiconWindow | ||
| 208 | #define XtNiconWindow ((char*)&XtShellStrings[40]) | ||
| 209 | #endif | ||
| 210 | #ifndef XtCIconWindow | ||
| 211 | #define XtCIconWindow ((char*)&XtShellStrings[51]) | ||
| 212 | #endif | ||
| 213 | #ifndef XtNiconMask | ||
| 214 | #define XtNiconMask ((char*)&XtShellStrings[62]) | ||
| 215 | #endif | ||
| 216 | #ifndef XtCIconMask | ||
| 217 | #define XtCIconMask ((char*)&XtShellStrings[71]) | ||
| 218 | #endif | ||
| 219 | #ifndef XtNwindowGroup | ||
| 220 | #define XtNwindowGroup ((char*)&XtShellStrings[80]) | ||
| 221 | #endif | ||
| 222 | #ifndef XtCWindowGroup | ||
| 223 | #define XtCWindowGroup ((char*)&XtShellStrings[92]) | ||
| 224 | #endif | ||
| 225 | #ifndef XtNvisual | ||
| 226 | #define XtNvisual ((char*)&XtShellStrings[104]) | ||
| 227 | #endif | ||
| 228 | #ifndef XtCVisual | ||
| 229 | #define XtCVisual ((char*)&XtShellStrings[111]) | ||
| 230 | #endif | ||
| 231 | #ifndef XtNtitleEncoding | ||
| 232 | #define XtNtitleEncoding ((char*)&XtShellStrings[118]) | ||
| 233 | #endif | ||
| 234 | #ifndef XtCTitleEncoding | ||
| 235 | #define XtCTitleEncoding ((char*)&XtShellStrings[132]) | ||
| 236 | #endif | ||
| 237 | #ifndef XtNsaveUnder | ||
| 238 | #define XtNsaveUnder ((char*)&XtShellStrings[146]) | ||
| 239 | #endif | ||
| 240 | #ifndef XtCSaveUnder | ||
| 241 | #define XtCSaveUnder ((char*)&XtShellStrings[156]) | ||
| 242 | #endif | ||
| 243 | #ifndef XtNtransient | ||
| 244 | #define XtNtransient ((char*)&XtShellStrings[166]) | ||
| 245 | #endif | ||
| 246 | #ifndef XtCTransient | ||
| 247 | #define XtCTransient ((char*)&XtShellStrings[176]) | ||
| 248 | #endif | ||
| 249 | #ifndef XtNoverrideRedirect | ||
| 250 | #define XtNoverrideRedirect ((char*)&XtShellStrings[186]) | ||
| 251 | #endif | ||
| 252 | #ifndef XtCOverrideRedirect | ||
| 253 | #define XtCOverrideRedirect ((char*)&XtShellStrings[203]) | ||
| 254 | #endif | ||
| 255 | #ifndef XtNtransientFor | ||
| 256 | #define XtNtransientFor ((char*)&XtShellStrings[220]) | ||
| 257 | #endif | ||
| 258 | #ifndef XtCTransientFor | ||
| 259 | #define XtCTransientFor ((char*)&XtShellStrings[233]) | ||
| 260 | #endif | ||
| 261 | #ifndef XtNiconNameEncoding | ||
| 262 | #define XtNiconNameEncoding ((char*)&XtShellStrings[246]) | ||
| 263 | #endif | ||
| 264 | #ifndef XtCIconNameEncoding | ||
| 265 | #define XtCIconNameEncoding ((char*)&XtShellStrings[263]) | ||
| 266 | #endif | ||
| 267 | #ifndef XtNallowShellResize | ||
| 268 | #define XtNallowShellResize ((char*)&XtShellStrings[280]) | ||
| 269 | #endif | ||
| 270 | #ifndef XtCAllowShellResize | ||
| 271 | #define XtCAllowShellResize ((char*)&XtShellStrings[297]) | ||
| 272 | #endif | ||
| 273 | #ifndef XtNcreatePopupChildProc | ||
| 274 | #define XtNcreatePopupChildProc ((char*)&XtShellStrings[314]) | ||
| 275 | #endif | ||
| 276 | #ifndef XtCCreatePopupChildProc | ||
| 277 | #define XtCCreatePopupChildProc ((char*)&XtShellStrings[335]) | ||
| 278 | #endif | ||
| 279 | #ifndef XtNtitle | ||
| 280 | #define XtNtitle ((char*)&XtShellStrings[356]) | ||
| 281 | #endif | ||
| 282 | #ifndef XtCTitle | ||
| 283 | #define XtCTitle ((char*)&XtShellStrings[362]) | ||
| 284 | #endif | ||
| 285 | #ifndef XtRAtom | ||
| 286 | #define XtRAtom ((char*)&XtShellStrings[368]) | ||
| 287 | #endif | ||
| 288 | #ifndef XtNargc | ||
| 289 | #define XtNargc ((char*)&XtShellStrings[373]) | ||
| 290 | #endif | ||
| 291 | #ifndef XtCArgc | ||
| 292 | #define XtCArgc ((char*)&XtShellStrings[378]) | ||
| 293 | #endif | ||
| 294 | #ifndef XtNargv | ||
| 295 | #define XtNargv ((char*)&XtShellStrings[383]) | ||
| 296 | #endif | ||
| 297 | #ifndef XtCArgv | ||
| 298 | #define XtCArgv ((char*)&XtShellStrings[388]) | ||
| 299 | #endif | ||
| 300 | #ifndef XtNiconX | ||
| 301 | #define XtNiconX ((char*)&XtShellStrings[393]) | ||
| 302 | #endif | ||
| 303 | #ifndef XtCIconX | ||
| 304 | #define XtCIconX ((char*)&XtShellStrings[399]) | ||
| 305 | #endif | ||
| 306 | #ifndef XtNiconY | ||
| 307 | #define XtNiconY ((char*)&XtShellStrings[405]) | ||
| 308 | #endif | ||
| 309 | #ifndef XtCIconY | ||
| 310 | #define XtCIconY ((char*)&XtShellStrings[411]) | ||
| 311 | #endif | ||
| 312 | #ifndef XtNinput | ||
| 313 | #define XtNinput ((char*)&XtShellStrings[417]) | ||
| 314 | #endif | ||
| 315 | #ifndef XtCInput | ||
| 316 | #define XtCInput ((char*)&XtShellStrings[423]) | ||
| 317 | #endif | ||
| 318 | #ifndef XtNiconic | ||
| 319 | #define XtNiconic ((char*)&XtShellStrings[429]) | ||
| 320 | #endif | ||
| 321 | #ifndef XtCIconic | ||
| 322 | #define XtCIconic ((char*)&XtShellStrings[436]) | ||
| 323 | #endif | ||
| 324 | #ifndef XtNinitialState | ||
| 325 | #define XtNinitialState ((char*)&XtShellStrings[443]) | ||
| 326 | #endif | ||
| 327 | #ifndef XtCInitialState | ||
| 328 | #define XtCInitialState ((char*)&XtShellStrings[456]) | ||
| 329 | #endif | ||
| 330 | #ifndef XtNgeometry | ||
| 331 | #define XtNgeometry ((char*)&XtShellStrings[469]) | ||
| 332 | #endif | ||
| 333 | #ifndef XtCGeometry | ||
| 334 | #define XtCGeometry ((char*)&XtShellStrings[478]) | ||
| 335 | #endif | ||
| 336 | #ifndef XtNbaseWidth | ||
| 337 | #define XtNbaseWidth ((char*)&XtShellStrings[487]) | ||
| 338 | #endif | ||
| 339 | #ifndef XtCBaseWidth | ||
| 340 | #define XtCBaseWidth ((char*)&XtShellStrings[497]) | ||
| 341 | #endif | ||
| 342 | #ifndef XtNbaseHeight | ||
| 343 | #define XtNbaseHeight ((char*)&XtShellStrings[507]) | ||
| 344 | #endif | ||
| 345 | #ifndef XtCBaseHeight | ||
| 346 | #define XtCBaseHeight ((char*)&XtShellStrings[518]) | ||
| 347 | #endif | ||
| 348 | #ifndef XtNwinGravity | ||
| 349 | #define XtNwinGravity ((char*)&XtShellStrings[529]) | ||
| 350 | #endif | ||
| 351 | #ifndef XtCWinGravity | ||
| 352 | #define XtCWinGravity ((char*)&XtShellStrings[540]) | ||
| 353 | #endif | ||
| 354 | #ifndef XtNminWidth | ||
| 355 | #define XtNminWidth ((char*)&XtShellStrings[551]) | ||
| 356 | #endif | ||
| 357 | #ifndef XtCMinWidth | ||
| 358 | #define XtCMinWidth ((char*)&XtShellStrings[560]) | ||
| 359 | #endif | ||
| 360 | #ifndef XtNminHeight | ||
| 361 | #define XtNminHeight ((char*)&XtShellStrings[569]) | ||
| 362 | #endif | ||
| 363 | #ifndef XtCMinHeight | ||
| 364 | #define XtCMinHeight ((char*)&XtShellStrings[579]) | ||
| 365 | #endif | ||
| 366 | #ifndef XtNmaxWidth | ||
| 367 | #define XtNmaxWidth ((char*)&XtShellStrings[589]) | ||
| 368 | #endif | ||
| 369 | #ifndef XtCMaxWidth | ||
| 370 | #define XtCMaxWidth ((char*)&XtShellStrings[598]) | ||
| 371 | #endif | ||
| 372 | #ifndef XtNmaxHeight | ||
| 373 | #define XtNmaxHeight ((char*)&XtShellStrings[607]) | ||
| 374 | #endif | ||
| 375 | #ifndef XtCMaxHeight | ||
| 376 | #define XtCMaxHeight ((char*)&XtShellStrings[617]) | ||
| 377 | #endif | ||
| 378 | #ifndef XtNwidthInc | ||
| 379 | #define XtNwidthInc ((char*)&XtShellStrings[627]) | ||
| 380 | #endif | ||
| 381 | #ifndef XtCWidthInc | ||
| 382 | #define XtCWidthInc ((char*)&XtShellStrings[636]) | ||
| 383 | #endif | ||
| 384 | #ifndef XtNheightInc | ||
| 385 | #define XtNheightInc ((char*)&XtShellStrings[645]) | ||
| 386 | #endif | ||
| 387 | #ifndef XtCHeightInc | ||
| 388 | #define XtCHeightInc ((char*)&XtShellStrings[655]) | ||
| 389 | #endif | ||
| 390 | #ifndef XtNminAspectY | ||
| 391 | #define XtNminAspectY ((char*)&XtShellStrings[665]) | ||
| 392 | #endif | ||
| 393 | #ifndef XtCMinAspectY | ||
| 394 | #define XtCMinAspectY ((char*)&XtShellStrings[676]) | ||
| 395 | #endif | ||
| 396 | #ifndef XtNmaxAspectY | ||
| 397 | #define XtNmaxAspectY ((char*)&XtShellStrings[687]) | ||
| 398 | #endif | ||
| 399 | #ifndef XtCMaxAspectY | ||
| 400 | #define XtCMaxAspectY ((char*)&XtShellStrings[698]) | ||
| 401 | #endif | ||
| 402 | #ifndef XtNminAspectX | ||
| 403 | #define XtNminAspectX ((char*)&XtShellStrings[709]) | ||
| 404 | #endif | ||
| 405 | #ifndef XtCMinAspectX | ||
| 406 | #define XtCMinAspectX ((char*)&XtShellStrings[720]) | ||
| 407 | #endif | ||
| 408 | #ifndef XtNmaxAspectX | ||
| 409 | #define XtNmaxAspectX ((char*)&XtShellStrings[731]) | ||
| 410 | #endif | ||
| 411 | #ifndef XtCMaxAspectX | ||
| 412 | #define XtCMaxAspectX ((char*)&XtShellStrings[742]) | ||
| 413 | #endif | ||
| 414 | #ifndef XtNwmTimeout | ||
| 415 | #define XtNwmTimeout ((char*)&XtShellStrings[753]) | ||
| 416 | #endif | ||
| 417 | #ifndef XtCWmTimeout | ||
| 418 | #define XtCWmTimeout ((char*)&XtShellStrings[763]) | ||
| 419 | #endif | ||
| 420 | #ifndef XtNwaitForWm | ||
| 421 | #define XtNwaitForWm ((char*)&XtShellStrings[773]) | ||
| 422 | #endif | ||
| 423 | #ifndef XtCWaitForWm | ||
| 424 | #define XtCWaitForWm ((char*)&XtShellStrings[783]) | ||
| 425 | #endif | ||
| 426 | #ifndef XtNwaitforwm | ||
| 427 | #define XtNwaitforwm ((char*)&XtShellStrings[793]) | ||
| 428 | #endif | ||
| 429 | #ifndef XtCWaitforwm | ||
| 430 | #define XtCWaitforwm ((char*)&XtShellStrings[803]) | ||
| 431 | #endif | ||
| 432 | #ifndef XtNclientLeader | ||
| 433 | #define XtNclientLeader ((char*)&XtShellStrings[813]) | ||
| 434 | #endif | ||
| 435 | #ifndef XtCClientLeader | ||
| 436 | #define XtCClientLeader ((char*)&XtShellStrings[826]) | ||
| 437 | #endif | ||
| 438 | #ifndef XtNwindowRole | ||
| 439 | #define XtNwindowRole ((char*)&XtShellStrings[839]) | ||
| 440 | #endif | ||
| 441 | #ifndef XtCWindowRole | ||
| 442 | #define XtCWindowRole ((char*)&XtShellStrings[850]) | ||
| 443 | #endif | ||
| 444 | #ifndef XtNurgency | ||
| 445 | #define XtNurgency ((char*)&XtShellStrings[861]) | ||
| 446 | #endif | ||
| 447 | #ifndef XtCUrgency | ||
| 448 | #define XtCUrgency ((char*)&XtShellStrings[869]) | ||
| 449 | #endif | ||
| 450 | #ifndef XtNcancelCallback | ||
| 451 | #define XtNcancelCallback ((char*)&XtShellStrings[877]) | ||
| 452 | #endif | ||
| 453 | #ifndef XtNcloneCommand | ||
| 454 | #define XtNcloneCommand ((char*)&XtShellStrings[892]) | ||
| 455 | #endif | ||
| 456 | #ifndef XtCCloneCommand | ||
| 457 | #define XtCCloneCommand ((char*)&XtShellStrings[905]) | ||
| 458 | #endif | ||
| 459 | #ifndef XtNconnection | ||
| 460 | #define XtNconnection ((char*)&XtShellStrings[918]) | ||
| 461 | #endif | ||
| 462 | #ifndef XtCConnection | ||
| 463 | #define XtCConnection ((char*)&XtShellStrings[929]) | ||
| 464 | #endif | ||
| 465 | #ifndef XtNcurrentDirectory | ||
| 466 | #define XtNcurrentDirectory ((char*)&XtShellStrings[940]) | ||
| 467 | #endif | ||
| 468 | #ifndef XtCCurrentDirectory | ||
| 469 | #define XtCCurrentDirectory ((char*)&XtShellStrings[957]) | ||
| 470 | #endif | ||
| 471 | #ifndef XtNdieCallback | ||
| 472 | #define XtNdieCallback ((char*)&XtShellStrings[974]) | ||
| 473 | #endif | ||
| 474 | #ifndef XtNdiscardCommand | ||
| 475 | #define XtNdiscardCommand ((char*)&XtShellStrings[986]) | ||
| 476 | #endif | ||
| 477 | #ifndef XtCDiscardCommand | ||
| 478 | #define XtCDiscardCommand ((char*)&XtShellStrings[1001]) | ||
| 479 | #endif | ||
| 480 | #ifndef XtNenvironment | ||
| 481 | #define XtNenvironment ((char*)&XtShellStrings[1016]) | ||
| 482 | #endif | ||
| 483 | #ifndef XtCEnvironment | ||
| 484 | #define XtCEnvironment ((char*)&XtShellStrings[1028]) | ||
| 485 | #endif | ||
| 486 | #ifndef XtNinteractCallback | ||
| 487 | #define XtNinteractCallback ((char*)&XtShellStrings[1040]) | ||
| 488 | #endif | ||
| 489 | #ifndef XtNjoinSession | ||
| 490 | #define XtNjoinSession ((char*)&XtShellStrings[1057]) | ||
| 491 | #endif | ||
| 492 | #ifndef XtCJoinSession | ||
| 493 | #define XtCJoinSession ((char*)&XtShellStrings[1069]) | ||
| 494 | #endif | ||
| 495 | #ifndef XtNprogramPath | ||
| 496 | #define XtNprogramPath ((char*)&XtShellStrings[1081]) | ||
| 497 | #endif | ||
| 498 | #ifndef XtCProgramPath | ||
| 499 | #define XtCProgramPath ((char*)&XtShellStrings[1093]) | ||
| 500 | #endif | ||
| 501 | #ifndef XtNresignCommand | ||
| 502 | #define XtNresignCommand ((char*)&XtShellStrings[1105]) | ||
| 503 | #endif | ||
| 504 | #ifndef XtCResignCommand | ||
| 505 | #define XtCResignCommand ((char*)&XtShellStrings[1119]) | ||
| 506 | #endif | ||
| 507 | #ifndef XtNrestartCommand | ||
| 508 | #define XtNrestartCommand ((char*)&XtShellStrings[1133]) | ||
| 509 | #endif | ||
| 510 | #ifndef XtCRestartCommand | ||
| 511 | #define XtCRestartCommand ((char*)&XtShellStrings[1148]) | ||
| 512 | #endif | ||
| 513 | #ifndef XtNrestartStyle | ||
| 514 | #define XtNrestartStyle ((char*)&XtShellStrings[1163]) | ||
| 515 | #endif | ||
| 516 | #ifndef XtCRestartStyle | ||
| 517 | #define XtCRestartStyle ((char*)&XtShellStrings[1176]) | ||
| 518 | #endif | ||
| 519 | #ifndef XtNsaveCallback | ||
| 520 | #define XtNsaveCallback ((char*)&XtShellStrings[1189]) | ||
| 521 | #endif | ||
| 522 | #ifndef XtNsaveCompleteCallback | ||
| 523 | #define XtNsaveCompleteCallback ((char*)&XtShellStrings[1202]) | ||
| 524 | #endif | ||
| 525 | #ifndef XtNsessionID | ||
| 526 | #define XtNsessionID ((char*)&XtShellStrings[1223]) | ||
| 527 | #endif | ||
| 528 | #ifndef XtCSessionID | ||
| 529 | #define XtCSessionID ((char*)&XtShellStrings[1233]) | ||
| 530 | #endif | ||
| 531 | #ifndef XtNshutdownCommand | ||
| 532 | #define XtNshutdownCommand ((char*)&XtShellStrings[1243]) | ||
| 533 | #endif | ||
| 534 | #ifndef XtCShutdownCommand | ||
| 535 | #define XtCShutdownCommand ((char*)&XtShellStrings[1259]) | ||
| 536 | #endif | ||
| 537 | #ifndef XtNerrorCallback | ||
| 538 | #define XtNerrorCallback ((char*)&XtShellStrings[1275]) | ||
| 539 | #endif | ||
| 540 | #endif /* XTSTRINGDEFINES */ | ||
| 541 | |||
| 542 | #ifndef XTSTRINGDEFINES | ||
| 543 | #undef _XtShell_h_Const | ||
| 544 | #endif | ||
| 545 | |||
| 546 | /* Class record constants */ | ||
| 547 | |||
| 548 | typedef struct _ShellClassRec *ShellWidgetClass; | ||
| 549 | typedef struct _OverrideShellClassRec *OverrideShellWidgetClass; | ||
| 550 | typedef struct _WMShellClassRec *WMShellWidgetClass; | ||
| 551 | typedef struct _TransientShellClassRec *TransientShellWidgetClass; | ||
| 552 | typedef struct _TopLevelShellClassRec *TopLevelShellWidgetClass; | ||
| 553 | typedef struct _ApplicationShellClassRec *ApplicationShellWidgetClass; | ||
| 554 | typedef struct _SessionShellClassRec *SessionShellWidgetClass; | ||
| 555 | |||
| 556 | #ifndef SHELL | ||
| 557 | externalref WidgetClass shellWidgetClass; | ||
| 558 | externalref WidgetClass overrideShellWidgetClass; | ||
| 559 | externalref WidgetClass wmShellWidgetClass; | ||
| 560 | externalref WidgetClass transientShellWidgetClass; | ||
| 561 | externalref WidgetClass topLevelShellWidgetClass; | ||
| 562 | externalref WidgetClass applicationShellWidgetClass; | ||
| 563 | externalref WidgetClass sessionShellWidgetClass; | ||
| 564 | #endif | ||
| 565 | |||
| 566 | #endif /* _XtShell_h */ | ||
| 567 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ShellI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ShellI.h new file mode 100644 index 0000000000..6a093d791a --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ShellI.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | /* $XFree86$ */ | ||
| 2 | |||
| 3 | #ifndef _XtShellInternal_h | ||
| 4 | #define _XtShellInternal_h | ||
| 5 | |||
| 6 | #include <X11/Xfuncproto.h> | ||
| 7 | |||
| 8 | _XFUNCPROTOBEGIN | ||
| 9 | |||
| 10 | extern void _XtShellGetCoordinates(Widget widget, Position *x, Position *y); | ||
| 11 | |||
| 12 | #endif /* _XtShellInternal_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ShellP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ShellP.h new file mode 100644 index 0000000000..2b08c3f5ce --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ShellP.h | |||
| @@ -0,0 +1,428 @@ | |||
| 1 | /* $Xorg: ShellP.h,v 1.4 2001/02/09 02:03:58 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | |||
| 50 | /* | ||
| 51 | * ShellP.h - Private definitions for Shell widget | ||
| 52 | * | ||
| 53 | * Author: Paul Asente | ||
| 54 | * Digital Equipment Corporation | ||
| 55 | * Western Software Laboratory | ||
| 56 | * Date: Thu Dec 3, 1987 | ||
| 57 | */ | ||
| 58 | |||
| 59 | #ifndef _XtShellPrivate_h | ||
| 60 | #define _XtShellPrivate_h | ||
| 61 | |||
| 62 | #include <X11/Shell.h> | ||
| 63 | |||
| 64 | /* ***** | ||
| 65 | * ***** VendorP.h is included later on; it needs fields defined in the first | ||
| 66 | * ***** part of this header file | ||
| 67 | * ***** | ||
| 68 | */ | ||
| 69 | |||
| 70 | /*********************************************************************** | ||
| 71 | * | ||
| 72 | * Shell Widget Private Data | ||
| 73 | * | ||
| 74 | ***********************************************************************/ | ||
| 75 | |||
| 76 | /* New fields for the Shell widget class record */ | ||
| 77 | |||
| 78 | typedef struct { | ||
| 79 | XtPointer extension; /* pointer to extension record */ | ||
| 80 | } ShellClassPart; | ||
| 81 | |||
| 82 | typedef struct { | ||
| 83 | XtPointer next_extension; /* 1st 4 mandated for all extension records */ | ||
| 84 | XrmQuark record_type; /* NULLQUARK; on ShellClassPart */ | ||
| 85 | long version; /* must be XtShellExtensionVersion */ | ||
| 86 | Cardinal record_size; /* sizeof(ShellClassExtensionRec) */ | ||
| 87 | XtGeometryHandler root_geometry_manager; | ||
| 88 | } ShellClassExtensionRec, *ShellClassExtension; | ||
| 89 | |||
| 90 | #define XtShellExtensionVersion 1L | ||
| 91 | #define XtInheritRootGeometryManager ((XtGeometryHandler)_XtInherit) | ||
| 92 | |||
| 93 | typedef struct _ShellClassRec { | ||
| 94 | CoreClassPart core_class; | ||
| 95 | CompositeClassPart composite_class; | ||
| 96 | ShellClassPart shell_class; | ||
| 97 | } ShellClassRec; | ||
| 98 | |||
| 99 | externalref ShellClassRec shellClassRec; | ||
| 100 | |||
| 101 | /* New fields for the shell widget */ | ||
| 102 | |||
| 103 | typedef struct { | ||
| 104 | char *geometry; | ||
| 105 | XtCreatePopupChildProc create_popup_child_proc; | ||
| 106 | XtGrabKind grab_kind; | ||
| 107 | Boolean spring_loaded; | ||
| 108 | Boolean popped_up; | ||
| 109 | Boolean allow_shell_resize; | ||
| 110 | Boolean client_specified; /* re-using old name */ | ||
| 111 | #define _XtShellPositionValid ((Boolean)(1<<0)) | ||
| 112 | #define _XtShellNotReparented ((Boolean)(1<<1)) | ||
| 113 | #define _XtShellPPositionOK ((Boolean)(1<<2)) | ||
| 114 | #define _XtShellGeometryParsed ((Boolean)(1<<3)) | ||
| 115 | Boolean save_under; | ||
| 116 | Boolean override_redirect; | ||
| 117 | |||
| 118 | XtCallbackList popup_callback; | ||
| 119 | XtCallbackList popdown_callback; | ||
| 120 | Visual* visual; | ||
| 121 | } ShellPart; | ||
| 122 | |||
| 123 | typedef struct { | ||
| 124 | CorePart core; | ||
| 125 | CompositePart composite; | ||
| 126 | ShellPart shell; | ||
| 127 | } ShellRec, *ShellWidget; | ||
| 128 | |||
| 129 | /*********************************************************************** | ||
| 130 | * | ||
| 131 | * OverrideShell Widget Private Data | ||
| 132 | * | ||
| 133 | ***********************************************************************/ | ||
| 134 | |||
| 135 | /* New fields for the OverrideShell widget class record */ | ||
| 136 | |||
| 137 | typedef struct { | ||
| 138 | XtPointer extension; /* pointer to extension record */ | ||
| 139 | } OverrideShellClassPart; | ||
| 140 | |||
| 141 | typedef struct _OverrideShellClassRec { | ||
| 142 | CoreClassPart core_class; | ||
| 143 | CompositeClassPart composite_class; | ||
| 144 | ShellClassPart shell_class; | ||
| 145 | OverrideShellClassPart override_shell_class; | ||
| 146 | } OverrideShellClassRec; | ||
| 147 | |||
| 148 | externalref OverrideShellClassRec overrideShellClassRec; | ||
| 149 | |||
| 150 | /* No new fields for the override shell widget */ | ||
| 151 | |||
| 152 | typedef struct {int frabjous;} OverrideShellPart; | ||
| 153 | |||
| 154 | typedef struct { | ||
| 155 | CorePart core; | ||
| 156 | CompositePart composite; | ||
| 157 | ShellPart shell; | ||
| 158 | OverrideShellPart override; | ||
| 159 | } OverrideShellRec, *OverrideShellWidget; | ||
| 160 | |||
| 161 | /*********************************************************************** | ||
| 162 | * | ||
| 163 | * WMShell Widget Private Data | ||
| 164 | * | ||
| 165 | ***********************************************************************/ | ||
| 166 | |||
| 167 | /* New fields for the WMShell widget class record */ | ||
| 168 | |||
| 169 | typedef struct { | ||
| 170 | XtPointer extension; /* pointer to extension record */ | ||
| 171 | } WMShellClassPart; | ||
| 172 | |||
| 173 | typedef struct _WMShellClassRec { | ||
| 174 | CoreClassPart core_class; | ||
| 175 | CompositeClassPart composite_class; | ||
| 176 | ShellClassPart shell_class; | ||
| 177 | WMShellClassPart wm_shell_class; | ||
| 178 | } WMShellClassRec; | ||
| 179 | |||
| 180 | externalref WMShellClassRec wmShellClassRec; | ||
| 181 | |||
| 182 | /* New fields for the WM shell widget */ | ||
| 183 | |||
| 184 | typedef struct { | ||
| 185 | char *title; | ||
| 186 | int wm_timeout; | ||
| 187 | Boolean wait_for_wm; | ||
| 188 | Boolean transient; | ||
| 189 | Boolean urgency; | ||
| 190 | Widget client_leader; | ||
| 191 | String window_role; | ||
| 192 | struct _OldXSizeHints { /* pre-R4 Xlib structure */ | ||
| 193 | long flags; | ||
| 194 | int x, y; | ||
| 195 | int width, height; | ||
| 196 | int min_width, min_height; | ||
| 197 | int max_width, max_height; | ||
| 198 | int width_inc, height_inc; | ||
| 199 | struct { | ||
| 200 | int x; | ||
| 201 | int y; | ||
| 202 | } min_aspect, max_aspect; | ||
| 203 | } size_hints; | ||
| 204 | XWMHints wm_hints; | ||
| 205 | int base_width, base_height; | ||
| 206 | int win_gravity; | ||
| 207 | Atom title_encoding; | ||
| 208 | } WMShellPart; | ||
| 209 | |||
| 210 | typedef struct { | ||
| 211 | CorePart core; | ||
| 212 | CompositePart composite; | ||
| 213 | ShellPart shell; | ||
| 214 | WMShellPart wm; | ||
| 215 | } WMShellRec, *WMShellWidget; | ||
| 216 | |||
| 217 | #include <X11/VendorP.h> | ||
| 218 | |||
| 219 | /*********************************************************************** | ||
| 220 | * | ||
| 221 | * TransientShell Widget Private Data | ||
| 222 | * | ||
| 223 | ***********************************************************************/ | ||
| 224 | |||
| 225 | /* New fields for the TransientShell widget class record */ | ||
| 226 | |||
| 227 | typedef struct { | ||
| 228 | XtPointer extension; /* pointer to extension record */ | ||
| 229 | } TransientShellClassPart; | ||
| 230 | |||
| 231 | typedef struct _TransientShellClassRec { | ||
| 232 | CoreClassPart core_class; | ||
| 233 | CompositeClassPart composite_class; | ||
| 234 | ShellClassPart shell_class; | ||
| 235 | WMShellClassPart wm_shell_class; | ||
| 236 | VendorShellClassPart vendor_shell_class; | ||
| 237 | TransientShellClassPart transient_shell_class; | ||
| 238 | } TransientShellClassRec; | ||
| 239 | |||
| 240 | externalref TransientShellClassRec transientShellClassRec; | ||
| 241 | |||
| 242 | /* New fields for the transient shell widget */ | ||
| 243 | |||
| 244 | typedef struct { | ||
| 245 | Widget transient_for; | ||
| 246 | } TransientShellPart; | ||
| 247 | |||
| 248 | typedef struct { | ||
| 249 | CorePart core; | ||
| 250 | CompositePart composite; | ||
| 251 | ShellPart shell; | ||
| 252 | WMShellPart wm; | ||
| 253 | VendorShellPart vendor; | ||
| 254 | TransientShellPart transient; | ||
| 255 | } TransientShellRec, *TransientShellWidget; | ||
| 256 | |||
| 257 | /*********************************************************************** | ||
| 258 | * | ||
| 259 | * TopLevelShell Widget Private Data | ||
| 260 | * | ||
| 261 | ***********************************************************************/ | ||
| 262 | |||
| 263 | /* New fields for the TopLevelShell widget class record */ | ||
| 264 | |||
| 265 | typedef struct { | ||
| 266 | XtPointer extension; /* pointer to extension record */ | ||
| 267 | } TopLevelShellClassPart; | ||
| 268 | |||
| 269 | typedef struct _TopLevelShellClassRec { | ||
| 270 | CoreClassPart core_class; | ||
| 271 | CompositeClassPart composite_class; | ||
| 272 | ShellClassPart shell_class; | ||
| 273 | WMShellClassPart wm_shell_class; | ||
| 274 | VendorShellClassPart vendor_shell_class; | ||
| 275 | TopLevelShellClassPart top_level_shell_class; | ||
| 276 | } TopLevelShellClassRec; | ||
| 277 | |||
| 278 | externalref TopLevelShellClassRec topLevelShellClassRec; | ||
| 279 | |||
| 280 | /* New fields for the top level shell widget */ | ||
| 281 | |||
| 282 | typedef struct { | ||
| 283 | char *icon_name; | ||
| 284 | Boolean iconic; | ||
| 285 | Atom icon_name_encoding; | ||
| 286 | } TopLevelShellPart; | ||
| 287 | |||
| 288 | typedef struct { | ||
| 289 | CorePart core; | ||
| 290 | CompositePart composite; | ||
| 291 | ShellPart shell; | ||
| 292 | WMShellPart wm; | ||
| 293 | VendorShellPart vendor; | ||
| 294 | TopLevelShellPart topLevel; | ||
| 295 | } TopLevelShellRec, *TopLevelShellWidget; | ||
| 296 | |||
| 297 | /*********************************************************************** | ||
| 298 | * | ||
| 299 | * ApplicationShell Widget Private Data | ||
| 300 | * | ||
| 301 | ***********************************************************************/ | ||
| 302 | |||
| 303 | /* New fields for the ApplicationShell widget class record */ | ||
| 304 | |||
| 305 | typedef struct { | ||
| 306 | XtPointer extension; /* pointer to extension record */ | ||
| 307 | } ApplicationShellClassPart; | ||
| 308 | |||
| 309 | typedef struct _ApplicationShellClassRec { | ||
| 310 | CoreClassPart core_class; | ||
| 311 | CompositeClassPart composite_class; | ||
| 312 | ShellClassPart shell_class; | ||
| 313 | WMShellClassPart wm_shell_class; | ||
| 314 | VendorShellClassPart vendor_shell_class; | ||
| 315 | TopLevelShellClassPart top_level_shell_class; | ||
| 316 | ApplicationShellClassPart application_shell_class; | ||
| 317 | } ApplicationShellClassRec; | ||
| 318 | |||
| 319 | externalref ApplicationShellClassRec applicationShellClassRec; | ||
| 320 | |||
| 321 | /* New fields for the application shell widget */ | ||
| 322 | |||
| 323 | typedef struct { | ||
| 324 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 325 | char *c_class; | ||
| 326 | #else | ||
| 327 | char *class; | ||
| 328 | #endif | ||
| 329 | XrmClass xrm_class; | ||
| 330 | int argc; | ||
| 331 | char **argv; | ||
| 332 | } ApplicationShellPart; | ||
| 333 | |||
| 334 | typedef struct { | ||
| 335 | CorePart core; | ||
| 336 | CompositePart composite; | ||
| 337 | ShellPart shell; | ||
| 338 | WMShellPart wm; | ||
| 339 | VendorShellPart vendor; | ||
| 340 | TopLevelShellPart topLevel; | ||
| 341 | ApplicationShellPart application; | ||
| 342 | } ApplicationShellRec, *ApplicationShellWidget; | ||
| 343 | |||
| 344 | /*********************************************************************** | ||
| 345 | * | ||
| 346 | * SessionShell Widget Private Data | ||
| 347 | * | ||
| 348 | ***********************************************************************/ | ||
| 349 | |||
| 350 | /* New fields for the SessionShell widget class record */ | ||
| 351 | |||
| 352 | typedef struct { | ||
| 353 | XtPointer extension; /* pointer to extension record */ | ||
| 354 | } SessionShellClassPart; | ||
| 355 | |||
| 356 | typedef struct _SessionShellClassRec { | ||
| 357 | CoreClassPart core_class; | ||
| 358 | CompositeClassPart composite_class; | ||
| 359 | ShellClassPart shell_class; | ||
| 360 | WMShellClassPart wm_shell_class; | ||
| 361 | VendorShellClassPart vendor_shell_class; | ||
| 362 | TopLevelShellClassPart top_level_shell_class; | ||
| 363 | ApplicationShellClassPart application_shell_class; | ||
| 364 | SessionShellClassPart session_shell_class; | ||
| 365 | } SessionShellClassRec; | ||
| 366 | |||
| 367 | externalref SessionShellClassRec sessionShellClassRec; | ||
| 368 | |||
| 369 | typedef struct _XtSaveYourselfRec *XtSaveYourself; /* implementation-private */ | ||
| 370 | |||
| 371 | /* New fields for the session shell widget */ | ||
| 372 | |||
| 373 | typedef struct { | ||
| 374 | SmcConn connection; | ||
| 375 | String session_id; | ||
| 376 | String* restart_command; | ||
| 377 | String* clone_command; | ||
| 378 | String* discard_command; | ||
| 379 | String* resign_command; | ||
| 380 | String* shutdown_command; | ||
| 381 | String* environment; | ||
| 382 | String current_dir; | ||
| 383 | String program_path; | ||
| 384 | unsigned char restart_style; | ||
| 385 | unsigned char checkpoint_state; | ||
| 386 | Boolean join_session; | ||
| 387 | XtCallbackList save_callbacks; | ||
| 388 | XtCallbackList interact_callbacks; | ||
| 389 | XtCallbackList cancel_callbacks; | ||
| 390 | XtCallbackList save_complete_callbacks; | ||
| 391 | XtCallbackList die_callbacks; | ||
| 392 | XtCallbackList error_callbacks; | ||
| 393 | XtSaveYourself save; | ||
| 394 | XtInputId input_id; | ||
| 395 | XtPointer ses20; | ||
| 396 | XtPointer ses19; | ||
| 397 | XtPointer ses18; | ||
| 398 | XtPointer ses17; | ||
| 399 | XtPointer ses16; | ||
| 400 | XtPointer ses15; | ||
| 401 | XtPointer ses14; | ||
| 402 | XtPointer ses13; | ||
| 403 | XtPointer ses12; | ||
| 404 | XtPointer ses11; | ||
| 405 | XtPointer ses10; | ||
| 406 | XtPointer ses9; | ||
| 407 | XtPointer ses8; | ||
| 408 | XtPointer ses7; | ||
| 409 | XtPointer ses6; | ||
| 410 | XtPointer ses5; | ||
| 411 | XtPointer ses4; | ||
| 412 | XtPointer ses3; | ||
| 413 | XtPointer ses2; | ||
| 414 | XtPointer ses1; | ||
| 415 | } SessionShellPart; | ||
| 416 | |||
| 417 | typedef struct { | ||
| 418 | CorePart core; | ||
| 419 | CompositePart composite; | ||
| 420 | ShellPart shell; | ||
| 421 | WMShellPart wm; | ||
| 422 | VendorShellPart vendor; | ||
| 423 | TopLevelShellPart topLevel; | ||
| 424 | ApplicationShellPart application; | ||
| 425 | SessionShellPart session; | ||
| 426 | } SessionShellRec, *SessionShellWidget; | ||
| 427 | |||
| 428 | #endif /* _XtShellPrivate_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/StringDefs.h b/meta/packages/xorg-lib/xorg-headers-native/X11/StringDefs.h new file mode 100644 index 0000000000..3841d73a17 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/StringDefs.h | |||
| @@ -0,0 +1,1090 @@ | |||
| 1 | /* $Xorg: StrDefs.ht,v 1.4 2001/02/09 02:04:00 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/util/StrDefs.ht,v 3.4 2001/07/29 05:01:12 tsi Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XtStringDefs_h_ | ||
| 52 | #define _XtStringDefs_h_ | ||
| 53 | |||
| 54 | #ifndef XTSTRINGDEFINES | ||
| 55 | #define _XtStringDefs_h_Const const | ||
| 56 | #endif | ||
| 57 | |||
| 58 | /* $Xorg: makestrs.c,v 1.6 2001/02/09 02:03:17 xorgcvs Exp $ */ | ||
| 59 | /* This file is automatically generated. */ | ||
| 60 | /* Default ABI version -- Do not edit */ | ||
| 61 | /* Xorg: string.list,v 1.3 2000/08/17 19:46:22 cpqbld Exp */ | ||
| 62 | |||
| 63 | #ifdef XTSTRINGDEFINES | ||
| 64 | #define XtNaccelerators "accelerators" | ||
| 65 | #define XtNallowHoriz "allowHoriz" | ||
| 66 | #define XtNallowVert "allowVert" | ||
| 67 | #define XtNancestorSensitive "ancestorSensitive" | ||
| 68 | #define XtNbackground "background" | ||
| 69 | #define XtNbackgroundPixmap "backgroundPixmap" | ||
| 70 | #define XtNbitmap "bitmap" | ||
| 71 | #define XtNborderColor "borderColor" | ||
| 72 | #define XtNborder "borderColor" | ||
| 73 | #define XtNborderPixmap "borderPixmap" | ||
| 74 | #define XtNborderWidth "borderWidth" | ||
| 75 | #define XtNcallback "callback" | ||
| 76 | #define XtNchildren "children" | ||
| 77 | #define XtNcolormap "colormap" | ||
| 78 | #define XtNdepth "depth" | ||
| 79 | #define XtNdestroyCallback "destroyCallback" | ||
| 80 | #define XtNeditType "editType" | ||
| 81 | #define XtNfile "file" | ||
| 82 | #define XtNfont "font" | ||
| 83 | #define XtNforceBars "forceBars" | ||
| 84 | #define XtNforeground "foreground" | ||
| 85 | #define XtNfunction "function" | ||
| 86 | #define XtNheight "height" | ||
| 87 | #define XtNhighlight "highlight" | ||
| 88 | #define XtNhSpace "hSpace" | ||
| 89 | #define XtNindex "index" | ||
| 90 | #define XtNinitialResourcesPersistent "initialResourcesPersistent" | ||
| 91 | #define XtNinnerHeight "innerHeight" | ||
| 92 | #define XtNinnerWidth "innerWidth" | ||
| 93 | #define XtNinnerWindow "innerWindow" | ||
| 94 | #define XtNinsertPosition "insertPosition" | ||
| 95 | #define XtNinternalHeight "internalHeight" | ||
| 96 | #define XtNinternalWidth "internalWidth" | ||
| 97 | #define XtNjumpProc "jumpProc" | ||
| 98 | #define XtNjustify "justify" | ||
| 99 | #define XtNknobHeight "knobHeight" | ||
| 100 | #define XtNknobIndent "knobIndent" | ||
| 101 | #define XtNknobPixel "knobPixel" | ||
| 102 | #define XtNknobWidth "knobWidth" | ||
| 103 | #define XtNlabel "label" | ||
| 104 | #define XtNlength "length" | ||
| 105 | #define XtNlowerRight "lowerRight" | ||
| 106 | #define XtNmappedWhenManaged "mappedWhenManaged" | ||
| 107 | #define XtNmenuEntry "menuEntry" | ||
| 108 | #define XtNname "name" | ||
| 109 | #define XtNnotify "notify" | ||
| 110 | #define XtNnumChildren "numChildren" | ||
| 111 | #define XtNorientation "orientation" | ||
| 112 | #define XtNparameter "parameter" | ||
| 113 | #define XtNpixmap "pixmap" | ||
| 114 | #define XtNpopupCallback "popupCallback" | ||
| 115 | #define XtNpopdownCallback "popdownCallback" | ||
| 116 | #define XtNresize "resize" | ||
| 117 | #define XtNreverseVideo "reverseVideo" | ||
| 118 | #define XtNscreen "screen" | ||
| 119 | #define XtNscrollProc "scrollProc" | ||
| 120 | #define XtNscrollDCursor "scrollDCursor" | ||
| 121 | #define XtNscrollHCursor "scrollHCursor" | ||
| 122 | #define XtNscrollLCursor "scrollLCursor" | ||
| 123 | #define XtNscrollRCursor "scrollRCursor" | ||
| 124 | #define XtNscrollUCursor "scrollUCursor" | ||
| 125 | #define XtNscrollVCursor "scrollVCursor" | ||
| 126 | #define XtNselection "selection" | ||
| 127 | #define XtNselectionArray "selectionArray" | ||
| 128 | #define XtNsensitive "sensitive" | ||
| 129 | #define XtNshown "shown" | ||
| 130 | #define XtNspace "space" | ||
| 131 | #define XtNstring "string" | ||
| 132 | #define XtNtextOptions "textOptions" | ||
| 133 | #define XtNtextSink "textSink" | ||
| 134 | #define XtNtextSource "textSource" | ||
| 135 | #define XtNthickness "thickness" | ||
| 136 | #define XtNthumb "thumb" | ||
| 137 | #define XtNthumbProc "thumbProc" | ||
| 138 | #define XtNtop "top" | ||
| 139 | #define XtNtranslations "translations" | ||
| 140 | #define XtNunrealizeCallback "unrealizeCallback" | ||
| 141 | #define XtNupdate "update" | ||
| 142 | #define XtNuseBottom "useBottom" | ||
| 143 | #define XtNuseRight "useRight" | ||
| 144 | #define XtNvalue "value" | ||
| 145 | #define XtNvSpace "vSpace" | ||
| 146 | #define XtNwidth "width" | ||
| 147 | #define XtNwindow "window" | ||
| 148 | #define XtNx "x" | ||
| 149 | #define XtNy "y" | ||
| 150 | #define XtCAccelerators "Accelerators" | ||
| 151 | #define XtCBackground "Background" | ||
| 152 | #define XtCBitmap "Bitmap" | ||
| 153 | #define XtCBoolean "Boolean" | ||
| 154 | #define XtCBorderColor "BorderColor" | ||
| 155 | #define XtCBorderWidth "BorderWidth" | ||
| 156 | #define XtCCallback "Callback" | ||
| 157 | #define XtCColormap "Colormap" | ||
| 158 | #define XtCColor "Color" | ||
| 159 | #define XtCCursor "Cursor" | ||
| 160 | #define XtCDepth "Depth" | ||
| 161 | #define XtCEditType "EditType" | ||
| 162 | #define XtCEventBindings "EventBindings" | ||
| 163 | #define XtCFile "File" | ||
| 164 | #define XtCFont "Font" | ||
| 165 | #define XtCForeground "Foreground" | ||
| 166 | #define XtCFraction "Fraction" | ||
| 167 | #define XtCFunction "Function" | ||
| 168 | #define XtCHeight "Height" | ||
| 169 | #define XtCHSpace "HSpace" | ||
| 170 | #define XtCIndex "Index" | ||
| 171 | #define XtCInitialResourcesPersistent "InitialResourcesPersistent" | ||
| 172 | #define XtCInsertPosition "InsertPosition" | ||
| 173 | #define XtCInterval "Interval" | ||
| 174 | #define XtCJustify "Justify" | ||
| 175 | #define XtCKnobIndent "KnobIndent" | ||
| 176 | #define XtCKnobPixel "KnobPixel" | ||
| 177 | #define XtCLabel "Label" | ||
| 178 | #define XtCLength "Length" | ||
| 179 | #define XtCMappedWhenManaged "MappedWhenManaged" | ||
| 180 | #define XtCMargin "Margin" | ||
| 181 | #define XtCMenuEntry "MenuEntry" | ||
| 182 | #define XtCNotify "Notify" | ||
| 183 | #define XtCOrientation "Orientation" | ||
| 184 | #define XtCParameter "Parameter" | ||
| 185 | #define XtCPixmap "Pixmap" | ||
| 186 | #define XtCPosition "Position" | ||
| 187 | #define XtCReadOnly "ReadOnly" | ||
| 188 | #define XtCResize "Resize" | ||
| 189 | #define XtCReverseVideo "ReverseVideo" | ||
| 190 | #define XtCScreen "Screen" | ||
| 191 | #define XtCScrollProc "ScrollProc" | ||
| 192 | #define XtCScrollDCursor "ScrollDCursor" | ||
| 193 | #define XtCScrollHCursor "ScrollHCursor" | ||
| 194 | #define XtCScrollLCursor "ScrollLCursor" | ||
| 195 | #define XtCScrollRCursor "ScrollRCursor" | ||
| 196 | #define XtCScrollUCursor "ScrollUCursor" | ||
| 197 | #define XtCScrollVCursor "ScrollVCursor" | ||
| 198 | #define XtCSelection "Selection" | ||
| 199 | #define XtCSensitive "Sensitive" | ||
| 200 | #define XtCSelectionArray "SelectionArray" | ||
| 201 | #define XtCSpace "Space" | ||
| 202 | #define XtCString "String" | ||
| 203 | #define XtCTextOptions "TextOptions" | ||
| 204 | #define XtCTextPosition "TextPosition" | ||
| 205 | #define XtCTextSink "TextSink" | ||
| 206 | #define XtCTextSource "TextSource" | ||
| 207 | #define XtCThickness "Thickness" | ||
| 208 | #define XtCThumb "Thumb" | ||
| 209 | #define XtCTranslations "Translations" | ||
| 210 | #define XtCValue "Value" | ||
| 211 | #define XtCVSpace "VSpace" | ||
| 212 | #define XtCWidth "Width" | ||
| 213 | #define XtCWindow "Window" | ||
| 214 | #define XtCX "X" | ||
| 215 | #define XtCY "Y" | ||
| 216 | #define XtRAcceleratorTable "AcceleratorTable" | ||
| 217 | #ifndef XtRAtom | ||
| 218 | #define XtRAtom "Atom" | ||
| 219 | #endif | ||
| 220 | #define XtRBitmap "Bitmap" | ||
| 221 | #define XtRBool "Bool" | ||
| 222 | #define XtRBoolean "Boolean" | ||
| 223 | #define XtRCallback "Callback" | ||
| 224 | #define XtRCallProc "CallProc" | ||
| 225 | #define XtRCardinal "Cardinal" | ||
| 226 | #define XtRColor "Color" | ||
| 227 | #define XtRColormap "Colormap" | ||
| 228 | #define XtRCursor "Cursor" | ||
| 229 | #define XtRDimension "Dimension" | ||
| 230 | #define XtRDisplay "Display" | ||
| 231 | #define XtREditMode "EditMode" | ||
| 232 | #define XtREnum "Enum" | ||
| 233 | #define XtRFile "File" | ||
| 234 | #define XtRFloat "Float" | ||
| 235 | #define XtRFont "Font" | ||
| 236 | #define XtRFontStruct "FontStruct" | ||
| 237 | #define XtRFunction "Function" | ||
| 238 | #define XtRGeometry "Geometry" | ||
| 239 | #define XtRImmediate "Immediate" | ||
| 240 | #define XtRInitialState "InitialState" | ||
| 241 | #define XtRInt "Int" | ||
| 242 | #define XtRJustify "Justify" | ||
| 243 | #define XtRLongBoolean "Bool" | ||
| 244 | #define XtRObject "Object" | ||
| 245 | #define XtROrientation "Orientation" | ||
| 246 | #define XtRPixel "Pixel" | ||
| 247 | #define XtRPixmap "Pixmap" | ||
| 248 | #define XtRPointer "Pointer" | ||
| 249 | #define XtRPosition "Position" | ||
| 250 | #define XtRScreen "Screen" | ||
| 251 | #define XtRShort "Short" | ||
| 252 | #define XtRString "String" | ||
| 253 | #define XtRStringArray "StringArray" | ||
| 254 | #define XtRStringTable "StringTable" | ||
| 255 | #define XtRUnsignedChar "UnsignedChar" | ||
| 256 | #define XtRTranslationTable "TranslationTable" | ||
| 257 | #define XtRVisual "Visual" | ||
| 258 | #define XtRWidget "Widget" | ||
| 259 | #define XtRWidgetClass "WidgetClass" | ||
| 260 | #define XtRWidgetList "WidgetList" | ||
| 261 | #define XtRWindow "Window" | ||
| 262 | #define XtEoff "off" | ||
| 263 | #define XtEfalse "false" | ||
| 264 | #define XtEno "no" | ||
| 265 | #define XtEon "on" | ||
| 266 | #define XtEtrue "true" | ||
| 267 | #define XtEyes "yes" | ||
| 268 | #define XtEvertical "vertical" | ||
| 269 | #define XtEhorizontal "horizontal" | ||
| 270 | #define XtEtextRead "read" | ||
| 271 | #define XtEtextAppend "append" | ||
| 272 | #define XtEtextEdit "edit" | ||
| 273 | #define XtExtdefaultbackground "xtdefaultbackground" | ||
| 274 | #define XtExtdefaultforeground "xtdefaultforeground" | ||
| 275 | #define XtExtdefaultfont "xtdefaultfont" | ||
| 276 | #define XtNfontSet "fontSet" | ||
| 277 | #define XtRFontSet "FontSet" | ||
| 278 | #define XtCFontSet "FontSet" | ||
| 279 | #define XtRGravity "Gravity" | ||
| 280 | #define XtNcreateHook "createHook" | ||
| 281 | #define XtNchangeHook "changeHook" | ||
| 282 | #define XtNconfigureHook "configureHook" | ||
| 283 | #define XtNgeometryHook "geometryHook" | ||
| 284 | #define XtNdestroyHook "destroyHook" | ||
| 285 | #define XtNshells "shells" | ||
| 286 | #define XtNnumShells "numShells" | ||
| 287 | #define XtRCommandArgArray "CommandArgArray" | ||
| 288 | #define XtRDirectoryString "DirectoryString" | ||
| 289 | #define XtREnvironmentArray "EnvironmentArray" | ||
| 290 | #define XtRRestartStyle "RestartStyle" | ||
| 291 | #define XtRSmcConn "SmcConn" | ||
| 292 | #define XtHcreate "Xtcreate" | ||
| 293 | #define XtHsetValues "XtsetValues" | ||
| 294 | #define XtHmanageChildren "XtmanageChildren" | ||
| 295 | #define XtHunmanageChildren "XtunmanageChildren" | ||
| 296 | #define XtHmanageSet "XtmanageSet" | ||
| 297 | #define XtHunmanageSet "XtunmanageSet" | ||
| 298 | #define XtHrealizeWidget "XtrealizeWidget" | ||
| 299 | #define XtHunrealizeWidget "XtunrealizeWidget" | ||
| 300 | #define XtHaddCallback "XtaddCallback" | ||
| 301 | #define XtHaddCallbacks "XtaddCallbacks" | ||
| 302 | #define XtHremoveCallback "XtremoveCallback" | ||
| 303 | #define XtHremoveCallbacks "XtremoveCallbacks" | ||
| 304 | #define XtHremoveAllCallbacks "XtremoveAllCallbacks" | ||
| 305 | #define XtHaugmentTranslations "XtaugmentTranslations" | ||
| 306 | #define XtHoverrideTranslations "XtoverrideTranslations" | ||
| 307 | #define XtHuninstallTranslations "XtuninstallTranslations" | ||
| 308 | #define XtHsetKeyboardFocus "XtsetKeyboardFocus" | ||
| 309 | #define XtHsetWMColormapWindows "XtsetWMColormapWindows" | ||
| 310 | #define XtHsetMappedWhenManaged "XtsetMappedWhenManaged" | ||
| 311 | #define XtHmapWidget "XtmapWidget" | ||
| 312 | #define XtHunmapWidget "XtunmapWidget" | ||
| 313 | #define XtHpopup "Xtpopup" | ||
| 314 | #define XtHpopupSpringLoaded "XtpopupSpringLoaded" | ||
| 315 | #define XtHpopdown "Xtpopdown" | ||
| 316 | #define XtHconfigure "Xtconfigure" | ||
| 317 | #define XtHpreGeometry "XtpreGeometry" | ||
| 318 | #define XtHpostGeometry "XtpostGeometry" | ||
| 319 | #define XtHdestroy "Xtdestroy" | ||
| 320 | #else | ||
| 321 | extern _XtStringDefs_h_Const char XtStrings[]; | ||
| 322 | #ifndef XtNaccelerators | ||
| 323 | #define XtNaccelerators ((char*)&XtStrings[0]) | ||
| 324 | #endif | ||
| 325 | #ifndef XtNallowHoriz | ||
| 326 | #define XtNallowHoriz ((char*)&XtStrings[13]) | ||
| 327 | #endif | ||
| 328 | #ifndef XtNallowVert | ||
| 329 | #define XtNallowVert ((char*)&XtStrings[24]) | ||
| 330 | #endif | ||
| 331 | #ifndef XtNancestorSensitive | ||
| 332 | #define XtNancestorSensitive ((char*)&XtStrings[34]) | ||
| 333 | #endif | ||
| 334 | #ifndef XtNbackground | ||
| 335 | #define XtNbackground ((char*)&XtStrings[52]) | ||
| 336 | #endif | ||
| 337 | #ifndef XtNbackgroundPixmap | ||
| 338 | #define XtNbackgroundPixmap ((char*)&XtStrings[63]) | ||
| 339 | #endif | ||
| 340 | #ifndef XtNbitmap | ||
| 341 | #define XtNbitmap ((char*)&XtStrings[80]) | ||
| 342 | #endif | ||
| 343 | #ifndef XtNborderColor | ||
| 344 | #define XtNborderColor ((char*)&XtStrings[87]) | ||
| 345 | #endif | ||
| 346 | #ifndef XtNborder | ||
| 347 | #define XtNborder ((char*)&XtStrings[99]) | ||
| 348 | #endif | ||
| 349 | #ifndef XtNborderPixmap | ||
| 350 | #define XtNborderPixmap ((char*)&XtStrings[111]) | ||
| 351 | #endif | ||
| 352 | #ifndef XtNborderWidth | ||
| 353 | #define XtNborderWidth ((char*)&XtStrings[124]) | ||
| 354 | #endif | ||
| 355 | #ifndef XtNcallback | ||
| 356 | #define XtNcallback ((char*)&XtStrings[136]) | ||
| 357 | #endif | ||
| 358 | #ifndef XtNchildren | ||
| 359 | #define XtNchildren ((char*)&XtStrings[145]) | ||
| 360 | #endif | ||
| 361 | #ifndef XtNcolormap | ||
| 362 | #define XtNcolormap ((char*)&XtStrings[154]) | ||
| 363 | #endif | ||
| 364 | #ifndef XtNdepth | ||
| 365 | #define XtNdepth ((char*)&XtStrings[163]) | ||
| 366 | #endif | ||
| 367 | #ifndef XtNdestroyCallback | ||
| 368 | #define XtNdestroyCallback ((char*)&XtStrings[169]) | ||
| 369 | #endif | ||
| 370 | #ifndef XtNeditType | ||
| 371 | #define XtNeditType ((char*)&XtStrings[185]) | ||
| 372 | #endif | ||
| 373 | #ifndef XtNfile | ||
| 374 | #define XtNfile ((char*)&XtStrings[194]) | ||
| 375 | #endif | ||
| 376 | #ifndef XtNfont | ||
| 377 | #define XtNfont ((char*)&XtStrings[199]) | ||
| 378 | #endif | ||
| 379 | #ifndef XtNforceBars | ||
| 380 | #define XtNforceBars ((char*)&XtStrings[204]) | ||
| 381 | #endif | ||
| 382 | #ifndef XtNforeground | ||
| 383 | #define XtNforeground ((char*)&XtStrings[214]) | ||
| 384 | #endif | ||
| 385 | #ifndef XtNfunction | ||
| 386 | #define XtNfunction ((char*)&XtStrings[225]) | ||
| 387 | #endif | ||
| 388 | #ifndef XtNheight | ||
| 389 | #define XtNheight ((char*)&XtStrings[234]) | ||
| 390 | #endif | ||
| 391 | #ifndef XtNhighlight | ||
| 392 | #define XtNhighlight ((char*)&XtStrings[241]) | ||
| 393 | #endif | ||
| 394 | #ifndef XtNhSpace | ||
| 395 | #define XtNhSpace ((char*)&XtStrings[251]) | ||
| 396 | #endif | ||
| 397 | #ifndef XtNindex | ||
| 398 | #define XtNindex ((char*)&XtStrings[258]) | ||
| 399 | #endif | ||
| 400 | #ifndef XtNinitialResourcesPersistent | ||
| 401 | #define XtNinitialResourcesPersistent ((char*)&XtStrings[264]) | ||
| 402 | #endif | ||
| 403 | #ifndef XtNinnerHeight | ||
| 404 | #define XtNinnerHeight ((char*)&XtStrings[291]) | ||
| 405 | #endif | ||
| 406 | #ifndef XtNinnerWidth | ||
| 407 | #define XtNinnerWidth ((char*)&XtStrings[303]) | ||
| 408 | #endif | ||
| 409 | #ifndef XtNinnerWindow | ||
| 410 | #define XtNinnerWindow ((char*)&XtStrings[314]) | ||
| 411 | #endif | ||
| 412 | #ifndef XtNinsertPosition | ||
| 413 | #define XtNinsertPosition ((char*)&XtStrings[326]) | ||
| 414 | #endif | ||
| 415 | #ifndef XtNinternalHeight | ||
| 416 | #define XtNinternalHeight ((char*)&XtStrings[341]) | ||
| 417 | #endif | ||
| 418 | #ifndef XtNinternalWidth | ||
| 419 | #define XtNinternalWidth ((char*)&XtStrings[356]) | ||
| 420 | #endif | ||
| 421 | #ifndef XtNjumpProc | ||
| 422 | #define XtNjumpProc ((char*)&XtStrings[370]) | ||
| 423 | #endif | ||
| 424 | #ifndef XtNjustify | ||
| 425 | #define XtNjustify ((char*)&XtStrings[379]) | ||
| 426 | #endif | ||
| 427 | #ifndef XtNknobHeight | ||
| 428 | #define XtNknobHeight ((char*)&XtStrings[387]) | ||
| 429 | #endif | ||
| 430 | #ifndef XtNknobIndent | ||
| 431 | #define XtNknobIndent ((char*)&XtStrings[398]) | ||
| 432 | #endif | ||
| 433 | #ifndef XtNknobPixel | ||
| 434 | #define XtNknobPixel ((char*)&XtStrings[409]) | ||
| 435 | #endif | ||
| 436 | #ifndef XtNknobWidth | ||
| 437 | #define XtNknobWidth ((char*)&XtStrings[419]) | ||
| 438 | #endif | ||
| 439 | #ifndef XtNlabel | ||
| 440 | #define XtNlabel ((char*)&XtStrings[429]) | ||
| 441 | #endif | ||
| 442 | #ifndef XtNlength | ||
| 443 | #define XtNlength ((char*)&XtStrings[435]) | ||
| 444 | #endif | ||
| 445 | #ifndef XtNlowerRight | ||
| 446 | #define XtNlowerRight ((char*)&XtStrings[442]) | ||
| 447 | #endif | ||
| 448 | #ifndef XtNmappedWhenManaged | ||
| 449 | #define XtNmappedWhenManaged ((char*)&XtStrings[453]) | ||
| 450 | #endif | ||
| 451 | #ifndef XtNmenuEntry | ||
| 452 | #define XtNmenuEntry ((char*)&XtStrings[471]) | ||
| 453 | #endif | ||
| 454 | #ifndef XtNname | ||
| 455 | #define XtNname ((char*)&XtStrings[481]) | ||
| 456 | #endif | ||
| 457 | #ifndef XtNnotify | ||
| 458 | #define XtNnotify ((char*)&XtStrings[486]) | ||
| 459 | #endif | ||
| 460 | #ifndef XtNnumChildren | ||
| 461 | #define XtNnumChildren ((char*)&XtStrings[493]) | ||
| 462 | #endif | ||
| 463 | #ifndef XtNorientation | ||
| 464 | #define XtNorientation ((char*)&XtStrings[505]) | ||
| 465 | #endif | ||
| 466 | #ifndef XtNparameter | ||
| 467 | #define XtNparameter ((char*)&XtStrings[517]) | ||
| 468 | #endif | ||
| 469 | #ifndef XtNpixmap | ||
| 470 | #define XtNpixmap ((char*)&XtStrings[527]) | ||
| 471 | #endif | ||
| 472 | #ifndef XtNpopupCallback | ||
| 473 | #define XtNpopupCallback ((char*)&XtStrings[534]) | ||
| 474 | #endif | ||
| 475 | #ifndef XtNpopdownCallback | ||
| 476 | #define XtNpopdownCallback ((char*)&XtStrings[548]) | ||
| 477 | #endif | ||
| 478 | #ifndef XtNresize | ||
| 479 | #define XtNresize ((char*)&XtStrings[564]) | ||
| 480 | #endif | ||
| 481 | #ifndef XtNreverseVideo | ||
| 482 | #define XtNreverseVideo ((char*)&XtStrings[571]) | ||
| 483 | #endif | ||
| 484 | #ifndef XtNscreen | ||
| 485 | #define XtNscreen ((char*)&XtStrings[584]) | ||
| 486 | #endif | ||
| 487 | #ifndef XtNscrollProc | ||
| 488 | #define XtNscrollProc ((char*)&XtStrings[591]) | ||
| 489 | #endif | ||
| 490 | #ifndef XtNscrollDCursor | ||
| 491 | #define XtNscrollDCursor ((char*)&XtStrings[602]) | ||
| 492 | #endif | ||
| 493 | #ifndef XtNscrollHCursor | ||
| 494 | #define XtNscrollHCursor ((char*)&XtStrings[616]) | ||
| 495 | #endif | ||
| 496 | #ifndef XtNscrollLCursor | ||
| 497 | #define XtNscrollLCursor ((char*)&XtStrings[630]) | ||
| 498 | #endif | ||
| 499 | #ifndef XtNscrollRCursor | ||
| 500 | #define XtNscrollRCursor ((char*)&XtStrings[644]) | ||
| 501 | #endif | ||
| 502 | #ifndef XtNscrollUCursor | ||
| 503 | #define XtNscrollUCursor ((char*)&XtStrings[658]) | ||
| 504 | #endif | ||
| 505 | #ifndef XtNscrollVCursor | ||
| 506 | #define XtNscrollVCursor ((char*)&XtStrings[672]) | ||
| 507 | #endif | ||
| 508 | #ifndef XtNselection | ||
| 509 | #define XtNselection ((char*)&XtStrings[686]) | ||
| 510 | #endif | ||
| 511 | #ifndef XtNselectionArray | ||
| 512 | #define XtNselectionArray ((char*)&XtStrings[696]) | ||
| 513 | #endif | ||
| 514 | #ifndef XtNsensitive | ||
| 515 | #define XtNsensitive ((char*)&XtStrings[711]) | ||
| 516 | #endif | ||
| 517 | #ifndef XtNshown | ||
| 518 | #define XtNshown ((char*)&XtStrings[721]) | ||
| 519 | #endif | ||
| 520 | #ifndef XtNspace | ||
| 521 | #define XtNspace ((char*)&XtStrings[727]) | ||
| 522 | #endif | ||
| 523 | #ifndef XtNstring | ||
| 524 | #define XtNstring ((char*)&XtStrings[733]) | ||
| 525 | #endif | ||
| 526 | #ifndef XtNtextOptions | ||
| 527 | #define XtNtextOptions ((char*)&XtStrings[740]) | ||
| 528 | #endif | ||
| 529 | #ifndef XtNtextSink | ||
| 530 | #define XtNtextSink ((char*)&XtStrings[752]) | ||
| 531 | #endif | ||
| 532 | #ifndef XtNtextSource | ||
| 533 | #define XtNtextSource ((char*)&XtStrings[761]) | ||
| 534 | #endif | ||
| 535 | #ifndef XtNthickness | ||
| 536 | #define XtNthickness ((char*)&XtStrings[772]) | ||
| 537 | #endif | ||
| 538 | #ifndef XtNthumb | ||
| 539 | #define XtNthumb ((char*)&XtStrings[782]) | ||
| 540 | #endif | ||
| 541 | #ifndef XtNthumbProc | ||
| 542 | #define XtNthumbProc ((char*)&XtStrings[788]) | ||
| 543 | #endif | ||
| 544 | #ifndef XtNtop | ||
| 545 | #define XtNtop ((char*)&XtStrings[798]) | ||
| 546 | #endif | ||
| 547 | #ifndef XtNtranslations | ||
| 548 | #define XtNtranslations ((char*)&XtStrings[802]) | ||
| 549 | #endif | ||
| 550 | #ifndef XtNunrealizeCallback | ||
| 551 | #define XtNunrealizeCallback ((char*)&XtStrings[815]) | ||
| 552 | #endif | ||
| 553 | #ifndef XtNupdate | ||
| 554 | #define XtNupdate ((char*)&XtStrings[833]) | ||
| 555 | #endif | ||
| 556 | #ifndef XtNuseBottom | ||
| 557 | #define XtNuseBottom ((char*)&XtStrings[840]) | ||
| 558 | #endif | ||
| 559 | #ifndef XtNuseRight | ||
| 560 | #define XtNuseRight ((char*)&XtStrings[850]) | ||
| 561 | #endif | ||
| 562 | #ifndef XtNvalue | ||
| 563 | #define XtNvalue ((char*)&XtStrings[859]) | ||
| 564 | #endif | ||
| 565 | #ifndef XtNvSpace | ||
| 566 | #define XtNvSpace ((char*)&XtStrings[865]) | ||
| 567 | #endif | ||
| 568 | #ifndef XtNwidth | ||
| 569 | #define XtNwidth ((char*)&XtStrings[872]) | ||
| 570 | #endif | ||
| 571 | #ifndef XtNwindow | ||
| 572 | #define XtNwindow ((char*)&XtStrings[878]) | ||
| 573 | #endif | ||
| 574 | #ifndef XtNx | ||
| 575 | #define XtNx ((char*)&XtStrings[885]) | ||
| 576 | #endif | ||
| 577 | #ifndef XtNy | ||
| 578 | #define XtNy ((char*)&XtStrings[887]) | ||
| 579 | #endif | ||
| 580 | #ifndef XtCAccelerators | ||
| 581 | #define XtCAccelerators ((char*)&XtStrings[889]) | ||
| 582 | #endif | ||
| 583 | #ifndef XtCBackground | ||
| 584 | #define XtCBackground ((char*)&XtStrings[902]) | ||
| 585 | #endif | ||
| 586 | #ifndef XtCBitmap | ||
| 587 | #define XtCBitmap ((char*)&XtStrings[913]) | ||
| 588 | #endif | ||
| 589 | #ifndef XtCBoolean | ||
| 590 | #define XtCBoolean ((char*)&XtStrings[920]) | ||
| 591 | #endif | ||
| 592 | #ifndef XtCBorderColor | ||
| 593 | #define XtCBorderColor ((char*)&XtStrings[928]) | ||
| 594 | #endif | ||
| 595 | #ifndef XtCBorderWidth | ||
| 596 | #define XtCBorderWidth ((char*)&XtStrings[940]) | ||
| 597 | #endif | ||
| 598 | #ifndef XtCCallback | ||
| 599 | #define XtCCallback ((char*)&XtStrings[952]) | ||
| 600 | #endif | ||
| 601 | #ifndef XtCColormap | ||
| 602 | #define XtCColormap ((char*)&XtStrings[961]) | ||
| 603 | #endif | ||
| 604 | #ifndef XtCColor | ||
| 605 | #define XtCColor ((char*)&XtStrings[970]) | ||
| 606 | #endif | ||
| 607 | #ifndef XtCCursor | ||
| 608 | #define XtCCursor ((char*)&XtStrings[976]) | ||
| 609 | #endif | ||
| 610 | #ifndef XtCDepth | ||
| 611 | #define XtCDepth ((char*)&XtStrings[983]) | ||
| 612 | #endif | ||
| 613 | #ifndef XtCEditType | ||
| 614 | #define XtCEditType ((char*)&XtStrings[989]) | ||
| 615 | #endif | ||
| 616 | #ifndef XtCEventBindings | ||
| 617 | #define XtCEventBindings ((char*)&XtStrings[998]) | ||
| 618 | #endif | ||
| 619 | #ifndef XtCFile | ||
| 620 | #define XtCFile ((char*)&XtStrings[1012]) | ||
| 621 | #endif | ||
| 622 | #ifndef XtCFont | ||
| 623 | #define XtCFont ((char*)&XtStrings[1017]) | ||
| 624 | #endif | ||
| 625 | #ifndef XtCForeground | ||
| 626 | #define XtCForeground ((char*)&XtStrings[1022]) | ||
| 627 | #endif | ||
| 628 | #ifndef XtCFraction | ||
| 629 | #define XtCFraction ((char*)&XtStrings[1033]) | ||
| 630 | #endif | ||
| 631 | #ifndef XtCFunction | ||
| 632 | #define XtCFunction ((char*)&XtStrings[1042]) | ||
| 633 | #endif | ||
| 634 | #ifndef XtCHeight | ||
| 635 | #define XtCHeight ((char*)&XtStrings[1051]) | ||
| 636 | #endif | ||
| 637 | #ifndef XtCHSpace | ||
| 638 | #define XtCHSpace ((char*)&XtStrings[1058]) | ||
| 639 | #endif | ||
| 640 | #ifndef XtCIndex | ||
| 641 | #define XtCIndex ((char*)&XtStrings[1065]) | ||
| 642 | #endif | ||
| 643 | #ifndef XtCInitialResourcesPersistent | ||
| 644 | #define XtCInitialResourcesPersistent ((char*)&XtStrings[1071]) | ||
| 645 | #endif | ||
| 646 | #ifndef XtCInsertPosition | ||
| 647 | #define XtCInsertPosition ((char*)&XtStrings[1098]) | ||
| 648 | #endif | ||
| 649 | #ifndef XtCInterval | ||
| 650 | #define XtCInterval ((char*)&XtStrings[1113]) | ||
| 651 | #endif | ||
| 652 | #ifndef XtCJustify | ||
| 653 | #define XtCJustify ((char*)&XtStrings[1122]) | ||
| 654 | #endif | ||
| 655 | #ifndef XtCKnobIndent | ||
| 656 | #define XtCKnobIndent ((char*)&XtStrings[1130]) | ||
| 657 | #endif | ||
| 658 | #ifndef XtCKnobPixel | ||
| 659 | #define XtCKnobPixel ((char*)&XtStrings[1141]) | ||
| 660 | #endif | ||
| 661 | #ifndef XtCLabel | ||
| 662 | #define XtCLabel ((char*)&XtStrings[1151]) | ||
| 663 | #endif | ||
| 664 | #ifndef XtCLength | ||
| 665 | #define XtCLength ((char*)&XtStrings[1157]) | ||
| 666 | #endif | ||
| 667 | #ifndef XtCMappedWhenManaged | ||
| 668 | #define XtCMappedWhenManaged ((char*)&XtStrings[1164]) | ||
| 669 | #endif | ||
| 670 | #ifndef XtCMargin | ||
| 671 | #define XtCMargin ((char*)&XtStrings[1182]) | ||
| 672 | #endif | ||
| 673 | #ifndef XtCMenuEntry | ||
| 674 | #define XtCMenuEntry ((char*)&XtStrings[1189]) | ||
| 675 | #endif | ||
| 676 | #ifndef XtCNotify | ||
| 677 | #define XtCNotify ((char*)&XtStrings[1199]) | ||
| 678 | #endif | ||
| 679 | #ifndef XtCOrientation | ||
| 680 | #define XtCOrientation ((char*)&XtStrings[1206]) | ||
| 681 | #endif | ||
| 682 | #ifndef XtCParameter | ||
| 683 | #define XtCParameter ((char*)&XtStrings[1218]) | ||
| 684 | #endif | ||
| 685 | #ifndef XtCPixmap | ||
| 686 | #define XtCPixmap ((char*)&XtStrings[1228]) | ||
| 687 | #endif | ||
| 688 | #ifndef XtCPosition | ||
| 689 | #define XtCPosition ((char*)&XtStrings[1235]) | ||
| 690 | #endif | ||
| 691 | #ifndef XtCReadOnly | ||
| 692 | #define XtCReadOnly ((char*)&XtStrings[1244]) | ||
| 693 | #endif | ||
| 694 | #ifndef XtCResize | ||
| 695 | #define XtCResize ((char*)&XtStrings[1253]) | ||
| 696 | #endif | ||
| 697 | #ifndef XtCReverseVideo | ||
| 698 | #define XtCReverseVideo ((char*)&XtStrings[1260]) | ||
| 699 | #endif | ||
| 700 | #ifndef XtCScreen | ||
| 701 | #define XtCScreen ((char*)&XtStrings[1273]) | ||
| 702 | #endif | ||
| 703 | #ifndef XtCScrollProc | ||
| 704 | #define XtCScrollProc ((char*)&XtStrings[1280]) | ||
| 705 | #endif | ||
| 706 | #ifndef XtCScrollDCursor | ||
| 707 | #define XtCScrollDCursor ((char*)&XtStrings[1291]) | ||
| 708 | #endif | ||
| 709 | #ifndef XtCScrollHCursor | ||
| 710 | #define XtCScrollHCursor ((char*)&XtStrings[1305]) | ||
| 711 | #endif | ||
| 712 | #ifndef XtCScrollLCursor | ||
| 713 | #define XtCScrollLCursor ((char*)&XtStrings[1319]) | ||
| 714 | #endif | ||
| 715 | #ifndef XtCScrollRCursor | ||
| 716 | #define XtCScrollRCursor ((char*)&XtStrings[1333]) | ||
| 717 | #endif | ||
| 718 | #ifndef XtCScrollUCursor | ||
| 719 | #define XtCScrollUCursor ((char*)&XtStrings[1347]) | ||
| 720 | #endif | ||
| 721 | #ifndef XtCScrollVCursor | ||
| 722 | #define XtCScrollVCursor ((char*)&XtStrings[1361]) | ||
| 723 | #endif | ||
| 724 | #ifndef XtCSelection | ||
| 725 | #define XtCSelection ((char*)&XtStrings[1375]) | ||
| 726 | #endif | ||
| 727 | #ifndef XtCSensitive | ||
| 728 | #define XtCSensitive ((char*)&XtStrings[1385]) | ||
| 729 | #endif | ||
| 730 | #ifndef XtCSelectionArray | ||
| 731 | #define XtCSelectionArray ((char*)&XtStrings[1395]) | ||
| 732 | #endif | ||
| 733 | #ifndef XtCSpace | ||
| 734 | #define XtCSpace ((char*)&XtStrings[1410]) | ||
| 735 | #endif | ||
| 736 | #ifndef XtCString | ||
| 737 | #define XtCString ((char*)&XtStrings[1416]) | ||
| 738 | #endif | ||
| 739 | #ifndef XtCTextOptions | ||
| 740 | #define XtCTextOptions ((char*)&XtStrings[1423]) | ||
| 741 | #endif | ||
| 742 | #ifndef XtCTextPosition | ||
| 743 | #define XtCTextPosition ((char*)&XtStrings[1435]) | ||
| 744 | #endif | ||
| 745 | #ifndef XtCTextSink | ||
| 746 | #define XtCTextSink ((char*)&XtStrings[1448]) | ||
| 747 | #endif | ||
| 748 | #ifndef XtCTextSource | ||
| 749 | #define XtCTextSource ((char*)&XtStrings[1457]) | ||
| 750 | #endif | ||
| 751 | #ifndef XtCThickness | ||
| 752 | #define XtCThickness ((char*)&XtStrings[1468]) | ||
| 753 | #endif | ||
| 754 | #ifndef XtCThumb | ||
| 755 | #define XtCThumb ((char*)&XtStrings[1478]) | ||
| 756 | #endif | ||
| 757 | #ifndef XtCTranslations | ||
| 758 | #define XtCTranslations ((char*)&XtStrings[1484]) | ||
| 759 | #endif | ||
| 760 | #ifndef XtCValue | ||
| 761 | #define XtCValue ((char*)&XtStrings[1497]) | ||
| 762 | #endif | ||
| 763 | #ifndef XtCVSpace | ||
| 764 | #define XtCVSpace ((char*)&XtStrings[1503]) | ||
| 765 | #endif | ||
| 766 | #ifndef XtCWidth | ||
| 767 | #define XtCWidth ((char*)&XtStrings[1510]) | ||
| 768 | #endif | ||
| 769 | #ifndef XtCWindow | ||
| 770 | #define XtCWindow ((char*)&XtStrings[1516]) | ||
| 771 | #endif | ||
| 772 | #ifndef XtCX | ||
| 773 | #define XtCX ((char*)&XtStrings[1523]) | ||
| 774 | #endif | ||
| 775 | #ifndef XtCY | ||
| 776 | #define XtCY ((char*)&XtStrings[1525]) | ||
| 777 | #endif | ||
| 778 | #ifndef XtRAcceleratorTable | ||
| 779 | #define XtRAcceleratorTable ((char*)&XtStrings[1527]) | ||
| 780 | #endif | ||
| 781 | #ifndef XtRAtom | ||
| 782 | #define XtRAtom ((char*)&XtStrings[1544]) | ||
| 783 | #endif | ||
| 784 | #ifndef XtRBitmap | ||
| 785 | #define XtRBitmap ((char*)&XtStrings[1549]) | ||
| 786 | #endif | ||
| 787 | #ifndef XtRBool | ||
| 788 | #define XtRBool ((char*)&XtStrings[1556]) | ||
| 789 | #endif | ||
| 790 | #ifndef XtRBoolean | ||
| 791 | #define XtRBoolean ((char*)&XtStrings[1561]) | ||
| 792 | #endif | ||
| 793 | #ifndef XtRCallback | ||
| 794 | #define XtRCallback ((char*)&XtStrings[1569]) | ||
| 795 | #endif | ||
| 796 | #ifndef XtRCallProc | ||
| 797 | #define XtRCallProc ((char*)&XtStrings[1578]) | ||
| 798 | #endif | ||
| 799 | #ifndef XtRCardinal | ||
| 800 | #define XtRCardinal ((char*)&XtStrings[1587]) | ||
| 801 | #endif | ||
| 802 | #ifndef XtRColor | ||
| 803 | #define XtRColor ((char*)&XtStrings[1596]) | ||
| 804 | #endif | ||
| 805 | #ifndef XtRColormap | ||
| 806 | #define XtRColormap ((char*)&XtStrings[1602]) | ||
| 807 | #endif | ||
| 808 | #ifndef XtRCursor | ||
| 809 | #define XtRCursor ((char*)&XtStrings[1611]) | ||
| 810 | #endif | ||
| 811 | #ifndef XtRDimension | ||
| 812 | #define XtRDimension ((char*)&XtStrings[1618]) | ||
| 813 | #endif | ||
| 814 | #ifndef XtRDisplay | ||
| 815 | #define XtRDisplay ((char*)&XtStrings[1628]) | ||
| 816 | #endif | ||
| 817 | #ifndef XtREditMode | ||
| 818 | #define XtREditMode ((char*)&XtStrings[1636]) | ||
| 819 | #endif | ||
| 820 | #ifndef XtREnum | ||
| 821 | #define XtREnum ((char*)&XtStrings[1645]) | ||
| 822 | #endif | ||
| 823 | #ifndef XtRFile | ||
| 824 | #define XtRFile ((char*)&XtStrings[1650]) | ||
| 825 | #endif | ||
| 826 | #ifndef XtRFloat | ||
| 827 | #define XtRFloat ((char*)&XtStrings[1655]) | ||
| 828 | #endif | ||
| 829 | #ifndef XtRFont | ||
| 830 | #define XtRFont ((char*)&XtStrings[1661]) | ||
| 831 | #endif | ||
| 832 | #ifndef XtRFontStruct | ||
| 833 | #define XtRFontStruct ((char*)&XtStrings[1666]) | ||
| 834 | #endif | ||
| 835 | #ifndef XtRFunction | ||
| 836 | #define XtRFunction ((char*)&XtStrings[1677]) | ||
| 837 | #endif | ||
| 838 | #ifndef XtRGeometry | ||
| 839 | #define XtRGeometry ((char*)&XtStrings[1686]) | ||
| 840 | #endif | ||
| 841 | #ifndef XtRImmediate | ||
| 842 | #define XtRImmediate ((char*)&XtStrings[1695]) | ||
| 843 | #endif | ||
| 844 | #ifndef XtRInitialState | ||
| 845 | #define XtRInitialState ((char*)&XtStrings[1705]) | ||
| 846 | #endif | ||
| 847 | #ifndef XtRInt | ||
| 848 | #define XtRInt ((char*)&XtStrings[1718]) | ||
| 849 | #endif | ||
| 850 | #ifndef XtRJustify | ||
| 851 | #define XtRJustify ((char*)&XtStrings[1722]) | ||
| 852 | #endif | ||
| 853 | #ifndef XtRLongBoolean | ||
| 854 | #define XtRLongBoolean ((char*)&XtStrings[1730]) | ||
| 855 | #endif | ||
| 856 | #ifndef XtRObject | ||
| 857 | #define XtRObject ((char*)&XtStrings[1735]) | ||
| 858 | #endif | ||
| 859 | #ifndef XtROrientation | ||
| 860 | #define XtROrientation ((char*)&XtStrings[1742]) | ||
| 861 | #endif | ||
| 862 | #ifndef XtRPixel | ||
| 863 | #define XtRPixel ((char*)&XtStrings[1754]) | ||
| 864 | #endif | ||
| 865 | #ifndef XtRPixmap | ||
| 866 | #define XtRPixmap ((char*)&XtStrings[1760]) | ||
| 867 | #endif | ||
| 868 | #ifndef XtRPointer | ||
| 869 | #define XtRPointer ((char*)&XtStrings[1767]) | ||
| 870 | #endif | ||
| 871 | #ifndef XtRPosition | ||
| 872 | #define XtRPosition ((char*)&XtStrings[1775]) | ||
| 873 | #endif | ||
| 874 | #ifndef XtRScreen | ||
| 875 | #define XtRScreen ((char*)&XtStrings[1784]) | ||
| 876 | #endif | ||
| 877 | #ifndef XtRShort | ||
| 878 | #define XtRShort ((char*)&XtStrings[1791]) | ||
| 879 | #endif | ||
| 880 | #ifndef XtRString | ||
| 881 | #define XtRString ((char*)&XtStrings[1797]) | ||
| 882 | #endif | ||
| 883 | #ifndef XtRStringArray | ||
| 884 | #define XtRStringArray ((char*)&XtStrings[1804]) | ||
| 885 | #endif | ||
| 886 | #ifndef XtRStringTable | ||
| 887 | #define XtRStringTable ((char*)&XtStrings[1816]) | ||
| 888 | #endif | ||
| 889 | #ifndef XtRUnsignedChar | ||
| 890 | #define XtRUnsignedChar ((char*)&XtStrings[1828]) | ||
| 891 | #endif | ||
| 892 | #ifndef XtRTranslationTable | ||
| 893 | #define XtRTranslationTable ((char*)&XtStrings[1841]) | ||
| 894 | #endif | ||
| 895 | #ifndef XtRVisual | ||
| 896 | #define XtRVisual ((char*)&XtStrings[1858]) | ||
| 897 | #endif | ||
| 898 | #ifndef XtRWidget | ||
| 899 | #define XtRWidget ((char*)&XtStrings[1865]) | ||
| 900 | #endif | ||
| 901 | #ifndef XtRWidgetClass | ||
| 902 | #define XtRWidgetClass ((char*)&XtStrings[1872]) | ||
| 903 | #endif | ||
| 904 | #ifndef XtRWidgetList | ||
| 905 | #define XtRWidgetList ((char*)&XtStrings[1884]) | ||
| 906 | #endif | ||
| 907 | #ifndef XtRWindow | ||
| 908 | #define XtRWindow ((char*)&XtStrings[1895]) | ||
| 909 | #endif | ||
| 910 | #ifndef XtEoff | ||
| 911 | #define XtEoff ((char*)&XtStrings[1902]) | ||
| 912 | #endif | ||
| 913 | #ifndef XtEfalse | ||
| 914 | #define XtEfalse ((char*)&XtStrings[1906]) | ||
| 915 | #endif | ||
| 916 | #ifndef XtEno | ||
| 917 | #define XtEno ((char*)&XtStrings[1912]) | ||
| 918 | #endif | ||
| 919 | #ifndef XtEon | ||
| 920 | #define XtEon ((char*)&XtStrings[1915]) | ||
| 921 | #endif | ||
| 922 | #ifndef XtEtrue | ||
| 923 | #define XtEtrue ((char*)&XtStrings[1918]) | ||
| 924 | #endif | ||
| 925 | #ifndef XtEyes | ||
| 926 | #define XtEyes ((char*)&XtStrings[1923]) | ||
| 927 | #endif | ||
| 928 | #ifndef XtEvertical | ||
| 929 | #define XtEvertical ((char*)&XtStrings[1927]) | ||
| 930 | #endif | ||
| 931 | #ifndef XtEhorizontal | ||
| 932 | #define XtEhorizontal ((char*)&XtStrings[1936]) | ||
| 933 | #endif | ||
| 934 | #ifndef XtEtextRead | ||
| 935 | #define XtEtextRead ((char*)&XtStrings[1947]) | ||
| 936 | #endif | ||
| 937 | #ifndef XtEtextAppend | ||
| 938 | #define XtEtextAppend ((char*)&XtStrings[1952]) | ||
| 939 | #endif | ||
| 940 | #ifndef XtEtextEdit | ||
| 941 | #define XtEtextEdit ((char*)&XtStrings[1959]) | ||
| 942 | #endif | ||
| 943 | #ifndef XtExtdefaultbackground | ||
| 944 | #define XtExtdefaultbackground ((char*)&XtStrings[1964]) | ||
| 945 | #endif | ||
| 946 | #ifndef XtExtdefaultforeground | ||
| 947 | #define XtExtdefaultforeground ((char*)&XtStrings[1984]) | ||
| 948 | #endif | ||
| 949 | #ifndef XtExtdefaultfont | ||
| 950 | #define XtExtdefaultfont ((char*)&XtStrings[2004]) | ||
| 951 | #endif | ||
| 952 | #ifndef XtNfontSet | ||
| 953 | #define XtNfontSet ((char*)&XtStrings[2018]) | ||
| 954 | #endif | ||
| 955 | #ifndef XtRFontSet | ||
| 956 | #define XtRFontSet ((char*)&XtStrings[2026]) | ||
| 957 | #endif | ||
| 958 | #ifndef XtCFontSet | ||
| 959 | #define XtCFontSet ((char*)&XtStrings[2034]) | ||
| 960 | #endif | ||
| 961 | #ifndef XtRGravity | ||
| 962 | #define XtRGravity ((char*)&XtStrings[2042]) | ||
| 963 | #endif | ||
| 964 | #ifndef XtNcreateHook | ||
| 965 | #define XtNcreateHook ((char*)&XtStrings[2050]) | ||
| 966 | #endif | ||
| 967 | #ifndef XtNchangeHook | ||
| 968 | #define XtNchangeHook ((char*)&XtStrings[2061]) | ||
| 969 | #endif | ||
| 970 | #ifndef XtNconfigureHook | ||
| 971 | #define XtNconfigureHook ((char*)&XtStrings[2072]) | ||
| 972 | #endif | ||
| 973 | #ifndef XtNgeometryHook | ||
| 974 | #define XtNgeometryHook ((char*)&XtStrings[2086]) | ||
| 975 | #endif | ||
| 976 | #ifndef XtNdestroyHook | ||
| 977 | #define XtNdestroyHook ((char*)&XtStrings[2099]) | ||
| 978 | #endif | ||
| 979 | #ifndef XtNshells | ||
| 980 | #define XtNshells ((char*)&XtStrings[2111]) | ||
| 981 | #endif | ||
| 982 | #ifndef XtNnumShells | ||
| 983 | #define XtNnumShells ((char*)&XtStrings[2118]) | ||
| 984 | #endif | ||
| 985 | #ifndef XtRCommandArgArray | ||
| 986 | #define XtRCommandArgArray ((char*)&XtStrings[2128]) | ||
| 987 | #endif | ||
| 988 | #ifndef XtRDirectoryString | ||
| 989 | #define XtRDirectoryString ((char*)&XtStrings[2144]) | ||
| 990 | #endif | ||
| 991 | #ifndef XtREnvironmentArray | ||
| 992 | #define XtREnvironmentArray ((char*)&XtStrings[2160]) | ||
| 993 | #endif | ||
| 994 | #ifndef XtRRestartStyle | ||
| 995 | #define XtRRestartStyle ((char*)&XtStrings[2177]) | ||
| 996 | #endif | ||
| 997 | #ifndef XtRSmcConn | ||
| 998 | #define XtRSmcConn ((char*)&XtStrings[2190]) | ||
| 999 | #endif | ||
| 1000 | #ifndef XtHcreate | ||
| 1001 | #define XtHcreate ((char*)&XtStrings[2198]) | ||
| 1002 | #endif | ||
| 1003 | #ifndef XtHsetValues | ||
| 1004 | #define XtHsetValues ((char*)&XtStrings[2207]) | ||
| 1005 | #endif | ||
| 1006 | #ifndef XtHmanageChildren | ||
| 1007 | #define XtHmanageChildren ((char*)&XtStrings[2219]) | ||
| 1008 | #endif | ||
| 1009 | #ifndef XtHunmanageChildren | ||
| 1010 | #define XtHunmanageChildren ((char*)&XtStrings[2236]) | ||
| 1011 | #endif | ||
| 1012 | #ifndef XtHmanageSet | ||
| 1013 | #define XtHmanageSet ((char*)&XtStrings[2255]) | ||
| 1014 | #endif | ||
| 1015 | #ifndef XtHunmanageSet | ||
| 1016 | #define XtHunmanageSet ((char*)&XtStrings[2267]) | ||
| 1017 | #endif | ||
| 1018 | #ifndef XtHrealizeWidget | ||
| 1019 | #define XtHrealizeWidget ((char*)&XtStrings[2281]) | ||
| 1020 | #endif | ||
| 1021 | #ifndef XtHunrealizeWidget | ||
| 1022 | #define XtHunrealizeWidget ((char*)&XtStrings[2297]) | ||
| 1023 | #endif | ||
| 1024 | #ifndef XtHaddCallback | ||
| 1025 | #define XtHaddCallback ((char*)&XtStrings[2315]) | ||
| 1026 | #endif | ||
| 1027 | #ifndef XtHaddCallbacks | ||
| 1028 | #define XtHaddCallbacks ((char*)&XtStrings[2329]) | ||
| 1029 | #endif | ||
| 1030 | #ifndef XtHremoveCallback | ||
| 1031 | #define XtHremoveCallback ((char*)&XtStrings[2344]) | ||
| 1032 | #endif | ||
| 1033 | #ifndef XtHremoveCallbacks | ||
| 1034 | #define XtHremoveCallbacks ((char*)&XtStrings[2361]) | ||
| 1035 | #endif | ||
| 1036 | #ifndef XtHremoveAllCallbacks | ||
| 1037 | #define XtHremoveAllCallbacks ((char*)&XtStrings[2379]) | ||
| 1038 | #endif | ||
| 1039 | #ifndef XtHaugmentTranslations | ||
| 1040 | #define XtHaugmentTranslations ((char*)&XtStrings[2400]) | ||
| 1041 | #endif | ||
| 1042 | #ifndef XtHoverrideTranslations | ||
| 1043 | #define XtHoverrideTranslations ((char*)&XtStrings[2422]) | ||
| 1044 | #endif | ||
| 1045 | #ifndef XtHuninstallTranslations | ||
| 1046 | #define XtHuninstallTranslations ((char*)&XtStrings[2445]) | ||
| 1047 | #endif | ||
| 1048 | #ifndef XtHsetKeyboardFocus | ||
| 1049 | #define XtHsetKeyboardFocus ((char*)&XtStrings[2469]) | ||
| 1050 | #endif | ||
| 1051 | #ifndef XtHsetWMColormapWindows | ||
| 1052 | #define XtHsetWMColormapWindows ((char*)&XtStrings[2488]) | ||
| 1053 | #endif | ||
| 1054 | #ifndef XtHsetMappedWhenManaged | ||
| 1055 | #define XtHsetMappedWhenManaged ((char*)&XtStrings[2511]) | ||
| 1056 | #endif | ||
| 1057 | #ifndef XtHmapWidget | ||
| 1058 | #define XtHmapWidget ((char*)&XtStrings[2534]) | ||
| 1059 | #endif | ||
| 1060 | #ifndef XtHunmapWidget | ||
| 1061 | #define XtHunmapWidget ((char*)&XtStrings[2546]) | ||
| 1062 | #endif | ||
| 1063 | #ifndef XtHpopup | ||
| 1064 | #define XtHpopup ((char*)&XtStrings[2560]) | ||
| 1065 | #endif | ||
| 1066 | #ifndef XtHpopupSpringLoaded | ||
| 1067 | #define XtHpopupSpringLoaded ((char*)&XtStrings[2568]) | ||
| 1068 | #endif | ||
| 1069 | #ifndef XtHpopdown | ||
| 1070 | #define XtHpopdown ((char*)&XtStrings[2588]) | ||
| 1071 | #endif | ||
| 1072 | #ifndef XtHconfigure | ||
| 1073 | #define XtHconfigure ((char*)&XtStrings[2598]) | ||
| 1074 | #endif | ||
| 1075 | #ifndef XtHpreGeometry | ||
| 1076 | #define XtHpreGeometry ((char*)&XtStrings[2610]) | ||
| 1077 | #endif | ||
| 1078 | #ifndef XtHpostGeometry | ||
| 1079 | #define XtHpostGeometry ((char*)&XtStrings[2624]) | ||
| 1080 | #endif | ||
| 1081 | #ifndef XtHdestroy | ||
| 1082 | #define XtHdestroy ((char*)&XtStrings[2639]) | ||
| 1083 | #endif | ||
| 1084 | #endif /* XTSTRINGDEFINES */ | ||
| 1085 | |||
| 1086 | #ifndef XTSTRINGDEFINES | ||
| 1087 | #undef _XtStringDefs_h_Const | ||
| 1088 | #endif | ||
| 1089 | |||
| 1090 | #endif /* _XtStringDefs_h_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Sunkeysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Sunkeysym.h new file mode 100644 index 0000000000..e723444406 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Sunkeysym.h | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | /* $Xorg: Sunkeysym.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /************************************************************ | ||
| 4 | |||
| 5 | Copyright 1991, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1991 by Sun Microsystems, Inc. Mountain View, CA. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this | ||
| 33 | software and its documentation for any purpose and without | ||
| 34 | fee is hereby granted, provided that the above copyright no- | ||
| 35 | tice appear in all copies and that both that copyright no- | ||
| 36 | tice and this permission notice appear in supporting docu- | ||
| 37 | mentation, and that the name of Sun not be used in | ||
| 38 | advertising or publicity pertaining to distribution of the | ||
| 39 | software without specific prior written permission. Sun | ||
| 40 | makes no representations about the suitability of this | ||
| 41 | software for any purpose. It is provided "as is" without any | ||
| 42 | express or implied warranty. | ||
| 43 | |||
| 44 | SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
| 45 | INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT- | ||
| 46 | NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE LI- | ||
| 47 | ABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 48 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | ||
| 49 | PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
| 50 | OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH | ||
| 51 | THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 52 | |||
| 53 | ***********************************************************/ | ||
| 54 | |||
| 55 | /* | ||
| 56 | * Floating Accent | ||
| 57 | */ | ||
| 58 | |||
| 59 | #define SunXK_FA_Grave 0x1005FF00 | ||
| 60 | #define SunXK_FA_Circum 0x1005FF01 | ||
| 61 | #define SunXK_FA_Tilde 0x1005FF02 | ||
| 62 | #define SunXK_FA_Acute 0x1005FF03 | ||
| 63 | #define SunXK_FA_Diaeresis 0x1005FF04 | ||
| 64 | #define SunXK_FA_Cedilla 0x1005FF05 | ||
| 65 | |||
| 66 | /* | ||
| 67 | * Miscellaneous Functions | ||
| 68 | */ | ||
| 69 | |||
| 70 | #define SunXK_F36 0x1005FF10 /* Labeled F11 */ | ||
| 71 | #define SunXK_F37 0x1005FF11 /* Labeled F12 */ | ||
| 72 | |||
| 73 | #define SunXK_Sys_Req 0x1005FF60 | ||
| 74 | #define SunXK_Print_Screen 0x0000FF61 /* Same as XK_Print */ | ||
| 75 | |||
| 76 | /* | ||
| 77 | * International & Multi-Key Character Composition | ||
| 78 | */ | ||
| 79 | |||
| 80 | #define SunXK_Compose 0x0000FF20 /* Same as XK_Multi_key */ | ||
| 81 | #define SunXK_AltGraph 0x0000FF7E /* Same as XK_Mode_switch */ | ||
| 82 | |||
| 83 | /* | ||
| 84 | * Cursor Control | ||
| 85 | */ | ||
| 86 | |||
| 87 | #define SunXK_PageUp 0x0000FF55 /* Same as XK_Prior */ | ||
| 88 | #define SunXK_PageDown 0x0000FF56 /* Same as XK_Next */ | ||
| 89 | |||
| 90 | /* | ||
| 91 | * Open Look Functions | ||
| 92 | */ | ||
| 93 | |||
| 94 | #define SunXK_Undo 0x0000FF65 /* Same as XK_Undo */ | ||
| 95 | #define SunXK_Again 0x0000FF66 /* Same as XK_Redo */ | ||
| 96 | #define SunXK_Find 0x0000FF68 /* Same as XK_Find */ | ||
| 97 | #define SunXK_Stop 0x0000FF69 /* Same as XK_Cancel */ | ||
| 98 | #define SunXK_Props 0x1005FF70 | ||
| 99 | #define SunXK_Front 0x1005FF71 | ||
| 100 | #define SunXK_Copy 0x1005FF72 | ||
| 101 | #define SunXK_Open 0x1005FF73 | ||
| 102 | #define SunXK_Paste 0x1005FF74 | ||
| 103 | #define SunXK_Cut 0x1005FF75 | ||
| 104 | |||
| 105 | #define SunXK_PowerSwitch 0x1005FF76 | ||
| 106 | #define SunXK_AudioLowerVolume 0x1005FF77 | ||
| 107 | #define SunXK_AudioMute 0x1005FF78 | ||
| 108 | #define SunXK_AudioRaiseVolume 0x1005FF79 | ||
| 109 | #define SunXK_VideoDegauss 0x1005FF7A | ||
| 110 | #define SunXK_VideoLowerBrightness 0x1005FF7B | ||
| 111 | #define SunXK_VideoRaiseBrightness 0x1005FF7C | ||
| 112 | #define SunXK_PowerSwitchShift 0x1005FF7D | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ThreadsI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ThreadsI.h new file mode 100644 index 0000000000..1492d7711b --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ThreadsI.h | |||
| @@ -0,0 +1,130 @@ | |||
| 1 | /* $Xorg: ThreadsI.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /************************************************************ | ||
| 4 | Copyright 1993 by Sun Microsystems, Inc. Mountain View, CA. | ||
| 5 | |||
| 6 | All Rights Reserved | ||
| 7 | |||
| 8 | Permission to use, copy, modify, and distribute this | ||
| 9 | software and its documentation for any purpose and without | ||
| 10 | fee is hereby granted, provided that the above copyright no- | ||
| 11 | tice appear in all copies and that both that copyright no- | ||
| 12 | tice and this permission notice appear in supporting docu- | ||
| 13 | mentation, and that the name Sun not be used in advertising | ||
| 14 | or publicity pertaining to distribution of the software | ||
| 15 | without specific prior written permission. Sun makes no | ||
| 16 | representations about the suitability of this software for | ||
| 17 | any purpose. It is provided "as is" without any express or | ||
| 18 | implied warranty. | ||
| 19 | |||
| 20 | SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
| 21 | INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT- | ||
| 22 | NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE LI- | ||
| 23 | ABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 24 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | ||
| 25 | PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
| 26 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH | ||
| 27 | THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 28 | |||
| 29 | ********************************************************/ | ||
| 30 | |||
| 31 | /* | ||
| 32 | |||
| 33 | Copyright 1994, 1998 The Open Group | ||
| 34 | |||
| 35 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 36 | documentation for any purpose is hereby granted without fee, provided that | ||
| 37 | the above copyright notice appear in all copies and that both that | ||
| 38 | copyright notice and this permission notice appear in supporting | ||
| 39 | documentation. | ||
| 40 | |||
| 41 | The above copyright notice and this permission notice shall be included in | ||
| 42 | all copies or substantial portions of the Software. | ||
| 43 | |||
| 44 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 45 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 46 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 47 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 48 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 49 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 50 | |||
| 51 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 52 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 53 | in this Software without prior written authorization from The Open Group. | ||
| 54 | |||
| 55 | */ | ||
| 56 | /* $XFree86: xc/lib/Xt/ThreadsI.h,v 3.5 2001/12/14 19:56:31 dawes Exp $ */ | ||
| 57 | |||
| 58 | #ifndef _XtThreadsI_h | ||
| 59 | #define _XtThreadsI_h | ||
| 60 | |||
| 61 | #include <X11/XlibConf.h> | ||
| 62 | |||
| 63 | #ifdef XTHREADS | ||
| 64 | |||
| 65 | typedef struct _LockRec *LockPtr; | ||
| 66 | |||
| 67 | typedef void (*ThreadAppProc)( | ||
| 68 | XtAppContext /* app */ | ||
| 69 | ); | ||
| 70 | |||
| 71 | typedef void (*ThreadAppYieldLockProc)( | ||
| 72 | XtAppContext, /* app */ | ||
| 73 | Boolean*, /* push_thread */ | ||
| 74 | Boolean*, /* pushed_thread */ | ||
| 75 | int* /* level */ | ||
| 76 | ); | ||
| 77 | |||
| 78 | typedef void (*ThreadAppRestoreLockProc)( | ||
| 79 | XtAppContext /* app */, | ||
| 80 | int, /* level */ | ||
| 81 | Boolean* /* pushed_thread */ | ||
| 82 | ); | ||
| 83 | |||
| 84 | extern void (*_XtProcessLock)( | ||
| 85 | void | ||
| 86 | ); | ||
| 87 | |||
| 88 | extern void (*_XtProcessUnlock)( | ||
| 89 | void | ||
| 90 | ); | ||
| 91 | |||
| 92 | extern void (*_XtInitAppLock)( | ||
| 93 | XtAppContext /* app */ | ||
| 94 | ); | ||
| 95 | |||
| 96 | #define INIT_APP_LOCK(app) if(_XtInitAppLock) (*_XtInitAppLock)(app) | ||
| 97 | #define FREE_APP_LOCK(app) if(app && app->free_lock)(*app->free_lock)(app) | ||
| 98 | |||
| 99 | #define LOCK_PROCESS if(_XtProcessLock)(*_XtProcessLock)() | ||
| 100 | #define UNLOCK_PROCESS if(_XtProcessUnlock)(*_XtProcessUnlock)() | ||
| 101 | #define LOCK_APP(app) if(app && app->lock)(*app->lock)(app) | ||
| 102 | #define UNLOCK_APP(app) if(app && app->unlock)(*app->unlock)(app) | ||
| 103 | |||
| 104 | #define YIELD_APP_LOCK(app,push,pushed,level)\ | ||
| 105 | if(app && app->yield_lock) (*app->yield_lock)(app,push,pushed,level) | ||
| 106 | #define RESTORE_APP_LOCK(app,level,pushed)\ | ||
| 107 | if(app && app->restore_lock) (*app->restore_lock)(app,level,pushed) | ||
| 108 | |||
| 109 | #define WIDGET_TO_APPCON(w) \ | ||
| 110 | XtAppContext app = (w && _XtProcessLock ? \ | ||
| 111 | XtWidgetToApplicationContext(w) : NULL) | ||
| 112 | |||
| 113 | #define DPY_TO_APPCON(d) \ | ||
| 114 | XtAppContext app = (_XtProcessLock ? XtDisplayToApplicationContext(d): 0) | ||
| 115 | |||
| 116 | #else /* defined(XTHREADS) */ | ||
| 117 | |||
| 118 | #define LOCK_PROCESS | ||
| 119 | #define UNLOCK_PROCESS | ||
| 120 | #define LOCK_APP(app) | ||
| 121 | #define UNLOCK_APP(app) | ||
| 122 | |||
| 123 | #define INIT_APP_LOCK(app) | ||
| 124 | #define FREE_APP_LOCK(app) | ||
| 125 | |||
| 126 | #define WIDGET_TO_APPCON(w) | ||
| 127 | #define DPY_TO_APPCON(d) | ||
| 128 | |||
| 129 | #endif /* !defined(XTHREADS) */ | ||
| 130 | #endif /* _XtThreadsI_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/TranslateI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/TranslateI.h new file mode 100644 index 0000000000..122487523c --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/TranslateI.h | |||
| @@ -0,0 +1,606 @@ | |||
| 1 | /* $Xorg: TranslateI.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/Xt/TranslateI.h,v 1.3 2001/12/14 19:56:32 dawes Exp $ */ | ||
| 50 | |||
| 51 | /* | ||
| 52 | * TranslateI.h - Header file private to translation management | ||
| 53 | * | ||
| 54 | * Author: Gabe Beged-Dov, HP | ||
| 55 | * | ||
| 56 | * Former Author: Charles Haynes | ||
| 57 | * Digital Equipment Corporation | ||
| 58 | * Western Research Laboratory | ||
| 59 | * Date: Sat Aug 29 1987 | ||
| 60 | */ | ||
| 61 | |||
| 62 | /*#define REFCNT_TRANSLATIONS*/ | ||
| 63 | #define CACHE_TRANSLATIONS | ||
| 64 | |||
| 65 | #define TM_NO_MATCH (-2) | ||
| 66 | |||
| 67 | #define _XtRStateTablePair "_XtStateTablePair" | ||
| 68 | |||
| 69 | typedef unsigned char TMByteCard; | ||
| 70 | typedef unsigned short TMShortCard; | ||
| 71 | typedef unsigned long TMLongCard; | ||
| 72 | typedef short TMShortInt; | ||
| 73 | |||
| 74 | typedef struct _TMTypeMatchRec *TMTypeMatch; | ||
| 75 | typedef struct _TMModifierMatchRec *TMModifierMatch; | ||
| 76 | typedef struct _TMEventRec *TMEventPtr; | ||
| 77 | |||
| 78 | typedef Boolean (*MatchProc)(TMTypeMatch typeMatch, | ||
| 79 | TMModifierMatch modMatch, | ||
| 80 | TMEventPtr eventSeq); | ||
| 81 | |||
| 82 | typedef struct _ModToKeysymTable { | ||
| 83 | Modifiers mask; | ||
| 84 | int count; | ||
| 85 | int idx; | ||
| 86 | } ModToKeysymTable; | ||
| 87 | |||
| 88 | typedef struct _LateBindings { | ||
| 89 | unsigned int knot:1; | ||
| 90 | unsigned int pair:1; | ||
| 91 | unsigned short ref_count; /* garbage collection */ | ||
| 92 | KeySym keysym; | ||
| 93 | } LateBindings, *LateBindingsPtr; | ||
| 94 | |||
| 95 | typedef short ModifierMask; | ||
| 96 | |||
| 97 | typedef struct _ActionsRec *ActionPtr; | ||
| 98 | typedef struct _ActionsRec { | ||
| 99 | int idx; /* index into quarkTable to find proc */ | ||
| 100 | String *params; /* pointer to array of params */ | ||
| 101 | Cardinal num_params; /* number of params */ | ||
| 102 | ActionPtr next; /* next action to perform */ | ||
| 103 | } ActionRec; | ||
| 104 | |||
| 105 | typedef struct _XtStateRec *StatePtr; | ||
| 106 | typedef struct _XtStateRec { | ||
| 107 | unsigned int isCycleStart:1; | ||
| 108 | unsigned int isCycleEnd:1; | ||
| 109 | TMShortCard typeIndex; | ||
| 110 | TMShortCard modIndex; | ||
| 111 | ActionPtr actions; /* rhs list of actions to perform */ | ||
| 112 | StatePtr nextLevel; | ||
| 113 | }StateRec; | ||
| 114 | |||
| 115 | |||
| 116 | #define XtTableReplace 0 | ||
| 117 | #define XtTableAugment 1 | ||
| 118 | #define XtTableOverride 2 | ||
| 119 | #define XtTableUnmerge 3 | ||
| 120 | |||
| 121 | typedef unsigned int _XtTranslateOp; | ||
| 122 | |||
| 123 | /* | ||
| 124 | * New Definitions | ||
| 125 | */ | ||
| 126 | typedef struct _TMModifierMatchRec{ | ||
| 127 | TMLongCard modifiers; | ||
| 128 | TMLongCard modifierMask; | ||
| 129 | LateBindingsPtr lateModifiers; | ||
| 130 | Boolean standard; | ||
| 131 | }TMModifierMatchRec; | ||
| 132 | |||
| 133 | typedef struct _TMTypeMatchRec{ | ||
| 134 | TMLongCard eventType; | ||
| 135 | TMLongCard eventCode; | ||
| 136 | TMLongCard eventCodeMask; | ||
| 137 | MatchProc matchEvent; | ||
| 138 | }TMTypeMatchRec; | ||
| 139 | |||
| 140 | typedef struct _TMBranchHeadRec { | ||
| 141 | unsigned int isSimple:1; | ||
| 142 | unsigned int hasActions:1; | ||
| 143 | unsigned int hasCycles:1; | ||
| 144 | unsigned int more:13; | ||
| 145 | TMShortCard typeIndex; | ||
| 146 | TMShortCard modIndex; | ||
| 147 | }TMBranchHeadRec, *TMBranchHead; | ||
| 148 | |||
| 149 | /* NOTE: elements of this structure must match those of | ||
| 150 | * TMComplexStateTreeRec and TMParseStateTreeRec. | ||
| 151 | */ | ||
| 152 | typedef struct _TMSimpleStateTreeRec{ | ||
| 153 | unsigned int isSimple:1; | ||
| 154 | unsigned int isAccelerator:1; | ||
| 155 | unsigned int mappingNotifyInterest:1; | ||
| 156 | unsigned int refCount:13; | ||
| 157 | TMShortCard numBranchHeads; | ||
| 158 | TMShortCard numQuarks; /* # of entries in quarkTbl */ | ||
| 159 | TMShortCard unused; /* to ensure same alignment */ | ||
| 160 | TMBranchHeadRec *branchHeadTbl; | ||
| 161 | XrmQuark *quarkTbl; /* table of quarkified rhs*/ | ||
| 162 | }TMSimpleStateTreeRec, *TMSimpleStateTree; | ||
| 163 | |||
| 164 | /* NOTE: elements of this structure must match those of | ||
| 165 | * TMSimpleStateTreeRec and TMParseStateTreeRec. | ||
| 166 | */ | ||
| 167 | typedef struct _TMComplexStateTreeRec{ | ||
| 168 | unsigned int isSimple:1; | ||
| 169 | unsigned int isAccelerator:1; | ||
| 170 | unsigned int mappingNotifyInterest:1; | ||
| 171 | unsigned int refCount:13; | ||
| 172 | TMShortCard numBranchHeads; | ||
| 173 | TMShortCard numQuarks; /* # of entries in quarkTbl */ | ||
| 174 | TMShortCard numComplexBranchHeads; | ||
| 175 | TMBranchHeadRec *branchHeadTbl; | ||
| 176 | XrmQuark *quarkTbl; /* table of quarkified rhs*/ | ||
| 177 | StatePtr *complexBranchHeadTbl; | ||
| 178 | }TMComplexStateTreeRec, *TMComplexStateTree; | ||
| 179 | |||
| 180 | /* NOTE: elements of this structure must match those of | ||
| 181 | * TMSimpleStateTreeRec and TMComplexStateTreeRec. | ||
| 182 | */ | ||
| 183 | typedef struct _TMParseStateTreeRec{ | ||
| 184 | unsigned int isSimple:1; | ||
| 185 | unsigned int isAccelerator:1; | ||
| 186 | unsigned int mappingNotifyInterest:1; | ||
| 187 | unsigned int isStackQuarks:1; | ||
| 188 | unsigned int isStackBranchHeads:1; | ||
| 189 | unsigned int isStackComplexBranchHeads:1; | ||
| 190 | unsigned int unused:10; /* to ensure correct alignment */ | ||
| 191 | TMShortCard numBranchHeads; | ||
| 192 | TMShortCard numQuarks; /* # of entries in quarkTbl */ | ||
| 193 | TMShortCard numComplexBranchHeads; | ||
| 194 | TMBranchHeadRec *branchHeadTbl; | ||
| 195 | XrmQuark *quarkTbl; /* table of quarkified rhs*/ | ||
| 196 | StatePtr *complexBranchHeadTbl; | ||
| 197 | TMShortCard branchHeadTblSize; | ||
| 198 | TMShortCard quarkTblSize; /*total size of quarkTbl */ | ||
| 199 | TMShortCard complexBranchHeadTblSize; | ||
| 200 | StatePtr head; | ||
| 201 | }TMParseStateTreeRec, *TMParseStateTree; | ||
| 202 | |||
| 203 | typedef union _TMStateTreeRec{ | ||
| 204 | TMSimpleStateTreeRec simple; | ||
| 205 | TMParseStateTreeRec parse; | ||
| 206 | TMComplexStateTreeRec complex; | ||
| 207 | }*TMStateTree, **TMStateTreePtr, **TMStateTreeList; | ||
| 208 | |||
| 209 | typedef struct _TMSimpleBindProcsRec { | ||
| 210 | XtActionProc *procs; | ||
| 211 | }TMSimpleBindProcsRec, *TMSimpleBindProcs; | ||
| 212 | |||
| 213 | typedef struct _TMComplexBindProcsRec { | ||
| 214 | Widget widget; /*widgetID to pass to action Proc*/ | ||
| 215 | XtTranslations aXlations; | ||
| 216 | XtActionProc *procs; | ||
| 217 | }TMComplexBindProcsRec, *TMComplexBindProcs; | ||
| 218 | |||
| 219 | typedef struct _TMSimpleBindDataRec { | ||
| 220 | unsigned int isComplex:1; /* must be first */ | ||
| 221 | TMSimpleBindProcsRec bindTbl[1]; /* variable length */ | ||
| 222 | }TMSimpleBindDataRec, *TMSimpleBindData; | ||
| 223 | |||
| 224 | typedef struct _TMComplexBindDataRec { | ||
| 225 | unsigned int isComplex:1; /* must be first */ | ||
| 226 | struct _ATranslationData *accel_context; /* for GetValues */ | ||
| 227 | TMComplexBindProcsRec bindTbl[1]; /* variable length */ | ||
| 228 | }TMComplexBindDataRec, *TMComplexBindData; | ||
| 229 | |||
| 230 | typedef union _TMBindDataRec{ | ||
| 231 | TMSimpleBindDataRec simple; | ||
| 232 | TMComplexBindDataRec complex; | ||
| 233 | }*TMBindData; | ||
| 234 | |||
| 235 | typedef struct _TranslationData{ | ||
| 236 | unsigned char hasBindings; /* must be first */ | ||
| 237 | unsigned char operation; /*replace,augment,override*/ | ||
| 238 | TMShortCard numStateTrees; | ||
| 239 | struct _TranslationData *composers[2]; | ||
| 240 | EventMask eventMask; | ||
| 241 | TMStateTree stateTreeTbl[1]; /* variable length */ | ||
| 242 | }TranslationData; | ||
| 243 | |||
| 244 | /* | ||
| 245 | * ATranslations is returned by GetValues for translations that contain | ||
| 246 | * accelerators. The TM can differentiate between this and TranslationData | ||
| 247 | * (that don't have a bindTbl) by looking at the first field (hasBindings) | ||
| 248 | * of either structure. All ATranslationData structures associated with a | ||
| 249 | * widget are chained off the BindData record of the widget. | ||
| 250 | */ | ||
| 251 | typedef struct _ATranslationData{ | ||
| 252 | unsigned char hasBindings; /* must be first */ | ||
| 253 | unsigned char operation; | ||
| 254 | struct _TranslationData *xlations; /* actual translations */ | ||
| 255 | struct _ATranslationData *next; /* chain the contexts together */ | ||
| 256 | TMComplexBindProcsRec bindTbl[1]; /* accelerator bindings */ | ||
| 257 | }ATranslationData, *ATranslations; | ||
| 258 | |||
| 259 | typedef struct _TMConvertRec { | ||
| 260 | XtTranslations old; /* table to merge into */ | ||
| 261 | XtTranslations new; /* table to merge from */ | ||
| 262 | } TMConvertRec; | ||
| 263 | |||
| 264 | #define _XtEventTimerEventType ((TMLongCard)~0L) | ||
| 265 | #define KeysymModMask (1L<<27) /* private to TM */ | ||
| 266 | #define AnyButtonMask (1L<<28) /* private to TM */ | ||
| 267 | |||
| 268 | typedef struct _EventRec { | ||
| 269 | TMLongCard modifiers; | ||
| 270 | TMLongCard modifierMask; | ||
| 271 | LateBindingsPtr lateModifiers; | ||
| 272 | TMLongCard eventType; | ||
| 273 | TMLongCard eventCode; | ||
| 274 | TMLongCard eventCodeMask; | ||
| 275 | MatchProc matchEvent; | ||
| 276 | Boolean standard; | ||
| 277 | } Event; | ||
| 278 | |||
| 279 | typedef struct _EventSeqRec *EventSeqPtr; | ||
| 280 | typedef struct _EventSeqRec { | ||
| 281 | Event event; /* X event description */ | ||
| 282 | StatePtr state; /* private to state table builder */ | ||
| 283 | EventSeqPtr next; /* next event on line */ | ||
| 284 | ActionPtr actions; /* r.h.s. list of actions to perform */ | ||
| 285 | } EventSeqRec; | ||
| 286 | |||
| 287 | typedef EventSeqRec EventRec; | ||
| 288 | typedef EventSeqPtr EventPtr; | ||
| 289 | |||
| 290 | typedef struct _TMEventRec { | ||
| 291 | XEvent *xev; | ||
| 292 | Event event; | ||
| 293 | }TMEventRec; | ||
| 294 | |||
| 295 | typedef struct _ActionHookRec { | ||
| 296 | struct _ActionHookRec* next; /* must remain first */ | ||
| 297 | XtAppContext app; | ||
| 298 | XtActionHookProc proc; | ||
| 299 | XtPointer closure; | ||
| 300 | } ActionHookRec, *ActionHook; | ||
| 301 | |||
| 302 | /* choose a number between 2 and 8 */ | ||
| 303 | #define TMKEYCACHELOG2 6 | ||
| 304 | #define TMKEYCACHESIZE (1<<TMKEYCACHELOG2) | ||
| 305 | |||
| 306 | typedef struct _KeyCacheRec { | ||
| 307 | unsigned char modifiers_return[256]; /* constant per KeyCode, key proc */ | ||
| 308 | KeyCode keycode[TMKEYCACHESIZE]; | ||
| 309 | unsigned char modifiers[TMKEYCACHESIZE]; | ||
| 310 | KeySym keysym[TMKEYCACHESIZE]; | ||
| 311 | } TMKeyCache; | ||
| 312 | |||
| 313 | typedef struct _TMKeyContextRec { | ||
| 314 | XEvent *event; | ||
| 315 | unsigned long serial; | ||
| 316 | KeySym keysym; | ||
| 317 | Modifiers modifiers; | ||
| 318 | TMKeyCache keycache; /* keep this last, to keep offsets to others small */ | ||
| 319 | } TMKeyContextRec, *TMKeyContext; | ||
| 320 | |||
| 321 | typedef struct _TMGlobalRec{ | ||
| 322 | TMTypeMatchRec **typeMatchSegmentTbl; | ||
| 323 | TMShortCard numTypeMatches; | ||
| 324 | TMShortCard numTypeMatchSegments; | ||
| 325 | TMShortCard typeMatchSegmentTblSize; | ||
| 326 | TMModifierMatchRec **modMatchSegmentTbl; | ||
| 327 | TMShortCard numModMatches; | ||
| 328 | TMShortCard numModMatchSegments; | ||
| 329 | TMShortCard modMatchSegmentTblSize; | ||
| 330 | Boolean newMatchSemantics; | ||
| 331 | #ifdef TRACE_TM | ||
| 332 | XtTranslations *tmTbl; | ||
| 333 | TMShortCard numTms; | ||
| 334 | TMShortCard tmTblSize; | ||
| 335 | struct _TMBindCacheRec **bindCacheTbl; | ||
| 336 | TMShortCard numBindCache; | ||
| 337 | TMShortCard bindCacheTblSize; | ||
| 338 | TMShortCard numLateBindings; | ||
| 339 | TMShortCard numBranchHeads; | ||
| 340 | TMShortCard numComplexStates; | ||
| 341 | TMShortCard numComplexActions; | ||
| 342 | #endif /* TRACE_TM */ | ||
| 343 | }TMGlobalRec; | ||
| 344 | |||
| 345 | extern TMGlobalRec _XtGlobalTM; | ||
| 346 | |||
| 347 | #define TM_MOD_SEGMENT_SIZE 16 | ||
| 348 | #define TM_TYPE_SEGMENT_SIZE 16 | ||
| 349 | |||
| 350 | #define TMGetTypeMatch(idx) \ | ||
| 351 | ((TMTypeMatch) \ | ||
| 352 | &((_XtGlobalTM.typeMatchSegmentTbl[((idx) >> 4)])[(idx) & 15])) | ||
| 353 | #define TMGetModifierMatch(idx) \ | ||
| 354 | ((TMModifierMatch) \ | ||
| 355 | &((_XtGlobalTM.modMatchSegmentTbl[(idx) >> 4])[(idx) & 15])) | ||
| 356 | |||
| 357 | /* Useful Access Macros */ | ||
| 358 | #define TMNewMatchSemantics() (_XtGlobalTM.newMatchSemantics) | ||
| 359 | #define TMBranchMore(branch) (branch->more) | ||
| 360 | #define TMComplexBranchHead(tree, br) \ | ||
| 361 | (((TMComplexStateTree)tree)->complexBranchHeadTbl[TMBranchMore(br)]) | ||
| 362 | |||
| 363 | #define TMGetComplexBindEntry(bindData, idx) \ | ||
| 364 | ((TMComplexBindProcs)&(((TMComplexBindData)bindData)->bindTbl[idx])) | ||
| 365 | |||
| 366 | #define TMGetSimpleBindEntry(bindData, idx) \ | ||
| 367 | ((TMSimpleBindProcs)&(((TMSimpleBindData)bindData)->bindTbl[idx])) | ||
| 368 | |||
| 369 | |||
| 370 | #define _InitializeKeysymTables(dpy, pd) \ | ||
| 371 | if (pd->keysyms == NULL) \ | ||
| 372 | _XtBuildKeysymTables(dpy, pd) | ||
| 373 | |||
| 374 | /* | ||
| 375 | * Internal Functions | ||
| 376 | */ | ||
| 377 | |||
| 378 | extern void _XtPopup( | ||
| 379 | Widget /* widget */, | ||
| 380 | XtGrabKind /* grab_kind */, | ||
| 381 | _XtBoolean /* spring_loaded */ | ||
| 382 | ); | ||
| 383 | |||
| 384 | extern String _XtPrintXlations( | ||
| 385 | Widget /* w */, | ||
| 386 | XtTranslations /* xlations */, | ||
| 387 | Widget /* accelWidget */, | ||
| 388 | _XtBoolean /* includeRHS */ | ||
| 389 | ); | ||
| 390 | |||
| 391 | extern void _XtRegisterGrabs( | ||
| 392 | Widget /* widget */ | ||
| 393 | ); | ||
| 394 | |||
| 395 | extern XtPointer _XtInitializeActionData( | ||
| 396 | struct _XtActionsRec * /* actions */, | ||
| 397 | Cardinal /* count */, | ||
| 398 | _XtBoolean /* inPlace */ | ||
| 399 | ); | ||
| 400 | |||
| 401 | extern void _XtAddEventSeqToStateTree( | ||
| 402 | EventSeqPtr /* eventSeq */, | ||
| 403 | TMParseStateTree /* stateTree */ | ||
| 404 | ); | ||
| 405 | |||
| 406 | extern Boolean _XtMatchUsingStandardMods( | ||
| 407 | TMTypeMatch /* typeMatch */, | ||
| 408 | TMModifierMatch /* modMatch */, | ||
| 409 | TMEventPtr /* eventSeq */ | ||
| 410 | ); | ||
| 411 | |||
| 412 | extern Boolean _XtMatchUsingDontCareMods( | ||
| 413 | TMTypeMatch /* typeMatch */, | ||
| 414 | TMModifierMatch /* modMatch */, | ||
| 415 | TMEventPtr /* eventSeq */ | ||
| 416 | ); | ||
| 417 | |||
| 418 | extern Boolean _XtRegularMatch( | ||
| 419 | TMTypeMatch /* typeMatch */, | ||
| 420 | TMModifierMatch /* modMatch */, | ||
| 421 | TMEventPtr /* eventSeq */ | ||
| 422 | ); | ||
| 423 | |||
| 424 | extern Boolean _XtMatchAtom( | ||
| 425 | TMTypeMatch /* typeMatch */, | ||
| 426 | TMModifierMatch /* modMatch */, | ||
| 427 | TMEventPtr /* eventSeq */ | ||
| 428 | ); | ||
| 429 | |||
| 430 | extern void _XtTranslateEvent( | ||
| 431 | Widget /* widget */, | ||
| 432 | XEvent* /* event */ | ||
| 433 | ); | ||
| 434 | |||
| 435 | #include "CallbackI.h" | ||
| 436 | #include "EventI.h" | ||
| 437 | #include "HookObjI.h" | ||
| 438 | #include "PassivGraI.h" | ||
| 439 | #include "ThreadsI.h" | ||
| 440 | #include "InitialI.h" | ||
| 441 | #include "ResourceI.h" | ||
| 442 | #include "StringDefs.h" | ||
| 443 | |||
| 444 | extern void _XtBuildKeysymTables(Display *dpy, XtPerDisplay pd); | ||
| 445 | |||
| 446 | #ifndef NO_MIT_HACKS | ||
| 447 | extern void _XtDisplayTranslations( | ||
| 448 | Widget /* widget */, | ||
| 449 | XEvent* /* event */, | ||
| 450 | String* /* params */, | ||
| 451 | Cardinal* /* num_params */ | ||
| 452 | ); | ||
| 453 | |||
| 454 | extern void _XtDisplayAccelerators( | ||
| 455 | Widget /* widget */, | ||
| 456 | XEvent* /* event */, | ||
| 457 | String* /* params */, | ||
| 458 | Cardinal* /* num_params */ | ||
| 459 | ); | ||
| 460 | |||
| 461 | extern void _XtDisplayInstalledAccelerators( | ||
| 462 | Widget /* widget */, | ||
| 463 | XEvent* /* event */, | ||
| 464 | String* /* params */, | ||
| 465 | Cardinal* /* num_params */ | ||
| 466 | ); | ||
| 467 | #endif /* ifndef NO_MIT_HACKS */ | ||
| 468 | |||
| 469 | extern void _XtPopupInitialize( | ||
| 470 | XtAppContext /* app_context */ | ||
| 471 | ); | ||
| 472 | |||
| 473 | extern void _XtBindActions( | ||
| 474 | Widget /* widget */, | ||
| 475 | XtTM /* tm_rec */ | ||
| 476 | ); | ||
| 477 | |||
| 478 | extern Boolean _XtComputeLateBindings( | ||
| 479 | Display* /* dpy */, | ||
| 480 | LateBindingsPtr /* lateModifiers */, | ||
| 481 | Modifiers* /* computed */, | ||
| 482 | Modifiers* /* computedMask */ | ||
| 483 | ); | ||
| 484 | |||
| 485 | extern XtTranslations _XtCreateXlations( | ||
| 486 | TMStateTree * /* stateTrees */, | ||
| 487 | TMShortCard /* numStateTrees */, | ||
| 488 | XtTranslations /* first */, | ||
| 489 | XtTranslations /* second */ | ||
| 490 | ); | ||
| 491 | |||
| 492 | extern Boolean _XtCvtMergeTranslations( | ||
| 493 | Display* /* dpy */, | ||
| 494 | XrmValuePtr /* args */, | ||
| 495 | Cardinal* /* num_args */, | ||
| 496 | XrmValuePtr /* from */, | ||
| 497 | XrmValuePtr /* to */, | ||
| 498 | XtPointer* /* closure_ret */ | ||
| 499 | ); | ||
| 500 | |||
| 501 | void _XtRemoveStateTreeByIndex( | ||
| 502 | XtTranslations /* xlations */, | ||
| 503 | TMShortCard /* i */); | ||
| 504 | |||
| 505 | void _XtFreeTranslations( | ||
| 506 | XtAppContext /* app */, | ||
| 507 | XrmValuePtr /* toVal */, | ||
| 508 | XtPointer /* closure */, | ||
| 509 | XrmValuePtr /* args */, | ||
| 510 | Cardinal* /* num_args */ | ||
| 511 | ); | ||
| 512 | |||
| 513 | extern TMShortCard _XtGetModifierIndex( | ||
| 514 | Event* /* event */ | ||
| 515 | ); | ||
| 516 | |||
| 517 | extern TMShortCard _XtGetQuarkIndex( | ||
| 518 | TMParseStateTree /* stateTreePtr */, | ||
| 519 | XrmQuark /* quark */ | ||
| 520 | ); | ||
| 521 | |||
| 522 | extern XtTranslations _XtGetTranslationValue( | ||
| 523 | Widget /* widget */ | ||
| 524 | ); | ||
| 525 | |||
| 526 | extern TMShortCard _XtGetTypeIndex( | ||
| 527 | Event* /* event */ | ||
| 528 | ); | ||
| 529 | |||
| 530 | extern void _XtGrabInitialize( | ||
| 531 | XtAppContext /* app */ | ||
| 532 | ); | ||
| 533 | |||
| 534 | extern void _XtInstallTranslations( | ||
| 535 | Widget /* widget */ | ||
| 536 | ); | ||
| 537 | |||
| 538 | extern void _XtRemoveTranslations( | ||
| 539 | Widget /* widget */ | ||
| 540 | ); | ||
| 541 | |||
| 542 | extern void _XtDestroyTMData( | ||
| 543 | Widget /* widget */ | ||
| 544 | ); | ||
| 545 | |||
| 546 | extern void _XtMergeTranslations( | ||
| 547 | Widget /* widget */, | ||
| 548 | XtTranslations /* newXlations */, | ||
| 549 | _XtTranslateOp /* operation */ | ||
| 550 | ); | ||
| 551 | |||
| 552 | extern void _XtActionInitialize( | ||
| 553 | XtAppContext /* app */ | ||
| 554 | ); | ||
| 555 | |||
| 556 | extern TMStateTree _XtParseTreeToStateTree( | ||
| 557 | TMParseStateTree /* parseTree */ | ||
| 558 | ); | ||
| 559 | |||
| 560 | extern String _XtPrintActions( | ||
| 561 | ActionRec* /* actions */, | ||
| 562 | XrmQuark* /* quarkTbl */ | ||
| 563 | ); | ||
| 564 | |||
| 565 | extern String _XtPrintState( | ||
| 566 | TMStateTree /* stateTree */, | ||
| 567 | TMBranchHead /* branchHead */); | ||
| 568 | |||
| 569 | extern String _XtPrintEventSeq( | ||
| 570 | EventSeqPtr /* eventSeq */, | ||
| 571 | Display* /* dpy */ | ||
| 572 | ); | ||
| 573 | |||
| 574 | typedef Boolean (*_XtTraversalProc)( | ||
| 575 | StatePtr /* state */, | ||
| 576 | XtPointer /* data */ | ||
| 577 | ); | ||
| 578 | |||
| 579 | extern void _XtTraverseStateTree( | ||
| 580 | TMStateTree /* tree */, | ||
| 581 | _XtTraversalProc /* func */, | ||
| 582 | XtPointer /* data */ | ||
| 583 | ); | ||
| 584 | |||
| 585 | extern void _XtTranslateInitialize( | ||
| 586 | void | ||
| 587 | ); | ||
| 588 | |||
| 589 | extern void _XtAddTMConverters( | ||
| 590 | ConverterTable /* table */ | ||
| 591 | ); | ||
| 592 | |||
| 593 | extern void _XtUnbindActions( | ||
| 594 | Widget /* widget */, | ||
| 595 | XtTranslations /* xlations */, | ||
| 596 | TMBindData /* bindData */ | ||
| 597 | ); | ||
| 598 | |||
| 599 | extern void _XtUnmergeTranslations( | ||
| 600 | Widget /* widget */, | ||
| 601 | XtTranslations /* xlations */ | ||
| 602 | ); | ||
| 603 | |||
| 604 | /* TMKey.c */ | ||
| 605 | extern void _XtAllocTMContext(XtPerDisplay pd); | ||
| 606 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/VarargsI.h b/meta/packages/xorg-lib/xorg-headers-native/X11/VarargsI.h new file mode 100644 index 0000000000..e15404aab5 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/VarargsI.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* $Xorg: VarargsI.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1985, 1986, 1987, 1988, 1989, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | */ | ||
| 28 | /* $XFree86: xc/lib/Xt/VarargsI.h,v 3.6 2001/12/14 19:56:32 dawes Exp $ */ | ||
| 29 | |||
| 30 | #ifndef _VarargsI_h_ | ||
| 31 | #define _VarargsI_h_ | ||
| 32 | |||
| 33 | #include <stdarg.h> | ||
| 34 | |||
| 35 | /* private routines */ | ||
| 36 | |||
| 37 | extern void _XtCountVaList( | ||
| 38 | va_list /*var*/, int* /*total_count*/, int* /*typed_count*/ | ||
| 39 | ); | ||
| 40 | |||
| 41 | extern void _XtVaToArgList( | ||
| 42 | Widget /*widget*/, va_list /*var*/, int /*max_count*/, ArgList* /*args_return*/, Cardinal* /*num_args_return*/ | ||
| 43 | ); | ||
| 44 | |||
| 45 | extern void _XtVaToTypedArgList( | ||
| 46 | va_list /*var*/, int /*count*/, XtTypedArgList* /*args_return*/, Cardinal* /*num_args_return*/ | ||
| 47 | ); | ||
| 48 | |||
| 49 | extern XtTypedArgList _XtVaCreateTypedArgList( | ||
| 50 | va_list /*var*/, int /*count*/ | ||
| 51 | ); | ||
| 52 | |||
| 53 | extern void _XtFreeArgList( | ||
| 54 | ArgList /*args*/, int /*total_count*/, int /*typed_count*/ | ||
| 55 | ); | ||
| 56 | |||
| 57 | extern void _XtGetApplicationResources( | ||
| 58 | Widget /*w*/, XtPointer /*base*/, XtResourceList /*resources*/, Cardinal /*num_resources*/, ArgList /*args*/, Cardinal /*num_args*/, XtTypedArgList /*typed_args*/, Cardinal /*num_typed_args*/ | ||
| 59 | ); | ||
| 60 | |||
| 61 | extern void _XtGetSubresources( | ||
| 62 | Widget /*w*/, XtPointer /*base*/, const char* /*name*/, const char* /*class*/, XtResourceList /*resources*/, Cardinal /*num_resources*/, ArgList /*args*/, Cardinal /*num_args*/, XtTypedArgList /*typed_args*/, Cardinal /*num_typed_args*/ | ||
| 63 | ); | ||
| 64 | |||
| 65 | #endif /* _VarargsI_h_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Vendor.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Vendor.h new file mode 100644 index 0000000000..65e7c38b09 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Vendor.h | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: Vendor.h,v 1.5 2001/02/09 02:03:59 xorgcvs Exp $ | ||
| 3 | * $oHeader: Vendor.h,v 1.2 88/08/18 15:56:44 asente Exp $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | /*********************************************************** | ||
| 7 | |||
| 8 | Copyright 1987, 1988, 1998 The Open Group | ||
| 9 | |||
| 10 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 11 | documentation for any purpose is hereby granted without fee, provided that | ||
| 12 | the above copyright notice appear in all copies and that both that | ||
| 13 | copyright notice and this permission notice appear in supporting | ||
| 14 | documentation. | ||
| 15 | |||
| 16 | The above copyright notice and this permission notice shall be included in | ||
| 17 | all copies or substantial portions of the Software. | ||
| 18 | |||
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 25 | |||
| 26 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 27 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 28 | in this Software without prior written authorization from The Open Group. | ||
| 29 | |||
| 30 | |||
| 31 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 32 | |||
| 33 | All Rights Reserved | ||
| 34 | |||
| 35 | Permission to use, copy, modify, and distribute this software and its | ||
| 36 | documentation for any purpose and without fee is hereby granted, | ||
| 37 | provided that the above copyright notice appear in all copies and that | ||
| 38 | both that copyright notice and this permission notice appear in | ||
| 39 | supporting documentation, and that the name of Digital not be | ||
| 40 | used in advertising or publicity pertaining to distribution of the | ||
| 41 | software without specific, written prior permission. | ||
| 42 | |||
| 43 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 44 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 45 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 46 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 47 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 48 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 49 | SOFTWARE. | ||
| 50 | |||
| 51 | ******************************************************************/ | ||
| 52 | |||
| 53 | #ifndef _XtVendor_h | ||
| 54 | #define _XtVendor_h | ||
| 55 | |||
| 56 | #include <X11/Intrinsic.h> | ||
| 57 | |||
| 58 | /*********************************************************************** | ||
| 59 | * | ||
| 60 | * VendorShell Widget | ||
| 61 | * | ||
| 62 | ***********************************************************************/ | ||
| 63 | |||
| 64 | /* Class record constants */ | ||
| 65 | |||
| 66 | typedef struct _VendorShellClassRec *VendorShellWidgetClass; | ||
| 67 | |||
| 68 | externalref WidgetClass vendorShellWidgetClass; | ||
| 69 | |||
| 70 | #endif /* _XtVendor_h */ | ||
| 71 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/VendorP.h b/meta/packages/xorg-lib/xorg-headers-native/X11/VendorP.h new file mode 100644 index 0000000000..2e5a9759e6 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/VendorP.h | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: VendorP.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $ | ||
| 3 | * $oHeader: VendorP.h,v 1.2 88/08/18 15:56:48 asente Exp $ | ||
| 4 | */ | ||
| 5 | |||
| 6 | /*********************************************************** | ||
| 7 | |||
| 8 | Copyright 1987, 1988, 1998 The Open Group | ||
| 9 | |||
| 10 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 11 | documentation for any purpose is hereby granted without fee, provided that | ||
| 12 | the above copyright notice appear in all copies and that both that | ||
| 13 | copyright notice and this permission notice appear in supporting | ||
| 14 | documentation. | ||
| 15 | |||
| 16 | The above copyright notice and this permission notice shall be included in | ||
| 17 | all copies or substantial portions of the Software. | ||
| 18 | |||
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 25 | |||
| 26 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 27 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 28 | in this Software without prior written authorization from The Open Group. | ||
| 29 | |||
| 30 | |||
| 31 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 32 | |||
| 33 | All Rights Reserved | ||
| 34 | |||
| 35 | Permission to use, copy, modify, and distribute this software and its | ||
| 36 | documentation for any purpose and without fee is hereby granted, | ||
| 37 | provided that the above copyright notice appear in all copies and that | ||
| 38 | both that copyright notice and this permission notice appear in | ||
| 39 | supporting documentation, and that the name of Digital not be | ||
| 40 | used in advertising or publicity pertaining to distribution of the | ||
| 41 | software without specific, written prior permission. | ||
| 42 | |||
| 43 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 44 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 45 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 46 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 47 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 48 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 49 | SOFTWARE. | ||
| 50 | |||
| 51 | ******************************************************************/ | ||
| 52 | |||
| 53 | /* | ||
| 54 | * VendorP.h - Private definitions for VendorShell widget | ||
| 55 | * | ||
| 56 | * Author: Paul Asente | ||
| 57 | * Digital Equipment Corporation | ||
| 58 | * Western Software Laboratory | ||
| 59 | * Date: Thu Dec 3, 1987 | ||
| 60 | */ | ||
| 61 | |||
| 62 | /*********************************************************************** | ||
| 63 | * | ||
| 64 | * VendorShell Widget Private Data | ||
| 65 | * | ||
| 66 | ***********************************************************************/ | ||
| 67 | |||
| 68 | #ifndef _XtVendorPrivate_h | ||
| 69 | #define _XtVendorPrivate_h | ||
| 70 | |||
| 71 | #ifdef __cplusplus | ||
| 72 | extern "C" { | ||
| 73 | #endif | ||
| 74 | |||
| 75 | #include <X11/Vendor.h> | ||
| 76 | |||
| 77 | /* New fields for the VendorShell widget class record */ | ||
| 78 | |||
| 79 | typedef struct { | ||
| 80 | XtPointer extension; /* pointer to extension record */ | ||
| 81 | } VendorShellClassPart; | ||
| 82 | |||
| 83 | typedef struct _VendorShellClassRec { | ||
| 84 | CoreClassPart core_class; | ||
| 85 | CompositeClassPart composite_class; | ||
| 86 | ShellClassPart shell_class; | ||
| 87 | WMShellClassPart wm_shell_class; | ||
| 88 | VendorShellClassPart vendor_shell_class; | ||
| 89 | } VendorShellClassRec; | ||
| 90 | |||
| 91 | externalref VendorShellClassRec vendorShellClassRec; | ||
| 92 | |||
| 93 | /* New fields for the vendor shell widget. */ | ||
| 94 | |||
| 95 | typedef struct { | ||
| 96 | int vendor_specific; | ||
| 97 | } VendorShellPart; | ||
| 98 | |||
| 99 | typedef struct { | ||
| 100 | CorePart core; | ||
| 101 | CompositePart composite; | ||
| 102 | ShellPart shell; | ||
| 103 | WMShellPart wm; | ||
| 104 | VendorShellPart vendor; | ||
| 105 | } VendorShellRec, *VendorShellWidget; | ||
| 106 | |||
| 107 | #ifdef __cplusplus | ||
| 108 | } | ||
| 109 | #endif | ||
| 110 | |||
| 111 | #endif /* _XtVendorPrivate_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/X.h b/meta/packages/xorg-lib/xorg-headers-native/X11/X.h new file mode 100644 index 0000000000..0a9c501fb2 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/X.h | |||
| @@ -0,0 +1,721 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: X.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ | ||
| 3 | */ | ||
| 4 | |||
| 5 | /* Definitions for the X window system likely to be used by applications */ | ||
| 6 | |||
| 7 | #ifndef X_H | ||
| 8 | #define X_H | ||
| 9 | |||
| 10 | /*********************************************************** | ||
| 11 | |||
| 12 | Copyright 1987, 1998 The Open Group | ||
| 13 | |||
| 14 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 15 | documentation for any purpose is hereby granted without fee, provided that | ||
| 16 | the above copyright notice appear in all copies and that both that | ||
| 17 | copyright notice and this permission notice appear in supporting | ||
| 18 | documentation. | ||
| 19 | |||
| 20 | The above copyright notice and this permission notice shall be included in | ||
| 21 | all copies or substantial portions of the Software. | ||
| 22 | |||
| 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 26 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 27 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 28 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 29 | |||
| 30 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 31 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 32 | in this Software without prior written authorization from The Open Group. | ||
| 33 | |||
| 34 | |||
| 35 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 36 | |||
| 37 | All Rights Reserved | ||
| 38 | |||
| 39 | Permission to use, copy, modify, and distribute this software and its | ||
| 40 | documentation for any purpose and without fee is hereby granted, | ||
| 41 | provided that the above copyright notice appear in all copies and that | ||
| 42 | both that copyright notice and this permission notice appear in | ||
| 43 | supporting documentation, and that the name of Digital not be | ||
| 44 | used in advertising or publicity pertaining to distribution of the | ||
| 45 | software without specific, written prior permission. | ||
| 46 | |||
| 47 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 48 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 49 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 50 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 51 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 52 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 53 | SOFTWARE. | ||
| 54 | |||
| 55 | ******************************************************************/ | ||
| 56 | /* $XFree86: xc/include/X.h,v 1.6 2003/07/09 15:27:28 tsi Exp $ */ | ||
| 57 | |||
| 58 | #define X_PROTOCOL 11 /* current protocol version */ | ||
| 59 | #define X_PROTOCOL_REVISION 0 /* current minor version */ | ||
| 60 | |||
| 61 | /* Resources */ | ||
| 62 | |||
| 63 | /* | ||
| 64 | * _XSERVER64 must ONLY be defined when compiling X server sources on | ||
| 65 | * systems where unsigned long is not 32 bits, must NOT be used in | ||
| 66 | * client or library code. | ||
| 67 | */ | ||
| 68 | #ifndef _XSERVER64 | ||
| 69 | # ifndef _XTYPEDEF_XID | ||
| 70 | # define _XTYPEDEF_XID | ||
| 71 | typedef unsigned long XID; | ||
| 72 | # endif | ||
| 73 | # ifndef _XTYPEDEF_MASK | ||
| 74 | # define _XTYPEDEF_MASK | ||
| 75 | typedef unsigned long Mask; | ||
| 76 | # endif | ||
| 77 | # ifndef _XTYPEDEF_ATOM | ||
| 78 | # define _XTYPEDEF_ATOM | ||
| 79 | typedef unsigned long Atom; /* Also in Xdefs.h */ | ||
| 80 | # endif | ||
| 81 | typedef unsigned long VisualID; | ||
| 82 | typedef unsigned long Time; | ||
| 83 | #else | ||
| 84 | # include <X11/Xmd.h> | ||
| 85 | # ifndef _XTYPEDEF_XID | ||
| 86 | # define _XTYPEDEF_XID | ||
| 87 | typedef CARD32 XID; | ||
| 88 | # endif | ||
| 89 | # ifndef _XTYPEDEF_MASK | ||
| 90 | # define _XTYPEDEF_MASK | ||
| 91 | typedef CARD32 Mask; | ||
| 92 | # endif | ||
| 93 | # ifndef _XTYPEDEF_ATOM | ||
| 94 | # define _XTYPEDEF_ATOM | ||
| 95 | typedef CARD32 Atom; | ||
| 96 | # endif | ||
| 97 | typedef CARD32 VisualID; | ||
| 98 | typedef CARD32 Time; | ||
| 99 | #endif | ||
| 100 | |||
| 101 | typedef XID Window; | ||
| 102 | typedef XID Drawable; | ||
| 103 | #ifndef _XTYPEDEF_FONT | ||
| 104 | # define _XTYPEDEF_FONT | ||
| 105 | typedef XID Font; | ||
| 106 | #endif | ||
| 107 | typedef XID Pixmap; | ||
| 108 | typedef XID Cursor; | ||
| 109 | typedef XID Colormap; | ||
| 110 | typedef XID GContext; | ||
| 111 | typedef XID KeySym; | ||
| 112 | |||
| 113 | typedef unsigned char KeyCode; | ||
| 114 | |||
| 115 | /***************************************************************** | ||
| 116 | * RESERVED RESOURCE AND CONSTANT DEFINITIONS | ||
| 117 | *****************************************************************/ | ||
| 118 | |||
| 119 | #ifndef None | ||
| 120 | #define None 0L /* universal null resource or null atom */ | ||
| 121 | #endif | ||
| 122 | |||
| 123 | #define ParentRelative 1L /* background pixmap in CreateWindow | ||
| 124 | and ChangeWindowAttributes */ | ||
| 125 | |||
| 126 | #define CopyFromParent 0L /* border pixmap in CreateWindow | ||
| 127 | and ChangeWindowAttributes | ||
| 128 | special VisualID and special window | ||
| 129 | class passed to CreateWindow */ | ||
| 130 | |||
| 131 | #define PointerWindow 0L /* destination window in SendEvent */ | ||
| 132 | #define InputFocus 1L /* destination window in SendEvent */ | ||
| 133 | |||
| 134 | #define PointerRoot 1L /* focus window in SetInputFocus */ | ||
| 135 | |||
| 136 | #define AnyPropertyType 0L /* special Atom, passed to GetProperty */ | ||
| 137 | |||
| 138 | #define AnyKey 0L /* special Key Code, passed to GrabKey */ | ||
| 139 | |||
| 140 | #define AnyButton 0L /* special Button Code, passed to GrabButton */ | ||
| 141 | |||
| 142 | #define AllTemporary 0L /* special Resource ID passed to KillClient */ | ||
| 143 | |||
| 144 | #define CurrentTime 0L /* special Time */ | ||
| 145 | |||
| 146 | #define NoSymbol 0L /* special KeySym */ | ||
| 147 | |||
| 148 | /***************************************************************** | ||
| 149 | * EVENT DEFINITIONS | ||
| 150 | *****************************************************************/ | ||
| 151 | |||
| 152 | /* Input Event Masks. Used as event-mask window attribute and as arguments | ||
| 153 | to Grab requests. Not to be confused with event names. */ | ||
| 154 | |||
| 155 | #define NoEventMask 0L | ||
| 156 | #define KeyPressMask (1L<<0) | ||
| 157 | #define KeyReleaseMask (1L<<1) | ||
| 158 | #define ButtonPressMask (1L<<2) | ||
| 159 | #define ButtonReleaseMask (1L<<3) | ||
| 160 | #define EnterWindowMask (1L<<4) | ||
| 161 | #define LeaveWindowMask (1L<<5) | ||
| 162 | #define PointerMotionMask (1L<<6) | ||
| 163 | #define PointerMotionHintMask (1L<<7) | ||
| 164 | #define Button1MotionMask (1L<<8) | ||
| 165 | #define Button2MotionMask (1L<<9) | ||
| 166 | #define Button3MotionMask (1L<<10) | ||
| 167 | #define Button4MotionMask (1L<<11) | ||
| 168 | #define Button5MotionMask (1L<<12) | ||
| 169 | #define ButtonMotionMask (1L<<13) | ||
| 170 | #define KeymapStateMask (1L<<14) | ||
| 171 | #define ExposureMask (1L<<15) | ||
| 172 | #define VisibilityChangeMask (1L<<16) | ||
| 173 | #define StructureNotifyMask (1L<<17) | ||
| 174 | #define ResizeRedirectMask (1L<<18) | ||
| 175 | #define SubstructureNotifyMask (1L<<19) | ||
| 176 | #define SubstructureRedirectMask (1L<<20) | ||
| 177 | #define FocusChangeMask (1L<<21) | ||
| 178 | #define PropertyChangeMask (1L<<22) | ||
| 179 | #define ColormapChangeMask (1L<<23) | ||
| 180 | #define OwnerGrabButtonMask (1L<<24) | ||
| 181 | |||
| 182 | /* Event names. Used in "type" field in XEvent structures. Not to be | ||
| 183 | confused with event masks above. They start from 2 because 0 and 1 | ||
| 184 | are reserved in the protocol for errors and replies. */ | ||
| 185 | |||
| 186 | #define KeyPress 2 | ||
| 187 | #define KeyRelease 3 | ||
| 188 | #define ButtonPress 4 | ||
| 189 | #define ButtonRelease 5 | ||
| 190 | #define MotionNotify 6 | ||
| 191 | #define EnterNotify 7 | ||
| 192 | #define LeaveNotify 8 | ||
| 193 | #define FocusIn 9 | ||
| 194 | #define FocusOut 10 | ||
| 195 | #define KeymapNotify 11 | ||
| 196 | #define Expose 12 | ||
| 197 | #define GraphicsExpose 13 | ||
| 198 | #define NoExpose 14 | ||
| 199 | #define VisibilityNotify 15 | ||
| 200 | #define CreateNotify 16 | ||
| 201 | #define DestroyNotify 17 | ||
| 202 | #define UnmapNotify 18 | ||
| 203 | #define MapNotify 19 | ||
| 204 | #define MapRequest 20 | ||
| 205 | #define ReparentNotify 21 | ||
| 206 | #define ConfigureNotify 22 | ||
| 207 | #define ConfigureRequest 23 | ||
| 208 | #define GravityNotify 24 | ||
| 209 | #define ResizeRequest 25 | ||
| 210 | #define CirculateNotify 26 | ||
| 211 | #define CirculateRequest 27 | ||
| 212 | #define PropertyNotify 28 | ||
| 213 | #define SelectionClear 29 | ||
| 214 | #define SelectionRequest 30 | ||
| 215 | #define SelectionNotify 31 | ||
| 216 | #define ColormapNotify 32 | ||
| 217 | #define ClientMessage 33 | ||
| 218 | #define MappingNotify 34 | ||
| 219 | #define LASTEvent 35 /* must be bigger than any event # */ | ||
| 220 | |||
| 221 | |||
| 222 | /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer, | ||
| 223 | state in various key-, mouse-, and button-related events. */ | ||
| 224 | |||
| 225 | #define ShiftMask (1<<0) | ||
| 226 | #define LockMask (1<<1) | ||
| 227 | #define ControlMask (1<<2) | ||
| 228 | #define Mod1Mask (1<<3) | ||
| 229 | #define Mod2Mask (1<<4) | ||
| 230 | #define Mod3Mask (1<<5) | ||
| 231 | #define Mod4Mask (1<<6) | ||
| 232 | #define Mod5Mask (1<<7) | ||
| 233 | |||
| 234 | /* modifier names. Used to build a SetModifierMapping request or | ||
| 235 | to read a GetModifierMapping request. These correspond to the | ||
| 236 | masks defined above. */ | ||
| 237 | #define ShiftMapIndex 0 | ||
| 238 | #define LockMapIndex 1 | ||
| 239 | #define ControlMapIndex 2 | ||
| 240 | #define Mod1MapIndex 3 | ||
| 241 | #define Mod2MapIndex 4 | ||
| 242 | #define Mod3MapIndex 5 | ||
| 243 | #define Mod4MapIndex 6 | ||
| 244 | #define Mod5MapIndex 7 | ||
| 245 | |||
| 246 | |||
| 247 | /* button masks. Used in same manner as Key masks above. Not to be confused | ||
| 248 | with button names below. */ | ||
| 249 | |||
| 250 | #define Button1Mask (1<<8) | ||
| 251 | #define Button2Mask (1<<9) | ||
| 252 | #define Button3Mask (1<<10) | ||
| 253 | #define Button4Mask (1<<11) | ||
| 254 | #define Button5Mask (1<<12) | ||
| 255 | |||
| 256 | #define AnyModifier (1<<15) /* used in GrabButton, GrabKey */ | ||
| 257 | |||
| 258 | |||
| 259 | /* button names. Used as arguments to GrabButton and as detail in ButtonPress | ||
| 260 | and ButtonRelease events. Not to be confused with button masks above. | ||
| 261 | Note that 0 is already defined above as "AnyButton". */ | ||
| 262 | |||
| 263 | #define Button1 1 | ||
| 264 | #define Button2 2 | ||
| 265 | #define Button3 3 | ||
| 266 | #define Button4 4 | ||
| 267 | #define Button5 5 | ||
| 268 | |||
| 269 | /* Notify modes */ | ||
| 270 | |||
| 271 | #define NotifyNormal 0 | ||
| 272 | #define NotifyGrab 1 | ||
| 273 | #define NotifyUngrab 2 | ||
| 274 | #define NotifyWhileGrabbed 3 | ||
| 275 | |||
| 276 | #define NotifyHint 1 /* for MotionNotify events */ | ||
| 277 | |||
| 278 | /* Notify detail */ | ||
| 279 | |||
| 280 | #define NotifyAncestor 0 | ||
| 281 | #define NotifyVirtual 1 | ||
| 282 | #define NotifyInferior 2 | ||
| 283 | #define NotifyNonlinear 3 | ||
| 284 | #define NotifyNonlinearVirtual 4 | ||
| 285 | #define NotifyPointer 5 | ||
| 286 | #define NotifyPointerRoot 6 | ||
| 287 | #define NotifyDetailNone 7 | ||
| 288 | |||
| 289 | /* Visibility notify */ | ||
| 290 | |||
| 291 | #define VisibilityUnobscured 0 | ||
| 292 | #define VisibilityPartiallyObscured 1 | ||
| 293 | #define VisibilityFullyObscured 2 | ||
| 294 | |||
| 295 | /* Circulation request */ | ||
| 296 | |||
| 297 | #define PlaceOnTop 0 | ||
| 298 | #define PlaceOnBottom 1 | ||
| 299 | |||
| 300 | /* protocol families */ | ||
| 301 | |||
| 302 | #define FamilyInternet 0 /* IPv4 */ | ||
| 303 | #define FamilyDECnet 1 | ||
| 304 | #define FamilyChaos 2 | ||
| 305 | #define FamilyInternet6 6 /* IPv6 */ | ||
| 306 | |||
| 307 | /* authentication families not tied to a specific protocol */ | ||
| 308 | #define FamilyServerInterpreted 5 | ||
| 309 | |||
| 310 | /* Property notification */ | ||
| 311 | |||
| 312 | #define PropertyNewValue 0 | ||
| 313 | #define PropertyDelete 1 | ||
| 314 | |||
| 315 | /* Color Map notification */ | ||
| 316 | |||
| 317 | #define ColormapUninstalled 0 | ||
| 318 | #define ColormapInstalled 1 | ||
| 319 | |||
| 320 | /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */ | ||
| 321 | |||
| 322 | #define GrabModeSync 0 | ||
| 323 | #define GrabModeAsync 1 | ||
| 324 | |||
| 325 | /* GrabPointer, GrabKeyboard reply status */ | ||
| 326 | |||
| 327 | #define GrabSuccess 0 | ||
| 328 | #define AlreadyGrabbed 1 | ||
| 329 | #define GrabInvalidTime 2 | ||
| 330 | #define GrabNotViewable 3 | ||
| 331 | #define GrabFrozen 4 | ||
| 332 | |||
| 333 | /* AllowEvents modes */ | ||
| 334 | |||
| 335 | #define AsyncPointer 0 | ||
| 336 | #define SyncPointer 1 | ||
| 337 | #define ReplayPointer 2 | ||
| 338 | #define AsyncKeyboard 3 | ||
| 339 | #define SyncKeyboard 4 | ||
| 340 | #define ReplayKeyboard 5 | ||
| 341 | #define AsyncBoth 6 | ||
| 342 | #define SyncBoth 7 | ||
| 343 | |||
| 344 | /* Used in SetInputFocus, GetInputFocus */ | ||
| 345 | |||
| 346 | #define RevertToNone (int)None | ||
| 347 | #define RevertToPointerRoot (int)PointerRoot | ||
| 348 | #define RevertToParent 2 | ||
| 349 | |||
| 350 | /***************************************************************** | ||
| 351 | * ERROR CODES | ||
| 352 | *****************************************************************/ | ||
| 353 | |||
| 354 | #define Success 0 /* everything's okay */ | ||
| 355 | #define BadRequest 1 /* bad request code */ | ||
| 356 | #define BadValue 2 /* int parameter out of range */ | ||
| 357 | #define BadWindow 3 /* parameter not a Window */ | ||
| 358 | #define BadPixmap 4 /* parameter not a Pixmap */ | ||
| 359 | #define BadAtom 5 /* parameter not an Atom */ | ||
| 360 | #define BadCursor 6 /* parameter not a Cursor */ | ||
| 361 | #define BadFont 7 /* parameter not a Font */ | ||
| 362 | #define BadMatch 8 /* parameter mismatch */ | ||
| 363 | #define BadDrawable 9 /* parameter not a Pixmap or Window */ | ||
| 364 | #define BadAccess 10 /* depending on context: | ||
| 365 | - key/button already grabbed | ||
| 366 | - attempt to free an illegal | ||
| 367 | cmap entry | ||
| 368 | - attempt to store into a read-only | ||
| 369 | color map entry. | ||
| 370 | - attempt to modify the access control | ||
| 371 | list from other than the local host. | ||
| 372 | */ | ||
| 373 | #define BadAlloc 11 /* insufficient resources */ | ||
| 374 | #define BadColor 12 /* no such colormap */ | ||
| 375 | #define BadGC 13 /* parameter not a GC */ | ||
| 376 | #define BadIDChoice 14 /* choice not in range or already used */ | ||
| 377 | #define BadName 15 /* font or color name doesn't exist */ | ||
| 378 | #define BadLength 16 /* Request length incorrect */ | ||
| 379 | #define BadImplementation 17 /* server is defective */ | ||
| 380 | |||
| 381 | #define FirstExtensionError 128 | ||
| 382 | #define LastExtensionError 255 | ||
| 383 | |||
| 384 | /***************************************************************** | ||
| 385 | * WINDOW DEFINITIONS | ||
| 386 | *****************************************************************/ | ||
| 387 | |||
| 388 | /* Window classes used by CreateWindow */ | ||
| 389 | /* Note that CopyFromParent is already defined as 0 above */ | ||
| 390 | |||
| 391 | #define InputOutput 1 | ||
| 392 | #define InputOnly 2 | ||
| 393 | |||
| 394 | /* Window attributes for CreateWindow and ChangeWindowAttributes */ | ||
| 395 | |||
| 396 | #define CWBackPixmap (1L<<0) | ||
| 397 | #define CWBackPixel (1L<<1) | ||
| 398 | #define CWBorderPixmap (1L<<2) | ||
| 399 | #define CWBorderPixel (1L<<3) | ||
| 400 | #define CWBitGravity (1L<<4) | ||
| 401 | #define CWWinGravity (1L<<5) | ||
| 402 | #define CWBackingStore (1L<<6) | ||
| 403 | #define CWBackingPlanes (1L<<7) | ||
| 404 | #define CWBackingPixel (1L<<8) | ||
| 405 | #define CWOverrideRedirect (1L<<9) | ||
| 406 | #define CWSaveUnder (1L<<10) | ||
| 407 | #define CWEventMask (1L<<11) | ||
| 408 | #define CWDontPropagate (1L<<12) | ||
| 409 | #define CWColormap (1L<<13) | ||
| 410 | #define CWCursor (1L<<14) | ||
| 411 | |||
| 412 | /* ConfigureWindow structure */ | ||
| 413 | |||
| 414 | #define CWX (1<<0) | ||
| 415 | #define CWY (1<<1) | ||
| 416 | #define CWWidth (1<<2) | ||
| 417 | #define CWHeight (1<<3) | ||
| 418 | #define CWBorderWidth (1<<4) | ||
| 419 | #define CWSibling (1<<5) | ||
| 420 | #define CWStackMode (1<<6) | ||
| 421 | |||
| 422 | |||
| 423 | /* Bit Gravity */ | ||
| 424 | |||
| 425 | #define ForgetGravity 0 | ||
| 426 | #define NorthWestGravity 1 | ||
| 427 | #define NorthGravity 2 | ||
| 428 | #define NorthEastGravity 3 | ||
| 429 | #define WestGravity 4 | ||
| 430 | #define CenterGravity 5 | ||
| 431 | #define EastGravity 6 | ||
| 432 | #define SouthWestGravity 7 | ||
| 433 | #define SouthGravity 8 | ||
| 434 | #define SouthEastGravity 9 | ||
| 435 | #define StaticGravity 10 | ||
| 436 | |||
| 437 | /* Window gravity + bit gravity above */ | ||
| 438 | |||
| 439 | #define UnmapGravity 0 | ||
| 440 | |||
| 441 | /* Used in CreateWindow for backing-store hint */ | ||
| 442 | |||
| 443 | #define NotUseful 0 | ||
| 444 | #define WhenMapped 1 | ||
| 445 | #define Always 2 | ||
| 446 | |||
| 447 | /* Used in GetWindowAttributes reply */ | ||
| 448 | |||
| 449 | #define IsUnmapped 0 | ||
| 450 | #define IsUnviewable 1 | ||
| 451 | #define IsViewable 2 | ||
| 452 | |||
| 453 | /* Used in ChangeSaveSet */ | ||
| 454 | |||
| 455 | #define SetModeInsert 0 | ||
| 456 | #define SetModeDelete 1 | ||
| 457 | |||
| 458 | /* Used in ChangeCloseDownMode */ | ||
| 459 | |||
| 460 | #define DestroyAll 0 | ||
| 461 | #define RetainPermanent 1 | ||
| 462 | #define RetainTemporary 2 | ||
| 463 | |||
| 464 | /* Window stacking method (in configureWindow) */ | ||
| 465 | |||
| 466 | #define Above 0 | ||
| 467 | #define Below 1 | ||
| 468 | #define TopIf 2 | ||
| 469 | #define BottomIf 3 | ||
| 470 | #define Opposite 4 | ||
| 471 | |||
| 472 | /* Circulation direction */ | ||
| 473 | |||
| 474 | #define RaiseLowest 0 | ||
| 475 | #define LowerHighest 1 | ||
| 476 | |||
| 477 | /* Property modes */ | ||
| 478 | |||
| 479 | #define PropModeReplace 0 | ||
| 480 | #define PropModePrepend 1 | ||
| 481 | #define PropModeAppend 2 | ||
| 482 | |||
| 483 | /***************************************************************** | ||
| 484 | * GRAPHICS DEFINITIONS | ||
| 485 | *****************************************************************/ | ||
| 486 | |||
| 487 | /* graphics functions, as in GC.alu */ | ||
| 488 | |||
| 489 | #define GXclear 0x0 /* 0 */ | ||
| 490 | #define GXand 0x1 /* src AND dst */ | ||
| 491 | #define GXandReverse 0x2 /* src AND NOT dst */ | ||
| 492 | #define GXcopy 0x3 /* src */ | ||
| 493 | #define GXandInverted 0x4 /* NOT src AND dst */ | ||
| 494 | #define GXnoop 0x5 /* dst */ | ||
| 495 | #define GXxor 0x6 /* src XOR dst */ | ||
| 496 | #define GXor 0x7 /* src OR dst */ | ||
| 497 | #define GXnor 0x8 /* NOT src AND NOT dst */ | ||
| 498 | #define GXequiv 0x9 /* NOT src XOR dst */ | ||
| 499 | #define GXinvert 0xa /* NOT dst */ | ||
| 500 | #define GXorReverse 0xb /* src OR NOT dst */ | ||
| 501 | #define GXcopyInverted 0xc /* NOT src */ | ||
| 502 | #define GXorInverted 0xd /* NOT src OR dst */ | ||
| 503 | #define GXnand 0xe /* NOT src OR NOT dst */ | ||
| 504 | #define GXset 0xf /* 1 */ | ||
| 505 | |||
| 506 | /* LineStyle */ | ||
| 507 | |||
| 508 | #define LineSolid 0 | ||
| 509 | #define LineOnOffDash 1 | ||
| 510 | #define LineDoubleDash 2 | ||
| 511 | |||
| 512 | /* capStyle */ | ||
| 513 | |||
| 514 | #define CapNotLast 0 | ||
| 515 | #define CapButt 1 | ||
| 516 | #define CapRound 2 | ||
| 517 | #define CapProjecting 3 | ||
| 518 | |||
| 519 | /* joinStyle */ | ||
| 520 | |||
| 521 | #define JoinMiter 0 | ||
| 522 | #define JoinRound 1 | ||
| 523 | #define JoinBevel 2 | ||
| 524 | |||
| 525 | /* fillStyle */ | ||
| 526 | |||
| 527 | #define FillSolid 0 | ||
| 528 | #define FillTiled 1 | ||
| 529 | #define FillStippled 2 | ||
| 530 | #define FillOpaqueStippled 3 | ||
| 531 | |||
| 532 | /* fillRule */ | ||
| 533 | |||
| 534 | #define EvenOddRule 0 | ||
| 535 | #define WindingRule 1 | ||
| 536 | |||
| 537 | /* subwindow mode */ | ||
| 538 | |||
| 539 | #define ClipByChildren 0 | ||
| 540 | #define IncludeInferiors 1 | ||
| 541 | |||
| 542 | /* SetClipRectangles ordering */ | ||
| 543 | |||
| 544 | #define Unsorted 0 | ||
| 545 | #define YSorted 1 | ||
| 546 | #define YXSorted 2 | ||
| 547 | #define YXBanded 3 | ||
| 548 | |||
| 549 | /* CoordinateMode for drawing routines */ | ||
| 550 | |||
| 551 | #define CoordModeOrigin 0 /* relative to the origin */ | ||
| 552 | #define CoordModePrevious 1 /* relative to previous point */ | ||
| 553 | |||
| 554 | /* Polygon shapes */ | ||
| 555 | |||
| 556 | #define Complex 0 /* paths may intersect */ | ||
| 557 | #define Nonconvex 1 /* no paths intersect, but not convex */ | ||
| 558 | #define Convex 2 /* wholly convex */ | ||
| 559 | |||
| 560 | /* Arc modes for PolyFillArc */ | ||
| 561 | |||
| 562 | #define ArcChord 0 /* join endpoints of arc */ | ||
| 563 | #define ArcPieSlice 1 /* join endpoints to center of arc */ | ||
| 564 | |||
| 565 | /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into | ||
| 566 | GC.stateChanges */ | ||
| 567 | |||
| 568 | #define GCFunction (1L<<0) | ||
| 569 | #define GCPlaneMask (1L<<1) | ||
| 570 | #define GCForeground (1L<<2) | ||
| 571 | #define GCBackground (1L<<3) | ||
| 572 | #define GCLineWidth (1L<<4) | ||
| 573 | #define GCLineStyle (1L<<5) | ||
| 574 | #define GCCapStyle (1L<<6) | ||
| 575 | #define GCJoinStyle (1L<<7) | ||
| 576 | #define GCFillStyle (1L<<8) | ||
| 577 | #define GCFillRule (1L<<9) | ||
| 578 | #define GCTile (1L<<10) | ||
| 579 | #define GCStipple (1L<<11) | ||
| 580 | #define GCTileStipXOrigin (1L<<12) | ||
| 581 | #define GCTileStipYOrigin (1L<<13) | ||
| 582 | #define GCFont (1L<<14) | ||
| 583 | #define GCSubwindowMode (1L<<15) | ||
| 584 | #define GCGraphicsExposures (1L<<16) | ||
| 585 | #define GCClipXOrigin (1L<<17) | ||
| 586 | #define GCClipYOrigin (1L<<18) | ||
| 587 | #define GCClipMask (1L<<19) | ||
| 588 | #define GCDashOffset (1L<<20) | ||
| 589 | #define GCDashList (1L<<21) | ||
| 590 | #define GCArcMode (1L<<22) | ||
| 591 | |||
| 592 | #define GCLastBit 22 | ||
| 593 | /***************************************************************** | ||
| 594 | * FONTS | ||
| 595 | *****************************************************************/ | ||
| 596 | |||
| 597 | /* used in QueryFont -- draw direction */ | ||
| 598 | |||
| 599 | #define FontLeftToRight 0 | ||
| 600 | #define FontRightToLeft 1 | ||
| 601 | |||
| 602 | #define FontChange 255 | ||
| 603 | |||
| 604 | /***************************************************************** | ||
| 605 | * IMAGING | ||
| 606 | *****************************************************************/ | ||
| 607 | |||
| 608 | /* ImageFormat -- PutImage, GetImage */ | ||
| 609 | |||
| 610 | #define XYBitmap 0 /* depth 1, XYFormat */ | ||
| 611 | #define XYPixmap 1 /* depth == drawable depth */ | ||
| 612 | #define ZPixmap 2 /* depth == drawable depth */ | ||
| 613 | |||
| 614 | /***************************************************************** | ||
| 615 | * COLOR MAP STUFF | ||
| 616 | *****************************************************************/ | ||
| 617 | |||
| 618 | /* For CreateColormap */ | ||
| 619 | |||
| 620 | #define AllocNone 0 /* create map with no entries */ | ||
| 621 | #define AllocAll 1 /* allocate entire map writeable */ | ||
| 622 | |||
| 623 | |||
| 624 | /* Flags used in StoreNamedColor, StoreColors */ | ||
| 625 | |||
| 626 | #define DoRed (1<<0) | ||
| 627 | #define DoGreen (1<<1) | ||
| 628 | #define DoBlue (1<<2) | ||
| 629 | |||
| 630 | /***************************************************************** | ||
| 631 | * CURSOR STUFF | ||
| 632 | *****************************************************************/ | ||
| 633 | |||
| 634 | /* QueryBestSize Class */ | ||
| 635 | |||
| 636 | #define CursorShape 0 /* largest size that can be displayed */ | ||
| 637 | #define TileShape 1 /* size tiled fastest */ | ||
| 638 | #define StippleShape 2 /* size stippled fastest */ | ||
| 639 | |||
| 640 | /***************************************************************** | ||
| 641 | * KEYBOARD/POINTER STUFF | ||
| 642 | *****************************************************************/ | ||
| 643 | |||
| 644 | #define AutoRepeatModeOff 0 | ||
| 645 | #define AutoRepeatModeOn 1 | ||
| 646 | #define AutoRepeatModeDefault 2 | ||
| 647 | |||
| 648 | #define LedModeOff 0 | ||
| 649 | #define LedModeOn 1 | ||
| 650 | |||
| 651 | /* masks for ChangeKeyboardControl */ | ||
| 652 | |||
| 653 | #define KBKeyClickPercent (1L<<0) | ||
| 654 | #define KBBellPercent (1L<<1) | ||
| 655 | #define KBBellPitch (1L<<2) | ||
| 656 | #define KBBellDuration (1L<<3) | ||
| 657 | #define KBLed (1L<<4) | ||
| 658 | #define KBLedMode (1L<<5) | ||
| 659 | #define KBKey (1L<<6) | ||
| 660 | #define KBAutoRepeatMode (1L<<7) | ||
| 661 | |||
| 662 | #define MappingSuccess 0 | ||
| 663 | #define MappingBusy 1 | ||
| 664 | #define MappingFailed 2 | ||
| 665 | |||
| 666 | #define MappingModifier 0 | ||
| 667 | #define MappingKeyboard 1 | ||
| 668 | #define MappingPointer 2 | ||
| 669 | |||
| 670 | /***************************************************************** | ||
| 671 | * SCREEN SAVER STUFF | ||
| 672 | *****************************************************************/ | ||
| 673 | |||
| 674 | #define DontPreferBlanking 0 | ||
| 675 | #define PreferBlanking 1 | ||
| 676 | #define DefaultBlanking 2 | ||
| 677 | |||
| 678 | #define DisableScreenSaver 0 | ||
| 679 | #define DisableScreenInterval 0 | ||
| 680 | |||
| 681 | #define DontAllowExposures 0 | ||
| 682 | #define AllowExposures 1 | ||
| 683 | #define DefaultExposures 2 | ||
| 684 | |||
| 685 | /* for ForceScreenSaver */ | ||
| 686 | |||
| 687 | #define ScreenSaverReset 0 | ||
| 688 | #define ScreenSaverActive 1 | ||
| 689 | |||
| 690 | /***************************************************************** | ||
| 691 | * HOSTS AND CONNECTIONS | ||
| 692 | *****************************************************************/ | ||
| 693 | |||
| 694 | /* for ChangeHosts */ | ||
| 695 | |||
| 696 | #define HostInsert 0 | ||
| 697 | #define HostDelete 1 | ||
| 698 | |||
| 699 | /* for ChangeAccessControl */ | ||
| 700 | |||
| 701 | #define EnableAccess 1 | ||
| 702 | #define DisableAccess 0 | ||
| 703 | |||
| 704 | /* Display classes used in opening the connection | ||
| 705 | * Note that the statically allocated ones are even numbered and the | ||
| 706 | * dynamically changeable ones are odd numbered */ | ||
| 707 | |||
| 708 | #define StaticGray 0 | ||
| 709 | #define GrayScale 1 | ||
| 710 | #define StaticColor 2 | ||
| 711 | #define PseudoColor 3 | ||
| 712 | #define TrueColor 4 | ||
| 713 | #define DirectColor 5 | ||
| 714 | |||
| 715 | |||
| 716 | /* Byte order used in imageByteOrder and bitmapBitOrder */ | ||
| 717 | |||
| 718 | #define LSBFirst 0 | ||
| 719 | #define MSBFirst 1 | ||
| 720 | |||
| 721 | #endif /* X_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/X10.h b/meta/packages/xorg-lib/xorg-headers-native/X11/X10.h new file mode 100644 index 0000000000..afdb80d6bd --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/X10.h | |||
| @@ -0,0 +1,89 @@ | |||
| 1 | /* $Xorg: X10.h,v 1.4 2001/02/09 02:04:05 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | * | ||
| 4 | Copyright 1985, 1986, 1987, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | * | ||
| 26 | * The X Window System is a Trademark of The Open Group. | ||
| 27 | * | ||
| 28 | */ | ||
| 29 | |||
| 30 | |||
| 31 | /* | ||
| 32 | * X10.h - Header definition and support file for the C subroutine | ||
| 33 | * interface library for V10 support routines. | ||
| 34 | */ | ||
| 35 | #ifndef _X10_H_ | ||
| 36 | #define _X10_H_ | ||
| 37 | |||
| 38 | /* Used in XDraw and XDrawFilled */ | ||
| 39 | |||
| 40 | typedef struct { | ||
| 41 | short x, y; | ||
| 42 | unsigned short flags; | ||
| 43 | } Vertex; | ||
| 44 | |||
| 45 | /* The meanings of the flag bits. If the bit is 1 the predicate is true */ | ||
| 46 | |||
| 47 | #define VertexRelative 0x0001 /* else absolute */ | ||
| 48 | #define VertexDontDraw 0x0002 /* else draw */ | ||
| 49 | #define VertexCurved 0x0004 /* else straight */ | ||
| 50 | #define VertexStartClosed 0x0008 /* else not */ | ||
| 51 | #define VertexEndClosed 0x0010 /* else not */ | ||
| 52 | /*#define VertexDrawLastPoint 0x0020 */ /* else don't */ | ||
| 53 | |||
| 54 | /* | ||
| 55 | The VertexDrawLastPoint option has not been implemented in XDraw and | ||
| 56 | XDrawFilled so it shouldn't be defined. | ||
| 57 | */ | ||
| 58 | |||
| 59 | /* | ||
| 60 | * XAssoc - Associations used in the XAssocTable data structure. The | ||
| 61 | * associations are used as circular queue entries in the association table | ||
| 62 | * which is contains an array of circular queues (buckets). | ||
| 63 | */ | ||
| 64 | typedef struct _XAssoc { | ||
| 65 | struct _XAssoc *next; /* Next object in this bucket. */ | ||
| 66 | struct _XAssoc *prev; /* Previous obejct in this bucket. */ | ||
| 67 | Display *display; /* Display which ownes the id. */ | ||
| 68 | XID x_id; /* X Window System id. */ | ||
| 69 | char *data; /* Pointer to untyped memory. */ | ||
| 70 | } XAssoc; | ||
| 71 | |||
| 72 | /* | ||
| 73 | * XAssocTable - X Window System id to data structure pointer association | ||
| 74 | * table. An XAssocTable is a hash table whose buckets are circular | ||
| 75 | * queues of XAssoc's. The XAssocTable is constructed from an array of | ||
| 76 | * XAssoc's which are the circular queue headers (bucket headers). | ||
| 77 | * An XAssocTable consists an XAssoc pointer that points to the first | ||
| 78 | * bucket in the bucket array and an integer that indicates the number | ||
| 79 | * of buckets in the array. | ||
| 80 | */ | ||
| 81 | typedef struct { | ||
| 82 | XAssoc *buckets; /* Pointer to first bucket in bucket array.*/ | ||
| 83 | int size; /* Table size (number of buckets). */ | ||
| 84 | } XAssocTable; | ||
| 85 | |||
| 86 | XAssocTable *XCreateAssocTable(); | ||
| 87 | char *XLookUpAssoc(); | ||
| 88 | |||
| 89 | #endif /* _X10_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/XF86keysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/XF86keysym.h new file mode 100644 index 0000000000..fdb8fd6d2b --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/XF86keysym.h | |||
| @@ -0,0 +1,188 @@ | |||
| 1 | /* $XFree86: xc/include/XF86keysym.h,v 1.16 2003/02/11 02:51:10 dawes Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | * XFree86 vendor specific keysyms. | ||
| 5 | * | ||
| 6 | * The XFree86 keysym range is 0x10080001 - 0x1008FFFF. | ||
| 7 | * | ||
| 8 | * When adding new entries, the xc/lib/XKeysymDB file should also be | ||
| 9 | * updated to make the new entries visible to Xlib. | ||
| 10 | */ | ||
| 11 | |||
| 12 | /* | ||
| 13 | * ModeLock | ||
| 14 | * | ||
| 15 | * This one is old, and not really used any more since XKB offers this | ||
| 16 | * functionality. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #define XF86XK_ModeLock 0x1008FF01 /* Mode Switch Lock */ | ||
| 20 | |||
| 21 | /* | ||
| 22 | * Note, 0x1008FF02 - 0x1008FF0F are free and should be used for misc new | ||
| 23 | * keysyms that don't fit into any of the groups below. | ||
| 24 | * | ||
| 25 | * 0x1008FF64, 0x1008FF6F, 0x1008FF71, 0x1008FF83 are no longer used, | ||
| 26 | * and should be used first for new keysyms. | ||
| 27 | * | ||
| 28 | * Check in keysymdef.h for generic symbols before adding new XFree86-specific | ||
| 29 | * symbols here. | ||
| 30 | */ | ||
| 31 | |||
| 32 | |||
| 33 | /* | ||
| 34 | * Keys found on some "Internet" keyboards. | ||
| 35 | */ | ||
| 36 | #define XF86XK_Standby 0x1008FF10 | ||
| 37 | #define XF86XK_AudioLowerVolume 0x1008FF11 | ||
| 38 | #define XF86XK_AudioMute 0x1008FF12 | ||
| 39 | #define XF86XK_AudioRaiseVolume 0x1008FF13 | ||
| 40 | #define XF86XK_AudioPlay 0x1008FF14 | ||
| 41 | #define XF86XK_AudioStop 0x1008FF15 | ||
| 42 | #define XF86XK_AudioPrev 0x1008FF16 | ||
| 43 | #define XF86XK_AudioNext 0x1008FF17 | ||
| 44 | #define XF86XK_HomePage 0x1008FF18 | ||
| 45 | #define XF86XK_Mail 0x1008FF19 | ||
| 46 | #define XF86XK_Start 0x1008FF1A | ||
| 47 | #define XF86XK_Search 0x1008FF1B | ||
| 48 | #define XF86XK_AudioRecord 0x1008FF1C | ||
| 49 | |||
| 50 | /* These are sometimes found on PDA's (e.g. Palm, PocketPC or elsewhere) */ | ||
| 51 | #define XF86XK_Calculator 0x1008FF1D | ||
| 52 | #define XF86XK_Memo 0x1008FF1E | ||
| 53 | #define XF86XK_ToDoList 0x1008FF1F | ||
| 54 | #define XF86XK_Calendar 0x1008FF20 | ||
| 55 | #define XF86XK_PowerDown 0x1008FF21 | ||
| 56 | #define XF86XK_ContrastAdjust 0x1008FF22 | ||
| 57 | #define XF86XK_RockerUp 0x1008FF23 | ||
| 58 | #define XF86XK_RockerDown 0x1008FF24 | ||
| 59 | #define XF86XK_RockerEnter 0x1008FF25 | ||
| 60 | |||
| 61 | /* Some more "Internet" keyboard symbols */ | ||
| 62 | #define XF86XK_Back 0x1008FF26 | ||
| 63 | #define XF86XK_Forward 0x1008FF27 | ||
| 64 | #define XF86XK_Stop 0x1008FF28 | ||
| 65 | #define XF86XK_Refresh 0x1008FF29 | ||
| 66 | #define XF86XK_PowerOff 0x1008FF2A | ||
| 67 | #define XF86XK_WakeUp 0x1008FF2B | ||
| 68 | #define XF86XK_Eject 0x1008FF2C | ||
| 69 | #define XF86XK_ScreenSaver 0x1008FF2D | ||
| 70 | #define XF86XK_WWW 0x1008FF2E | ||
| 71 | #define XF86XK_Sleep 0x1008FF2F | ||
| 72 | #define XF86XK_Favorites 0x1008FF30 | ||
| 73 | #define XF86XK_AudioPause 0x1008FF31 | ||
| 74 | #define XF86XK_AudioMedia 0x1008FF32 | ||
| 75 | #define XF86XK_MyComputer 0x1008FF33 | ||
| 76 | #define XF86XK_VendorHome 0x1008FF34 | ||
| 77 | #define XF86XK_LightBulb 0x1008FF35 | ||
| 78 | #define XF86XK_Shop 0x1008FF36 | ||
| 79 | #define XF86XK_History 0x1008FF37 | ||
| 80 | #define XF86XK_OpenURL 0x1008FF38 | ||
| 81 | #define XF86XK_AddFavorite 0x1008FF39 | ||
| 82 | #define XF86XK_HotLinks 0x1008FF3A | ||
| 83 | #define XF86XK_BrightnessAdjust 0x1008FF3B | ||
| 84 | #define XF86XK_Finance 0x1008FF3C | ||
| 85 | #define XF86XK_Community 0x1008FF3D | ||
| 86 | #define XF86XK_AudioRewind 0x1008FF3E | ||
| 87 | #define XF86XK_XF86BackForward 0x1008FF3F | ||
| 88 | #define XF86XK_Launch0 0x1008FF40 | ||
| 89 | #define XF86XK_Launch1 0x1008FF41 | ||
| 90 | #define XF86XK_Launch2 0x1008FF42 | ||
| 91 | #define XF86XK_Launch3 0x1008FF43 | ||
| 92 | #define XF86XK_Launch4 0x1008FF44 | ||
| 93 | #define XF86XK_Launch5 0x1008FF45 | ||
| 94 | #define XF86XK_Launch6 0x1008FF46 | ||
| 95 | #define XF86XK_Launch7 0x1008FF47 | ||
| 96 | #define XF86XK_Launch8 0x1008FF48 | ||
| 97 | #define XF86XK_Launch9 0x1008FF49 | ||
| 98 | #define XF86XK_LaunchA 0x1008FF4A | ||
| 99 | #define XF86XK_LaunchB 0x1008FF4B | ||
| 100 | #define XF86XK_LaunchC 0x1008FF4C | ||
| 101 | #define XF86XK_LaunchD 0x1008FF4D | ||
| 102 | #define XF86XK_LaunchE 0x1008FF4E | ||
| 103 | #define XF86XK_LaunchF 0x1008FF4F | ||
| 104 | |||
| 105 | #define XF86XK_ApplicationLeft 0x1008FF50 | ||
| 106 | #define XF86XK_ApplicationRight 0x1008FF51 | ||
| 107 | #define XF86XK_Book 0x1008FF52 | ||
| 108 | #define XF86XK_CD 0x1008FF53 | ||
| 109 | #define XF86XK_Calculater 0x1008FF54 | ||
| 110 | #define XF86XK_Clear 0x1008FF55 | ||
| 111 | #define XF86XK_Close 0x1008FF56 | ||
| 112 | #define XF86XK_Copy 0x1008FF57 | ||
| 113 | #define XF86XK_Cut 0x1008FF58 | ||
| 114 | #define XF86XK_Display 0x1008FF59 | ||
| 115 | #define XF86XK_DOS 0x1008FF5A | ||
| 116 | #define XF86XK_Documents 0x1008FF5B | ||
| 117 | #define XF86XK_Excel 0x1008FF5C | ||
| 118 | #define XF86XK_Explorer 0x1008FF5D | ||
| 119 | #define XF86XK_Game 0x1008FF5E | ||
| 120 | #define XF86XK_Go 0x1008FF5F | ||
| 121 | #define XF86XK_iTouch 0x1008FF60 | ||
| 122 | #define XF86XK_LogOff 0x1008FF61 | ||
| 123 | #define XF86XK_Market 0x1008FF62 | ||
| 124 | #define XF86XK_Meeting 0x1008FF63 | ||
| 125 | #define XF86XK_MenuKB 0x1008FF65 | ||
| 126 | #define XF86XK_MenuPB 0x1008FF66 | ||
| 127 | #define XF86XK_MySites 0x1008FF67 | ||
| 128 | #define XF86XK_New 0x1008FF68 | ||
| 129 | #define XF86XK_News 0x1008FF69 | ||
| 130 | #define XF86XK_OfficeHome 0x1008FF6A | ||
| 131 | #define XF86XK_Open 0x1008FF6B | ||
| 132 | #define XF86XK_Option 0x1008FF6C | ||
| 133 | #define XF86XK_Paste 0x1008FF6D | ||
| 134 | #define XF86XK_Phone 0x1008FF6E | ||
| 135 | #define XF86XK_Q 0x1008FF70 | ||
| 136 | #define XF86XK_Reply 0x1008FF72 | ||
| 137 | #define XF86XK_Reload 0x1008FF73 | ||
| 138 | #define XF86XK_RotateWindows 0x1008FF74 | ||
| 139 | #define XF86XK_RotationPB 0x1008FF75 | ||
| 140 | #define XF86XK_RotationKB 0x1008FF76 | ||
| 141 | #define XF86XK_Save 0x1008FF77 | ||
| 142 | #define XF86XK_ScrollUp 0x1008FF78 | ||
| 143 | #define XF86XK_ScrollDown 0x1008FF79 | ||
| 144 | #define XF86XK_ScrollClick 0x1008FF7A | ||
| 145 | #define XF86XK_Send 0x1008FF7B | ||
| 146 | #define XF86XK_Spell 0x1008FF7C | ||
| 147 | #define XF86XK_SplitScreen 0x1008FF7D | ||
| 148 | #define XF86XK_Support 0x1008FF7E | ||
| 149 | #define XF86XK_TaskPane 0x1008FF7F | ||
| 150 | #define XF86XK_Terminal 0x1008FF80 | ||
| 151 | #define XF86XK_Tools 0x1008FF81 | ||
| 152 | #define XF86XK_Travel 0x1008FF82 | ||
| 153 | #define XF86XK_UserPB 0x1008FF84 | ||
| 154 | #define XF86XK_User1KB 0x1008FF85 | ||
| 155 | #define XF86XK_User2KB 0x1008FF86 | ||
| 156 | #define XF86XK_Video 0x1008FF87 | ||
| 157 | #define XF86XK_WheelButton 0x1008FF88 | ||
| 158 | #define XF86XK_Word 0x1008FF89 | ||
| 159 | #define XF86XK_Xfer 0x1008FF8A | ||
| 160 | #define XF86XK_ZoomIn 0x1008FF8B | ||
| 161 | #define XF86XK_ZoomOut 0x1008FF8C | ||
| 162 | |||
| 163 | #define XF86XK_Away 0x1008FF8D | ||
| 164 | #define XF86XK_Messenger 0x1008FF8E | ||
| 165 | #define XF86XK_WebCam 0x1008FF8F | ||
| 166 | #define XF86XK_MailForward 0x1008FF90 | ||
| 167 | #define XF86XK_Pictures 0x1008FF91 | ||
| 168 | #define XF86XK_Music 0x1008FF92 | ||
| 169 | |||
| 170 | /* Keys for special action keys (hot keys) */ | ||
| 171 | #define XF86XK_Switch_VT_1 0x1008FE01 | ||
| 172 | #define XF86XK_Switch_VT_2 0x1008FE02 | ||
| 173 | #define XF86XK_Switch_VT_3 0x1008FE03 | ||
| 174 | #define XF86XK_Switch_VT_4 0x1008FE04 | ||
| 175 | #define XF86XK_Switch_VT_5 0x1008FE05 | ||
| 176 | #define XF86XK_Switch_VT_6 0x1008FE06 | ||
| 177 | #define XF86XK_Switch_VT_7 0x1008FE07 | ||
| 178 | #define XF86XK_Switch_VT_8 0x1008FE08 | ||
| 179 | #define XF86XK_Switch_VT_9 0x1008FE09 | ||
| 180 | #define XF86XK_Switch_VT_10 0x1008FE0A | ||
| 181 | #define XF86XK_Switch_VT_11 0x1008FE0B | ||
| 182 | #define XF86XK_Switch_VT_12 0x1008FE0C | ||
| 183 | |||
| 184 | #define XF86XK_Ungrab 0x1008FE20 | ||
| 185 | #define XF86XK_ClearGrab 0x1008FE21 | ||
| 186 | #define XF86XK_Next_VMode 0x1008FE22 | ||
| 187 | #define XF86XK_Prev_VMode 0x1008FE23 | ||
| 188 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/XKBlib.h b/meta/packages/xorg-lib/xorg-headers-native/X11/XKBlib.h new file mode 100644 index 0000000000..6a5dc8a7c6 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/XKBlib.h | |||
| @@ -0,0 +1,1151 @@ | |||
| 1 | /* $Xorg: XKBlib.h,v 1.6 2000/08/17 19:45:03 cpqbld Exp $ */ | ||
| 2 | /************************************************************ | ||
| 3 | Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. | ||
| 4 | |||
| 5 | Permission to use, copy, modify, and distribute this | ||
| 6 | software and its documentation for any purpose and without | ||
| 7 | fee is hereby granted, provided that the above copyright | ||
| 8 | notice appear in all copies and that both that copyright | ||
| 9 | notice and this permission notice appear in supporting | ||
| 10 | documentation, and that the name of Silicon Graphics not be | ||
| 11 | used in advertising or publicity pertaining to distribution | ||
| 12 | of the software without specific prior written permission. | ||
| 13 | Silicon Graphics makes no representation about the suitability | ||
| 14 | of this software for any purpose. It is provided "as is" | ||
| 15 | without any express or implied warranty. | ||
| 16 | |||
| 17 | SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
| 18 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
| 19 | AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON | ||
| 20 | GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL | ||
| 21 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
| 22 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE | ||
| 23 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH | ||
| 24 | THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 25 | |||
| 26 | ********************************************************/ | ||
| 27 | /* $XFree86: xc/lib/X11/XKBlib.h,v 3.5 2003/04/17 02:06:31 dawes Exp $ */ | ||
| 28 | |||
| 29 | #ifndef _XKBLIB_H_ | ||
| 30 | #define _XKBLIB_H_ | ||
| 31 | |||
| 32 | #include <X11/Xlib.h> | ||
| 33 | #include <X11/extensions/XKBstr.h> | ||
| 34 | |||
| 35 | typedef struct _XkbAnyEvent { | ||
| 36 | int type; /* XkbAnyEvent */ | ||
| 37 | unsigned long serial; /* # of last req processed by server */ | ||
| 38 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 39 | Display * display; /* Display the event was read from */ | ||
| 40 | Time time; /* milliseconds */ | ||
| 41 | int xkb_type; /* XKB event minor code */ | ||
| 42 | unsigned int device; /* device ID */ | ||
| 43 | } XkbAnyEvent; | ||
| 44 | |||
| 45 | typedef struct _XkbNewKeyboardNotify { | ||
| 46 | int type; /* XkbAnyEvent */ | ||
| 47 | unsigned long serial; /* of last req processed by server */ | ||
| 48 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 49 | Display * display; /* Display the event was read from */ | ||
| 50 | Time time; /* milliseconds */ | ||
| 51 | int xkb_type; /* XkbNewKeyboardNotify */ | ||
| 52 | int device; /* device ID */ | ||
| 53 | int old_device; /* device ID of previous keyboard */ | ||
| 54 | int min_key_code; /* minimum key code */ | ||
| 55 | int max_key_code; /* maximum key code */ | ||
| 56 | int old_min_key_code;/* min key code of previous kbd */ | ||
| 57 | int old_max_key_code;/* max key code of previous kbd */ | ||
| 58 | unsigned int changed; /* changed aspects of the keyboard */ | ||
| 59 | char req_major; /* major and minor opcode of req */ | ||
| 60 | char req_minor; /* that caused change, if applicable */ | ||
| 61 | } XkbNewKeyboardNotifyEvent; | ||
| 62 | |||
| 63 | typedef struct _XkbMapNotifyEvent { | ||
| 64 | int type; /* XkbAnyEvent */ | ||
| 65 | unsigned long serial; /* of last req processed by server */ | ||
| 66 | Bool send_event; /* is this from a SendEvent request */ | ||
| 67 | Display * display; /* Display the event was read from */ | ||
| 68 | Time time; /* milliseconds */ | ||
| 69 | int xkb_type; /* XkbMapNotify */ | ||
| 70 | int device; /* device ID */ | ||
| 71 | unsigned int changed; /* fields which have been changed */ | ||
| 72 | unsigned int flags; /* reserved */ | ||
| 73 | int first_type; /* first changed key type */ | ||
| 74 | int num_types; /* number of changed key types */ | ||
| 75 | KeyCode min_key_code; | ||
| 76 | KeyCode max_key_code; | ||
| 77 | KeyCode first_key_sym; | ||
| 78 | KeyCode first_key_act; | ||
| 79 | KeyCode first_key_behavior; | ||
| 80 | KeyCode first_key_explicit; | ||
| 81 | KeyCode first_modmap_key; | ||
| 82 | KeyCode first_vmodmap_key; | ||
| 83 | int num_key_syms; | ||
| 84 | int num_key_acts; | ||
| 85 | int num_key_behaviors; | ||
| 86 | int num_key_explicit; | ||
| 87 | int num_modmap_keys; | ||
| 88 | int num_vmodmap_keys; | ||
| 89 | unsigned int vmods; /* mask of changed virtual mods */ | ||
| 90 | } XkbMapNotifyEvent; | ||
| 91 | |||
| 92 | typedef struct _XkbStateNotifyEvent { | ||
| 93 | int type; /* XkbAnyEvent */ | ||
| 94 | unsigned long serial; /* # of last req processed by server */ | ||
| 95 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 96 | Display * display; /* Display the event was read from */ | ||
| 97 | Time time; /* milliseconds */ | ||
| 98 | int xkb_type; /* XkbStateNotify */ | ||
| 99 | int device; /* device ID */ | ||
| 100 | unsigned int changed; /* mask of changed state components */ | ||
| 101 | int group; /* keyboard group */ | ||
| 102 | int base_group; /* base keyboard group */ | ||
| 103 | int latched_group; /* latched keyboard group */ | ||
| 104 | int locked_group; /* locked keyboard group */ | ||
| 105 | unsigned int mods; /* modifier state */ | ||
| 106 | unsigned int base_mods; /* base modifier state */ | ||
| 107 | unsigned int latched_mods; /* latched modifiers */ | ||
| 108 | unsigned int locked_mods; /* locked modifiers */ | ||
| 109 | int compat_state; /* compatibility state */ | ||
| 110 | unsigned char grab_mods; /* mods used for grabs */ | ||
| 111 | unsigned char compat_grab_mods;/* grab mods for non-XKB clients */ | ||
| 112 | unsigned char lookup_mods; /* mods sent to clients */ | ||
| 113 | unsigned char compat_lookup_mods; /* mods sent to non-XKB clients */ | ||
| 114 | int ptr_buttons; /* pointer button state */ | ||
| 115 | KeyCode keycode; /* keycode that caused the change */ | ||
| 116 | char event_type; /* KeyPress or KeyRelease */ | ||
| 117 | char req_major; /* Major opcode of request */ | ||
| 118 | char req_minor; /* Minor opcode of request */ | ||
| 119 | } XkbStateNotifyEvent; | ||
| 120 | |||
| 121 | typedef struct _XkbControlsNotify { | ||
| 122 | int type; /* XkbAnyEvent */ | ||
| 123 | unsigned long serial; /* of last req processed by server */ | ||
| 124 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 125 | Display * display; /* Display the event was read from */ | ||
| 126 | Time time; /* milliseconds */ | ||
| 127 | int xkb_type; /* XkbControlsNotify */ | ||
| 128 | int device; /* device ID */ | ||
| 129 | unsigned int changed_ctrls; /* controls with changed sub-values */ | ||
| 130 | unsigned int enabled_ctrls; /* controls currently enabled */ | ||
| 131 | unsigned int enabled_ctrl_changes;/* controls just {en,dis}abled */ | ||
| 132 | int num_groups; /* total groups on keyboard */ | ||
| 133 | KeyCode keycode; /* key that caused change or 0 */ | ||
| 134 | char event_type; /* type of event that caused change */ | ||
| 135 | char req_major; /* if keycode==0, major and minor */ | ||
| 136 | char req_minor; /* opcode of req that caused change */ | ||
| 137 | } XkbControlsNotifyEvent; | ||
| 138 | |||
| 139 | typedef struct _XkbIndicatorNotify { | ||
| 140 | int type; /* XkbAnyEvent */ | ||
| 141 | unsigned long serial; /* of last req processed by server */ | ||
| 142 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 143 | Display * display; /* Display the event was read from */ | ||
| 144 | Time time; /* milliseconds */ | ||
| 145 | int xkb_type; /* XkbIndicatorNotify */ | ||
| 146 | int device; /* device ID */ | ||
| 147 | unsigned int changed; /* indicators with new state or map */ | ||
| 148 | unsigned int state; /* current state of all indicators */ | ||
| 149 | } XkbIndicatorNotifyEvent; | ||
| 150 | |||
| 151 | typedef struct _XkbNamesNotify { | ||
| 152 | int type; /* XkbAnyEvent */ | ||
| 153 | unsigned long serial; /* of last req processed by server */ | ||
| 154 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 155 | Display * display; /* Display the event was read from */ | ||
| 156 | Time time; /* milliseconds */ | ||
| 157 | int xkb_type; /* XkbNamesNotify */ | ||
| 158 | int device; /* device ID */ | ||
| 159 | unsigned int changed; /* names that have changed */ | ||
| 160 | int first_type; /* first key type with new name */ | ||
| 161 | int num_types; /* number of key types with new names */ | ||
| 162 | int first_lvl; /* first key type new new level names */ | ||
| 163 | int num_lvls; /* # of key types w/new level names */ | ||
| 164 | int num_aliases; /* total number of key aliases*/ | ||
| 165 | int num_radio_groups;/* total number of radio groups */ | ||
| 166 | unsigned int changed_vmods; /* virtual modifiers with new names */ | ||
| 167 | unsigned int changed_groups; /* groups with new names */ | ||
| 168 | unsigned int changed_indicators;/* indicators with new names */ | ||
| 169 | int first_key; /* first key with new name */ | ||
| 170 | int num_keys; /* number of keys with new names */ | ||
| 171 | } XkbNamesNotifyEvent; | ||
| 172 | |||
| 173 | typedef struct _XkbCompatMapNotify { | ||
| 174 | int type; /* XkbAnyEvent */ | ||
| 175 | unsigned long serial; /* of last req processed by server */ | ||
| 176 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 177 | Display * display; /* Display the event was read from */ | ||
| 178 | Time time; /* milliseconds */ | ||
| 179 | int xkb_type; /* XkbCompatMapNotify */ | ||
| 180 | int device; /* device ID */ | ||
| 181 | unsigned int changed_groups; /* groups with new compat maps */ | ||
| 182 | int first_si; /* first new symbol interp */ | ||
| 183 | int num_si; /* number of new symbol interps */ | ||
| 184 | int num_total_si; /* total # of symbol interps */ | ||
| 185 | } XkbCompatMapNotifyEvent; | ||
| 186 | |||
| 187 | typedef struct _XkbBellNotify { | ||
| 188 | int type; /* XkbAnyEvent */ | ||
| 189 | unsigned long serial; /* of last req processed by server */ | ||
| 190 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 191 | Display * display; /* Display the event was read from */ | ||
| 192 | Time time; /* milliseconds */ | ||
| 193 | int xkb_type; /* XkbBellNotify */ | ||
| 194 | int device; /* device ID */ | ||
| 195 | int percent; /* requested volume as a % of maximum */ | ||
| 196 | int pitch; /* requested pitch in Hz */ | ||
| 197 | int duration; /* requested duration in useconds */ | ||
| 198 | int bell_class; /* (input extension) feedback class */ | ||
| 199 | int bell_id; /* (input extension) ID of feedback */ | ||
| 200 | Atom name; /* "name" of requested bell */ | ||
| 201 | Window window; /* window associated with event */ | ||
| 202 | Bool event_only; /* "event only" requested */ | ||
| 203 | } XkbBellNotifyEvent; | ||
| 204 | |||
| 205 | typedef struct _XkbActionMessage { | ||
| 206 | int type; /* XkbAnyEvent */ | ||
| 207 | unsigned long serial; /* of last req processed by server */ | ||
| 208 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 209 | Display * display; /* Display the event was read from */ | ||
| 210 | Time time; /* milliseconds */ | ||
| 211 | int xkb_type; /* XkbActionMessage */ | ||
| 212 | int device; /* device ID */ | ||
| 213 | KeyCode keycode; /* key that generated the event */ | ||
| 214 | Bool press; /* true if act caused by key press */ | ||
| 215 | Bool key_event_follows;/* true if key event also generated */ | ||
| 216 | int group; /* effective group */ | ||
| 217 | unsigned int mods; /* effective mods */ | ||
| 218 | char message[XkbActionMessageLength+1]; | ||
| 219 | /* message -- leave space for NUL */ | ||
| 220 | } XkbActionMessageEvent; | ||
| 221 | |||
| 222 | typedef struct _XkbAccessXNotify { | ||
| 223 | int type; /* XkbAnyEvent */ | ||
| 224 | unsigned long serial; /* of last req processed by server */ | ||
| 225 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 226 | Display * display; /* Display the event was read from */ | ||
| 227 | Time time; /* milliseconds */ | ||
| 228 | int xkb_type; /* XkbAccessXNotify */ | ||
| 229 | int device; /* device ID */ | ||
| 230 | int detail; /* XkbAXN_* */ | ||
| 231 | int keycode; /* key of event */ | ||
| 232 | int sk_delay; /* current slow keys delay */ | ||
| 233 | int debounce_delay; /* current debounce delay */ | ||
| 234 | } XkbAccessXNotifyEvent; | ||
| 235 | |||
| 236 | typedef struct _XkbExtensionDeviceNotify { | ||
| 237 | int type; /* XkbAnyEvent */ | ||
| 238 | unsigned long serial; /* of last req processed by server */ | ||
| 239 | Bool send_event; /* is this from a SendEvent request? */ | ||
| 240 | Display * display; /* Display the event was read from */ | ||
| 241 | Time time; /* milliseconds */ | ||
| 242 | int xkb_type; /* XkbExtensionDeviceNotify */ | ||
| 243 | int device; /* device ID */ | ||
| 244 | unsigned int reason; /* reason for the event */ | ||
| 245 | unsigned int supported; /* mask of supported features */ | ||
| 246 | unsigned int unsupported; /* mask of unsupported features */ | ||
| 247 | /* that some app tried to use */ | ||
| 248 | int first_btn; /* first button that changed */ | ||
| 249 | int num_btns; /* range of buttons changed */ | ||
| 250 | unsigned int leds_defined; /* indicators with names or maps */ | ||
| 251 | unsigned int led_state; /* current state of the indicators */ | ||
| 252 | int led_class; /* feedback class for led changes */ | ||
| 253 | int led_id; /* feedback id for led changes */ | ||
| 254 | } XkbExtensionDeviceNotifyEvent; | ||
| 255 | |||
| 256 | typedef union _XkbEvent { | ||
| 257 | int type; | ||
| 258 | XkbAnyEvent any; | ||
| 259 | XkbNewKeyboardNotifyEvent new_kbd; | ||
| 260 | XkbMapNotifyEvent map; | ||
| 261 | XkbStateNotifyEvent state; | ||
| 262 | XkbControlsNotifyEvent ctrls; | ||
| 263 | XkbIndicatorNotifyEvent indicators; | ||
| 264 | XkbNamesNotifyEvent names; | ||
| 265 | XkbCompatMapNotifyEvent compat; | ||
| 266 | XkbBellNotifyEvent bell; | ||
| 267 | XkbActionMessageEvent message; | ||
| 268 | XkbAccessXNotifyEvent accessx; | ||
| 269 | XkbExtensionDeviceNotifyEvent device; | ||
| 270 | XEvent core; | ||
| 271 | } XkbEvent; | ||
| 272 | |||
| 273 | typedef struct _XkbKbdDpyState XkbKbdDpyStateRec,*XkbKbdDpyStatePtr; | ||
| 274 | |||
| 275 | /* XkbOpenDisplay error codes */ | ||
| 276 | #define XkbOD_Success 0 | ||
| 277 | #define XkbOD_BadLibraryVersion 1 | ||
| 278 | #define XkbOD_ConnectionRefused 2 | ||
| 279 | #define XkbOD_NonXkbServer 3 | ||
| 280 | #define XkbOD_BadServerVersion 4 | ||
| 281 | |||
| 282 | /* Values for XlibFlags */ | ||
| 283 | #define XkbLC_ForceLatin1Lookup (1<<0) | ||
| 284 | #define XkbLC_ConsumeLookupMods (1<<1) | ||
| 285 | #define XkbLC_AlwaysConsumeShiftAndLock (1<<2) | ||
| 286 | #define XkbLC_IgnoreNewKeyboards (1<<3) | ||
| 287 | #define XkbLC_ControlFallback (1<<4) | ||
| 288 | #define XkbLC_ConsumeKeysOnComposeFail (1<<29) | ||
| 289 | #define XkbLC_ComposeLED (1<<30) | ||
| 290 | #define XkbLC_BeepOnComposeFail (1<<31) | ||
| 291 | |||
| 292 | #define XkbLC_AllComposeControls (0xc0000000) | ||
| 293 | #define XkbLC_AllControls (0xc000001f) | ||
| 294 | |||
| 295 | _XFUNCPROTOBEGIN | ||
| 296 | |||
| 297 | extern Bool XkbIgnoreExtension( | ||
| 298 | Bool /* ignore */ | ||
| 299 | ); | ||
| 300 | |||
| 301 | extern Display *XkbOpenDisplay( | ||
| 302 | char * /* name */, | ||
| 303 | int * /* ev_rtrn */, | ||
| 304 | int * /* err_rtrn */, | ||
| 305 | int * /* major_rtrn */, | ||
| 306 | int * /* minor_rtrn */, | ||
| 307 | int * /* reason */ | ||
| 308 | ); | ||
| 309 | |||
| 310 | extern Bool XkbQueryExtension( | ||
| 311 | Display * /* dpy */, | ||
| 312 | int * /* opcodeReturn */, | ||
| 313 | int * /* eventBaseReturn */, | ||
| 314 | int * /* errorBaseReturn */, | ||
| 315 | int * /* majorRtrn */, | ||
| 316 | int * /* minorRtrn */ | ||
| 317 | ); | ||
| 318 | |||
| 319 | extern Bool XkbUseExtension( | ||
| 320 | Display * /* dpy */, | ||
| 321 | int * /* major_rtrn */, | ||
| 322 | int * /* minor_rtrn */ | ||
| 323 | ); | ||
| 324 | |||
| 325 | extern Bool XkbLibraryVersion( | ||
| 326 | int * /* libMajorRtrn */, | ||
| 327 | int * /* libMinorRtrn */ | ||
| 328 | ); | ||
| 329 | |||
| 330 | extern unsigned int XkbSetXlibControls( | ||
| 331 | Display* /* dpy */, | ||
| 332 | unsigned int /* affect */, | ||
| 333 | unsigned int /* values */ | ||
| 334 | ); | ||
| 335 | |||
| 336 | extern unsigned int XkbGetXlibControls( | ||
| 337 | Display* /* dpy */ | ||
| 338 | ); | ||
| 339 | |||
| 340 | extern unsigned int XkbXlibControlsImplemented(void); | ||
| 341 | |||
| 342 | typedef Atom (*XkbInternAtomFunc)( | ||
| 343 | Display * /* dpy */, | ||
| 344 | _Xconst char * /* name */, | ||
| 345 | Bool /* only_if_exists */ | ||
| 346 | ); | ||
| 347 | |||
| 348 | typedef char * (*XkbGetAtomNameFunc)( | ||
| 349 | Display * /* dpy */, | ||
| 350 | Atom /* atom */ | ||
| 351 | ); | ||
| 352 | |||
| 353 | extern void XkbSetAtomFuncs( | ||
| 354 | XkbInternAtomFunc /* getAtom */, | ||
| 355 | XkbGetAtomNameFunc /* getName */ | ||
| 356 | ); | ||
| 357 | |||
| 358 | extern KeySym XkbKeycodeToKeysym( | ||
| 359 | Display * /* dpy */, | ||
| 360 | #if NeedWidePrototypes | ||
| 361 | unsigned int /* kc */, | ||
| 362 | #else | ||
| 363 | KeyCode /* kc */, | ||
| 364 | #endif | ||
| 365 | int /* group */, | ||
| 366 | int /* level */ | ||
| 367 | ); | ||
| 368 | |||
| 369 | extern unsigned int XkbKeysymToModifiers( | ||
| 370 | Display * /* dpy */, | ||
| 371 | KeySym /* ks */ | ||
| 372 | ); | ||
| 373 | |||
| 374 | extern Bool XkbLookupKeySym( | ||
| 375 | Display * /* dpy */, | ||
| 376 | KeyCode /* keycode */, | ||
| 377 | unsigned int /* modifiers */, | ||
| 378 | unsigned int * /* modifiers_return */, | ||
| 379 | KeySym * /* keysym_return */ | ||
| 380 | ); | ||
| 381 | |||
| 382 | extern int XkbLookupKeyBinding( | ||
| 383 | Display * /* dpy */, | ||
| 384 | KeySym /* sym_rtrn */, | ||
| 385 | unsigned int /* mods */, | ||
| 386 | char * /* buffer */, | ||
| 387 | int /* nbytes */, | ||
| 388 | int * /* extra_rtrn */ | ||
| 389 | ); | ||
| 390 | |||
| 391 | extern Bool XkbTranslateKeyCode( | ||
| 392 | XkbDescPtr /* xkb */, | ||
| 393 | KeyCode /* keycode */, | ||
| 394 | unsigned int /* modifiers */, | ||
| 395 | unsigned int * /* modifiers_return */, | ||
| 396 | KeySym * /* keysym_return */ | ||
| 397 | ); | ||
| 398 | |||
| 399 | extern int XkbTranslateKeySym( | ||
| 400 | Display * /* dpy */, | ||
| 401 | register KeySym * /* sym_return */, | ||
| 402 | unsigned int /* modifiers */, | ||
| 403 | char * /* buffer */, | ||
| 404 | int /* nbytes */, | ||
| 405 | int * /* extra_rtrn */ | ||
| 406 | ); | ||
| 407 | |||
| 408 | extern Bool XkbSetAutoRepeatRate( | ||
| 409 | Display * /* dpy */, | ||
| 410 | unsigned int /* deviceSpec */, | ||
| 411 | unsigned int /* delay */, | ||
| 412 | unsigned int /* interval */ | ||
| 413 | ); | ||
| 414 | |||
| 415 | extern Bool XkbGetAutoRepeatRate( | ||
| 416 | Display * /* dpy */, | ||
| 417 | unsigned int /* deviceSpec */, | ||
| 418 | unsigned int * /* delayRtrn */, | ||
| 419 | unsigned int * /* intervalRtrn */ | ||
| 420 | ); | ||
| 421 | |||
| 422 | extern Bool XkbChangeEnabledControls( | ||
| 423 | Display * /* dpy */, | ||
| 424 | unsigned int /* deviceSpec */, | ||
| 425 | unsigned int /* affect */, | ||
| 426 | unsigned int /* values */ | ||
| 427 | ); | ||
| 428 | |||
| 429 | extern Bool XkbDeviceBell( | ||
| 430 | Display * /* dpy */, | ||
| 431 | Window /* win */, | ||
| 432 | int /* deviceSpec */, | ||
| 433 | int /* bellClass */, | ||
| 434 | int /* bellID */, | ||
| 435 | int /* percent */, | ||
| 436 | Atom /* name */ | ||
| 437 | ); | ||
| 438 | |||
| 439 | extern Bool XkbForceDeviceBell( | ||
| 440 | Display * /* dpy */, | ||
| 441 | int /* deviceSpec */, | ||
| 442 | int /* bellClass */, | ||
| 443 | int /* bellID */, | ||
| 444 | int /* percent */ | ||
| 445 | ); | ||
| 446 | |||
| 447 | extern Bool XkbDeviceBellEvent( | ||
| 448 | Display * /* dpy */, | ||
| 449 | Window /* win */, | ||
| 450 | int /* deviceSpec */, | ||
| 451 | int /* bellClass */, | ||
| 452 | int /* bellID */, | ||
| 453 | int /* percent */, | ||
| 454 | Atom /* name */ | ||
| 455 | ); | ||
| 456 | |||
| 457 | extern Bool XkbBell( | ||
| 458 | Display * /* dpy */, | ||
| 459 | Window /* win */, | ||
| 460 | int /* percent */, | ||
| 461 | Atom /* name */ | ||
| 462 | ); | ||
| 463 | |||
| 464 | extern Bool XkbForceBell( | ||
| 465 | Display * /* dpy */, | ||
| 466 | int /* percent */ | ||
| 467 | ); | ||
| 468 | |||
| 469 | extern Bool XkbBellEvent( | ||
| 470 | Display * /* dpy */, | ||
| 471 | Window /* win */, | ||
| 472 | int /* percent */, | ||
| 473 | Atom /* name */ | ||
| 474 | ); | ||
| 475 | |||
| 476 | extern Bool XkbSelectEvents( | ||
| 477 | Display * /* dpy */, | ||
| 478 | unsigned int /* deviceID */, | ||
| 479 | unsigned int /* affect */, | ||
| 480 | unsigned int /* values */ | ||
| 481 | ); | ||
| 482 | |||
| 483 | extern Bool XkbSelectEventDetails( | ||
| 484 | Display * /* dpy */, | ||
| 485 | unsigned int /* deviceID */, | ||
| 486 | unsigned int /* eventType */, | ||
| 487 | unsigned long /* affect */, | ||
| 488 | unsigned long /* details */ | ||
| 489 | ); | ||
| 490 | |||
| 491 | extern void XkbNoteMapChanges( | ||
| 492 | XkbMapChangesPtr /* old */, | ||
| 493 | XkbMapNotifyEvent * /* new */, | ||
| 494 | unsigned int /* wanted */ | ||
| 495 | ); | ||
| 496 | |||
| 497 | extern void XkbNoteNameChanges( | ||
| 498 | XkbNameChangesPtr /* old */, | ||
| 499 | XkbNamesNotifyEvent * /* new */, | ||
| 500 | unsigned int /* wanted */ | ||
| 501 | ); | ||
| 502 | |||
| 503 | extern Status XkbGetIndicatorState( | ||
| 504 | Display * /* dpy */, | ||
| 505 | unsigned int /* deviceSpec */, | ||
| 506 | unsigned int * /* pStateRtrn */ | ||
| 507 | ); | ||
| 508 | |||
| 509 | extern Status XkbGetDeviceIndicatorState( | ||
| 510 | Display * /* dpy */, | ||
| 511 | unsigned int /* deviceSpec */, | ||
| 512 | unsigned int /* ledClass */, | ||
| 513 | unsigned int /* ledID */, | ||
| 514 | unsigned int * /* pStateRtrn */ | ||
| 515 | ); | ||
| 516 | |||
| 517 | extern Status XkbGetIndicatorMap( | ||
| 518 | Display * /* dpy */, | ||
| 519 | unsigned long /* which */, | ||
| 520 | XkbDescPtr /* desc */ | ||
| 521 | ); | ||
| 522 | |||
| 523 | extern Bool XkbSetIndicatorMap( | ||
| 524 | Display * /* dpy */, | ||
| 525 | unsigned long /* which */, | ||
| 526 | XkbDescPtr /* desc */ | ||
| 527 | ); | ||
| 528 | |||
| 529 | #define XkbNoteIndicatorMapChanges(o,n,w) \ | ||
| 530 | ((o)->map_changes|=((n)->map_changes&(w))) | ||
| 531 | #define XkbNoteIndicatorStateChanges(o,n,w)\ | ||
| 532 | ((o)->state_changes|=((n)->state_changes&(w))) | ||
| 533 | #define XkbGetIndicatorMapChanges(d,x,c) \ | ||
| 534 | (XkbGetIndicatorMap((d),(c)->map_changes,x) | ||
| 535 | #define XkbChangeIndicatorMaps(d,x,c) \ | ||
| 536 | (XkbSetIndicatorMap((d),(c)->map_changes,x)) | ||
| 537 | |||
| 538 | extern Bool XkbGetNamedIndicator( | ||
| 539 | Display * /* dpy */, | ||
| 540 | Atom /* name */, | ||
| 541 | int * /* pNdxRtrn */, | ||
| 542 | Bool * /* pStateRtrn */, | ||
| 543 | XkbIndicatorMapPtr /* pMapRtrn */, | ||
| 544 | Bool * /* pRealRtrn */ | ||
| 545 | ); | ||
| 546 | |||
| 547 | extern Bool XkbGetNamedDeviceIndicator( | ||
| 548 | Display * /* dpy */, | ||
| 549 | unsigned int /* deviceSpec */, | ||
| 550 | unsigned int /* ledClass */, | ||
| 551 | unsigned int /* ledID */, | ||
| 552 | Atom /* name */, | ||
| 553 | int * /* pNdxRtrn */, | ||
| 554 | Bool * /* pStateRtrn */, | ||
| 555 | XkbIndicatorMapPtr /* pMapRtrn */, | ||
| 556 | Bool * /* pRealRtrn */ | ||
| 557 | ); | ||
| 558 | |||
| 559 | extern Bool XkbSetNamedIndicator( | ||
| 560 | Display * /* dpy */, | ||
| 561 | Atom /* name */, | ||
| 562 | Bool /* changeState */, | ||
| 563 | Bool /* state */, | ||
| 564 | Bool /* createNewMap */, | ||
| 565 | XkbIndicatorMapPtr /* pMap */ | ||
| 566 | ); | ||
| 567 | |||
| 568 | extern Bool XkbSetNamedDeviceIndicator( | ||
| 569 | Display * /* dpy */, | ||
| 570 | unsigned int /* deviceSpec */, | ||
| 571 | unsigned int /* ledClass */, | ||
| 572 | unsigned int /* ledID */, | ||
| 573 | Atom /* name */, | ||
| 574 | Bool /* changeState */, | ||
| 575 | Bool /* state */, | ||
| 576 | Bool /* createNewMap */, | ||
| 577 | XkbIndicatorMapPtr /* pMap */ | ||
| 578 | ); | ||
| 579 | |||
| 580 | extern Bool XkbLockModifiers( | ||
| 581 | Display * /* dpy */, | ||
| 582 | unsigned int /* deviceSpec */, | ||
| 583 | unsigned int /* affect */, | ||
| 584 | unsigned int /* values */ | ||
| 585 | ); | ||
| 586 | |||
| 587 | extern Bool XkbLatchModifiers( | ||
| 588 | Display * /* dpy */, | ||
| 589 | unsigned int /* deviceSpec */, | ||
| 590 | unsigned int /* affect */, | ||
| 591 | unsigned int /* values */ | ||
| 592 | ); | ||
| 593 | |||
| 594 | extern Bool XkbLockGroup( | ||
| 595 | Display * /* dpy */, | ||
| 596 | unsigned int /* deviceSpec */, | ||
| 597 | unsigned int /* group */ | ||
| 598 | ); | ||
| 599 | |||
| 600 | extern Bool XkbLatchGroup( | ||
| 601 | Display * /* dpy */, | ||
| 602 | unsigned int /* deviceSpec */, | ||
| 603 | unsigned int /* group */ | ||
| 604 | ); | ||
| 605 | |||
| 606 | extern Bool XkbSetServerInternalMods( | ||
| 607 | Display * /* dpy */, | ||
| 608 | unsigned int /* deviceSpec */, | ||
| 609 | unsigned int /* affectReal */, | ||
| 610 | unsigned int /* realValues */, | ||
| 611 | unsigned int /* affectVirtual */, | ||
| 612 | unsigned int /* virtualValues */ | ||
| 613 | ); | ||
| 614 | |||
| 615 | extern Bool XkbSetIgnoreLockMods( | ||
| 616 | Display * /* dpy */, | ||
| 617 | unsigned int /* deviceSpec */, | ||
| 618 | unsigned int /* affectReal */, | ||
| 619 | unsigned int /* realValues */, | ||
| 620 | unsigned int /* affectVirtual */, | ||
| 621 | unsigned int /* virtualValues */ | ||
| 622 | ); | ||
| 623 | |||
| 624 | |||
| 625 | extern Bool XkbVirtualModsToReal( | ||
| 626 | XkbDescPtr /* xkb */, | ||
| 627 | unsigned int /* virtual_mask */, | ||
| 628 | unsigned int * /* mask_rtrn */ | ||
| 629 | ); | ||
| 630 | |||
| 631 | extern Bool XkbComputeEffectiveMap( | ||
| 632 | XkbDescPtr /* xkb */, | ||
| 633 | XkbKeyTypePtr /* type */, | ||
| 634 | unsigned char * /* map_rtrn */ | ||
| 635 | ); | ||
| 636 | |||
| 637 | extern Status XkbInitCanonicalKeyTypes( | ||
| 638 | XkbDescPtr /* xkb */, | ||
| 639 | unsigned int /* which */, | ||
| 640 | int /* keypadVMod */ | ||
| 641 | ); | ||
| 642 | |||
| 643 | extern XkbDescPtr XkbAllocKeyboard( | ||
| 644 | void | ||
| 645 | ); | ||
| 646 | |||
| 647 | extern void XkbFreeKeyboard( | ||
| 648 | XkbDescPtr /* xkb */, | ||
| 649 | unsigned int /* which */, | ||
| 650 | Bool /* freeDesc */ | ||
| 651 | ); | ||
| 652 | |||
| 653 | extern Status XkbAllocClientMap( | ||
| 654 | XkbDescPtr /* xkb */, | ||
| 655 | unsigned int /* which */, | ||
| 656 | unsigned int /* nTypes */ | ||
| 657 | ); | ||
| 658 | |||
| 659 | extern Status XkbAllocServerMap( | ||
| 660 | XkbDescPtr /* xkb */, | ||
| 661 | unsigned int /* which */, | ||
| 662 | unsigned int /* nActions */ | ||
| 663 | ); | ||
| 664 | |||
| 665 | extern void XkbFreeClientMap( | ||
| 666 | XkbDescPtr /* xkb */, | ||
| 667 | unsigned int /* what */, | ||
| 668 | Bool /* freeMap */ | ||
| 669 | ); | ||
| 670 | |||
| 671 | extern void XkbFreeServerMap( | ||
| 672 | XkbDescPtr /* xkb */, | ||
| 673 | unsigned int /* what */, | ||
| 674 | Bool /* freeMap */ | ||
| 675 | ); | ||
| 676 | |||
| 677 | extern XkbKeyTypePtr XkbAddKeyType( | ||
| 678 | XkbDescPtr /* xkb */, | ||
| 679 | Atom /* name */, | ||
| 680 | int /* map_count */, | ||
| 681 | Bool /* want_preserve */, | ||
| 682 | int /* num_lvls */ | ||
| 683 | ); | ||
| 684 | |||
| 685 | extern Status XkbAllocIndicatorMaps( | ||
| 686 | XkbDescPtr /* xkb */ | ||
| 687 | ); | ||
| 688 | |||
| 689 | extern void XkbFreeIndicatorMaps( | ||
| 690 | XkbDescPtr /* xkb */ | ||
| 691 | ); | ||
| 692 | |||
| 693 | extern XkbDescPtr XkbGetMap( | ||
| 694 | Display * /* dpy */, | ||
| 695 | unsigned int /* which */, | ||
| 696 | unsigned int /* deviceSpec */ | ||
| 697 | ); | ||
| 698 | |||
| 699 | extern Status XkbGetUpdatedMap( | ||
| 700 | Display * /* dpy */, | ||
| 701 | unsigned int /* which */, | ||
| 702 | XkbDescPtr /* desc */ | ||
| 703 | ); | ||
| 704 | |||
| 705 | extern Status XkbGetMapChanges( | ||
| 706 | Display * /* dpy */, | ||
| 707 | XkbDescPtr /* xkb */, | ||
| 708 | XkbMapChangesPtr /* changes */ | ||
| 709 | ); | ||
| 710 | |||
| 711 | |||
| 712 | extern Status XkbRefreshKeyboardMapping( | ||
| 713 | XkbMapNotifyEvent * /* event */ | ||
| 714 | ); | ||
| 715 | |||
| 716 | extern Status XkbGetKeyTypes( | ||
| 717 | Display * /* dpy */, | ||
| 718 | unsigned int /* first */, | ||
| 719 | unsigned int /* num */, | ||
| 720 | XkbDescPtr /* xkb */ | ||
| 721 | ); | ||
| 722 | |||
| 723 | extern Status XkbGetKeySyms( | ||
| 724 | Display * /* dpy */, | ||
| 725 | unsigned int /* first */, | ||
| 726 | unsigned int /* num */, | ||
| 727 | XkbDescPtr /* xkb */ | ||
| 728 | ); | ||
| 729 | |||
| 730 | extern Status XkbGetKeyActions( | ||
| 731 | Display * /* dpy */, | ||
| 732 | unsigned int /* first */, | ||
| 733 | unsigned int /* num */, | ||
| 734 | XkbDescPtr /* xkb */ | ||
| 735 | ); | ||
| 736 | |||
| 737 | extern Status XkbGetKeyBehaviors( | ||
| 738 | Display * /* dpy */, | ||
| 739 | unsigned int /* firstKey */, | ||
| 740 | unsigned int /* nKeys */, | ||
| 741 | XkbDescPtr /* desc */ | ||
| 742 | ); | ||
| 743 | |||
| 744 | extern Status XkbGetVirtualMods( | ||
| 745 | Display * /* dpy */, | ||
| 746 | unsigned int /* which */, | ||
| 747 | XkbDescPtr /* desc */ | ||
| 748 | ); | ||
| 749 | |||
| 750 | extern Status XkbGetKeyExplicitComponents( | ||
| 751 | Display * /* dpy */, | ||
| 752 | unsigned int /* firstKey */, | ||
| 753 | unsigned int /* nKeys */, | ||
| 754 | XkbDescPtr /* desc */ | ||
| 755 | ); | ||
| 756 | |||
| 757 | extern Status XkbGetKeyModifierMap( | ||
| 758 | Display * /* dpy */, | ||
| 759 | unsigned int /* firstKey */, | ||
| 760 | unsigned int /* nKeys */, | ||
| 761 | XkbDescPtr /* desc */ | ||
| 762 | ); | ||
| 763 | |||
| 764 | extern Status XkbGetKeyVirtualModMap( | ||
| 765 | Display * /* dpy */, | ||
| 766 | unsigned int /* first */, | ||
| 767 | unsigned int /* num */, | ||
| 768 | XkbDescPtr /* xkb */ | ||
| 769 | ); | ||
| 770 | |||
| 771 | extern Status XkbAllocControls( | ||
| 772 | XkbDescPtr /* xkb */, | ||
| 773 | unsigned int /* which*/ | ||
| 774 | ); | ||
| 775 | |||
| 776 | extern void XkbFreeControls( | ||
| 777 | XkbDescPtr /* xkb */, | ||
| 778 | unsigned int /* which */, | ||
| 779 | Bool /* freeMap */ | ||
| 780 | ); | ||
| 781 | |||
| 782 | extern Status XkbGetControls( | ||
| 783 | Display * /* dpy */, | ||
| 784 | unsigned long /* which */, | ||
| 785 | XkbDescPtr /* desc */ | ||
| 786 | ); | ||
| 787 | |||
| 788 | extern Bool XkbSetControls( | ||
| 789 | Display * /* dpy */, | ||
| 790 | unsigned long /* which */, | ||
| 791 | XkbDescPtr /* desc */ | ||
| 792 | ); | ||
| 793 | |||
| 794 | extern void XkbNoteControlsChanges( | ||
| 795 | XkbControlsChangesPtr /* old */, | ||
| 796 | XkbControlsNotifyEvent * /* new */, | ||
| 797 | unsigned int /* wanted */ | ||
| 798 | ); | ||
| 799 | |||
| 800 | #define XkbGetControlsChanges(d,x,c) XkbGetControls(d,(c)->changed_ctrls,x) | ||
| 801 | #define XkbChangeControls(d,x,c) XkbSetControls(d,(c)->changed_ctrls,x) | ||
| 802 | |||
| 803 | extern Status XkbAllocCompatMap( | ||
| 804 | XkbDescPtr /* xkb */, | ||
| 805 | unsigned int /* which */, | ||
| 806 | unsigned int /* nInterpret */ | ||
| 807 | ); | ||
| 808 | |||
| 809 | extern void XkbFreeCompatMap( | ||
| 810 | XkbDescPtr /* xkb */, | ||
| 811 | unsigned int /* which */, | ||
| 812 | Bool /* freeMap */ | ||
| 813 | ); | ||
| 814 | |||
| 815 | extern Status XkbGetCompatMap( | ||
| 816 | Display * /* dpy */, | ||
| 817 | unsigned int /* which */, | ||
| 818 | XkbDescPtr /* xkb */ | ||
| 819 | ); | ||
| 820 | |||
| 821 | extern Bool XkbSetCompatMap( | ||
| 822 | Display * /* dpy */, | ||
| 823 | unsigned int /* which */, | ||
| 824 | XkbDescPtr /* xkb */, | ||
| 825 | Bool /* updateActions */ | ||
| 826 | ); | ||
| 827 | |||
| 828 | extern XkbSymInterpretPtr XkbAddSymInterpret( | ||
| 829 | XkbDescPtr /* xkb */, | ||
| 830 | XkbSymInterpretPtr /* si */, | ||
| 831 | Bool /* updateMap */, | ||
| 832 | XkbChangesPtr /* changes */ | ||
| 833 | ); | ||
| 834 | |||
| 835 | extern Status XkbAllocNames( | ||
| 836 | XkbDescPtr /* xkb */, | ||
| 837 | unsigned int /* which */, | ||
| 838 | int /* nTotalRG */, | ||
| 839 | int /* nTotalAliases */ | ||
| 840 | ); | ||
| 841 | |||
| 842 | extern Status XkbGetNames( | ||
| 843 | Display * /* dpy */, | ||
| 844 | unsigned int /* which */, | ||
| 845 | XkbDescPtr /* desc */ | ||
| 846 | ); | ||
| 847 | |||
| 848 | extern Bool XkbSetNames( | ||
| 849 | Display * /* dpy */, | ||
| 850 | unsigned int /* which */, | ||
| 851 | unsigned int /* firstType */, | ||
| 852 | unsigned int /* nTypes */, | ||
| 853 | XkbDescPtr /* desc */ | ||
| 854 | ); | ||
| 855 | |||
| 856 | extern Bool XkbChangeNames( | ||
| 857 | Display * /* dpy */, | ||
| 858 | XkbDescPtr /* xkb */, | ||
| 859 | XkbNameChangesPtr /* changes */ | ||
| 860 | ); | ||
| 861 | |||
| 862 | extern void XkbFreeNames( | ||
| 863 | XkbDescPtr /* xkb */, | ||
| 864 | unsigned int /* which */, | ||
| 865 | Bool /* freeMap */ | ||
| 866 | ); | ||
| 867 | |||
| 868 | |||
| 869 | extern Status XkbGetState( | ||
| 870 | Display * /* dpy */, | ||
| 871 | unsigned int /* deviceSpec */, | ||
| 872 | XkbStatePtr /* rtrnState */ | ||
| 873 | ); | ||
| 874 | |||
| 875 | extern Bool XkbSetMap( | ||
| 876 | Display * /* dpy */, | ||
| 877 | unsigned int /* which */, | ||
| 878 | XkbDescPtr /* desc */ | ||
| 879 | ); | ||
| 880 | |||
| 881 | extern Bool XkbChangeMap( | ||
| 882 | Display* /* dpy */, | ||
| 883 | XkbDescPtr /* desc */, | ||
| 884 | XkbMapChangesPtr /* changes */ | ||
| 885 | ); | ||
| 886 | |||
| 887 | extern Bool XkbSetDetectableAutoRepeat( | ||
| 888 | Display * /* dpy */, | ||
| 889 | Bool /* detectable */, | ||
| 890 | Bool * /* supported */ | ||
| 891 | ); | ||
| 892 | |||
| 893 | extern Bool XkbGetDetectableAutoRepeat( | ||
| 894 | Display * /* dpy */, | ||
| 895 | Bool * /* supported */ | ||
| 896 | ); | ||
| 897 | |||
| 898 | extern Bool XkbSetAutoResetControls( | ||
| 899 | Display * /* dpy */, | ||
| 900 | unsigned int /* changes */, | ||
| 901 | unsigned int * /* auto_ctrls */, | ||
| 902 | unsigned int * /* auto_values */ | ||
| 903 | ); | ||
| 904 | |||
| 905 | extern Bool XkbGetAutoResetControls( | ||
| 906 | Display * /* dpy */, | ||
| 907 | unsigned int * /* auto_ctrls */, | ||
| 908 | unsigned int * /* auto_ctrl_values */ | ||
| 909 | ); | ||
| 910 | |||
| 911 | extern Bool XkbSetPerClientControls( | ||
| 912 | Display * /* dpy */, | ||
| 913 | unsigned int /* change */, | ||
| 914 | unsigned int * /* values */ | ||
| 915 | ); | ||
| 916 | |||
| 917 | extern Bool XkbGetPerClientControls( | ||
| 918 | Display * /* dpy */, | ||
| 919 | unsigned int * /* ctrls */ | ||
| 920 | ); | ||
| 921 | |||
| 922 | extern Status XkbCopyKeyType( | ||
| 923 | XkbKeyTypePtr /* from */, | ||
| 924 | XkbKeyTypePtr /* into */ | ||
| 925 | ); | ||
| 926 | |||
| 927 | extern Status XkbCopyKeyTypes( | ||
| 928 | XkbKeyTypePtr /* from */, | ||
| 929 | XkbKeyTypePtr /* into */, | ||
| 930 | int /* num_types */ | ||
| 931 | ); | ||
| 932 | |||
| 933 | extern Status XkbResizeKeyType( | ||
| 934 | XkbDescPtr /* xkb */, | ||
| 935 | int /* type_ndx */, | ||
| 936 | int /* map_count */, | ||
| 937 | Bool /* want_preserve */, | ||
| 938 | int /* new_num_lvls */ | ||
| 939 | ); | ||
| 940 | |||
| 941 | extern KeySym *XkbResizeKeySyms( | ||
| 942 | XkbDescPtr /* desc */, | ||
| 943 | int /* forKey */, | ||
| 944 | int /* symsNeeded */ | ||
| 945 | ); | ||
| 946 | |||
| 947 | extern XkbAction *XkbResizeKeyActions( | ||
| 948 | XkbDescPtr /* desc */, | ||
| 949 | int /* forKey */, | ||
| 950 | int /* actsNeeded */ | ||
| 951 | ); | ||
| 952 | |||
| 953 | extern Status XkbChangeTypesOfKey( | ||
| 954 | XkbDescPtr /* xkb */, | ||
| 955 | int /* key */, | ||
| 956 | int /* num_groups */, | ||
| 957 | unsigned int /* groups */, | ||
| 958 | int * /* newTypes */, | ||
| 959 | XkbMapChangesPtr /* pChanges */ | ||
| 960 | ); | ||
| 961 | |||
| 962 | extern Status XkbChangeKeycodeRange( | ||
| 963 | XkbDescPtr /* xkb */, | ||
| 964 | int /* minKC */, | ||
| 965 | int /* maxKC */, | ||
| 966 | XkbChangesPtr /* changes */ | ||
| 967 | ); | ||
| 968 | |||
| 969 | /***====================================================================***/ | ||
| 970 | |||
| 971 | extern XkbComponentListPtr XkbListComponents( | ||
| 972 | Display * /* dpy */, | ||
| 973 | unsigned int /* deviceSpec */, | ||
| 974 | XkbComponentNamesPtr /* ptrns */, | ||
| 975 | int * /* max_inout */ | ||
| 976 | ); | ||
| 977 | |||
| 978 | extern void XkbFreeComponentList( | ||
| 979 | XkbComponentListPtr /* list */ | ||
| 980 | ); | ||
| 981 | |||
| 982 | extern XkbDescPtr XkbGetKeyboard( | ||
| 983 | Display * /* dpy */, | ||
| 984 | unsigned int /* which */, | ||
| 985 | unsigned int /* deviceSpec */ | ||
| 986 | ); | ||
| 987 | |||
| 988 | extern XkbDescPtr XkbGetKeyboardByName( | ||
| 989 | Display * /* dpy */, | ||
| 990 | unsigned int /* deviceSpec */, | ||
| 991 | XkbComponentNamesPtr /* names */, | ||
| 992 | unsigned int /* want */, | ||
| 993 | unsigned int /* need */, | ||
| 994 | Bool /* load */ | ||
| 995 | ); | ||
| 996 | |||
| 997 | /***====================================================================***/ | ||
| 998 | |||
| 999 | extern int XkbKeyTypesForCoreSymbols( /* returns # of groups */ | ||
| 1000 | XkbDescPtr /* xkb */, /* keyboard device */ | ||
| 1001 | int /* map_width */, /* width of core KeySym array */ | ||
| 1002 | KeySym * /* core_syms */, /* always mapWidth symbols */ | ||
| 1003 | unsigned int /* protected */, /* explicit key types */ | ||
| 1004 | int * /* types_inout */, /* always four type indices */ | ||
| 1005 | KeySym * /* xkb_syms_rtrn */ /* must have enough space */ | ||
| 1006 | ); | ||
| 1007 | |||
| 1008 | extern Bool XkbApplyCompatMapToKey( /* False only on error */ | ||
| 1009 | XkbDescPtr /* xkb */, /* keymap to be edited */ | ||
| 1010 | KeyCode /* key */, /* key to be updated */ | ||
| 1011 | XkbChangesPtr /* changes */ /* resulting changes to map */ | ||
| 1012 | ); | ||
| 1013 | |||
| 1014 | extern Bool XkbUpdateMapFromCore( /* False only on error */ | ||
| 1015 | XkbDescPtr /* xkb */, /* XKB keyboard to be edited */ | ||
| 1016 | KeyCode /* first_key */, /* first changed key */ | ||
| 1017 | int /* num_keys */, /* number of changed keys */ | ||
| 1018 | int /* map_width */, /* width of core keymap */ | ||
| 1019 | KeySym * /* core_keysyms */, /* symbols from core keymap */ | ||
| 1020 | XkbChangesPtr /* changes */ /* resulting changes */ | ||
| 1021 | ); | ||
| 1022 | |||
| 1023 | /***====================================================================***/ | ||
| 1024 | |||
| 1025 | extern XkbDeviceLedInfoPtr XkbAddDeviceLedInfo( | ||
| 1026 | XkbDeviceInfoPtr /* devi */, | ||
| 1027 | unsigned int /* ledClass */, | ||
| 1028 | unsigned int /* ledId */ | ||
| 1029 | ); | ||
| 1030 | |||
| 1031 | extern Status XkbResizeDeviceButtonActions( | ||
| 1032 | XkbDeviceInfoPtr /* devi */, | ||
| 1033 | unsigned int /* newTotal */ | ||
| 1034 | ); | ||
| 1035 | |||
| 1036 | extern XkbDeviceInfoPtr XkbAllocDeviceInfo( | ||
| 1037 | unsigned int /* deviceSpec */, | ||
| 1038 | unsigned int /* nButtons */, | ||
| 1039 | unsigned int /* szLeds */ | ||
| 1040 | ); | ||
| 1041 | |||
| 1042 | extern void XkbFreeDeviceInfo( | ||
| 1043 | XkbDeviceInfoPtr /* devi */, | ||
| 1044 | unsigned int /* which */, | ||
| 1045 | Bool /* freeDevI */ | ||
| 1046 | ); | ||
| 1047 | |||
| 1048 | extern void XkbNoteDeviceChanges( | ||
| 1049 | XkbDeviceChangesPtr /* old */, | ||
| 1050 | XkbExtensionDeviceNotifyEvent * /* new */, | ||
| 1051 | unsigned int /* wanted */ | ||
| 1052 | ); | ||
| 1053 | |||
| 1054 | extern XkbDeviceInfoPtr XkbGetDeviceInfo( | ||
| 1055 | Display * /* dpy */, | ||
| 1056 | unsigned int /* which */, | ||
| 1057 | unsigned int /* deviceSpec */, | ||
| 1058 | unsigned int /* ledClass */, | ||
| 1059 | unsigned int /* ledID */ | ||
| 1060 | ); | ||
| 1061 | |||
| 1062 | extern Status XkbGetDeviceInfoChanges( | ||
| 1063 | Display * /* dpy */, | ||
| 1064 | XkbDeviceInfoPtr /* devi */, | ||
| 1065 | XkbDeviceChangesPtr /* changes */ | ||
| 1066 | ); | ||
| 1067 | |||
| 1068 | extern Status XkbGetDeviceButtonActions( | ||
| 1069 | Display * /* dpy */, | ||
| 1070 | XkbDeviceInfoPtr /* devi */, | ||
| 1071 | Bool /* all */, | ||
| 1072 | unsigned int /* first */, | ||
| 1073 | unsigned int /* nBtns */ | ||
| 1074 | ); | ||
| 1075 | |||
| 1076 | extern Status XkbGetDeviceLedInfo( | ||
| 1077 | Display * /* dpy */, | ||
| 1078 | XkbDeviceInfoPtr /* devi */, | ||
| 1079 | unsigned int /* ledClass (class, XIDflt, XIAll) */, | ||
| 1080 | unsigned int /* ledId (id, XIDflt, XIAll) */, | ||
| 1081 | unsigned int /* which (XkbXI_Indicator{Names,Map}Mask */ | ||
| 1082 | ); | ||
| 1083 | |||
| 1084 | extern Bool XkbSetDeviceInfo( | ||
| 1085 | Display * /* dpy */, | ||
| 1086 | unsigned int /* which */, | ||
| 1087 | XkbDeviceInfoPtr /* devi */ | ||
| 1088 | ); | ||
| 1089 | |||
| 1090 | extern Bool XkbChangeDeviceInfo( | ||
| 1091 | Display* /* dpy */, | ||
| 1092 | XkbDeviceInfoPtr /* desc */, | ||
| 1093 | XkbDeviceChangesPtr /* changes */ | ||
| 1094 | ); | ||
| 1095 | |||
| 1096 | extern Bool XkbSetDeviceLedInfo( | ||
| 1097 | Display * /* dpy */, | ||
| 1098 | XkbDeviceInfoPtr /* devi */, | ||
| 1099 | unsigned int /* ledClass */, | ||
| 1100 | unsigned int /* ledID */, | ||
| 1101 | unsigned int /* which */ | ||
| 1102 | ); | ||
| 1103 | |||
| 1104 | extern Bool XkbSetDeviceButtonActions( | ||
| 1105 | Display * /* dpy */, | ||
| 1106 | XkbDeviceInfoPtr /* devi */, | ||
| 1107 | unsigned int /* first */, | ||
| 1108 | unsigned int /* nBtns */ | ||
| 1109 | ); | ||
| 1110 | |||
| 1111 | /***====================================================================***/ | ||
| 1112 | |||
| 1113 | extern char XkbToControl( | ||
| 1114 | char /* c */ | ||
| 1115 | ); | ||
| 1116 | |||
| 1117 | /***====================================================================***/ | ||
| 1118 | |||
| 1119 | extern Bool XkbSetDebuggingFlags( | ||
| 1120 | Display * /* dpy */, | ||
| 1121 | unsigned int /* mask */, | ||
| 1122 | unsigned int /* flags */, | ||
| 1123 | char * /* msg */, | ||
| 1124 | unsigned int /* ctrls_mask */, | ||
| 1125 | unsigned int /* ctrls */, | ||
| 1126 | unsigned int * /* rtrn_flags */, | ||
| 1127 | unsigned int * /* rtrn_ctrls */ | ||
| 1128 | ); | ||
| 1129 | |||
| 1130 | extern Bool XkbApplyVirtualModChanges( | ||
| 1131 | XkbDescPtr /* xkb */, | ||
| 1132 | unsigned int /* changed */, | ||
| 1133 | XkbChangesPtr /* changes */ | ||
| 1134 | ); | ||
| 1135 | |||
| 1136 | extern Bool XkbUpdateActionVirtualMods( | ||
| 1137 | XkbDescPtr /* xkb */, | ||
| 1138 | XkbAction * /* act */, | ||
| 1139 | unsigned int /* changed */ | ||
| 1140 | ); | ||
| 1141 | |||
| 1142 | extern void XkbUpdateKeyTypeVirtualMods( | ||
| 1143 | XkbDescPtr /* xkb */, | ||
| 1144 | XkbKeyTypePtr /* type */, | ||
| 1145 | unsigned int /* changed */, | ||
| 1146 | XkbChangesPtr /* changes */ | ||
| 1147 | ); | ||
| 1148 | |||
| 1149 | _XFUNCPROTOEND | ||
| 1150 | |||
| 1151 | #endif /* _XKBLIB_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/XWDFile.h b/meta/packages/xorg-lib/xorg-headers-native/X11/XWDFile.h new file mode 100644 index 0000000000..0ce22e1a8d --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/XWDFile.h | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | /* $Xorg: XWDFile.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1985, 1986, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | |||
| 26 | */ | ||
| 27 | |||
| 28 | /* | ||
| 29 | * XWDFile.h MIT Project Athena, X Window system window raster | ||
| 30 | * image dumper, dump file format header file. | ||
| 31 | * | ||
| 32 | * Author: Tony Della Fera, DEC | ||
| 33 | * 27-Jun-85 | ||
| 34 | * | ||
| 35 | * Modifier: William F. Wyatt, SAO | ||
| 36 | * 18-Nov-86 - version 6 for saving/restoring color maps | ||
| 37 | */ | ||
| 38 | |||
| 39 | #ifndef XWDFILE_H | ||
| 40 | #define XWDFILE_H | ||
| 41 | |||
| 42 | #include <X11/Xmd.h> | ||
| 43 | |||
| 44 | #define XWD_FILE_VERSION 7 | ||
| 45 | #define sz_XWDheader 100 | ||
| 46 | #define sz_XWDColor 12 | ||
| 47 | |||
| 48 | typedef CARD32 xwdval; /* for old broken programs */ | ||
| 49 | |||
| 50 | /* Values in the file are most significant byte first. */ | ||
| 51 | |||
| 52 | typedef struct _xwd_file_header { | ||
| 53 | /* header_size = SIZEOF(XWDheader) + length of null-terminated | ||
| 54 | * window name. */ | ||
| 55 | CARD32 header_size B32; | ||
| 56 | |||
| 57 | CARD32 file_version B32; /* = XWD_FILE_VERSION above */ | ||
| 58 | CARD32 pixmap_format B32; /* ZPixmap or XYPixmap */ | ||
| 59 | CARD32 pixmap_depth B32; /* Pixmap depth */ | ||
| 60 | CARD32 pixmap_width B32; /* Pixmap width */ | ||
| 61 | CARD32 pixmap_height B32; /* Pixmap height */ | ||
| 62 | CARD32 xoffset B32; /* Bitmap x offset, normally 0 */ | ||
| 63 | CARD32 byte_order B32; /* of image data: MSBFirst, LSBFirst */ | ||
| 64 | |||
| 65 | /* bitmap_unit applies to bitmaps (depth 1 format XY) only. | ||
| 66 | * It is the number of bits that each scanline is padded to. */ | ||
| 67 | CARD32 bitmap_unit B32; | ||
| 68 | |||
| 69 | CARD32 bitmap_bit_order B32; /* bitmaps only: MSBFirst, LSBFirst */ | ||
| 70 | |||
| 71 | /* bitmap_pad applies to pixmaps (non-bitmaps) only. | ||
| 72 | * It is the number of bits that each scanline is padded to. */ | ||
| 73 | CARD32 bitmap_pad B32; | ||
| 74 | |||
| 75 | CARD32 bits_per_pixel B32; /* Bits per pixel */ | ||
| 76 | |||
| 77 | /* bytes_per_line is pixmap_width padded to bitmap_unit (bitmaps) | ||
| 78 | * or bitmap_pad (pixmaps). It is the delta (in bytes) to get | ||
| 79 | * to the same x position on an adjacent row. */ | ||
| 80 | CARD32 bytes_per_line B32; | ||
| 81 | CARD32 visual_class B32; /* Class of colormap */ | ||
| 82 | CARD32 red_mask B32; /* Z red mask */ | ||
| 83 | CARD32 green_mask B32; /* Z green mask */ | ||
| 84 | CARD32 blue_mask B32; /* Z blue mask */ | ||
| 85 | CARD32 bits_per_rgb B32; /* Log2 of distinct color values */ | ||
| 86 | CARD32 colormap_entries B32; /* Number of entries in colormap; not used? */ | ||
| 87 | CARD32 ncolors B32; /* Number of XWDColor structures */ | ||
| 88 | CARD32 window_width B32; /* Window width */ | ||
| 89 | CARD32 window_height B32; /* Window height */ | ||
| 90 | CARD32 window_x B32; /* Window upper left X coordinate */ | ||
| 91 | CARD32 window_y B32; /* Window upper left Y coordinate */ | ||
| 92 | CARD32 window_bdrwidth B32; /* Window border width */ | ||
| 93 | } XWDFileHeader; | ||
| 94 | |||
| 95 | /* Null-terminated window name follows the above structure. */ | ||
| 96 | |||
| 97 | /* Next comes XWDColor structures, at offset XWDFileHeader.header_size in | ||
| 98 | * the file. XWDFileHeader.ncolors tells how many XWDColor structures | ||
| 99 | * there are. | ||
| 100 | */ | ||
| 101 | |||
| 102 | typedef struct { | ||
| 103 | CARD32 pixel B32; | ||
| 104 | CARD16 red B16; | ||
| 105 | CARD16 green B16; | ||
| 106 | CARD16 blue B16; | ||
| 107 | CARD8 flags; | ||
| 108 | CARD8 pad; | ||
| 109 | } XWDColor; | ||
| 110 | |||
| 111 | /* Last comes the image data in the format described by XWDFileHeader. */ | ||
| 112 | |||
| 113 | #endif /* XWDFILE_H */ | ||
| 114 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xalloca.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xalloca.h new file mode 100644 index 0000000000..67f2671e94 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xalloca.h | |||
| @@ -0,0 +1,145 @@ | |||
| 1 | /* $Xorg: Xalloca.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1995, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be | ||
| 14 | included in all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 19 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall | ||
| 25 | not be used in advertising or otherwise to promote the sale, use or | ||
| 26 | other dealings in this Software without prior written authorization | ||
| 27 | from The Open Group. | ||
| 28 | |||
| 29 | */ | ||
| 30 | /* $XFree86: xc/include/Xalloca.h,v 3.10 2001/12/14 19:53:25 dawes Exp $ */ | ||
| 31 | |||
| 32 | /* | ||
| 33 | * The purpose of this header is to define the macros ALLOCATE_LOCAL and | ||
| 34 | * DEALLOCATE_LOCAL appropriately for the platform being compiled on. | ||
| 35 | * These macros are used to make fast, function-local memory allocations. | ||
| 36 | * Their characteristics are as follows: | ||
| 37 | * | ||
| 38 | * void *ALLOCATE_LOCAL(int size) | ||
| 39 | * Returns a pointer to size bytes of memory, or NULL if the allocation | ||
| 40 | * failed. The memory must be freed with DEALLOCATE_LOCAL before the | ||
| 41 | * function that made the allocation returns. You should not ask for | ||
| 42 | * large blocks of memory with this function, since on many platforms | ||
| 43 | * the memory comes from the stack, which may have limited size. | ||
| 44 | * | ||
| 45 | * void DEALLOCATE_LOCAL(void *) | ||
| 46 | * Frees the memory allocated by ALLOCATE_LOCAL. Omission of this | ||
| 47 | * step may be harmless on some platforms, but will result in | ||
| 48 | * memory leaks or worse on others. | ||
| 49 | * | ||
| 50 | * Before including this file, you should define two macros, | ||
| 51 | * ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK, that have the | ||
| 52 | * same characteristics as ALLOCATE_LOCAL and DEALLOCATE_LOCAL. The | ||
| 53 | * header uses the fallbacks if it doesn't know a "better" way to define | ||
| 54 | * ALLOCATE_LOCAL and DEALLOCATE_LOCAL. Typical usage would be: | ||
| 55 | * | ||
| 56 | * #define ALLOCATE_LOCAL_FALLBACK(_size) malloc(_size) | ||
| 57 | * #define DEALLOCATE_LOCAL_FALLBACK(_ptr) free(_ptr) | ||
| 58 | * #include "Xalloca.h" | ||
| 59 | */ | ||
| 60 | |||
| 61 | #ifndef XALLOCA_H | ||
| 62 | #define XALLOCA_H 1 | ||
| 63 | |||
| 64 | #ifndef INCLUDE_ALLOCA_H | ||
| 65 | # if defined(__SUNPRO_C) /* Need to add more here to match Imake *.cf's */ | ||
| 66 | # define INCLUDE_ALLOCA_H | ||
| 67 | # endif | ||
| 68 | #endif | ||
| 69 | |||
| 70 | #ifdef INCLUDE_ALLOCA_H | ||
| 71 | # include <alloca.h> | ||
| 72 | #endif | ||
| 73 | |||
| 74 | #ifndef NO_ALLOCA | ||
| 75 | /* | ||
| 76 | * os-dependent definition of local allocation and deallocation | ||
| 77 | * If you want something other than (DE)ALLOCATE_LOCAL_FALLBACK | ||
| 78 | * for ALLOCATE/DEALLOCATE_LOCAL then you add that in here. | ||
| 79 | */ | ||
| 80 | # if defined(__HIGHC__) | ||
| 81 | # ifndef NCR | ||
| 82 | extern char *alloca(); | ||
| 83 | # if HCVERSION < 21003 | ||
| 84 | # define ALLOCATE_LOCAL(size) alloca((int)(size)) | ||
| 85 | pragma on(alloca); | ||
| 86 | # else /* HCVERSION >= 21003 */ | ||
| 87 | # define ALLOCATE_LOCAL(size) _Alloca((int)(size)) | ||
| 88 | # endif /* HCVERSION < 21003 */ | ||
| 89 | # else /* NCR */ | ||
| 90 | # define ALLOCATE_LOCAL(size) alloca(size) | ||
| 91 | # endif | ||
| 92 | # endif /* defined(__HIGHC__) */ | ||
| 93 | |||
| 94 | |||
| 95 | # ifdef __GNUC__ | ||
| 96 | # ifndef alloca | ||
| 97 | # define alloca __builtin_alloca | ||
| 98 | # endif /* !alloca */ | ||
| 99 | # define ALLOCATE_LOCAL(size) alloca((int)(size)) | ||
| 100 | # else /* ! __GNUC__ */ | ||
| 101 | |||
| 102 | /* | ||
| 103 | * warning: old mips alloca (pre 2.10) is unusable, new one is built in | ||
| 104 | * Test is easy, the new one is named __builtin_alloca and comes | ||
| 105 | * from alloca.h which #defines alloca. | ||
| 106 | */ | ||
| 107 | # ifndef NCR | ||
| 108 | # if defined(vax) || defined(sun) || defined(apollo) || defined(stellar) || defined(alloca) | ||
| 109 | /* | ||
| 110 | * Some System V boxes extract alloca.o from /lib/libPW.a; if you | ||
| 111 | * decide that you don't want to use alloca, you might want to fix it here. | ||
| 112 | */ | ||
| 113 | /* alloca might be a macro taking one arg (hi, Sun!), so give it one. */ | ||
| 114 | # ifndef __sgi /* IRIX 5/6 has definition */ | ||
| 115 | # ifndef __QNX__ | ||
| 116 | # define __Xnullarg /* as nothing */ | ||
| 117 | # ifndef X_NOT_STDC_ENV | ||
| 118 | extern void *alloca(__Xnullarg); | ||
| 119 | # else | ||
| 120 | extern char *alloca(__Xnullarg); | ||
| 121 | # endif | ||
| 122 | # endif /* __QNX__ */ | ||
| 123 | # endif /* __sgi */ | ||
| 124 | # define ALLOCATE_LOCAL(size) alloca((int)(size)) | ||
| 125 | # endif /* who does alloca */ | ||
| 126 | # endif /* NCR */ | ||
| 127 | # endif /* __GNUC__ */ | ||
| 128 | |||
| 129 | #endif /* NO_ALLOCA */ | ||
| 130 | |||
| 131 | #if !defined(ALLOCATE_LOCAL) | ||
| 132 | # if defined(ALLOCATE_LOCAL_FALLBACK) && defined(DEALLOCATE_LOCAL_FALLBACK) | ||
| 133 | # define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK(_size) | ||
| 134 | # define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK(_ptr) | ||
| 135 | # else /* no fallbacks supplied; error */ | ||
| 136 | # define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK undefined! | ||
| 137 | # define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK undefined! | ||
| 138 | # endif /* defined(ALLOCATE_LOCAL_FALLBACK && DEALLOCATE_LOCAL_FALLBACK) */ | ||
| 139 | #else | ||
| 140 | # if !defined(DEALLOCATE_LOCAL) | ||
| 141 | # define DEALLOCATE_LOCAL(_ptr) do {} while(0) | ||
| 142 | # endif | ||
| 143 | #endif /* defined(ALLOCATE_LOCAL) */ | ||
| 144 | |||
| 145 | #endif /* XALLOCA_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xarch.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xarch.h new file mode 100644 index 0000000000..6e04e53f6f --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xarch.h | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | #ifndef _XARCH_H_ | ||
| 2 | #define _XARCH_H_ | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Copyright 1997 Metro Link Incorporated | ||
| 6 | * | ||
| 7 | * All Rights Reserved | ||
| 8 | * | ||
| 9 | * Permission to use, copy, modify, distribute, and sell this software and its | ||
| 10 | * documentation for any purpose is hereby granted without fee, provided that | ||
| 11 | * the above copyright notice appear in all copies and that both that | ||
| 12 | * copyright notice and this permission notice appear in supporting | ||
| 13 | * documentation, and that the names of the above listed copyright holder(s) | ||
| 14 | * not be used in advertising or publicity pertaining to distribution of | ||
| 15 | * the software without specific, written prior permission. The above listed | ||
| 16 | * copyright holder(s) make(s) no representations about the suitability of | ||
| 17 | * this software for any purpose. It is provided "as is" without express or | ||
| 18 | * implied warranty. | ||
| 19 | * | ||
| 20 | * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD | ||
| 21 | * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
| 22 | * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE | ||
| 23 | * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY | ||
| 24 | * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | ||
| 25 | * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING | ||
| 26 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 27 | */ | ||
| 28 | /* $XFree86: xc/include/Xarch.h,v 1.10tsi Exp $ */ | ||
| 29 | |||
| 30 | |||
| 31 | /* | ||
| 32 | * Determine the machine's byte order. | ||
| 33 | */ | ||
| 34 | |||
| 35 | /* See if it is set in the imake config first */ | ||
| 36 | #ifdef X_BYTE_ORDER | ||
| 37 | |||
| 38 | #define X_BIG_ENDIAN 4321 | ||
| 39 | #define X_LITTLE_ENDIAN 1234 | ||
| 40 | |||
| 41 | #else | ||
| 42 | |||
| 43 | #ifdef SVR4 | ||
| 44 | #if defined(NCR) || defined(Mips) || defined(__sgi) | ||
| 45 | #include <sys/endian.h> | ||
| 46 | #else | ||
| 47 | #if !defined(sun) | ||
| 48 | #include <sys/byteorder.h> | ||
| 49 | #endif | ||
| 50 | #endif | ||
| 51 | #elif defined(CSRG_BASED) | ||
| 52 | #if defined(__NetBSD__) || defined(__OpenBSD__) | ||
| 53 | #include <sys/types.h> | ||
| 54 | #endif | ||
| 55 | #include <machine/endian.h> | ||
| 56 | #elif defined(linux) | ||
| 57 | #if defined __STRICT_ANSI__ | ||
| 58 | #undef __STRICT_ANSI__ | ||
| 59 | #include <endian.h> | ||
| 60 | #define __STRICT_ANSI__ | ||
| 61 | #else | ||
| 62 | #include <endian.h> | ||
| 63 | #endif | ||
| 64 | /* 'endian.h' might have been included before 'Xarch.h' */ | ||
| 65 | #if !defined(LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN) | ||
| 66 | #define LITTLE_ENDIAN __LITTLE_ENDIAN | ||
| 67 | #endif | ||
| 68 | #if !defined(BIG_ENDIAN) && defined(__BIG_ENDIAN) | ||
| 69 | #define BIG_ENDIAN __BIG_ENDIAN | ||
| 70 | #endif | ||
| 71 | #if !defined(PDP_ENDIAN) && defined(__PDP_ENDIAN) | ||
| 72 | #define PDP_ENDIAN __PDP_ENDIAN | ||
| 73 | #endif | ||
| 74 | #if !defined(BYTE_ORDER) && defined(__BYTE_ORDER) | ||
| 75 | #define BYTE_ORDER __BYTE_ORDER | ||
| 76 | #endif | ||
| 77 | #elif defined(Lynx) | ||
| 78 | #if 0 | ||
| 79 | /* LynxOS 2.4.0 has wrong defines in bsd/ip.h */ | ||
| 80 | #include <bsd/in.h> | ||
| 81 | #include <bsd/in_systm.h> | ||
| 82 | #include <bsd/ip.h> | ||
| 83 | #endif | ||
| 84 | #endif | ||
| 85 | |||
| 86 | #ifndef BYTE_ORDER | ||
| 87 | #define LITTLE_ENDIAN 1234 | ||
| 88 | #define BIG_ENDIAN 4321 | ||
| 89 | |||
| 90 | #if defined(__QNX__) && !defined(__QNXNTO__) | ||
| 91 | #define BYTE_ORDER LITTLE_ENDIAN | ||
| 92 | #endif | ||
| 93 | |||
| 94 | #if defined(__QNXNTO__) | ||
| 95 | #if defined(i386) || defined(__i386__) || defined(__x86__) | ||
| 96 | #define BYTE_ORDER LITTLE_ENDIAN | ||
| 97 | #else | ||
| 98 | #define BYTE_ORDER BIG_ENDIAN | ||
| 99 | #endif | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #ifdef Lynx | ||
| 103 | #if defined(i386) || defined(__i386__) || defined(__x86__) | ||
| 104 | #define BYTE_ORDER LITTLE_ENDIAN | ||
| 105 | #else | ||
| 106 | #define BYTE_ORDER BIG_ENDIAN | ||
| 107 | #endif | ||
| 108 | #endif | ||
| 109 | #if (defined(sun) && defined(SVR4)) && !defined(Lynx) | ||
| 110 | #include <sys/isa_defs.h> | ||
| 111 | #ifdef _LITTLE_ENDIAN | ||
| 112 | #define BYTE_ORDER LITTLE_ENDIAN | ||
| 113 | #endif | ||
| 114 | #ifdef _BIG_ENDIAN | ||
| 115 | #define BYTE_ORDER BIG_ENDIAN | ||
| 116 | #endif | ||
| 117 | #endif /* sun */ | ||
| 118 | #endif /* BYTE_ORDER */ | ||
| 119 | |||
| 120 | #define X_BYTE_ORDER BYTE_ORDER | ||
| 121 | #define X_BIG_ENDIAN BIG_ENDIAN | ||
| 122 | #define X_LITTLE_ENDIAN LITTLE_ENDIAN | ||
| 123 | |||
| 124 | #endif /* not in imake config */ | ||
| 125 | |||
| 126 | #endif /* _XARCH_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xatom.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xatom.h new file mode 100644 index 0000000000..485a4236db --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xatom.h | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | #ifndef XATOM_H | ||
| 2 | #define XATOM_H 1 | ||
| 3 | |||
| 4 | /* THIS IS A GENERATED FILE | ||
| 5 | * | ||
| 6 | * Do not change! Changing this file implies a protocol change! | ||
| 7 | */ | ||
| 8 | |||
| 9 | #define XA_PRIMARY ((Atom) 1) | ||
| 10 | #define XA_SECONDARY ((Atom) 2) | ||
| 11 | #define XA_ARC ((Atom) 3) | ||
| 12 | #define XA_ATOM ((Atom) 4) | ||
| 13 | #define XA_BITMAP ((Atom) 5) | ||
| 14 | #define XA_CARDINAL ((Atom) 6) | ||
| 15 | #define XA_COLORMAP ((Atom) 7) | ||
| 16 | #define XA_CURSOR ((Atom) 8) | ||
| 17 | #define XA_CUT_BUFFER0 ((Atom) 9) | ||
| 18 | #define XA_CUT_BUFFER1 ((Atom) 10) | ||
| 19 | #define XA_CUT_BUFFER2 ((Atom) 11) | ||
| 20 | #define XA_CUT_BUFFER3 ((Atom) 12) | ||
| 21 | #define XA_CUT_BUFFER4 ((Atom) 13) | ||
| 22 | #define XA_CUT_BUFFER5 ((Atom) 14) | ||
| 23 | #define XA_CUT_BUFFER6 ((Atom) 15) | ||
| 24 | #define XA_CUT_BUFFER7 ((Atom) 16) | ||
| 25 | #define XA_DRAWABLE ((Atom) 17) | ||
| 26 | #define XA_FONT ((Atom) 18) | ||
| 27 | #define XA_INTEGER ((Atom) 19) | ||
| 28 | #define XA_PIXMAP ((Atom) 20) | ||
| 29 | #define XA_POINT ((Atom) 21) | ||
| 30 | #define XA_RECTANGLE ((Atom) 22) | ||
| 31 | #define XA_RESOURCE_MANAGER ((Atom) 23) | ||
| 32 | #define XA_RGB_COLOR_MAP ((Atom) 24) | ||
| 33 | #define XA_RGB_BEST_MAP ((Atom) 25) | ||
| 34 | #define XA_RGB_BLUE_MAP ((Atom) 26) | ||
| 35 | #define XA_RGB_DEFAULT_MAP ((Atom) 27) | ||
| 36 | #define XA_RGB_GRAY_MAP ((Atom) 28) | ||
| 37 | #define XA_RGB_GREEN_MAP ((Atom) 29) | ||
| 38 | #define XA_RGB_RED_MAP ((Atom) 30) | ||
| 39 | #define XA_STRING ((Atom) 31) | ||
| 40 | #define XA_VISUALID ((Atom) 32) | ||
| 41 | #define XA_WINDOW ((Atom) 33) | ||
| 42 | #define XA_WM_COMMAND ((Atom) 34) | ||
| 43 | #define XA_WM_HINTS ((Atom) 35) | ||
| 44 | #define XA_WM_CLIENT_MACHINE ((Atom) 36) | ||
| 45 | #define XA_WM_ICON_NAME ((Atom) 37) | ||
| 46 | #define XA_WM_ICON_SIZE ((Atom) 38) | ||
| 47 | #define XA_WM_NAME ((Atom) 39) | ||
| 48 | #define XA_WM_NORMAL_HINTS ((Atom) 40) | ||
| 49 | #define XA_WM_SIZE_HINTS ((Atom) 41) | ||
| 50 | #define XA_WM_ZOOM_HINTS ((Atom) 42) | ||
| 51 | #define XA_MIN_SPACE ((Atom) 43) | ||
| 52 | #define XA_NORM_SPACE ((Atom) 44) | ||
| 53 | #define XA_MAX_SPACE ((Atom) 45) | ||
| 54 | #define XA_END_SPACE ((Atom) 46) | ||
| 55 | #define XA_SUPERSCRIPT_X ((Atom) 47) | ||
| 56 | #define XA_SUPERSCRIPT_Y ((Atom) 48) | ||
| 57 | #define XA_SUBSCRIPT_X ((Atom) 49) | ||
| 58 | #define XA_SUBSCRIPT_Y ((Atom) 50) | ||
| 59 | #define XA_UNDERLINE_POSITION ((Atom) 51) | ||
| 60 | #define XA_UNDERLINE_THICKNESS ((Atom) 52) | ||
| 61 | #define XA_STRIKEOUT_ASCENT ((Atom) 53) | ||
| 62 | #define XA_STRIKEOUT_DESCENT ((Atom) 54) | ||
| 63 | #define XA_ITALIC_ANGLE ((Atom) 55) | ||
| 64 | #define XA_X_HEIGHT ((Atom) 56) | ||
| 65 | #define XA_QUAD_WIDTH ((Atom) 57) | ||
| 66 | #define XA_WEIGHT ((Atom) 58) | ||
| 67 | #define XA_POINT_SIZE ((Atom) 59) | ||
| 68 | #define XA_RESOLUTION ((Atom) 60) | ||
| 69 | #define XA_COPYRIGHT ((Atom) 61) | ||
| 70 | #define XA_NOTICE ((Atom) 62) | ||
| 71 | #define XA_FONT_NAME ((Atom) 63) | ||
| 72 | #define XA_FAMILY_NAME ((Atom) 64) | ||
| 73 | #define XA_FULL_NAME ((Atom) 65) | ||
| 74 | #define XA_CAP_HEIGHT ((Atom) 66) | ||
| 75 | #define XA_WM_CLASS ((Atom) 67) | ||
| 76 | #define XA_WM_TRANSIENT_FOR ((Atom) 68) | ||
| 77 | |||
| 78 | #define XA_LAST_PREDEFINED ((Atom) 68) | ||
| 79 | #endif /* XATOM_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xauth.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xauth.h new file mode 100644 index 0000000000..181618ac2b --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xauth.h | |||
| @@ -0,0 +1,158 @@ | |||
| 1 | /* $Xorg: Xauth.h,v 1.4 2001/02/09 02:03:42 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | */ | ||
| 28 | |||
| 29 | /* $XFree86: xc/lib/Xau/Xauth.h,v 1.5 2001/12/14 19:54:36 dawes Exp $ */ | ||
| 30 | |||
| 31 | #ifndef _Xauth_h | ||
| 32 | #define _Xauth_h | ||
| 33 | |||
| 34 | typedef struct xauth { | ||
| 35 | unsigned short family; | ||
| 36 | unsigned short address_length; | ||
| 37 | char *address; | ||
| 38 | unsigned short number_length; | ||
| 39 | char *number; | ||
| 40 | unsigned short name_length; | ||
| 41 | char *name; | ||
| 42 | unsigned short data_length; | ||
| 43 | char *data; | ||
| 44 | } Xauth; | ||
| 45 | |||
| 46 | #ifndef _XAUTH_STRUCT_ONLY | ||
| 47 | |||
| 48 | # include <X11/Xfuncproto.h> | ||
| 49 | # include <X11/Xfuncs.h> | ||
| 50 | |||
| 51 | # include <stdio.h> | ||
| 52 | |||
| 53 | # define FamilyLocal (256) /* not part of X standard (i.e. X.h) */ | ||
| 54 | # define FamilyWild (65535) | ||
| 55 | # define FamilyNetname (254) /* not part of X standard */ | ||
| 56 | # define FamilyKrb5Principal (253) /* Kerberos 5 principal name */ | ||
| 57 | # define FamilyLocalHost (252) /* for local non-net authentication */ | ||
| 58 | |||
| 59 | |||
| 60 | _XFUNCPROTOBEGIN | ||
| 61 | |||
| 62 | char *XauFileName(void); | ||
| 63 | |||
| 64 | Xauth *XauReadAuth( | ||
| 65 | FILE* /* auth_file */ | ||
| 66 | ); | ||
| 67 | |||
| 68 | int XauLockAuth( | ||
| 69 | _Xconst char* /* file_name */, | ||
| 70 | int /* retries */, | ||
| 71 | int /* timeout */, | ||
| 72 | long /* dead */ | ||
| 73 | ); | ||
| 74 | |||
| 75 | int XauUnlockAuth( | ||
| 76 | _Xconst char* /* file_name */ | ||
| 77 | ); | ||
| 78 | |||
| 79 | int XauWriteAuth( | ||
| 80 | FILE* /* auth_file */, | ||
| 81 | Xauth* /* auth */ | ||
| 82 | ); | ||
| 83 | |||
| 84 | Xauth *XauGetAuthByAddr( | ||
| 85 | #if NeedWidePrototypes | ||
| 86 | unsigned int /* family */, | ||
| 87 | unsigned int /* address_length */, | ||
| 88 | #else | ||
| 89 | unsigned short /* family */, | ||
| 90 | unsigned short /* address_length */, | ||
| 91 | #endif | ||
| 92 | _Xconst char* /* address */, | ||
| 93 | #if NeedWidePrototypes | ||
| 94 | unsigned int /* number_length */, | ||
| 95 | #else | ||
| 96 | unsigned short /* number_length */, | ||
| 97 | #endif | ||
| 98 | _Xconst char* /* number */, | ||
| 99 | #if NeedWidePrototypes | ||
| 100 | unsigned int /* name_length */, | ||
| 101 | #else | ||
| 102 | unsigned short /* name_length */, | ||
| 103 | #endif | ||
| 104 | _Xconst char* /* name */ | ||
| 105 | ); | ||
| 106 | |||
| 107 | Xauth *XauGetBestAuthByAddr( | ||
| 108 | #if NeedWidePrototypes | ||
| 109 | unsigned int /* family */, | ||
| 110 | unsigned int /* address_length */, | ||
| 111 | #else | ||
| 112 | unsigned short /* family */, | ||
| 113 | unsigned short /* address_length */, | ||
| 114 | #endif | ||
| 115 | _Xconst char* /* address */, | ||
| 116 | #if NeedWidePrototypes | ||
| 117 | unsigned int /* number_length */, | ||
| 118 | #else | ||
| 119 | unsigned short /* number_length */, | ||
| 120 | #endif | ||
| 121 | _Xconst char* /* number */, | ||
| 122 | int /* types_length */, | ||
| 123 | char** /* type_names */, | ||
| 124 | _Xconst int* /* type_lengths */ | ||
| 125 | ); | ||
| 126 | |||
| 127 | void XauDisposeAuth( | ||
| 128 | Xauth* /* auth */ | ||
| 129 | ); | ||
| 130 | |||
| 131 | #ifdef K5AUTH | ||
| 132 | #include <krb5/krb5.h> | ||
| 133 | /* 9/93: krb5.h leaks some symbols */ | ||
| 134 | #undef BITS32 | ||
| 135 | #undef xfree | ||
| 136 | |||
| 137 | int XauKrb5Encode( | ||
| 138 | krb5_principal /* princ */, | ||
| 139 | krb5_data * /* outbuf */ | ||
| 140 | ); | ||
| 141 | |||
| 142 | int XauKrb5Decode( | ||
| 143 | krb5_data /* inbuf */, | ||
| 144 | krb5_principal * /* princ */ | ||
| 145 | ); | ||
| 146 | #endif /* K5AUTH */ | ||
| 147 | |||
| 148 | _XFUNCPROTOEND | ||
| 149 | |||
| 150 | /* Return values from XauLockAuth */ | ||
| 151 | |||
| 152 | # define LOCK_SUCCESS 0 /* lock succeeded */ | ||
| 153 | # define LOCK_ERROR 1 /* lock unexpectely failed, check errno */ | ||
| 154 | # define LOCK_TIMEOUT 2 /* lock failed, timeouts expired */ | ||
| 155 | |||
| 156 | #endif /* _XAUTH_STRUCT_ONLY */ | ||
| 157 | |||
| 158 | #endif /* _Xauth_h */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xcms.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xcms.h new file mode 100644 index 0000000000..779bc52ffd --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xcms.h | |||
| @@ -0,0 +1,805 @@ | |||
| 1 | /* $Xorg: Xcms.h,v 1.6 2000/08/17 19:45:04 cpqbld Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. | ||
| 5 | * All Rights Reserved | ||
| 6 | * | ||
| 7 | * This file is a component of an X Window System-specific implementation | ||
| 8 | * of Xcms based on the TekColor Color Management System. Permission is | ||
| 9 | * hereby granted to use, copy, modify, sell, and otherwise distribute this | ||
| 10 | * software and its documentation for any purpose and without fee, provided | ||
| 11 | * that this copyright, permission, and disclaimer notice is reproduced in | ||
| 12 | * all copies of this software and in supporting documentation. TekColor | ||
| 13 | * is a trademark of Tektronix, Inc. | ||
| 14 | * | ||
| 15 | * Tektronix makes no representation about the suitability of this software | ||
| 16 | * for any purpose. It is provided "as is" and with all faults. | ||
| 17 | * | ||
| 18 | * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE, | ||
| 19 | * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
| 20 | * PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY | ||
| 21 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER | ||
| 22 | * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF | ||
| 23 | * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
| 24 | * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE. | ||
| 25 | * | ||
| 26 | * | ||
| 27 | * DESCRIPTION | ||
| 28 | * Public include file for X Color Management System | ||
| 29 | */ | ||
| 30 | /* $XFree86: xc/lib/X11/Xcms.h,v 1.7 2003/11/03 03:46:26 dawes Exp $ */ | ||
| 31 | #ifndef _XCMS_H_ | ||
| 32 | #define _XCMS_H_ | ||
| 33 | |||
| 34 | #include <X11/Xlib.h> | ||
| 35 | |||
| 36 | /* | ||
| 37 | * XCMS Status Values | ||
| 38 | */ | ||
| 39 | #define XcmsFailure 0 | ||
| 40 | #define XcmsSuccess 1 | ||
| 41 | #define XcmsSuccessWithCompression 2 | ||
| 42 | |||
| 43 | /* | ||
| 44 | * Color Space Format ID's | ||
| 45 | * Color Space ID's are of XcmsColorFormat type. | ||
| 46 | * | ||
| 47 | * bit 31 | ||
| 48 | * 0 == Device-Independent | ||
| 49 | * 1 == Device-Dependent | ||
| 50 | * | ||
| 51 | * bit 30: | ||
| 52 | * 0 == Registered with X Consortium | ||
| 53 | * 1 == Unregistered | ||
| 54 | */ | ||
| 55 | #define XcmsUndefinedFormat (XcmsColorFormat)0x00000000 | ||
| 56 | #define XcmsCIEXYZFormat (XcmsColorFormat)0x00000001 | ||
| 57 | #define XcmsCIEuvYFormat (XcmsColorFormat)0x00000002 | ||
| 58 | #define XcmsCIExyYFormat (XcmsColorFormat)0x00000003 | ||
| 59 | #define XcmsCIELabFormat (XcmsColorFormat)0x00000004 | ||
| 60 | #define XcmsCIELuvFormat (XcmsColorFormat)0x00000005 | ||
| 61 | #define XcmsTekHVCFormat (XcmsColorFormat)0x00000006 | ||
| 62 | #define XcmsRGBFormat (XcmsColorFormat)0x80000000 | ||
| 63 | #define XcmsRGBiFormat (XcmsColorFormat)0x80000001 | ||
| 64 | |||
| 65 | /* | ||
| 66 | * State of XcmsPerScrnInfo | ||
| 67 | */ | ||
| 68 | #define XcmsInitNone 0x00 /* no initialization attempted */ | ||
| 69 | #define XcmsInitSuccess 0x01 /* initialization successful */ | ||
| 70 | #define XcmsInitFailure 0xff /* failure, use defaults */ | ||
| 71 | |||
| 72 | #define DisplayOfCCC(ccc) ((ccc)->dpy) | ||
| 73 | #define ScreenNumberOfCCC(ccc) ((ccc)->screenNumber) | ||
| 74 | #define VisualOfCCC(ccc) ((ccc)->visual) | ||
| 75 | #define ClientWhitePointOfCCC(ccc) (&(ccc)->clientWhitePt) | ||
| 76 | #define ScreenWhitePointOfCCC(ccc) (&(ccc)->pPerScrnInfo->screenWhitePt) | ||
| 77 | #define FunctionSetOfCCC(ccc) ((ccc)->pPerScrnInfo->functionSet) | ||
| 78 | |||
| 79 | typedef unsigned long XcmsColorFormat; /* Color Space Format ID */ | ||
| 80 | |||
| 81 | typedef double XcmsFloat; | ||
| 82 | |||
| 83 | /* | ||
| 84 | * Device RGB | ||
| 85 | */ | ||
| 86 | typedef struct { | ||
| 87 | unsigned short red; /* scaled from 0x0000 to 0xffff */ | ||
| 88 | unsigned short green; /* scaled from 0x0000 to 0xffff */ | ||
| 89 | unsigned short blue; /* scaled from 0x0000 to 0xffff */ | ||
| 90 | } XcmsRGB; | ||
| 91 | |||
| 92 | /* | ||
| 93 | * RGB Intensity | ||
| 94 | */ | ||
| 95 | typedef struct { | ||
| 96 | XcmsFloat red; /* 0.0 - 1.0 */ | ||
| 97 | XcmsFloat green; /* 0.0 - 1.0 */ | ||
| 98 | XcmsFloat blue; /* 0.0 - 1.0 */ | ||
| 99 | } XcmsRGBi; | ||
| 100 | |||
| 101 | /* | ||
| 102 | * CIE XYZ | ||
| 103 | */ | ||
| 104 | typedef struct { | ||
| 105 | XcmsFloat X; | ||
| 106 | XcmsFloat Y; | ||
| 107 | XcmsFloat Z; | ||
| 108 | } XcmsCIEXYZ; | ||
| 109 | |||
| 110 | /* | ||
| 111 | * CIE u'v'Y | ||
| 112 | */ | ||
| 113 | typedef struct { | ||
| 114 | XcmsFloat u_prime; /* 0.0 - 1.0 */ | ||
| 115 | XcmsFloat v_prime; /* 0.0 - 1.0 */ | ||
| 116 | XcmsFloat Y; /* 0.0 - 1.0 */ | ||
| 117 | } XcmsCIEuvY; | ||
| 118 | |||
| 119 | /* | ||
| 120 | * CIE xyY | ||
| 121 | */ | ||
| 122 | typedef struct { | ||
| 123 | XcmsFloat x; /* 0.0 - 1.0 */ | ||
| 124 | XcmsFloat y; /* 0.0 - 1.0 */ | ||
| 125 | XcmsFloat Y; /* 0.0 - 1.0 */ | ||
| 126 | } XcmsCIExyY; | ||
| 127 | |||
| 128 | /* | ||
| 129 | * CIE L*a*b* | ||
| 130 | */ | ||
| 131 | typedef struct { | ||
| 132 | XcmsFloat L_star; /* 0.0 - 100.0 */ | ||
| 133 | XcmsFloat a_star; | ||
| 134 | XcmsFloat b_star; | ||
| 135 | } XcmsCIELab; | ||
| 136 | |||
| 137 | /* | ||
| 138 | * CIE L*u*v* | ||
| 139 | */ | ||
| 140 | typedef struct { | ||
| 141 | XcmsFloat L_star; /* 0.0 - 100.0 */ | ||
| 142 | XcmsFloat u_star; | ||
| 143 | XcmsFloat v_star; | ||
| 144 | } XcmsCIELuv; | ||
| 145 | |||
| 146 | /* | ||
| 147 | * TekHVC | ||
| 148 | */ | ||
| 149 | typedef struct { | ||
| 150 | XcmsFloat H; /* 0.0 - 360.0 */ | ||
| 151 | XcmsFloat V; /* 0.0 - 100.0 */ | ||
| 152 | XcmsFloat C; /* 0.0 - 100.0 */ | ||
| 153 | } XcmsTekHVC; | ||
| 154 | |||
| 155 | /* | ||
| 156 | * PAD | ||
| 157 | */ | ||
| 158 | typedef struct { | ||
| 159 | XcmsFloat pad0; | ||
| 160 | XcmsFloat pad1; | ||
| 161 | XcmsFloat pad2; | ||
| 162 | XcmsFloat pad3; | ||
| 163 | } XcmsPad; | ||
| 164 | |||
| 165 | |||
| 166 | /* | ||
| 167 | * XCMS Color Structure | ||
| 168 | */ | ||
| 169 | typedef struct { | ||
| 170 | union { | ||
| 171 | XcmsRGB RGB; | ||
| 172 | XcmsRGBi RGBi; | ||
| 173 | XcmsCIEXYZ CIEXYZ; | ||
| 174 | XcmsCIEuvY CIEuvY; | ||
| 175 | XcmsCIExyY CIExyY; | ||
| 176 | XcmsCIELab CIELab; | ||
| 177 | XcmsCIELuv CIELuv; | ||
| 178 | XcmsTekHVC TekHVC; | ||
| 179 | XcmsPad Pad; | ||
| 180 | } spec; /* the color specification */ | ||
| 181 | unsigned long pixel; /* pixel value (as needed) */ | ||
| 182 | XcmsColorFormat format; /* the specification format */ | ||
| 183 | } XcmsColor; | ||
| 184 | |||
| 185 | |||
| 186 | /* | ||
| 187 | * XCMS Per Screen related data | ||
| 188 | */ | ||
| 189 | |||
| 190 | typedef struct _XcmsPerScrnInfo { | ||
| 191 | XcmsColor screenWhitePt; /* Screen White point */ | ||
| 192 | XPointer functionSet; /* pointer to Screen Color Characterization */ | ||
| 193 | /* Function Set structure */ | ||
| 194 | XPointer screenData; /* pointer to corresponding Screen Color*/ | ||
| 195 | /* Characterization Data */ | ||
| 196 | unsigned char state; /* XcmsInitNone, XcmsInitSuccess, XcmsInitFailure */ | ||
| 197 | char pad[3]; | ||
| 198 | } XcmsPerScrnInfo; | ||
| 199 | |||
| 200 | typedef struct _XcmsCCC *XcmsCCC; | ||
| 201 | |||
| 202 | typedef Status (*XcmsCompressionProc)( /* Gamut Compression Proc */ | ||
| 203 | XcmsCCC /* ccc */, | ||
| 204 | XcmsColor* /* colors_in_out */, | ||
| 205 | unsigned int /* ncolors */, | ||
| 206 | unsigned int /* index */, | ||
| 207 | Bool* /* compression_flags_return */ | ||
| 208 | ); | ||
| 209 | |||
| 210 | typedef Status (*XcmsWhiteAdjustProc)( /* White Point Adjust Proc */ | ||
| 211 | XcmsCCC /* ccc */, | ||
| 212 | XcmsColor* /* initial_white_point*/, | ||
| 213 | XcmsColor* /* target_white_point*/, | ||
| 214 | XcmsColorFormat /* target_format */, | ||
| 215 | XcmsColor* /* colors_in_out */, | ||
| 216 | unsigned int /* ncolors */, | ||
| 217 | Bool* /* compression_flags_return */ | ||
| 218 | ); | ||
| 219 | |||
| 220 | /* | ||
| 221 | * XCMS Color Conversion Context | ||
| 222 | */ | ||
| 223 | typedef struct _XcmsCCC { | ||
| 224 | Display *dpy; /* X Display */ | ||
| 225 | int screenNumber; /* X screen number */ | ||
| 226 | Visual *visual; /* X Visual */ | ||
| 227 | XcmsColor clientWhitePt; /* Client White Point */ | ||
| 228 | XcmsCompressionProc gamutCompProc; /* Gamut Compression Function */ | ||
| 229 | XPointer gamutCompClientData; /* Gamut Comp Func Client Data */ | ||
| 230 | XcmsWhiteAdjustProc whitePtAdjProc; /* White Point Adjustment Function */ | ||
| 231 | XPointer whitePtAdjClientData; /* White Pt Adj Func Client Data */ | ||
| 232 | XcmsPerScrnInfo *pPerScrnInfo; /* pointer to per screen information */ | ||
| 233 | /* associated with the above display */ | ||
| 234 | /* screenNumber */ | ||
| 235 | } XcmsCCCRec; | ||
| 236 | |||
| 237 | typedef Status (*XcmsScreenInitProc)( /* Screen Initialization Proc */ | ||
| 238 | Display* /* dpy */, | ||
| 239 | int /* screen_number */, | ||
| 240 | XcmsPerScrnInfo* /* screen_info */ | ||
| 241 | ); | ||
| 242 | |||
| 243 | typedef void (*XcmsScreenFreeProc)( | ||
| 244 | XPointer /* screenData */ | ||
| 245 | ); | ||
| 246 | |||
| 247 | /* | ||
| 248 | * Function List Pointer -- pointer to an array of function pointers. | ||
| 249 | * The end of list is indicated by a NULL pointer. | ||
| 250 | */ | ||
| 251 | /* | ||
| 252 | * XXX: The use of the XcmsConversionProc type is broken. The | ||
| 253 | * device-independent colour conversion code uses it as: | ||
| 254 | |||
| 255 | typedef Status (*XcmsConversionProc)(XcmsCCC, XcmsColor *, XcmsColor *, | ||
| 256 | unsigned int); | ||
| 257 | |||
| 258 | * while the device-dependent code uses it as: | ||
| 259 | |||
| 260 | typedef Status (*XcmsConversionProc)(XcmsCCC, XcmsColor *, unsigned int, | ||
| 261 | Bool *); | ||
| 262 | |||
| 263 | * Until this is reworked, it's probably best to leave it unprotoized. | ||
| 264 | * The code works regardless. | ||
| 265 | */ | ||
| 266 | typedef Status (*XcmsDDConversionProc)( /* using device-dependent version */ | ||
| 267 | XcmsCCC /* ccc */, | ||
| 268 | XcmsColor* /* pcolors_in_out */, | ||
| 269 | unsigned int /* ncolors */, | ||
| 270 | Bool* /* pCompressed */ | ||
| 271 | ); | ||
| 272 | |||
| 273 | typedef Status (*XcmsDIConversionProc)( /* using device-independent version */ | ||
| 274 | XcmsCCC /* ccc */, | ||
| 275 | XcmsColor* /* white_point */, | ||
| 276 | XcmsColor* /* pcolors_in_out */, | ||
| 277 | unsigned int /* ncolors */ | ||
| 278 | ); | ||
| 279 | |||
| 280 | typedef XcmsDIConversionProc XcmsConversionProc; | ||
| 281 | typedef XcmsConversionProc *XcmsFuncListPtr; | ||
| 282 | |||
| 283 | typedef int (*XcmsParseStringProc)( /* Color String Parsing Proc */ | ||
| 284 | char* /* color_string */, | ||
| 285 | XcmsColor* /* color_return */ | ||
| 286 | ); | ||
| 287 | |||
| 288 | /* | ||
| 289 | * Color Space -- per Color Space related data (Device-Independent | ||
| 290 | * or Device-Dependent) | ||
| 291 | */ | ||
| 292 | typedef struct _XcmsColorSpace { | ||
| 293 | const char *prefix; /* Prefix of string format. */ | ||
| 294 | XcmsColorFormat id; /* Format ID number. */ | ||
| 295 | XcmsParseStringProc parseString; | ||
| 296 | /* String format parsing function */ | ||
| 297 | XcmsFuncListPtr to_CIEXYZ; /* Pointer to an array of function */ | ||
| 298 | /* pointers such that when the */ | ||
| 299 | /* functions are executed in sequence */ | ||
| 300 | /* will convert a XcmsColor structure */ | ||
| 301 | /* from this color space to CIEXYZ */ | ||
| 302 | /* space. */ | ||
| 303 | XcmsFuncListPtr from_CIEXYZ;/* Pointer to an array of function */ | ||
| 304 | /* pointers such that when the */ | ||
| 305 | /* functions are executed in sequence */ | ||
| 306 | /* will convert a XcmsColor structure */ | ||
| 307 | /* from CIEXYZ space to this color */ | ||
| 308 | /* space. */ | ||
| 309 | int inverse_flag; /* If 1, indicates that for 0 <= i < n */ | ||
| 310 | /* where n is the number of function */ | ||
| 311 | /* pointers in the lists to_CIEXYZ */ | ||
| 312 | /* and from_CIEXYZ; for each function */ | ||
| 313 | /* to_CIEXYZ[i] its inverse function */ | ||
| 314 | /* is from_CIEXYZ[n - i]. */ | ||
| 315 | |||
| 316 | } XcmsColorSpace; | ||
| 317 | |||
| 318 | /* | ||
| 319 | * Screen Color Characterization Function Set -- per device class | ||
| 320 | * color space conversion functions. | ||
| 321 | */ | ||
| 322 | typedef struct _XcmsFunctionSet { | ||
| 323 | XcmsColorSpace **DDColorSpaces; | ||
| 324 | /* Pointer to an array of pointers to */ | ||
| 325 | /* Device-DEPENDENT color spaces */ | ||
| 326 | /* understood by this SCCFuncSet. */ | ||
| 327 | XcmsScreenInitProc screenInitProc; | ||
| 328 | /* Screen initialization function that */ | ||
| 329 | /* reads Screen Color Characterization*/ | ||
| 330 | /* Data off properties on the screen's*/ | ||
| 331 | /* root window. */ | ||
| 332 | XcmsScreenFreeProc screenFreeProc; | ||
| 333 | /* Function that frees the SCCData */ | ||
| 334 | /* structures. */ | ||
| 335 | } XcmsFunctionSet; | ||
| 336 | |||
| 337 | _XFUNCPROTOBEGIN | ||
| 338 | |||
| 339 | extern Status XcmsAddColorSpace ( | ||
| 340 | XcmsColorSpace* /* pColorSpace */ | ||
| 341 | ); | ||
| 342 | |||
| 343 | extern Status XcmsAddFunctionSet ( | ||
| 344 | XcmsFunctionSet* /* functionSet */ | ||
| 345 | ); | ||
| 346 | |||
| 347 | extern Status XcmsAllocColor ( | ||
| 348 | Display* /* dpy */, | ||
| 349 | Colormap /* colormap */, | ||
| 350 | XcmsColor* /* color_in_out */, | ||
| 351 | XcmsColorFormat /* result_format */ | ||
| 352 | ); | ||
| 353 | |||
| 354 | extern Status XcmsAllocNamedColor ( | ||
| 355 | Display* /* dpy */, | ||
| 356 | Colormap /* colormap */, | ||
| 357 | _Xconst char* /* color_string */, | ||
| 358 | XcmsColor* /* color_scrn_return */, | ||
| 359 | XcmsColor* /* color_exact_return */, | ||
| 360 | XcmsColorFormat /* result_format */ | ||
| 361 | ); | ||
| 362 | |||
| 363 | extern XcmsCCC XcmsCCCOfColormap ( | ||
| 364 | Display* /* dpy */, | ||
| 365 | Colormap /* colormap */ | ||
| 366 | ); | ||
| 367 | |||
| 368 | extern Status XcmsCIELabClipab( | ||
| 369 | XcmsCCC /* ccc */, | ||
| 370 | XcmsColor* /* colors_in_out */, | ||
| 371 | unsigned int /* ncolors */, | ||
| 372 | unsigned int /* index */, | ||
| 373 | Bool* /* compression_flags_return */ | ||
| 374 | ); | ||
| 375 | |||
| 376 | extern Status XcmsCIELabClipL( | ||
| 377 | XcmsCCC /* ccc */, | ||
| 378 | XcmsColor* /* colors_in_out */, | ||
| 379 | unsigned int /* ncolors */, | ||
| 380 | unsigned int /* index */, | ||
| 381 | Bool* /* compression_flags_return */ | ||
| 382 | ); | ||
| 383 | |||
| 384 | extern Status XcmsCIELabClipLab( | ||
| 385 | XcmsCCC /* ccc */, | ||
| 386 | XcmsColor* /* colors_in_out */, | ||
| 387 | unsigned int /* ncolors */, | ||
| 388 | unsigned int /* index */, | ||
| 389 | Bool* /* compression_flags_return */ | ||
| 390 | ); | ||
| 391 | |||
| 392 | extern Status XcmsCIELabQueryMaxC ( | ||
| 393 | XcmsCCC /* ccc */, | ||
| 394 | XcmsFloat /* hue_angle */, | ||
| 395 | XcmsFloat /* L_star */, | ||
| 396 | XcmsColor* /* color_return */ | ||
| 397 | ); | ||
| 398 | |||
| 399 | extern Status XcmsCIELabQueryMaxL ( | ||
| 400 | XcmsCCC /* ccc */, | ||
| 401 | XcmsFloat /* hue_angle */, | ||
| 402 | XcmsFloat /* chroma */, | ||
| 403 | XcmsColor* /* color_return */ | ||
| 404 | ); | ||
| 405 | |||
| 406 | extern Status XcmsCIELabQueryMaxLC ( | ||
| 407 | XcmsCCC /* ccc */, | ||
| 408 | XcmsFloat /* hue_angle */, | ||
| 409 | XcmsColor* /* color_return */ | ||
| 410 | ); | ||
| 411 | |||
| 412 | extern Status XcmsCIELabQueryMinL ( | ||
| 413 | XcmsCCC /* ccc */, | ||
| 414 | XcmsFloat /* hue_angle */, | ||
| 415 | XcmsFloat /* chroma */, | ||
| 416 | XcmsColor* /* color_return */ | ||
| 417 | ); | ||
| 418 | |||
| 419 | extern Status XcmsCIELabToCIEXYZ ( | ||
| 420 | XcmsCCC /* ccc */, | ||
| 421 | XcmsColor* /* white_point */, | ||
| 422 | XcmsColor* /* colors */, | ||
| 423 | unsigned int /* ncolors */ | ||
| 424 | ); | ||
| 425 | |||
| 426 | extern Status XcmsCIELabWhiteShiftColors( | ||
| 427 | XcmsCCC /* ccc */, | ||
| 428 | XcmsColor* /* initial_white_point*/, | ||
| 429 | XcmsColor* /* target_white_point*/, | ||
| 430 | XcmsColorFormat /* target_format */, | ||
| 431 | XcmsColor* /* colors_in_out */, | ||
| 432 | unsigned int /* ncolors */, | ||
| 433 | Bool* /* compression_flags_return */ | ||
| 434 | ); | ||
| 435 | |||
| 436 | extern Status XcmsCIELuvClipL( | ||
| 437 | XcmsCCC /* ccc */, | ||
| 438 | XcmsColor* /* colors_in_out */, | ||
| 439 | unsigned int /* ncolors */, | ||
| 440 | unsigned int /* index */, | ||
| 441 | Bool* /* compression_flags_return */ | ||
| 442 | ); | ||
| 443 | |||
| 444 | extern Status XcmsCIELuvClipLuv( | ||
| 445 | XcmsCCC /* ccc */, | ||
| 446 | XcmsColor* /* colors_in_out */, | ||
| 447 | unsigned int /* ncolors */, | ||
| 448 | unsigned int /* index */, | ||
| 449 | Bool* /* compression_flags_return */ | ||
| 450 | ); | ||
| 451 | |||
| 452 | extern Status XcmsCIELuvClipuv( | ||
| 453 | XcmsCCC /* ccc */, | ||
| 454 | XcmsColor* /* colors_in_out */, | ||
| 455 | unsigned int /* ncolors */, | ||
| 456 | unsigned int /* index */, | ||
| 457 | Bool* /* compression_flags_return */ | ||
| 458 | ); | ||
| 459 | |||
| 460 | extern Status XcmsCIELuvQueryMaxC ( | ||
| 461 | XcmsCCC /* ccc */, | ||
| 462 | XcmsFloat /* hue_angle */, | ||
| 463 | XcmsFloat /* L_star */, | ||
| 464 | XcmsColor* /* color_return */ | ||
| 465 | ); | ||
| 466 | |||
| 467 | extern Status XcmsCIELuvQueryMaxL ( | ||
| 468 | XcmsCCC /* ccc */, | ||
| 469 | XcmsFloat /* hue_angle */, | ||
| 470 | XcmsFloat /* chroma */, | ||
| 471 | XcmsColor* /* color_return */ | ||
| 472 | ); | ||
| 473 | |||
| 474 | extern Status XcmsCIELuvQueryMaxLC ( | ||
| 475 | XcmsCCC /* ccc */, | ||
| 476 | XcmsFloat /* hue_angle */, | ||
| 477 | XcmsColor* /* color_return */ | ||
| 478 | ); | ||
| 479 | |||
| 480 | extern Status XcmsCIELuvQueryMinL ( | ||
| 481 | XcmsCCC /* ccc */, | ||
| 482 | XcmsFloat /* hue_angle */, | ||
| 483 | XcmsFloat /* chroma */, | ||
| 484 | XcmsColor* /* color_return */ | ||
| 485 | ); | ||
| 486 | |||
| 487 | extern Status XcmsCIELuvToCIEuvY ( | ||
| 488 | XcmsCCC /* ccc */, | ||
| 489 | XcmsColor* /* white_point */, | ||
| 490 | XcmsColor* /* colors */, | ||
| 491 | unsigned int /* ncolors */ | ||
| 492 | ); | ||
| 493 | |||
| 494 | extern Status XcmsCIELuvWhiteShiftColors( | ||
| 495 | XcmsCCC /* ccc */, | ||
| 496 | XcmsColor* /* initial_white_point*/, | ||
| 497 | XcmsColor* /* target_white_point*/, | ||
| 498 | XcmsColorFormat /* target_format */, | ||
| 499 | XcmsColor* /* colors_in_out */, | ||
| 500 | unsigned int /* ncolors */, | ||
| 501 | Bool* /* compression_flags_return */ | ||
| 502 | ); | ||
| 503 | |||
| 504 | extern Status XcmsCIEXYZToCIELab ( | ||
| 505 | XcmsCCC /* ccc */, | ||
| 506 | XcmsColor* /* white_point */, | ||
| 507 | XcmsColor* /* colors */, | ||
| 508 | unsigned int /* ncolors */ | ||
| 509 | ); | ||
| 510 | |||
| 511 | extern Status XcmsCIEXYZToCIEuvY ( | ||
| 512 | XcmsCCC /* ccc */, | ||
| 513 | XcmsColor* /* white_point */, | ||
| 514 | XcmsColor* /* colors */, | ||
| 515 | unsigned int /* ncolors */ | ||
| 516 | ); | ||
| 517 | |||
| 518 | extern Status XcmsCIEXYZToCIExyY ( | ||
| 519 | XcmsCCC /* ccc */, | ||
| 520 | XcmsColor* /* white_point */, | ||
| 521 | XcmsColor* /* colors */, | ||
| 522 | unsigned int /* ncolors */ | ||
| 523 | ); | ||
| 524 | |||
| 525 | extern Status XcmsCIEXYZToRGBi ( | ||
| 526 | XcmsCCC /* ccc */, | ||
| 527 | XcmsColor* /* colors */, | ||
| 528 | unsigned int /* ncolors */, | ||
| 529 | Bool* /* compression_flags_return */ | ||
| 530 | ); | ||
| 531 | |||
| 532 | extern Status XcmsCIEuvYToCIELuv ( | ||
| 533 | XcmsCCC /* ccc */, | ||
| 534 | XcmsColor* /* white_point */, | ||
| 535 | XcmsColor* /* colors */, | ||
| 536 | unsigned int /* ncolors */ | ||
| 537 | ); | ||
| 538 | |||
| 539 | extern Status XcmsCIEuvYToCIEXYZ ( | ||
| 540 | XcmsCCC /* ccc */, | ||
| 541 | XcmsColor* /* white_point */, | ||
| 542 | XcmsColor* /* colors */, | ||
| 543 | unsigned int /* ncolors */ | ||
| 544 | ); | ||
| 545 | |||
| 546 | extern Status XcmsCIEuvYToTekHVC ( | ||
| 547 | XcmsCCC /* ccc */, | ||
| 548 | XcmsColor* /* white_point */, | ||
| 549 | XcmsColor* /* colors */, | ||
| 550 | unsigned int /* ncolors */ | ||
| 551 | ); | ||
| 552 | |||
| 553 | extern Status XcmsCIExyYToCIEXYZ ( | ||
| 554 | XcmsCCC /* ccc */, | ||
| 555 | XcmsColor* /* white_point */, | ||
| 556 | XcmsColor* /* colors */, | ||
| 557 | unsigned int /* ncolors */ | ||
| 558 | ); | ||
| 559 | |||
| 560 | extern XcmsColor *XcmsClientWhitePointOfCCC ( | ||
| 561 | XcmsCCC /* ccc */ | ||
| 562 | ); | ||
| 563 | |||
| 564 | extern Status XcmsConvertColors ( | ||
| 565 | XcmsCCC /* ccc */, | ||
| 566 | XcmsColor* /* colorArry_in_out */, | ||
| 567 | unsigned int /* nColors */, | ||
| 568 | XcmsColorFormat /* targetFormat */, | ||
| 569 | Bool* /* compArry_return */ | ||
| 570 | ); | ||
| 571 | |||
| 572 | extern XcmsCCC XcmsCreateCCC ( | ||
| 573 | Display* /* dpy */, | ||
| 574 | int /* screenNumber */, | ||
| 575 | Visual* /* visual */, | ||
| 576 | XcmsColor* /* clientWhitePt */, | ||
| 577 | XcmsCompressionProc /* gamutCompProc */, | ||
| 578 | XPointer /* gamutCompClientData */, | ||
| 579 | XcmsWhiteAdjustProc /* whitePtAdjProc */, | ||
| 580 | XPointer /* whitePtAdjClientData */ | ||
| 581 | ); | ||
| 582 | |||
| 583 | extern XcmsCCC XcmsDefaultCCC ( | ||
| 584 | Display* /* dpy */, | ||
| 585 | int /* screenNumber */ | ||
| 586 | ); | ||
| 587 | |||
| 588 | extern Display *XcmsDisplayOfCCC ( | ||
| 589 | XcmsCCC /* ccc */ | ||
| 590 | ); | ||
| 591 | |||
| 592 | extern XcmsColorFormat XcmsFormatOfPrefix ( | ||
| 593 | char* /* prefix */ | ||
| 594 | ); | ||
| 595 | |||
| 596 | extern void XcmsFreeCCC ( | ||
| 597 | XcmsCCC /* ccc */ | ||
| 598 | ); | ||
| 599 | |||
| 600 | extern Status XcmsLookupColor ( | ||
| 601 | Display* /* dpy */, | ||
| 602 | Colormap /* colormap */, | ||
| 603 | _Xconst char* /* color_string */, | ||
| 604 | XcmsColor* /* pColor_exact_in_out */, | ||
| 605 | XcmsColor* /* pColor_scrn_in_out */, | ||
| 606 | XcmsColorFormat /* result_format */ | ||
| 607 | ); | ||
| 608 | |||
| 609 | extern char *XcmsPrefixOfFormat ( | ||
| 610 | XcmsColorFormat /* id */ | ||
| 611 | ); | ||
| 612 | |||
| 613 | extern Status XcmsQueryBlack ( | ||
| 614 | XcmsCCC /* ccc */, | ||
| 615 | XcmsColorFormat /* target_format */, | ||
| 616 | XcmsColor* /* color_return */ | ||
| 617 | ); | ||
| 618 | |||
| 619 | extern Status XcmsQueryBlue ( | ||
| 620 | XcmsCCC /* ccc */, | ||
| 621 | XcmsColorFormat /* target_format */, | ||
| 622 | XcmsColor* /* color_return */ | ||
| 623 | ); | ||
| 624 | |||
| 625 | extern Status XcmsQueryColor ( | ||
| 626 | Display* /* dpy */, | ||
| 627 | Colormap /* colormap */, | ||
| 628 | XcmsColor* /* pColor_in_out */, | ||
| 629 | XcmsColorFormat /* result_format */ | ||
| 630 | ); | ||
| 631 | |||
| 632 | extern Status XcmsQueryColors ( | ||
| 633 | Display* /* dpy */, | ||
| 634 | Colormap /* colormap */, | ||
| 635 | XcmsColor* /* colorArry_in_out */, | ||
| 636 | unsigned int /* nColors */, | ||
| 637 | XcmsColorFormat /* result_format */ | ||
| 638 | ); | ||
| 639 | |||
| 640 | extern Status XcmsQueryGreen ( | ||
| 641 | XcmsCCC /* ccc */, | ||
| 642 | XcmsColorFormat /* target_format */, | ||
| 643 | XcmsColor* /* color_return */ | ||
| 644 | ); | ||
| 645 | |||
| 646 | extern Status XcmsQueryRed ( | ||
| 647 | XcmsCCC /* ccc */, | ||
| 648 | XcmsColorFormat /* target_format */, | ||
| 649 | XcmsColor* /* color_return */ | ||
| 650 | ); | ||
| 651 | |||
| 652 | extern Status XcmsQueryWhite ( | ||
| 653 | XcmsCCC /* ccc */, | ||
| 654 | XcmsColorFormat /* target_format */, | ||
| 655 | XcmsColor* /* color_return */ | ||
| 656 | ); | ||
| 657 | |||
| 658 | extern Status XcmsRGBiToCIEXYZ ( | ||
| 659 | XcmsCCC /* ccc */, | ||
| 660 | XcmsColor* /* colors */, | ||
| 661 | unsigned int /* ncolors */, | ||
| 662 | Bool* /* compression_flags_return */ | ||
| 663 | ); | ||
| 664 | |||
| 665 | extern Status XcmsRGBiToRGB ( | ||
| 666 | XcmsCCC /* ccc */, | ||
| 667 | XcmsColor* /* colors */, | ||
| 668 | unsigned int /* ncolors */, | ||
| 669 | Bool* /* compression_flags_return */ | ||
| 670 | ); | ||
| 671 | |||
| 672 | extern Status XcmsRGBToRGBi ( | ||
| 673 | XcmsCCC /* ccc */, | ||
| 674 | XcmsColor* /* colors */, | ||
| 675 | unsigned int /* ncolors */, | ||
| 676 | Bool* /* compression_flags_return */ | ||
| 677 | ); | ||
| 678 | |||
| 679 | extern int XcmsScreenNumberOfCCC ( | ||
| 680 | XcmsCCC /* ccc */ | ||
| 681 | ); | ||
| 682 | |||
| 683 | extern XcmsColor *XcmsScreenWhitePointOfCCC ( | ||
| 684 | XcmsCCC /* ccc */ | ||
| 685 | ); | ||
| 686 | |||
| 687 | extern XcmsCCC XcmsSetCCCOfColormap( | ||
| 688 | Display* /* dpy */, | ||
| 689 | Colormap /* colormap */, | ||
| 690 | XcmsCCC /* ccc */ | ||
| 691 | ); | ||
| 692 | |||
| 693 | extern XcmsCompressionProc XcmsSetCompressionProc ( | ||
| 694 | XcmsCCC /* ccc */, | ||
| 695 | XcmsCompressionProc /* compression_proc */, | ||
| 696 | XPointer /* client_data */ | ||
| 697 | ); | ||
| 698 | |||
| 699 | extern XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc ( | ||
| 700 | XcmsCCC /* ccc */, | ||
| 701 | XcmsWhiteAdjustProc /* white_adjust_proc */, | ||
| 702 | XPointer /* client_data */ | ||
| 703 | ); | ||
| 704 | |||
| 705 | extern Status XcmsSetWhitePoint ( | ||
| 706 | XcmsCCC /* ccc */, | ||
| 707 | XcmsColor* /* color */ | ||
| 708 | ); | ||
| 709 | |||
| 710 | extern Status XcmsStoreColor ( | ||
| 711 | Display* /* dpy */, | ||
| 712 | Colormap /* colormap */, | ||
| 713 | XcmsColor* /* pColor_in */ | ||
| 714 | ); | ||
| 715 | |||
| 716 | extern Status XcmsStoreColors ( | ||
| 717 | Display* /* dpy */, | ||
| 718 | Colormap /* colormap */, | ||
| 719 | XcmsColor* /* colorArry_in */, | ||
| 720 | unsigned int /* nColors */, | ||
| 721 | Bool* /* compArry_return */ | ||
| 722 | ); | ||
| 723 | |||
| 724 | extern Status XcmsTekHVCClipC( | ||
| 725 | XcmsCCC /* ccc */, | ||
| 726 | XcmsColor* /* colors_in_out */, | ||
| 727 | unsigned int /* ncolors */, | ||
| 728 | unsigned int /* index */, | ||
| 729 | Bool* /* compression_flags_return */ | ||
| 730 | ); | ||
| 731 | |||
| 732 | extern Status XcmsTekHVCClipV( | ||
| 733 | XcmsCCC /* ccc */, | ||
| 734 | XcmsColor* /* colors_in_out */, | ||
| 735 | unsigned int /* ncolors */, | ||
| 736 | unsigned int /* index */, | ||
| 737 | Bool* /* compression_flags_return */ | ||
| 738 | ); | ||
| 739 | |||
| 740 | extern Status XcmsTekHVCClipVC( | ||
| 741 | XcmsCCC /* ccc */, | ||
| 742 | XcmsColor* /* colors_in_out */, | ||
| 743 | unsigned int /* ncolors */, | ||
| 744 | unsigned int /* index */, | ||
| 745 | Bool* /* compression_flags_return */ | ||
| 746 | ); | ||
| 747 | |||
| 748 | extern Status XcmsTekHVCQueryMaxC ( | ||
| 749 | XcmsCCC /* ccc */, | ||
| 750 | XcmsFloat /* hue */, | ||
| 751 | XcmsFloat /* value */, | ||
| 752 | XcmsColor* /* color_return */ | ||
| 753 | ); | ||
| 754 | |||
| 755 | extern Status XcmsTekHVCQueryMaxV ( | ||
| 756 | XcmsCCC /* ccc */, | ||
| 757 | XcmsFloat /* hue */, | ||
| 758 | XcmsFloat /* chroma */, | ||
| 759 | XcmsColor* /* color_return */ | ||
| 760 | ); | ||
| 761 | |||
| 762 | extern Status XcmsTekHVCQueryMaxVC ( | ||
| 763 | XcmsCCC /* ccc */, | ||
| 764 | XcmsFloat /* hue */, | ||
| 765 | XcmsColor* /* color_return */ | ||
| 766 | ); | ||
| 767 | |||
| 768 | extern Status XcmsTekHVCQueryMaxVSamples ( | ||
| 769 | XcmsCCC /* ccc */, | ||
| 770 | XcmsFloat /* hue */, | ||
| 771 | XcmsColor* /* colors_return */, | ||
| 772 | unsigned int /* nsamples */ | ||
| 773 | ); | ||
| 774 | |||
| 775 | extern Status XcmsTekHVCQueryMinV ( | ||
| 776 | XcmsCCC /* ccc */, | ||
| 777 | XcmsFloat /* hue */, | ||
| 778 | XcmsFloat /* chroma */, | ||
| 779 | XcmsColor* /* color_return */ | ||
| 780 | ); | ||
| 781 | |||
| 782 | extern Status XcmsTekHVCToCIEuvY ( | ||
| 783 | XcmsCCC /* ccc */, | ||
| 784 | XcmsColor* /* white_point */, | ||
| 785 | XcmsColor* /* colors */, | ||
| 786 | unsigned int /* ncolors */ | ||
| 787 | ); | ||
| 788 | |||
| 789 | extern Status XcmsTekHVCWhiteShiftColors( | ||
| 790 | XcmsCCC /* ccc */, | ||
| 791 | XcmsColor* /* initial_white_point*/, | ||
| 792 | XcmsColor* /* target_white_point*/, | ||
| 793 | XcmsColorFormat /* target_format */, | ||
| 794 | XcmsColor* /* colors_in_out */, | ||
| 795 | unsigned int /* ncolors */, | ||
| 796 | Bool* /* compression_flags_return */ | ||
| 797 | ); | ||
| 798 | |||
| 799 | extern Visual *XcmsVisualOfCCC ( | ||
| 800 | XcmsCCC /* ccc */ | ||
| 801 | ); | ||
| 802 | |||
| 803 | _XFUNCPROTOEND | ||
| 804 | |||
| 805 | #endif /* _XCMS_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xdefs.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xdefs.h new file mode 100644 index 0000000000..5ee2d8949f --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xdefs.h | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | /* $XFree86: xc/include/Xdefs.h,v 1.2 1999/08/22 06:21:20 dawes Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright (c) 1999 The XFree86 Project Inc. | ||
| 6 | |||
| 7 | All Rights Reserved. | ||
| 8 | |||
| 9 | The above copyright notice and this permission notice shall be included in | ||
| 10 | all copies or substantial portions of the Software. | ||
| 11 | |||
| 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. | ||
| 18 | |||
| 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.. | ||
| 23 | |||
| 24 | */ | ||
| 25 | |||
| 26 | /** | ||
| 27 | ** Types definitions shared between server and clients | ||
| 28 | **/ | ||
| 29 | |||
| 30 | #ifndef _XDEFS_H | ||
| 31 | #define _XDEFS_H | ||
| 32 | |||
| 33 | #ifdef _XSERVER64 | ||
| 34 | #include <X11/Xmd.h> | ||
| 35 | #endif | ||
| 36 | |||
| 37 | #ifndef _XTYPEDEF_ATOM | ||
| 38 | # define _XTYPEDEF_ATOM | ||
| 39 | # ifndef _XSERVER64 | ||
| 40 | typedef unsigned long Atom; | ||
| 41 | # else | ||
| 42 | typedef CARD32 Atom; | ||
| 43 | # endif | ||
| 44 | #endif | ||
| 45 | |||
| 46 | #ifndef Bool | ||
| 47 | # ifndef _XTYPEDEF_BOOL | ||
| 48 | # define _XTYPEDEF_BOOL | ||
| 49 | typedef int Bool; | ||
| 50 | # endif | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #ifndef _XTYPEDEF_POINTER | ||
| 54 | # define _XTYPEDEF_POINTER | ||
| 55 | typedef void *pointer; | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #ifndef _XTYPEDEF_CLIENTPTR | ||
| 59 | typedef struct _Client *ClientPtr; | ||
| 60 | # define _XTYPEDEF_CLIENTPTR | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #ifndef _XTYPEDEF_XID | ||
| 64 | # define _XTYPEDEF_XID | ||
| 65 | # ifndef _XSERVER64 | ||
| 66 | typedef unsigned long XID; | ||
| 67 | # else | ||
| 68 | typedef CARD32 XID; | ||
| 69 | # endif | ||
| 70 | #endif | ||
| 71 | |||
| 72 | #ifndef _XTYPEDEF_MASK | ||
| 73 | # define _XTYPEDEF_MASK | ||
| 74 | # ifndef _XSERVER64 | ||
| 75 | typedef unsigned long Mask; | ||
| 76 | # else | ||
| 77 | typedef CARD32 Mask; | ||
| 78 | # endif | ||
| 79 | #endif | ||
| 80 | |||
| 81 | #ifndef _XTYPEDEF_FONTPTR | ||
| 82 | # define _XTYPEDEF_FONTPTR | ||
| 83 | typedef struct _Font *FontPtr; /* also in fonts/include/font.h */ | ||
| 84 | #endif | ||
| 85 | |||
| 86 | #ifndef _XTYPEDEF_FONT | ||
| 87 | # define _XTYPEDEF_FONT | ||
| 88 | typedef XID Font; | ||
| 89 | #endif | ||
| 90 | |||
| 91 | #ifndef _XTYPEDEF_FSID | ||
| 92 | # ifndef _XSERVER64 | ||
| 93 | typedef unsigned long FSID; | ||
| 94 | # else | ||
| 95 | typedef CARD32 FSID; | ||
| 96 | # endif | ||
| 97 | #endif | ||
| 98 | |||
| 99 | typedef FSID AccContext; | ||
| 100 | |||
| 101 | /* OS independent time value | ||
| 102 | XXX Should probably go in Xos.h */ | ||
| 103 | typedef struct timeval **OSTimePtr; | ||
| 104 | |||
| 105 | |||
| 106 | typedef void (* BlockHandlerProcPtr)(pointer /* blockData */, | ||
| 107 | OSTimePtr /* pTimeout */, | ||
| 108 | pointer /* pReadmask */); | ||
| 109 | |||
| 110 | #endif | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xdmcp.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xdmcp.h new file mode 100644 index 0000000000..6d7619a902 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xdmcp.h | |||
| @@ -0,0 +1,190 @@ | |||
| 1 | /* $XdotOrg: lib/Xdmcp/include/X11/Xdmcp.h,v 1.3 2005/07/03 07:00:56 daniels Exp $ */ | ||
| 2 | /* $Xorg: Xdmcp.h,v 1.7 2001/04/13 14:43:00 steve Exp $ */ | ||
| 3 | /* | ||
| 4 | * Copyright 1989 Network Computing Devices, Inc., Mountain View, California. | ||
| 5 | * | ||
| 6 | * Permission to use, copy, modify, and distribute this software and its | ||
| 7 | * documentation for any purpose and without fee is hereby granted, provided | ||
| 8 | * that the above copyright notice appear in all copies and that both that | ||
| 9 | * copyright notice and this permission notice appear in supporting | ||
| 10 | * documentation, and that the name of N.C.D. not be used in advertising or | ||
| 11 | * publicity pertaining to distribution of the software without specific, | ||
| 12 | * written prior permission. N.C.D. makes no representations about the | ||
| 13 | * suitability of this software for any purpose. It is provided "as is" | ||
| 14 | * without express or implied warranty. | ||
| 15 | * | ||
| 16 | */ | ||
| 17 | /* $XFree86: xc/lib/Xdmcp/Xdmcp.h,v 3.7 2003/07/09 15:27:29 tsi Exp $ */ | ||
| 18 | |||
| 19 | #ifndef _XDMCP_H_ | ||
| 20 | #define _XDMCP_H_ | ||
| 21 | |||
| 22 | #include <X11/Xmd.h> | ||
| 23 | |||
| 24 | #include <X11/Xfuncproto.h> | ||
| 25 | |||
| 26 | _XFUNCPROTOBEGIN | ||
| 27 | |||
| 28 | #define XDM_PROTOCOL_VERSION 1 | ||
| 29 | #define XDM_UDP_PORT 177 | ||
| 30 | |||
| 31 | /* IANA has assigned FF0X:0:0:0:0:0:0:12B as the permanently assigned | ||
| 32 | * multicast addresses for XDMCP, where X in the prefix may be replaced | ||
| 33 | * by any valid scope identifier, such as 1 for Node-Local, 2 for Link-Local, | ||
| 34 | * 5 for Site-Local, and so on. We set the default here to the Link-Local | ||
| 35 | * version to most closely match the old IPv4 subnet broadcast behavior. | ||
| 36 | * Both xdm and X -query allow specifying a different address if a different | ||
| 37 | * scope is defined. | ||
| 38 | */ | ||
| 39 | #define XDM_DEFAULT_MCAST_ADDR6 "ff02:0:0:0:0:0:0:12b" | ||
| 40 | |||
| 41 | #define XDM_MAX_MSGLEN 8192 | ||
| 42 | #define XDM_MIN_RTX 2 | ||
| 43 | #define XDM_MAX_RTX 32 | ||
| 44 | #define XDM_RTX_LIMIT 7 | ||
| 45 | #define XDM_KA_RTX_LIMIT 4 | ||
| 46 | #define XDM_DEF_DORMANCY (3 * 60) /* 3 minutes */ | ||
| 47 | #define XDM_MAX_DORMANCY (24 * 60 * 60) /* 24 hours */ | ||
| 48 | |||
| 49 | typedef enum { | ||
| 50 | BROADCAST_QUERY = 1, QUERY, INDIRECT_QUERY, FORWARD_QUERY, | ||
| 51 | WILLING, UNWILLING, REQUEST, ACCEPT, DECLINE, MANAGE, REFUSE, | ||
| 52 | FAILED, KEEPALIVE, ALIVE | ||
| 53 | } xdmOpCode; | ||
| 54 | |||
| 55 | typedef enum { | ||
| 56 | XDM_QUERY, XDM_BROADCAST, XDM_INDIRECT, XDM_COLLECT_QUERY, | ||
| 57 | XDM_COLLECT_BROADCAST_QUERY, XDM_COLLECT_INDIRECT_QUERY, | ||
| 58 | XDM_START_CONNECTION, XDM_AWAIT_REQUEST_RESPONSE, | ||
| 59 | XDM_AWAIT_MANAGE_RESPONSE, XDM_MANAGE, XDM_RUN_SESSION, XDM_OFF, | ||
| 60 | XDM_AWAIT_USER_INPUT, XDM_KEEPALIVE, XDM_AWAIT_ALIVE_RESPONSE, | ||
| 61 | #if defined(IPv6) && defined(AF_INET6) | ||
| 62 | XDM_MULTICAST, XDM_COLLECT_MULTICAST_QUERY, | ||
| 63 | #endif | ||
| 64 | XDM_KEEP_ME_LAST | ||
| 65 | } xdmcp_states; | ||
| 66 | |||
| 67 | #ifdef NOTDEF | ||
| 68 | /* table of hosts */ | ||
| 69 | |||
| 70 | #define XDM_MAX_STR_LEN 21 | ||
| 71 | #define XDM_MAX_HOSTS 20 | ||
| 72 | struct xdm_host_table { | ||
| 73 | struct sockaddr_in sockaddr; | ||
| 74 | char name[XDM_MAX_STR_LEN]; | ||
| 75 | char status[XDM_MAX_STR_LEN]; | ||
| 76 | }; | ||
| 77 | #endif /* NOTDEF */ | ||
| 78 | |||
| 79 | typedef CARD8 *CARD8Ptr; | ||
| 80 | typedef CARD16 *CARD16Ptr; | ||
| 81 | typedef CARD32 *CARD32Ptr; | ||
| 82 | |||
| 83 | typedef struct _ARRAY8 { | ||
| 84 | CARD16 length; | ||
| 85 | CARD8Ptr data; | ||
| 86 | } ARRAY8, *ARRAY8Ptr; | ||
| 87 | |||
| 88 | typedef struct _ARRAY16 { | ||
| 89 | CARD8 length; | ||
| 90 | CARD16Ptr data; | ||
| 91 | } ARRAY16, *ARRAY16Ptr; | ||
| 92 | |||
| 93 | typedef struct _ARRAY32 { | ||
| 94 | CARD8 length; | ||
| 95 | CARD32Ptr data; | ||
| 96 | } ARRAY32, *ARRAY32Ptr; | ||
| 97 | |||
| 98 | typedef struct _ARRAYofARRAY8 { | ||
| 99 | CARD8 length; | ||
| 100 | ARRAY8Ptr data; | ||
| 101 | } ARRAYofARRAY8, *ARRAYofARRAY8Ptr; | ||
| 102 | |||
| 103 | typedef struct _XdmcpHeader { | ||
| 104 | CARD16 version, opcode, length; | ||
| 105 | } XdmcpHeader, *XdmcpHeaderPtr; | ||
| 106 | |||
| 107 | typedef struct _XdmcpBuffer { | ||
| 108 | BYTE *data; | ||
| 109 | int size; /* size of buffer pointed by to data */ | ||
| 110 | int pointer; /* current index into data */ | ||
| 111 | int count; /* bytes read from network into data */ | ||
| 112 | } XdmcpBuffer, *XdmcpBufferPtr; | ||
| 113 | |||
| 114 | typedef struct _XdmAuthKey { | ||
| 115 | BYTE data[8]; | ||
| 116 | } XdmAuthKeyRec, *XdmAuthKeyPtr; | ||
| 117 | |||
| 118 | |||
| 119 | /* implementation-independent network address structure. | ||
| 120 | Equiv to sockaddr* for sockets and netbuf* for STREAMS. */ | ||
| 121 | |||
| 122 | typedef char *XdmcpNetaddr; | ||
| 123 | |||
| 124 | extern int XdmcpWriteARRAY16(XdmcpBufferPtr buffer, ARRAY16Ptr array); | ||
| 125 | extern int XdmcpWriteARRAY32(XdmcpBufferPtr buffer, ARRAY32Ptr array); | ||
| 126 | extern int XdmcpWriteARRAY8(XdmcpBufferPtr buffer, ARRAY8Ptr array); | ||
| 127 | extern int XdmcpWriteARRAYofARRAY8(XdmcpBufferPtr buffer, ARRAYofARRAY8Ptr array); | ||
| 128 | extern int XdmcpWriteCARD16(XdmcpBufferPtr buffer, unsigned value); | ||
| 129 | extern int XdmcpWriteCARD32(XdmcpBufferPtr buffer, unsigned value); | ||
| 130 | extern int XdmcpWriteCARD8(XdmcpBufferPtr buffer, unsigned value); | ||
| 131 | extern int XdmcpWriteHeader(XdmcpBufferPtr buffer, XdmcpHeaderPtr header); | ||
| 132 | |||
| 133 | extern int XdmcpFlush(int fd, XdmcpBufferPtr buffer, XdmcpNetaddr to, int tolen); | ||
| 134 | |||
| 135 | extern int XdmcpReadARRAY16(XdmcpBufferPtr buffer, ARRAY16Ptr array); | ||
| 136 | extern int XdmcpReadARRAY32(XdmcpBufferPtr buffer, ARRAY32Ptr array); | ||
| 137 | extern int XdmcpReadARRAY8(XdmcpBufferPtr buffer, ARRAY8Ptr array); | ||
| 138 | extern int XdmcpReadARRAYofARRAY8(XdmcpBufferPtr buffer, ARRAYofARRAY8Ptr array); | ||
| 139 | extern int XdmcpReadCARD16(XdmcpBufferPtr buffer, CARD16Ptr valuep); | ||
| 140 | extern int XdmcpReadCARD32(XdmcpBufferPtr buffer, CARD32Ptr valuep); | ||
| 141 | extern int XdmcpReadCARD8(XdmcpBufferPtr buffer, CARD8Ptr valuep); | ||
| 142 | extern int XdmcpReadHeader(XdmcpBufferPtr buffer, XdmcpHeaderPtr header); | ||
| 143 | |||
| 144 | extern int XdmcpFill(int fd, XdmcpBufferPtr buffer, XdmcpNetaddr from, int *fromlen); | ||
| 145 | |||
| 146 | extern int XdmcpReadRemaining(XdmcpBufferPtr buffer); | ||
| 147 | |||
| 148 | extern void XdmcpDisposeARRAY8(ARRAY8Ptr array); | ||
| 149 | extern void XdmcpDisposeARRAY16(ARRAY16Ptr array); | ||
| 150 | extern void XdmcpDisposeARRAY32(ARRAY32Ptr array); | ||
| 151 | extern void XdmcpDisposeARRAYofARRAY8(ARRAYofARRAY8Ptr array); | ||
| 152 | |||
| 153 | extern int XdmcpCopyARRAY8(ARRAY8Ptr src, ARRAY8Ptr dst); | ||
| 154 | |||
| 155 | extern int XdmcpARRAY8Equal(ARRAY8Ptr array1, ARRAY8Ptr array2); | ||
| 156 | |||
| 157 | extern void XdmcpGenerateKey (XdmAuthKeyPtr key); | ||
| 158 | extern void XdmcpIncrementKey (XdmAuthKeyPtr key); | ||
| 159 | extern void XdmcpDecrementKey (XdmAuthKeyPtr key); | ||
| 160 | #ifdef HASXDMAUTH | ||
| 161 | extern void XdmcpWrap(unsigned char *input, unsigned char *wrapper, unsigned char *output, int bytes); | ||
| 162 | extern void XdmcpUnwrap(unsigned char *input, unsigned char *wrapper, unsigned char *output, int bytes); | ||
| 163 | #endif | ||
| 164 | |||
| 165 | #ifndef TRUE | ||
| 166 | #define TRUE 1 | ||
| 167 | #define FALSE 0 | ||
| 168 | #endif | ||
| 169 | |||
| 170 | #if !defined(Xalloc) && !defined(xalloc) && !defined(Xrealloc) | ||
| 171 | extern void *Xalloc (unsigned long amount); | ||
| 172 | extern void *Xrealloc (void *old, unsigned long amount); | ||
| 173 | extern void Xfree(void *old); | ||
| 174 | #endif | ||
| 175 | |||
| 176 | extern int XdmcpCompareKeys (XdmAuthKeyPtr a, XdmAuthKeyPtr b); | ||
| 177 | |||
| 178 | extern int XdmcpAllocARRAY16 (ARRAY16Ptr array, int length); | ||
| 179 | extern int XdmcpAllocARRAY32 (ARRAY32Ptr array, int length); | ||
| 180 | extern int XdmcpAllocARRAY8 (ARRAY8Ptr array, int length); | ||
| 181 | extern int XdmcpAllocARRAYofARRAY8 (ARRAYofARRAY8Ptr array, int length); | ||
| 182 | |||
| 183 | extern int XdmcpReallocARRAY16 (ARRAY16Ptr array, int length); | ||
| 184 | extern int XdmcpReallocARRAY32 (ARRAY32Ptr array, int length); | ||
| 185 | extern int XdmcpReallocARRAY8 (ARRAY8Ptr array, int length); | ||
| 186 | extern int XdmcpReallocARRAYofARRAY8 (ARRAYofARRAY8Ptr array, int length); | ||
| 187 | |||
| 188 | _XFUNCPROTOEND | ||
| 189 | |||
| 190 | #endif /* _XDMCP_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncproto.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncproto.h new file mode 100644 index 0000000000..7b2b7ca98e --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncproto.h | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | /* Xfuncproto.h. Generated by configure. */ | ||
| 2 | /* $Xorg: Xfuncproto.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 3 | /* | ||
| 4 | * | ||
| 5 | Copyright 1989, 1991, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | * | ||
| 27 | */ | ||
| 28 | /* $XFree86: xc/include/Xfuncproto.h,v 3.4 2001/12/14 19:53:25 dawes Exp $ */ | ||
| 29 | |||
| 30 | /* Definitions to make function prototypes manageable */ | ||
| 31 | |||
| 32 | #ifndef _XFUNCPROTO_H_ | ||
| 33 | #define _XFUNCPROTO_H_ | ||
| 34 | |||
| 35 | #ifndef NeedFunctionPrototypes | ||
| 36 | #define NeedFunctionPrototypes 1 | ||
| 37 | #endif /* NeedFunctionPrototypes */ | ||
| 38 | |||
| 39 | #ifndef NeedVarargsPrototypes | ||
| 40 | #define NeedVarargsPrototypes 1 | ||
| 41 | #endif /* NeedVarargsPrototypes */ | ||
| 42 | |||
| 43 | #if NeedFunctionPrototypes | ||
| 44 | |||
| 45 | #ifndef NeedNestedPrototypes | ||
| 46 | #define NeedNestedPrototypes 1 | ||
| 47 | #endif /* NeedNestedPrototypes */ | ||
| 48 | |||
| 49 | #ifndef _Xconst | ||
| 50 | #define _Xconst const | ||
| 51 | #endif /* _Xconst */ | ||
| 52 | |||
| 53 | /* Function prototype configuration (see configure for more info) */ | ||
| 54 | #ifndef NARROWPROTO | ||
| 55 | #define NARROWPROTO | ||
| 56 | #endif | ||
| 57 | #ifndef FUNCPROTO | ||
| 58 | #define FUNCPROTO 15 | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #ifndef NeedWidePrototypes | ||
| 62 | #ifdef NARROWPROTO | ||
| 63 | #define NeedWidePrototypes 0 | ||
| 64 | #else | ||
| 65 | #define NeedWidePrototypes 1 /* default to make interropt. easier */ | ||
| 66 | #endif | ||
| 67 | #endif /* NeedWidePrototypes */ | ||
| 68 | |||
| 69 | #endif /* NeedFunctionPrototypes */ | ||
| 70 | |||
| 71 | #ifndef _XFUNCPROTOBEGIN | ||
| 72 | #if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */ | ||
| 73 | #define _XFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */ | ||
| 74 | #define _XFUNCPROTOEND } | ||
| 75 | #else | ||
| 76 | #define _XFUNCPROTOBEGIN | ||
| 77 | #define _XFUNCPROTOEND | ||
| 78 | #endif | ||
| 79 | #endif /* _XFUNCPROTOBEGIN */ | ||
| 80 | |||
| 81 | #if defined(__GNUC__) && (__GNUC__ >= 4) | ||
| 82 | # define _X_SENTINEL(x) __attribute__ ((__sentinel__(x))) | ||
| 83 | # define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y))) | ||
| 84 | #else | ||
| 85 | # define _X_SENTINEL(x) | ||
| 86 | # define _X_ATTRIBUTE_PRINTF(x,y) | ||
| 87 | #endif /* GNUC >= 4 */ | ||
| 88 | |||
| 89 | #if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) | ||
| 90 | # define _X_EXPORT __attribute__((visibility("default"))) | ||
| 91 | # define _X_HIDDEN __attribute__((visibility("hidden"))) | ||
| 92 | # define _X_INTERNAL __attribute__((visibility("internal"))) | ||
| 93 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) | ||
| 94 | # define _X_EXPORT __global | ||
| 95 | # define _X_HIDDEN __hidden | ||
| 96 | # define _X_INTERNAL __hidden | ||
| 97 | #else /* not gcc >= 3.3 and not Sun Studio >= 8 */ | ||
| 98 | # define _X_EXPORT | ||
| 99 | # define _X_HIDDEN | ||
| 100 | # define _X_INTERNAL | ||
| 101 | #endif | ||
| 102 | |||
| 103 | #if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301) | ||
| 104 | # define _X_DEPRECATED __attribute__((deprecated)) | ||
| 105 | #else /* not gcc >= 3.1 */ | ||
| 106 | # define _X_DEPRECATED | ||
| 107 | #endif | ||
| 108 | |||
| 109 | #endif /* _XFUNCPROTO_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncs.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncs.h new file mode 100644 index 0000000000..ca9d29e34e --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xfuncs.h | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | /* | ||
| 2 | * $XdotOrg: proto/X11/Xfuncs.h,v 1.4 2005/11/08 06:33:25 jkj Exp $ | ||
| 3 | * $Xorg: Xfuncs.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ | ||
| 4 | * | ||
| 5 | * | ||
| 6 | Copyright 1990, 1998 The Open Group | ||
| 7 | |||
| 8 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 9 | documentation for any purpose is hereby granted without fee, provided that | ||
| 10 | the above copyright notice appear in all copies and that both that | ||
| 11 | copyright notice and this permission notice appear in supporting | ||
| 12 | documentation. | ||
| 13 | |||
| 14 | The above copyright notice and this permission notice shall be included in | ||
| 15 | all copies or substantial portions of the Software. | ||
| 16 | |||
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 20 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 21 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 25 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 26 | in this Software without prior written authorization from The Open Group. | ||
| 27 | * | ||
| 28 | */ | ||
| 29 | /* $XFree86: xc/include/Xfuncs.h,v 3.10 2002/05/31 18:45:38 dawes Exp $ */ | ||
| 30 | |||
| 31 | #ifndef _XFUNCS_H_ | ||
| 32 | #define _XFUNCS_H_ | ||
| 33 | |||
| 34 | #include <X11/Xosdefs.h> | ||
| 35 | |||
| 36 | /* the old Xfuncs.h, for pre-R6 */ | ||
| 37 | #if !(defined(XFree86LOADER) && defined(IN_MODULE)) | ||
| 38 | |||
| 39 | #ifdef X_USEBFUNCS | ||
| 40 | void bcopy(); | ||
| 41 | void bzero(); | ||
| 42 | int bcmp(); | ||
| 43 | #else | ||
| 44 | #if defined(SYSV) && !defined(__SCO__) && !defined(sun) && !defined(__UNIXWARE__) | ||
| 45 | #include <memory.h> | ||
| 46 | void bcopy(); | ||
| 47 | #define bzero(b,len) memset(b, 0, len) | ||
| 48 | #define bcmp(b1,b2,len) memcmp(b1, b2, len) | ||
| 49 | #else | ||
| 50 | #include <string.h> | ||
| 51 | #if defined(__SCO__) || defined(sun) || defined(__UNIXWARE__) | ||
| 52 | #include <strings.h> | ||
| 53 | #endif | ||
| 54 | #define _XFUNCS_H_INCLUDED_STRING_H | ||
| 55 | #if defined(sun) | ||
| 56 | #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len)) | ||
| 57 | #define bzero(b,len) memset(b, 0, (size_t)(len)) | ||
| 58 | #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len)) | ||
| 59 | #endif | ||
| 60 | #endif | ||
| 61 | #endif /* X_USEBFUNCS */ | ||
| 62 | |||
| 63 | /* the new Xfuncs.h */ | ||
| 64 | |||
| 65 | #if !defined(X_NOT_STDC_ENV) && (!defined(sun) || defined(SVR4)) | ||
| 66 | /* the ANSI C way */ | ||
| 67 | #ifndef _XFUNCS_H_INCLUDED_STRING_H | ||
| 68 | #include <string.h> | ||
| 69 | #endif | ||
| 70 | #undef bzero | ||
| 71 | #define bzero(b,len) memset(b,0,len) | ||
| 72 | #else /* else X_NOT_STDC_ENV or SunOS 4 */ | ||
| 73 | #if defined(SYSV) || defined(luna) || defined(sun) || defined(__sxg__) | ||
| 74 | #include <memory.h> | ||
| 75 | #define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len)) | ||
| 76 | #if defined(SYSV) && defined(_XBCOPYFUNC) | ||
| 77 | #undef memmove | ||
| 78 | #define memmove(dst,src,len) _XBCOPYFUNC((char *)(src),(char *)(dst),(int)(len)) | ||
| 79 | #define _XNEEDBCOPYFUNC | ||
| 80 | #endif | ||
| 81 | #else /* else vanilla BSD */ | ||
| 82 | #define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len)) | ||
| 83 | #define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len)) | ||
| 84 | #define memcmp(b1,b2,len) bcmp((char *)(b1),(char *)(b2),(int)(len)) | ||
| 85 | #endif /* SYSV else */ | ||
| 86 | #endif /* ! X_NOT_STDC_ENV else */ | ||
| 87 | |||
| 88 | #if defined(X_NOT_STDC_ENV) || (defined(sun) && !defined(SVR4)) | ||
| 89 | #define atexit(f) on_exit(f, 0) | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */ | ||
| 93 | |||
| 94 | #endif /* _XFUNCS_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xlib.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlib.h new file mode 100644 index 0000000000..a26789b1d0 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlib.h | |||
| @@ -0,0 +1,4008 @@ | |||
| 1 | /* $XdotOrg: lib/X11/include/X11/Xlib.h,v 1.6 2005-11-08 06:33:25 jkj Exp $ */ | ||
| 2 | /* $Xorg: Xlib.h,v 1.6 2001/02/09 02:03:38 xorgcvs Exp $ */ | ||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1985, 1986, 1987, 1991, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | */ | ||
| 28 | /* $XFree86: xc/lib/X11/Xlib.h,v 3.25 2003/11/17 22:20:10 dawes Exp $ */ | ||
| 29 | |||
| 30 | |||
| 31 | /* | ||
| 32 | * Xlib.h - Header definition and support file for the C subroutine | ||
| 33 | * interface library (Xlib) to the X Window System Protocol (V11). | ||
| 34 | * Structures and symbols starting with "_" are private to the library. | ||
| 35 | */ | ||
| 36 | #ifndef _XLIB_H_ | ||
| 37 | #define _XLIB_H_ | ||
| 38 | |||
| 39 | #define XlibSpecificationRelease 6 | ||
| 40 | |||
| 41 | #ifdef USG | ||
| 42 | #ifndef __TYPES__ | ||
| 43 | #include <sys/types.h> /* forgot to protect it... */ | ||
| 44 | #define __TYPES__ | ||
| 45 | #endif /* __TYPES__ */ | ||
| 46 | #else | ||
| 47 | #if defined(_POSIX_SOURCE) && defined(MOTOROLA) | ||
| 48 | #undef _POSIX_SOURCE | ||
| 49 | #include <sys/types.h> | ||
| 50 | #define _POSIX_SOURCE | ||
| 51 | #else | ||
| 52 | #include <sys/types.h> | ||
| 53 | #endif | ||
| 54 | #endif /* USG */ | ||
| 55 | |||
| 56 | #if defined(__SCO__) || defined(__UNIXWARE__) | ||
| 57 | #include <stdint.h> | ||
| 58 | #endif | ||
| 59 | |||
| 60 | #include <X11/X.h> | ||
| 61 | |||
| 62 | /* applications should not depend on these two headers being included! */ | ||
| 63 | #include <X11/Xfuncproto.h> | ||
| 64 | #include <X11/Xosdefs.h> | ||
| 65 | |||
| 66 | #ifndef X_WCHAR | ||
| 67 | #ifdef X_NOT_STDC_ENV | ||
| 68 | #ifndef ISC | ||
| 69 | #define X_WCHAR | ||
| 70 | #endif | ||
| 71 | #endif | ||
| 72 | #endif | ||
| 73 | |||
| 74 | #ifndef X_WCHAR | ||
| 75 | #include <stddef.h> | ||
| 76 | #else | ||
| 77 | #ifdef __UNIXOS2__ | ||
| 78 | #include <stdlib.h> | ||
| 79 | #else | ||
| 80 | /* replace this with #include or typedef appropriate for your system */ | ||
| 81 | typedef unsigned long wchar_t; | ||
| 82 | #endif | ||
| 83 | #endif | ||
| 84 | |||
| 85 | #if defined(ISC) && defined(USE_XMBTOWC) | ||
| 86 | #define wctomb(a,b) _Xwctomb(a,b) | ||
| 87 | #define mblen(a,b) _Xmblen(a,b) | ||
| 88 | #ifndef USE_XWCHAR_STRING | ||
| 89 | #define mbtowc(a,b,c) _Xmbtowc(a,b,c) | ||
| 90 | #endif | ||
| 91 | #endif | ||
| 92 | |||
| 93 | extern int | ||
| 94 | _Xmblen( | ||
| 95 | #ifdef ISC | ||
| 96 | char const *str, | ||
| 97 | size_t len | ||
| 98 | #else | ||
| 99 | char *str, | ||
| 100 | int len | ||
| 101 | #endif | ||
| 102 | ); | ||
| 103 | |||
| 104 | /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in | ||
| 105 | November 2000. Its presence is indicated through the following macro. */ | ||
| 106 | #define X_HAVE_UTF8_STRING 1 | ||
| 107 | |||
| 108 | typedef char *XPointer; | ||
| 109 | |||
| 110 | #define Bool int | ||
| 111 | #define Status int | ||
| 112 | #define True 1 | ||
| 113 | #define False 0 | ||
| 114 | |||
| 115 | #define QueuedAlready 0 | ||
| 116 | #define QueuedAfterReading 1 | ||
| 117 | #define QueuedAfterFlush 2 | ||
| 118 | |||
| 119 | #define ConnectionNumber(dpy) (((_XPrivDisplay)dpy)->fd) | ||
| 120 | #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root) | ||
| 121 | #define DefaultScreen(dpy) (((_XPrivDisplay)dpy)->default_screen) | ||
| 122 | #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root) | ||
| 123 | #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual) | ||
| 124 | #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc) | ||
| 125 | #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel) | ||
| 126 | #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel) | ||
| 127 | #define AllPlanes ((unsigned long)~0L) | ||
| 128 | #define QLength(dpy) (((_XPrivDisplay)dpy)->qlen) | ||
| 129 | #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width) | ||
| 130 | #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height) | ||
| 131 | #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth) | ||
| 132 | #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight) | ||
| 133 | #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) | ||
| 134 | #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries) | ||
| 135 | #define ScreenCount(dpy) (((_XPrivDisplay)dpy)->nscreens) | ||
| 136 | #define ServerVendor(dpy) (((_XPrivDisplay)dpy)->vendor) | ||
| 137 | #define ProtocolVersion(dpy) (((_XPrivDisplay)dpy)->proto_major_version) | ||
| 138 | #define ProtocolRevision(dpy) (((_XPrivDisplay)dpy)->proto_minor_version) | ||
| 139 | #define VendorRelease(dpy) (((_XPrivDisplay)dpy)->release) | ||
| 140 | #define DisplayString(dpy) (((_XPrivDisplay)dpy)->display_name) | ||
| 141 | #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) | ||
| 142 | #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap) | ||
| 143 | #define BitmapUnit(dpy) (((_XPrivDisplay)dpy)->bitmap_unit) | ||
| 144 | #define BitmapBitOrder(dpy) (((_XPrivDisplay)dpy)->bitmap_bit_order) | ||
| 145 | #define BitmapPad(dpy) (((_XPrivDisplay)dpy)->bitmap_pad) | ||
| 146 | #define ImageByteOrder(dpy) (((_XPrivDisplay)dpy)->byte_order) | ||
| 147 | #ifdef CRAY /* unable to get WORD64 without pulling in other symbols */ | ||
| 148 | #define NextRequest(dpy) XNextRequest(dpy) | ||
| 149 | #else | ||
| 150 | #define NextRequest(dpy) (((_XPrivDisplay)dpy)->request + 1) | ||
| 151 | #endif | ||
| 152 | #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)dpy)->last_request_read) | ||
| 153 | |||
| 154 | /* macros for screen oriented applications (toolkit) */ | ||
| 155 | #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)dpy)->screens[scr]) | ||
| 156 | #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy)) | ||
| 157 | #define DisplayOfScreen(s) ((s)->display) | ||
| 158 | #define RootWindowOfScreen(s) ((s)->root) | ||
| 159 | #define BlackPixelOfScreen(s) ((s)->black_pixel) | ||
| 160 | #define WhitePixelOfScreen(s) ((s)->white_pixel) | ||
| 161 | #define DefaultColormapOfScreen(s)((s)->cmap) | ||
| 162 | #define DefaultDepthOfScreen(s) ((s)->root_depth) | ||
| 163 | #define DefaultGCOfScreen(s) ((s)->default_gc) | ||
| 164 | #define DefaultVisualOfScreen(s)((s)->root_visual) | ||
| 165 | #define WidthOfScreen(s) ((s)->width) | ||
| 166 | #define HeightOfScreen(s) ((s)->height) | ||
| 167 | #define WidthMMOfScreen(s) ((s)->mwidth) | ||
| 168 | #define HeightMMOfScreen(s) ((s)->mheight) | ||
| 169 | #define PlanesOfScreen(s) ((s)->root_depth) | ||
| 170 | #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries) | ||
| 171 | #define MinCmapsOfScreen(s) ((s)->min_maps) | ||
| 172 | #define MaxCmapsOfScreen(s) ((s)->max_maps) | ||
| 173 | #define DoesSaveUnders(s) ((s)->save_unders) | ||
| 174 | #define DoesBackingStore(s) ((s)->backing_store) | ||
| 175 | #define EventMaskOfScreen(s) ((s)->root_input_mask) | ||
| 176 | |||
| 177 | /* | ||
| 178 | * Extensions need a way to hang private data on some structures. | ||
| 179 | */ | ||
| 180 | typedef struct _XExtData { | ||
| 181 | int number; /* number returned by XRegisterExtension */ | ||
| 182 | struct _XExtData *next; /* next item on list of data for structure */ | ||
| 183 | int (*free_private)( /* called to free private storage */ | ||
| 184 | struct _XExtData *extension | ||
| 185 | ); | ||
| 186 | XPointer private_data; /* data private to this extension. */ | ||
| 187 | } XExtData; | ||
| 188 | |||
| 189 | /* | ||
| 190 | * This file contains structures used by the extension mechanism. | ||
| 191 | */ | ||
| 192 | typedef struct { /* public to extension, cannot be changed */ | ||
| 193 | int extension; /* extension number */ | ||
| 194 | int major_opcode; /* major op-code assigned by server */ | ||
| 195 | int first_event; /* first event number for the extension */ | ||
| 196 | int first_error; /* first error number for the extension */ | ||
| 197 | } XExtCodes; | ||
| 198 | |||
| 199 | /* | ||
| 200 | * Data structure for retrieving info about pixmap formats. | ||
| 201 | */ | ||
| 202 | |||
| 203 | typedef struct { | ||
| 204 | int depth; | ||
| 205 | int bits_per_pixel; | ||
| 206 | int scanline_pad; | ||
| 207 | } XPixmapFormatValues; | ||
| 208 | |||
| 209 | |||
| 210 | /* | ||
| 211 | * Data structure for setting graphics context. | ||
| 212 | */ | ||
| 213 | typedef struct { | ||
| 214 | int function; /* logical operation */ | ||
| 215 | unsigned long plane_mask;/* plane mask */ | ||
| 216 | unsigned long foreground;/* foreground pixel */ | ||
| 217 | unsigned long background;/* background pixel */ | ||
| 218 | int line_width; /* line width */ | ||
| 219 | int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */ | ||
| 220 | int cap_style; /* CapNotLast, CapButt, | ||
| 221 | CapRound, CapProjecting */ | ||
| 222 | int join_style; /* JoinMiter, JoinRound, JoinBevel */ | ||
| 223 | int fill_style; /* FillSolid, FillTiled, | ||
| 224 | FillStippled, FillOpaeueStippled */ | ||
| 225 | int fill_rule; /* EvenOddRule, WindingRule */ | ||
| 226 | int arc_mode; /* ArcChord, ArcPieSlice */ | ||
| 227 | Pixmap tile; /* tile pixmap for tiling operations */ | ||
| 228 | Pixmap stipple; /* stipple 1 plane pixmap for stipping */ | ||
| 229 | int ts_x_origin; /* offset for tile or stipple operations */ | ||
| 230 | int ts_y_origin; | ||
| 231 | Font font; /* default text font for text operations */ | ||
| 232 | int subwindow_mode; /* ClipByChildren, IncludeInferiors */ | ||
| 233 | Bool graphics_exposures;/* boolean, should exposures be generated */ | ||
| 234 | int clip_x_origin; /* origin for clipping */ | ||
| 235 | int clip_y_origin; | ||
| 236 | Pixmap clip_mask; /* bitmap clipping; other calls for rects */ | ||
| 237 | int dash_offset; /* patterned/dashed line information */ | ||
| 238 | char dashes; | ||
| 239 | } XGCValues; | ||
| 240 | |||
| 241 | /* | ||
| 242 | * Graphics context. The contents of this structure are implementation | ||
| 243 | * dependent. A GC should be treated as opaque by application code. | ||
| 244 | */ | ||
| 245 | |||
| 246 | typedef struct _XGC | ||
| 247 | #ifdef XLIB_ILLEGAL_ACCESS | ||
| 248 | { | ||
| 249 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 250 | GContext gid; /* protocol ID for graphics context */ | ||
| 251 | /* there is more to this structure, but it is private to Xlib */ | ||
| 252 | } | ||
| 253 | #endif | ||
| 254 | *GC; | ||
| 255 | |||
| 256 | /* | ||
| 257 | * Visual structure; contains information about colormapping possible. | ||
| 258 | */ | ||
| 259 | typedef struct { | ||
| 260 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 261 | VisualID visualid; /* visual id of this visual */ | ||
| 262 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 263 | int c_class; /* C++ class of screen (monochrome, etc.) */ | ||
| 264 | #else | ||
| 265 | int class; /* class of screen (monochrome, etc.) */ | ||
| 266 | #endif | ||
| 267 | unsigned long red_mask, green_mask, blue_mask; /* mask values */ | ||
| 268 | int bits_per_rgb; /* log base 2 of distinct color values */ | ||
| 269 | int map_entries; /* color map entries */ | ||
| 270 | } Visual; | ||
| 271 | |||
| 272 | /* | ||
| 273 | * Depth structure; contains information for each possible depth. | ||
| 274 | */ | ||
| 275 | typedef struct { | ||
| 276 | int depth; /* this depth (Z) of the depth */ | ||
| 277 | int nvisuals; /* number of Visual types at this depth */ | ||
| 278 | Visual *visuals; /* list of visuals possible at this depth */ | ||
| 279 | } Depth; | ||
| 280 | |||
| 281 | /* | ||
| 282 | * Information about the screen. The contents of this structure are | ||
| 283 | * implementation dependent. A Screen should be treated as opaque | ||
| 284 | * by application code. | ||
| 285 | */ | ||
| 286 | |||
| 287 | struct _XDisplay; /* Forward declare before use for C++ */ | ||
| 288 | |||
| 289 | typedef struct { | ||
| 290 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 291 | struct _XDisplay *display;/* back pointer to display structure */ | ||
| 292 | Window root; /* Root window id. */ | ||
| 293 | int width, height; /* width and height of screen */ | ||
| 294 | int mwidth, mheight; /* width and height of in millimeters */ | ||
| 295 | int ndepths; /* number of depths possible */ | ||
| 296 | Depth *depths; /* list of allowable depths on the screen */ | ||
| 297 | int root_depth; /* bits per pixel */ | ||
| 298 | Visual *root_visual; /* root visual */ | ||
| 299 | GC default_gc; /* GC for the root root visual */ | ||
| 300 | Colormap cmap; /* default color map */ | ||
| 301 | unsigned long white_pixel; | ||
| 302 | unsigned long black_pixel; /* White and Black pixel values */ | ||
| 303 | int max_maps, min_maps; /* max and min color maps */ | ||
| 304 | int backing_store; /* Never, WhenMapped, Always */ | ||
| 305 | Bool save_unders; | ||
| 306 | long root_input_mask; /* initial root input mask */ | ||
| 307 | } Screen; | ||
| 308 | |||
| 309 | /* | ||
| 310 | * Format structure; describes ZFormat data the screen will understand. | ||
| 311 | */ | ||
| 312 | typedef struct { | ||
| 313 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 314 | int depth; /* depth of this image format */ | ||
| 315 | int bits_per_pixel; /* bits/pixel at this depth */ | ||
| 316 | int scanline_pad; /* scanline must padded to this multiple */ | ||
| 317 | } ScreenFormat; | ||
| 318 | |||
| 319 | /* | ||
| 320 | * Data structure for setting window attributes. | ||
| 321 | */ | ||
| 322 | typedef struct { | ||
| 323 | Pixmap background_pixmap; /* background or None or ParentRelative */ | ||
| 324 | unsigned long background_pixel; /* background pixel */ | ||
| 325 | Pixmap border_pixmap; /* border of the window */ | ||
| 326 | unsigned long border_pixel; /* border pixel value */ | ||
| 327 | int bit_gravity; /* one of bit gravity values */ | ||
| 328 | int win_gravity; /* one of the window gravity values */ | ||
| 329 | int backing_store; /* NotUseful, WhenMapped, Always */ | ||
| 330 | unsigned long backing_planes;/* planes to be preseved if possible */ | ||
| 331 | unsigned long backing_pixel;/* value to use in restoring planes */ | ||
| 332 | Bool save_under; /* should bits under be saved? (popups) */ | ||
| 333 | long event_mask; /* set of events that should be saved */ | ||
| 334 | long do_not_propagate_mask; /* set of events that should not propagate */ | ||
| 335 | Bool override_redirect; /* boolean value for override-redirect */ | ||
| 336 | Colormap colormap; /* color map to be associated with window */ | ||
| 337 | Cursor cursor; /* cursor to be displayed (or None) */ | ||
| 338 | } XSetWindowAttributes; | ||
| 339 | |||
| 340 | typedef struct { | ||
| 341 | int x, y; /* location of window */ | ||
| 342 | int width, height; /* width and height of window */ | ||
| 343 | int border_width; /* border width of window */ | ||
| 344 | int depth; /* depth of window */ | ||
| 345 | Visual *visual; /* the associated visual structure */ | ||
| 346 | Window root; /* root of screen containing window */ | ||
| 347 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 348 | int c_class; /* C++ InputOutput, InputOnly*/ | ||
| 349 | #else | ||
| 350 | int class; /* InputOutput, InputOnly*/ | ||
| 351 | #endif | ||
| 352 | int bit_gravity; /* one of bit gravity values */ | ||
| 353 | int win_gravity; /* one of the window gravity values */ | ||
| 354 | int backing_store; /* NotUseful, WhenMapped, Always */ | ||
| 355 | unsigned long backing_planes;/* planes to be preserved if possible */ | ||
| 356 | unsigned long backing_pixel;/* value to be used when restoring planes */ | ||
| 357 | Bool save_under; /* boolean, should bits under be saved? */ | ||
| 358 | Colormap colormap; /* color map to be associated with window */ | ||
| 359 | Bool map_installed; /* boolean, is color map currently installed*/ | ||
| 360 | int map_state; /* IsUnmapped, IsUnviewable, IsViewable */ | ||
| 361 | long all_event_masks; /* set of events all people have interest in*/ | ||
| 362 | long your_event_mask; /* my event mask */ | ||
| 363 | long do_not_propagate_mask; /* set of events that should not propagate */ | ||
| 364 | Bool override_redirect; /* boolean value for override-redirect */ | ||
| 365 | Screen *screen; /* back pointer to correct screen */ | ||
| 366 | } XWindowAttributes; | ||
| 367 | |||
| 368 | /* | ||
| 369 | * Data structure for host setting; getting routines. | ||
| 370 | * | ||
| 371 | */ | ||
| 372 | |||
| 373 | typedef struct { | ||
| 374 | int family; /* for example FamilyInternet */ | ||
| 375 | int length; /* length of address, in bytes */ | ||
| 376 | char *address; /* pointer to where to find the bytes */ | ||
| 377 | } XHostAddress; | ||
| 378 | |||
| 379 | /* | ||
| 380 | * Data structure for ServerFamilyInterpreted addresses in host routines | ||
| 381 | */ | ||
| 382 | typedef struct { | ||
| 383 | int typelength; /* length of type string, in bytes */ | ||
| 384 | int valuelength; /* length of value string, in bytes */ | ||
| 385 | char *type; /* pointer to where to find the type string */ | ||
| 386 | char *value; /* pointer to where to find the address */ | ||
| 387 | } XServerInterpretedAddress; | ||
| 388 | |||
| 389 | /* | ||
| 390 | * Data structure for "image" data, used by image manipulation routines. | ||
| 391 | */ | ||
| 392 | typedef struct _XImage { | ||
| 393 | int width, height; /* size of image */ | ||
| 394 | int xoffset; /* number of pixels offset in X direction */ | ||
| 395 | int format; /* XYBitmap, XYPixmap, ZPixmap */ | ||
| 396 | char *data; /* pointer to image data */ | ||
| 397 | int byte_order; /* data byte order, LSBFirst, MSBFirst */ | ||
| 398 | int bitmap_unit; /* quant. of scanline 8, 16, 32 */ | ||
| 399 | int bitmap_bit_order; /* LSBFirst, MSBFirst */ | ||
| 400 | int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */ | ||
| 401 | int depth; /* depth of image */ | ||
| 402 | int bytes_per_line; /* accelarator to next line */ | ||
| 403 | int bits_per_pixel; /* bits per pixel (ZPixmap) */ | ||
| 404 | unsigned long red_mask; /* bits in z arrangment */ | ||
| 405 | unsigned long green_mask; | ||
| 406 | unsigned long blue_mask; | ||
| 407 | XPointer obdata; /* hook for the object routines to hang on */ | ||
| 408 | struct funcs { /* image manipulation routines */ | ||
| 409 | struct _XImage *(*create_image)( | ||
| 410 | struct _XDisplay* /* display */, | ||
| 411 | Visual* /* visual */, | ||
| 412 | unsigned int /* depth */, | ||
| 413 | int /* format */, | ||
| 414 | int /* offset */, | ||
| 415 | char* /* data */, | ||
| 416 | unsigned int /* width */, | ||
| 417 | unsigned int /* height */, | ||
| 418 | int /* bitmap_pad */, | ||
| 419 | int /* bytes_per_line */); | ||
| 420 | int (*destroy_image) (struct _XImage *); | ||
| 421 | unsigned long (*get_pixel) (struct _XImage *, int, int); | ||
| 422 | int (*put_pixel) (struct _XImage *, int, int, unsigned long); | ||
| 423 | struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int); | ||
| 424 | int (*add_pixel) (struct _XImage *, long); | ||
| 425 | } f; | ||
| 426 | } XImage; | ||
| 427 | |||
| 428 | /* | ||
| 429 | * Data structure for XReconfigureWindow | ||
| 430 | */ | ||
| 431 | typedef struct { | ||
| 432 | int x, y; | ||
| 433 | int width, height; | ||
| 434 | int border_width; | ||
| 435 | Window sibling; | ||
| 436 | int stack_mode; | ||
| 437 | } XWindowChanges; | ||
| 438 | |||
| 439 | /* | ||
| 440 | * Data structure used by color operations | ||
| 441 | */ | ||
| 442 | typedef struct { | ||
| 443 | unsigned long pixel; | ||
| 444 | unsigned short red, green, blue; | ||
| 445 | char flags; /* do_red, do_green, do_blue */ | ||
| 446 | char pad; | ||
| 447 | } XColor; | ||
| 448 | |||
| 449 | /* | ||
| 450 | * Data structures for graphics operations. On most machines, these are | ||
| 451 | * congruent with the wire protocol structures, so reformatting the data | ||
| 452 | * can be avoided on these architectures. | ||
| 453 | */ | ||
| 454 | typedef struct { | ||
| 455 | short x1, y1, x2, y2; | ||
| 456 | } XSegment; | ||
| 457 | |||
| 458 | typedef struct { | ||
| 459 | short x, y; | ||
| 460 | } XPoint; | ||
| 461 | |||
| 462 | typedef struct { | ||
| 463 | short x, y; | ||
| 464 | unsigned short width, height; | ||
| 465 | } XRectangle; | ||
| 466 | |||
| 467 | typedef struct { | ||
| 468 | short x, y; | ||
| 469 | unsigned short width, height; | ||
| 470 | short angle1, angle2; | ||
| 471 | } XArc; | ||
| 472 | |||
| 473 | |||
| 474 | /* Data structure for XChangeKeyboardControl */ | ||
| 475 | |||
| 476 | typedef struct { | ||
| 477 | int key_click_percent; | ||
| 478 | int bell_percent; | ||
| 479 | int bell_pitch; | ||
| 480 | int bell_duration; | ||
| 481 | int led; | ||
| 482 | int led_mode; | ||
| 483 | int key; | ||
| 484 | int auto_repeat_mode; /* On, Off, Default */ | ||
| 485 | } XKeyboardControl; | ||
| 486 | |||
| 487 | /* Data structure for XGetKeyboardControl */ | ||
| 488 | |||
| 489 | typedef struct { | ||
| 490 | int key_click_percent; | ||
| 491 | int bell_percent; | ||
| 492 | unsigned int bell_pitch, bell_duration; | ||
| 493 | unsigned long led_mask; | ||
| 494 | int global_auto_repeat; | ||
| 495 | char auto_repeats[32]; | ||
| 496 | } XKeyboardState; | ||
| 497 | |||
| 498 | /* Data structure for XGetMotionEvents. */ | ||
| 499 | |||
| 500 | typedef struct { | ||
| 501 | Time time; | ||
| 502 | short x, y; | ||
| 503 | } XTimeCoord; | ||
| 504 | |||
| 505 | /* Data structure for X{Set,Get}ModifierMapping */ | ||
| 506 | |||
| 507 | typedef struct { | ||
| 508 | int max_keypermod; /* The server's max # of keys per modifier */ | ||
| 509 | KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */ | ||
| 510 | } XModifierKeymap; | ||
| 511 | |||
| 512 | |||
| 513 | /* | ||
| 514 | * Display datatype maintaining display specific data. | ||
| 515 | * The contents of this structure are implementation dependent. | ||
| 516 | * A Display should be treated as opaque by application code. | ||
| 517 | */ | ||
| 518 | #ifndef XLIB_ILLEGAL_ACCESS | ||
| 519 | typedef struct _XDisplay Display; | ||
| 520 | #endif | ||
| 521 | |||
| 522 | struct _XPrivate; /* Forward declare before use for C++ */ | ||
| 523 | struct _XrmHashBucketRec; | ||
| 524 | |||
| 525 | typedef struct | ||
| 526 | #ifdef XLIB_ILLEGAL_ACCESS | ||
| 527 | _XDisplay | ||
| 528 | #endif | ||
| 529 | { | ||
| 530 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 531 | struct _XPrivate *private1; | ||
| 532 | int fd; /* Network socket. */ | ||
| 533 | int private2; | ||
| 534 | int proto_major_version;/* major version of server's X protocol */ | ||
| 535 | int proto_minor_version;/* minor version of servers X protocol */ | ||
| 536 | char *vendor; /* vendor of the server hardware */ | ||
| 537 | XID private3; | ||
| 538 | XID private4; | ||
| 539 | XID private5; | ||
| 540 | int private6; | ||
| 541 | XID (*resource_alloc)( /* allocator function */ | ||
| 542 | struct _XDisplay* | ||
| 543 | ); | ||
| 544 | int byte_order; /* screen byte order, LSBFirst, MSBFirst */ | ||
| 545 | int bitmap_unit; /* padding and data requirements */ | ||
| 546 | int bitmap_pad; /* padding requirements on bitmaps */ | ||
| 547 | int bitmap_bit_order; /* LeastSignificant or MostSignificant */ | ||
| 548 | int nformats; /* number of pixmap formats in list */ | ||
| 549 | ScreenFormat *pixmap_format; /* pixmap format list */ | ||
| 550 | int private8; | ||
| 551 | int release; /* release of the server */ | ||
| 552 | struct _XPrivate *private9, *private10; | ||
| 553 | int qlen; /* Length of input event queue */ | ||
| 554 | unsigned long last_request_read; /* seq number of last event read */ | ||
| 555 | unsigned long request; /* sequence number of last request. */ | ||
| 556 | XPointer private11; | ||
| 557 | XPointer private12; | ||
| 558 | XPointer private13; | ||
| 559 | XPointer private14; | ||
| 560 | unsigned max_request_size; /* maximum number 32 bit words in request*/ | ||
| 561 | struct _XrmHashBucketRec *db; | ||
| 562 | int (*private15)( | ||
| 563 | struct _XDisplay* | ||
| 564 | ); | ||
| 565 | char *display_name; /* "host:display" string used on this connect*/ | ||
| 566 | int default_screen; /* default screen for operations */ | ||
| 567 | int nscreens; /* number of screens on this server*/ | ||
| 568 | Screen *screens; /* pointer to list of screens */ | ||
| 569 | unsigned long motion_buffer; /* size of motion buffer */ | ||
| 570 | unsigned long private16; | ||
| 571 | int min_keycode; /* minimum defined keycode */ | ||
| 572 | int max_keycode; /* maximum defined keycode */ | ||
| 573 | XPointer private17; | ||
| 574 | XPointer private18; | ||
| 575 | int private19; | ||
| 576 | char *xdefaults; /* contents of defaults from server */ | ||
| 577 | /* there is more to this structure, but it is private to Xlib */ | ||
| 578 | } | ||
| 579 | #ifdef XLIB_ILLEGAL_ACCESS | ||
| 580 | Display, | ||
| 581 | #endif | ||
| 582 | *_XPrivDisplay; | ||
| 583 | |||
| 584 | #undef _XEVENT_ | ||
| 585 | #ifndef _XEVENT_ | ||
| 586 | /* | ||
| 587 | * Definitions of specific events. | ||
| 588 | */ | ||
| 589 | typedef struct { | ||
| 590 | int type; /* of event */ | ||
| 591 | unsigned long serial; /* # of last request processed by server */ | ||
| 592 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 593 | Display *display; /* Display the event was read from */ | ||
| 594 | Window window; /* "event" window it is reported relative to */ | ||
| 595 | Window root; /* root window that the event occurred on */ | ||
| 596 | Window subwindow; /* child window */ | ||
| 597 | Time time; /* milliseconds */ | ||
| 598 | int x, y; /* pointer x, y coordinates in event window */ | ||
| 599 | int x_root, y_root; /* coordinates relative to root */ | ||
| 600 | unsigned int state; /* key or button mask */ | ||
| 601 | unsigned int keycode; /* detail */ | ||
| 602 | Bool same_screen; /* same screen flag */ | ||
| 603 | } XKeyEvent; | ||
| 604 | typedef XKeyEvent XKeyPressedEvent; | ||
| 605 | typedef XKeyEvent XKeyReleasedEvent; | ||
| 606 | |||
| 607 | typedef struct { | ||
| 608 | int type; /* of event */ | ||
| 609 | unsigned long serial; /* # of last request processed by server */ | ||
| 610 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 611 | Display *display; /* Display the event was read from */ | ||
| 612 | Window window; /* "event" window it is reported relative to */ | ||
| 613 | Window root; /* root window that the event occurred on */ | ||
| 614 | Window subwindow; /* child window */ | ||
| 615 | Time time; /* milliseconds */ | ||
| 616 | int x, y; /* pointer x, y coordinates in event window */ | ||
| 617 | int x_root, y_root; /* coordinates relative to root */ | ||
| 618 | unsigned int state; /* key or button mask */ | ||
| 619 | unsigned int button; /* detail */ | ||
| 620 | Bool same_screen; /* same screen flag */ | ||
| 621 | } XButtonEvent; | ||
| 622 | typedef XButtonEvent XButtonPressedEvent; | ||
| 623 | typedef XButtonEvent XButtonReleasedEvent; | ||
| 624 | |||
| 625 | typedef struct { | ||
| 626 | int type; /* of event */ | ||
| 627 | unsigned long serial; /* # of last request processed by server */ | ||
| 628 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 629 | Display *display; /* Display the event was read from */ | ||
| 630 | Window window; /* "event" window reported relative to */ | ||
| 631 | Window root; /* root window that the event occurred on */ | ||
| 632 | Window subwindow; /* child window */ | ||
| 633 | Time time; /* milliseconds */ | ||
| 634 | int x, y; /* pointer x, y coordinates in event window */ | ||
| 635 | int x_root, y_root; /* coordinates relative to root */ | ||
| 636 | unsigned int state; /* key or button mask */ | ||
| 637 | char is_hint; /* detail */ | ||
| 638 | Bool same_screen; /* same screen flag */ | ||
| 639 | } XMotionEvent; | ||
| 640 | typedef XMotionEvent XPointerMovedEvent; | ||
| 641 | |||
| 642 | typedef struct { | ||
| 643 | int type; /* of event */ | ||
| 644 | unsigned long serial; /* # of last request processed by server */ | ||
| 645 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 646 | Display *display; /* Display the event was read from */ | ||
| 647 | Window window; /* "event" window reported relative to */ | ||
| 648 | Window root; /* root window that the event occurred on */ | ||
| 649 | Window subwindow; /* child window */ | ||
| 650 | Time time; /* milliseconds */ | ||
| 651 | int x, y; /* pointer x, y coordinates in event window */ | ||
| 652 | int x_root, y_root; /* coordinates relative to root */ | ||
| 653 | int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */ | ||
| 654 | int detail; | ||
| 655 | /* | ||
| 656 | * NotifyAncestor, NotifyVirtual, NotifyInferior, | ||
| 657 | * NotifyNonlinear,NotifyNonlinearVirtual | ||
| 658 | */ | ||
| 659 | Bool same_screen; /* same screen flag */ | ||
| 660 | Bool focus; /* boolean focus */ | ||
| 661 | unsigned int state; /* key or button mask */ | ||
| 662 | } XCrossingEvent; | ||
| 663 | typedef XCrossingEvent XEnterWindowEvent; | ||
| 664 | typedef XCrossingEvent XLeaveWindowEvent; | ||
| 665 | |||
| 666 | typedef struct { | ||
| 667 | int type; /* FocusIn or FocusOut */ | ||
| 668 | unsigned long serial; /* # of last request processed by server */ | ||
| 669 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 670 | Display *display; /* Display the event was read from */ | ||
| 671 | Window window; /* window of event */ | ||
| 672 | int mode; /* NotifyNormal, NotifyWhileGrabbed, | ||
| 673 | NotifyGrab, NotifyUngrab */ | ||
| 674 | int detail; | ||
| 675 | /* | ||
| 676 | * NotifyAncestor, NotifyVirtual, NotifyInferior, | ||
| 677 | * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer, | ||
| 678 | * NotifyPointerRoot, NotifyDetailNone | ||
| 679 | */ | ||
| 680 | } XFocusChangeEvent; | ||
| 681 | typedef XFocusChangeEvent XFocusInEvent; | ||
| 682 | typedef XFocusChangeEvent XFocusOutEvent; | ||
| 683 | |||
| 684 | /* generated on EnterWindow and FocusIn when KeyMapState selected */ | ||
| 685 | typedef struct { | ||
| 686 | int type; | ||
| 687 | unsigned long serial; /* # of last request processed by server */ | ||
| 688 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 689 | Display *display; /* Display the event was read from */ | ||
| 690 | Window window; | ||
| 691 | char key_vector[32]; | ||
| 692 | } XKeymapEvent; | ||
| 693 | |||
| 694 | typedef struct { | ||
| 695 | int type; | ||
| 696 | unsigned long serial; /* # of last request processed by server */ | ||
| 697 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 698 | Display *display; /* Display the event was read from */ | ||
| 699 | Window window; | ||
| 700 | int x, y; | ||
| 701 | int width, height; | ||
| 702 | int count; /* if non-zero, at least this many more */ | ||
| 703 | } XExposeEvent; | ||
| 704 | |||
| 705 | typedef struct { | ||
| 706 | int type; | ||
| 707 | unsigned long serial; /* # of last request processed by server */ | ||
| 708 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 709 | Display *display; /* Display the event was read from */ | ||
| 710 | Drawable drawable; | ||
| 711 | int x, y; | ||
| 712 | int width, height; | ||
| 713 | int count; /* if non-zero, at least this many more */ | ||
| 714 | int major_code; /* core is CopyArea or CopyPlane */ | ||
| 715 | int minor_code; /* not defined in the core */ | ||
| 716 | } XGraphicsExposeEvent; | ||
| 717 | |||
| 718 | typedef struct { | ||
| 719 | int type; | ||
| 720 | unsigned long serial; /* # of last request processed by server */ | ||
| 721 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 722 | Display *display; /* Display the event was read from */ | ||
| 723 | Drawable drawable; | ||
| 724 | int major_code; /* core is CopyArea or CopyPlane */ | ||
| 725 | int minor_code; /* not defined in the core */ | ||
| 726 | } XNoExposeEvent; | ||
| 727 | |||
| 728 | typedef struct { | ||
| 729 | int type; | ||
| 730 | unsigned long serial; /* # of last request processed by server */ | ||
| 731 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 732 | Display *display; /* Display the event was read from */ | ||
| 733 | Window window; | ||
| 734 | int state; /* Visibility state */ | ||
| 735 | } XVisibilityEvent; | ||
| 736 | |||
| 737 | typedef struct { | ||
| 738 | int type; | ||
| 739 | unsigned long serial; /* # of last request processed by server */ | ||
| 740 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 741 | Display *display; /* Display the event was read from */ | ||
| 742 | Window parent; /* parent of the window */ | ||
| 743 | Window window; /* window id of window created */ | ||
| 744 | int x, y; /* window location */ | ||
| 745 | int width, height; /* size of window */ | ||
| 746 | int border_width; /* border width */ | ||
| 747 | Bool override_redirect; /* creation should be overridden */ | ||
| 748 | } XCreateWindowEvent; | ||
| 749 | |||
| 750 | typedef struct { | ||
| 751 | int type; | ||
| 752 | unsigned long serial; /* # of last request processed by server */ | ||
| 753 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 754 | Display *display; /* Display the event was read from */ | ||
| 755 | Window event; | ||
| 756 | Window window; | ||
| 757 | } XDestroyWindowEvent; | ||
| 758 | |||
| 759 | typedef struct { | ||
| 760 | int type; | ||
| 761 | unsigned long serial; /* # of last request processed by server */ | ||
| 762 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 763 | Display *display; /* Display the event was read from */ | ||
| 764 | Window event; | ||
| 765 | Window window; | ||
| 766 | Bool from_configure; | ||
| 767 | } XUnmapEvent; | ||
| 768 | |||
| 769 | typedef struct { | ||
| 770 | int type; | ||
| 771 | unsigned long serial; /* # of last request processed by server */ | ||
| 772 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 773 | Display *display; /* Display the event was read from */ | ||
| 774 | Window event; | ||
| 775 | Window window; | ||
| 776 | Bool override_redirect; /* boolean, is override set... */ | ||
| 777 | } XMapEvent; | ||
| 778 | |||
| 779 | typedef struct { | ||
| 780 | int type; | ||
| 781 | unsigned long serial; /* # of last request processed by server */ | ||
| 782 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 783 | Display *display; /* Display the event was read from */ | ||
| 784 | Window parent; | ||
| 785 | Window window; | ||
| 786 | } XMapRequestEvent; | ||
| 787 | |||
| 788 | typedef struct { | ||
| 789 | int type; | ||
| 790 | unsigned long serial; /* # of last request processed by server */ | ||
| 791 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 792 | Display *display; /* Display the event was read from */ | ||
| 793 | Window event; | ||
| 794 | Window window; | ||
| 795 | Window parent; | ||
| 796 | int x, y; | ||
| 797 | Bool override_redirect; | ||
| 798 | } XReparentEvent; | ||
| 799 | |||
| 800 | typedef struct { | ||
| 801 | int type; | ||
| 802 | unsigned long serial; /* # of last request processed by server */ | ||
| 803 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 804 | Display *display; /* Display the event was read from */ | ||
| 805 | Window event; | ||
| 806 | Window window; | ||
| 807 | int x, y; | ||
| 808 | int width, height; | ||
| 809 | int border_width; | ||
| 810 | Window above; | ||
| 811 | Bool override_redirect; | ||
| 812 | } XConfigureEvent; | ||
| 813 | |||
| 814 | typedef struct { | ||
| 815 | int type; | ||
| 816 | unsigned long serial; /* # of last request processed by server */ | ||
| 817 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 818 | Display *display; /* Display the event was read from */ | ||
| 819 | Window event; | ||
| 820 | Window window; | ||
| 821 | int x, y; | ||
| 822 | } XGravityEvent; | ||
| 823 | |||
| 824 | typedef struct { | ||
| 825 | int type; | ||
| 826 | unsigned long serial; /* # of last request processed by server */ | ||
| 827 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 828 | Display *display; /* Display the event was read from */ | ||
| 829 | Window window; | ||
| 830 | int width, height; | ||
| 831 | } XResizeRequestEvent; | ||
| 832 | |||
| 833 | typedef struct { | ||
| 834 | int type; | ||
| 835 | unsigned long serial; /* # of last request processed by server */ | ||
| 836 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 837 | Display *display; /* Display the event was read from */ | ||
| 838 | Window parent; | ||
| 839 | Window window; | ||
| 840 | int x, y; | ||
| 841 | int width, height; | ||
| 842 | int border_width; | ||
| 843 | Window above; | ||
| 844 | int detail; /* Above, Below, TopIf, BottomIf, Opposite */ | ||
| 845 | unsigned long value_mask; | ||
| 846 | } XConfigureRequestEvent; | ||
| 847 | |||
| 848 | typedef struct { | ||
| 849 | int type; | ||
| 850 | unsigned long serial; /* # of last request processed by server */ | ||
| 851 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 852 | Display *display; /* Display the event was read from */ | ||
| 853 | Window event; | ||
| 854 | Window window; | ||
| 855 | int place; /* PlaceOnTop, PlaceOnBottom */ | ||
| 856 | } XCirculateEvent; | ||
| 857 | |||
| 858 | typedef struct { | ||
| 859 | int type; | ||
| 860 | unsigned long serial; /* # of last request processed by server */ | ||
| 861 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 862 | Display *display; /* Display the event was read from */ | ||
| 863 | Window parent; | ||
| 864 | Window window; | ||
| 865 | int place; /* PlaceOnTop, PlaceOnBottom */ | ||
| 866 | } XCirculateRequestEvent; | ||
| 867 | |||
| 868 | typedef struct { | ||
| 869 | int type; | ||
| 870 | unsigned long serial; /* # of last request processed by server */ | ||
| 871 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 872 | Display *display; /* Display the event was read from */ | ||
| 873 | Window window; | ||
| 874 | Atom atom; | ||
| 875 | Time time; | ||
| 876 | int state; /* NewValue, Deleted */ | ||
| 877 | } XPropertyEvent; | ||
| 878 | |||
| 879 | typedef struct { | ||
| 880 | int type; | ||
| 881 | unsigned long serial; /* # of last request processed by server */ | ||
| 882 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 883 | Display *display; /* Display the event was read from */ | ||
| 884 | Window window; | ||
| 885 | Atom selection; | ||
| 886 | Time time; | ||
| 887 | } XSelectionClearEvent; | ||
| 888 | |||
| 889 | typedef struct { | ||
| 890 | int type; | ||
| 891 | unsigned long serial; /* # of last request processed by server */ | ||
| 892 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 893 | Display *display; /* Display the event was read from */ | ||
| 894 | Window owner; | ||
| 895 | Window requestor; | ||
| 896 | Atom selection; | ||
| 897 | Atom target; | ||
| 898 | Atom property; | ||
| 899 | Time time; | ||
| 900 | } XSelectionRequestEvent; | ||
| 901 | |||
| 902 | typedef struct { | ||
| 903 | int type; | ||
| 904 | unsigned long serial; /* # of last request processed by server */ | ||
| 905 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 906 | Display *display; /* Display the event was read from */ | ||
| 907 | Window requestor; | ||
| 908 | Atom selection; | ||
| 909 | Atom target; | ||
| 910 | Atom property; /* ATOM or None */ | ||
| 911 | Time time; | ||
| 912 | } XSelectionEvent; | ||
| 913 | |||
| 914 | typedef struct { | ||
| 915 | int type; | ||
| 916 | unsigned long serial; /* # of last request processed by server */ | ||
| 917 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 918 | Display *display; /* Display the event was read from */ | ||
| 919 | Window window; | ||
| 920 | Colormap colormap; /* COLORMAP or None */ | ||
| 921 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 922 | Bool c_new; /* C++ */ | ||
| 923 | #else | ||
| 924 | Bool new; | ||
| 925 | #endif | ||
| 926 | int state; /* ColormapInstalled, ColormapUninstalled */ | ||
| 927 | } XColormapEvent; | ||
| 928 | |||
| 929 | typedef struct { | ||
| 930 | int type; | ||
| 931 | unsigned long serial; /* # of last request processed by server */ | ||
| 932 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 933 | Display *display; /* Display the event was read from */ | ||
| 934 | Window window; | ||
| 935 | Atom message_type; | ||
| 936 | int format; | ||
| 937 | union { | ||
| 938 | char b[20]; | ||
| 939 | short s[10]; | ||
| 940 | long l[5]; | ||
| 941 | } data; | ||
| 942 | } XClientMessageEvent; | ||
| 943 | |||
| 944 | typedef struct { | ||
| 945 | int type; | ||
| 946 | unsigned long serial; /* # of last request processed by server */ | ||
| 947 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 948 | Display *display; /* Display the event was read from */ | ||
| 949 | Window window; /* unused */ | ||
| 950 | int request; /* one of MappingModifier, MappingKeyboard, | ||
| 951 | MappingPointer */ | ||
| 952 | int first_keycode; /* first keycode */ | ||
| 953 | int count; /* defines range of change w. first_keycode*/ | ||
| 954 | } XMappingEvent; | ||
| 955 | |||
| 956 | typedef struct { | ||
| 957 | int type; | ||
| 958 | Display *display; /* Display the event was read from */ | ||
| 959 | XID resourceid; /* resource id */ | ||
| 960 | unsigned long serial; /* serial number of failed request */ | ||
| 961 | unsigned char error_code; /* error code of failed request */ | ||
| 962 | unsigned char request_code; /* Major op-code of failed request */ | ||
| 963 | unsigned char minor_code; /* Minor op-code of failed request */ | ||
| 964 | } XErrorEvent; | ||
| 965 | |||
| 966 | typedef struct { | ||
| 967 | int type; | ||
| 968 | unsigned long serial; /* # of last request processed by server */ | ||
| 969 | Bool send_event; /* true if this came from a SendEvent request */ | ||
| 970 | Display *display;/* Display the event was read from */ | ||
| 971 | Window window; /* window on which event was requested in event mask */ | ||
| 972 | } XAnyEvent; | ||
| 973 | |||
| 974 | /* | ||
| 975 | * this union is defined so Xlib can always use the same sized | ||
| 976 | * event structure internally, to avoid memory fragmentation. | ||
| 977 | */ | ||
| 978 | typedef union _XEvent { | ||
| 979 | int type; /* must not be changed; first element */ | ||
| 980 | XAnyEvent xany; | ||
| 981 | XKeyEvent xkey; | ||
| 982 | XButtonEvent xbutton; | ||
| 983 | XMotionEvent xmotion; | ||
| 984 | XCrossingEvent xcrossing; | ||
| 985 | XFocusChangeEvent xfocus; | ||
| 986 | XExposeEvent xexpose; | ||
| 987 | XGraphicsExposeEvent xgraphicsexpose; | ||
| 988 | XNoExposeEvent xnoexpose; | ||
| 989 | XVisibilityEvent xvisibility; | ||
| 990 | XCreateWindowEvent xcreatewindow; | ||
| 991 | XDestroyWindowEvent xdestroywindow; | ||
| 992 | XUnmapEvent xunmap; | ||
| 993 | XMapEvent xmap; | ||
| 994 | XMapRequestEvent xmaprequest; | ||
| 995 | XReparentEvent xreparent; | ||
| 996 | XConfigureEvent xconfigure; | ||
| 997 | XGravityEvent xgravity; | ||
| 998 | XResizeRequestEvent xresizerequest; | ||
| 999 | XConfigureRequestEvent xconfigurerequest; | ||
| 1000 | XCirculateEvent xcirculate; | ||
| 1001 | XCirculateRequestEvent xcirculaterequest; | ||
| 1002 | XPropertyEvent xproperty; | ||
| 1003 | XSelectionClearEvent xselectionclear; | ||
| 1004 | XSelectionRequestEvent xselectionrequest; | ||
| 1005 | XSelectionEvent xselection; | ||
| 1006 | XColormapEvent xcolormap; | ||
| 1007 | XClientMessageEvent xclient; | ||
| 1008 | XMappingEvent xmapping; | ||
| 1009 | XErrorEvent xerror; | ||
| 1010 | XKeymapEvent xkeymap; | ||
| 1011 | long pad[24]; | ||
| 1012 | } XEvent; | ||
| 1013 | #endif | ||
| 1014 | |||
| 1015 | #define XAllocID(dpy) ((*((_XPrivDisplay)dpy)->resource_alloc)((dpy))) | ||
| 1016 | |||
| 1017 | /* | ||
| 1018 | * per character font metric information. | ||
| 1019 | */ | ||
| 1020 | typedef struct { | ||
| 1021 | short lbearing; /* origin to left edge of raster */ | ||
| 1022 | short rbearing; /* origin to right edge of raster */ | ||
| 1023 | short width; /* advance to next char's origin */ | ||
| 1024 | short ascent; /* baseline to top edge of raster */ | ||
| 1025 | short descent; /* baseline to bottom edge of raster */ | ||
| 1026 | unsigned short attributes; /* per char flags (not predefined) */ | ||
| 1027 | } XCharStruct; | ||
| 1028 | |||
| 1029 | /* | ||
| 1030 | * To allow arbitrary information with fonts, there are additional properties | ||
| 1031 | * returned. | ||
| 1032 | */ | ||
| 1033 | typedef struct { | ||
| 1034 | Atom name; | ||
| 1035 | unsigned long card32; | ||
| 1036 | } XFontProp; | ||
| 1037 | |||
| 1038 | typedef struct { | ||
| 1039 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 1040 | Font fid; /* Font id for this font */ | ||
| 1041 | unsigned direction; /* hint about direction the font is painted */ | ||
| 1042 | unsigned min_char_or_byte2;/* first character */ | ||
| 1043 | unsigned max_char_or_byte2;/* last character */ | ||
| 1044 | unsigned min_byte1; /* first row that exists */ | ||
| 1045 | unsigned max_byte1; /* last row that exists */ | ||
| 1046 | Bool all_chars_exist;/* flag if all characters have non-zero size*/ | ||
| 1047 | unsigned default_char; /* char to print for undefined character */ | ||
| 1048 | int n_properties; /* how many properties there are */ | ||
| 1049 | XFontProp *properties; /* pointer to array of additional properties*/ | ||
| 1050 | XCharStruct min_bounds; /* minimum bounds over all existing char*/ | ||
| 1051 | XCharStruct max_bounds; /* maximum bounds over all existing char*/ | ||
| 1052 | XCharStruct *per_char; /* first_char to last_char information */ | ||
| 1053 | int ascent; /* log. extent above baseline for spacing */ | ||
| 1054 | int descent; /* log. descent below baseline for spacing */ | ||
| 1055 | } XFontStruct; | ||
| 1056 | |||
| 1057 | /* | ||
| 1058 | * PolyText routines take these as arguments. | ||
| 1059 | */ | ||
| 1060 | typedef struct { | ||
| 1061 | char *chars; /* pointer to string */ | ||
| 1062 | int nchars; /* number of characters */ | ||
| 1063 | int delta; /* delta between strings */ | ||
| 1064 | Font font; /* font to print it in, None don't change */ | ||
| 1065 | } XTextItem; | ||
| 1066 | |||
| 1067 | typedef struct { /* normal 16 bit characters are two bytes */ | ||
| 1068 | unsigned char byte1; | ||
| 1069 | unsigned char byte2; | ||
| 1070 | } XChar2b; | ||
| 1071 | |||
| 1072 | typedef struct { | ||
| 1073 | XChar2b *chars; /* two byte characters */ | ||
| 1074 | int nchars; /* number of characters */ | ||
| 1075 | int delta; /* delta between strings */ | ||
| 1076 | Font font; /* font to print it in, None don't change */ | ||
| 1077 | } XTextItem16; | ||
| 1078 | |||
| 1079 | |||
| 1080 | typedef union { Display *display; | ||
| 1081 | GC gc; | ||
| 1082 | Visual *visual; | ||
| 1083 | Screen *screen; | ||
| 1084 | ScreenFormat *pixmap_format; | ||
| 1085 | XFontStruct *font; } XEDataObject; | ||
| 1086 | |||
| 1087 | typedef struct { | ||
| 1088 | XRectangle max_ink_extent; | ||
| 1089 | XRectangle max_logical_extent; | ||
| 1090 | } XFontSetExtents; | ||
| 1091 | |||
| 1092 | /* unused: | ||
| 1093 | typedef void (*XOMProc)(); | ||
| 1094 | */ | ||
| 1095 | |||
| 1096 | typedef struct _XOM *XOM; | ||
| 1097 | typedef struct _XOC *XOC, *XFontSet; | ||
| 1098 | |||
| 1099 | typedef struct { | ||
| 1100 | char *chars; | ||
| 1101 | int nchars; | ||
| 1102 | int delta; | ||
| 1103 | XFontSet font_set; | ||
| 1104 | } XmbTextItem; | ||
| 1105 | |||
| 1106 | typedef struct { | ||
| 1107 | wchar_t *chars; | ||
| 1108 | int nchars; | ||
| 1109 | int delta; | ||
| 1110 | XFontSet font_set; | ||
| 1111 | } XwcTextItem; | ||
| 1112 | |||
| 1113 | #define XNRequiredCharSet "requiredCharSet" | ||
| 1114 | #define XNQueryOrientation "queryOrientation" | ||
| 1115 | #define XNBaseFontName "baseFontName" | ||
| 1116 | #define XNOMAutomatic "omAutomatic" | ||
| 1117 | #define XNMissingCharSet "missingCharSet" | ||
| 1118 | #define XNDefaultString "defaultString" | ||
| 1119 | #define XNOrientation "orientation" | ||
| 1120 | #define XNDirectionalDependentDrawing "directionalDependentDrawing" | ||
| 1121 | #define XNContextualDrawing "contextualDrawing" | ||
| 1122 | #define XNFontInfo "fontInfo" | ||
| 1123 | |||
| 1124 | typedef struct { | ||
| 1125 | int charset_count; | ||
| 1126 | char **charset_list; | ||
| 1127 | } XOMCharSetList; | ||
| 1128 | |||
| 1129 | typedef enum { | ||
| 1130 | XOMOrientation_LTR_TTB, | ||
| 1131 | XOMOrientation_RTL_TTB, | ||
| 1132 | XOMOrientation_TTB_LTR, | ||
| 1133 | XOMOrientation_TTB_RTL, | ||
| 1134 | XOMOrientation_Context | ||
| 1135 | } XOrientation; | ||
| 1136 | |||
| 1137 | typedef struct { | ||
| 1138 | int num_orientation; | ||
| 1139 | XOrientation *orientation; /* Input Text description */ | ||
| 1140 | } XOMOrientation; | ||
| 1141 | |||
| 1142 | typedef struct { | ||
| 1143 | int num_font; | ||
| 1144 | XFontStruct **font_struct_list; | ||
| 1145 | char **font_name_list; | ||
| 1146 | } XOMFontInfo; | ||
| 1147 | |||
| 1148 | typedef struct _XIM *XIM; | ||
| 1149 | typedef struct _XIC *XIC; | ||
| 1150 | |||
| 1151 | typedef void (*XIMProc)( | ||
| 1152 | XIM, | ||
| 1153 | XPointer, | ||
| 1154 | XPointer | ||
| 1155 | ); | ||
| 1156 | |||
| 1157 | typedef Bool (*XICProc)( | ||
| 1158 | XIC, | ||
| 1159 | XPointer, | ||
| 1160 | XPointer | ||
| 1161 | ); | ||
| 1162 | |||
| 1163 | typedef void (*XIDProc)( | ||
| 1164 | Display*, | ||
| 1165 | XPointer, | ||
| 1166 | XPointer | ||
| 1167 | ); | ||
| 1168 | |||
| 1169 | typedef unsigned long XIMStyle; | ||
| 1170 | |||
| 1171 | typedef struct { | ||
| 1172 | unsigned short count_styles; | ||
| 1173 | XIMStyle *supported_styles; | ||
| 1174 | } XIMStyles; | ||
| 1175 | |||
| 1176 | #define XIMPreeditArea 0x0001L | ||
| 1177 | #define XIMPreeditCallbacks 0x0002L | ||
| 1178 | #define XIMPreeditPosition 0x0004L | ||
| 1179 | #define XIMPreeditNothing 0x0008L | ||
| 1180 | #define XIMPreeditNone 0x0010L | ||
| 1181 | #define XIMStatusArea 0x0100L | ||
| 1182 | #define XIMStatusCallbacks 0x0200L | ||
| 1183 | #define XIMStatusNothing 0x0400L | ||
| 1184 | #define XIMStatusNone 0x0800L | ||
| 1185 | |||
| 1186 | #define XNVaNestedList "XNVaNestedList" | ||
| 1187 | #define XNQueryInputStyle "queryInputStyle" | ||
| 1188 | #define XNClientWindow "clientWindow" | ||
| 1189 | #define XNInputStyle "inputStyle" | ||
| 1190 | #define XNFocusWindow "focusWindow" | ||
| 1191 | #define XNResourceName "resourceName" | ||
| 1192 | #define XNResourceClass "resourceClass" | ||
| 1193 | #define XNGeometryCallback "geometryCallback" | ||
| 1194 | #define XNDestroyCallback "destroyCallback" | ||
| 1195 | #define XNFilterEvents "filterEvents" | ||
| 1196 | #define XNPreeditStartCallback "preeditStartCallback" | ||
| 1197 | #define XNPreeditDoneCallback "preeditDoneCallback" | ||
| 1198 | #define XNPreeditDrawCallback "preeditDrawCallback" | ||
| 1199 | #define XNPreeditCaretCallback "preeditCaretCallback" | ||
| 1200 | #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback" | ||
| 1201 | #define XNPreeditAttributes "preeditAttributes" | ||
| 1202 | #define XNStatusStartCallback "statusStartCallback" | ||
| 1203 | #define XNStatusDoneCallback "statusDoneCallback" | ||
| 1204 | #define XNStatusDrawCallback "statusDrawCallback" | ||
| 1205 | #define XNStatusAttributes "statusAttributes" | ||
| 1206 | #define XNArea "area" | ||
| 1207 | #define XNAreaNeeded "areaNeeded" | ||
| 1208 | #define XNSpotLocation "spotLocation" | ||
| 1209 | #define XNColormap "colorMap" | ||
| 1210 | #define XNStdColormap "stdColorMap" | ||
| 1211 | #define XNForeground "foreground" | ||
| 1212 | #define XNBackground "background" | ||
| 1213 | #define XNBackgroundPixmap "backgroundPixmap" | ||
| 1214 | #define XNFontSet "fontSet" | ||
| 1215 | #define XNLineSpace "lineSpace" | ||
| 1216 | #define XNCursor "cursor" | ||
| 1217 | |||
| 1218 | #define XNQueryIMValuesList "queryIMValuesList" | ||
| 1219 | #define XNQueryICValuesList "queryICValuesList" | ||
| 1220 | #define XNVisiblePosition "visiblePosition" | ||
| 1221 | #define XNR6PreeditCallback "r6PreeditCallback" | ||
| 1222 | #define XNStringConversionCallback "stringConversionCallback" | ||
| 1223 | #define XNStringConversion "stringConversion" | ||
| 1224 | #define XNResetState "resetState" | ||
| 1225 | #define XNHotKey "hotKey" | ||
| 1226 | #define XNHotKeyState "hotKeyState" | ||
| 1227 | #define XNPreeditState "preeditState" | ||
| 1228 | #define XNSeparatorofNestedList "separatorofNestedList" | ||
| 1229 | |||
| 1230 | #define XBufferOverflow -1 | ||
| 1231 | #define XLookupNone 1 | ||
| 1232 | #define XLookupChars 2 | ||
| 1233 | #define XLookupKeySym 3 | ||
| 1234 | #define XLookupBoth 4 | ||
| 1235 | |||
| 1236 | typedef void *XVaNestedList; | ||
| 1237 | |||
| 1238 | typedef struct { | ||
| 1239 | XPointer client_data; | ||
| 1240 | XIMProc callback; | ||
| 1241 | } XIMCallback; | ||
| 1242 | |||
| 1243 | typedef struct { | ||
| 1244 | XPointer client_data; | ||
| 1245 | XICProc callback; | ||
| 1246 | } XICCallback; | ||
| 1247 | |||
| 1248 | typedef unsigned long XIMFeedback; | ||
| 1249 | |||
| 1250 | #define XIMReverse 1L | ||
| 1251 | #define XIMUnderline (1L<<1) | ||
| 1252 | #define XIMHighlight (1L<<2) | ||
| 1253 | #define XIMPrimary (1L<<5) | ||
| 1254 | #define XIMSecondary (1L<<6) | ||
| 1255 | #define XIMTertiary (1L<<7) | ||
| 1256 | #define XIMVisibleToForward (1L<<8) | ||
| 1257 | #define XIMVisibleToBackword (1L<<9) | ||
| 1258 | #define XIMVisibleToCenter (1L<<10) | ||
| 1259 | |||
| 1260 | typedef struct _XIMText { | ||
| 1261 | unsigned short length; | ||
| 1262 | XIMFeedback *feedback; | ||
| 1263 | Bool encoding_is_wchar; | ||
| 1264 | union { | ||
| 1265 | char *multi_byte; | ||
| 1266 | wchar_t *wide_char; | ||
| 1267 | } string; | ||
| 1268 | } XIMText; | ||
| 1269 | |||
| 1270 | typedef unsigned long XIMPreeditState; | ||
| 1271 | |||
| 1272 | #define XIMPreeditUnKnown 0L | ||
| 1273 | #define XIMPreeditEnable 1L | ||
| 1274 | #define XIMPreeditDisable (1L<<1) | ||
| 1275 | |||
| 1276 | typedef struct _XIMPreeditStateNotifyCallbackStruct { | ||
| 1277 | XIMPreeditState state; | ||
| 1278 | } XIMPreeditStateNotifyCallbackStruct; | ||
| 1279 | |||
| 1280 | typedef unsigned long XIMResetState; | ||
| 1281 | |||
| 1282 | #define XIMInitialState 1L | ||
| 1283 | #define XIMPreserveState (1L<<1) | ||
| 1284 | |||
| 1285 | typedef unsigned long XIMStringConversionFeedback; | ||
| 1286 | |||
| 1287 | #define XIMStringConversionLeftEdge (0x00000001) | ||
| 1288 | #define XIMStringConversionRightEdge (0x00000002) | ||
| 1289 | #define XIMStringConversionTopEdge (0x00000004) | ||
| 1290 | #define XIMStringConversionBottomEdge (0x00000008) | ||
| 1291 | #define XIMStringConversionConcealed (0x00000010) | ||
| 1292 | #define XIMStringConversionWrapped (0x00000020) | ||
| 1293 | |||
| 1294 | typedef struct _XIMStringConversionText { | ||
| 1295 | unsigned short length; | ||
| 1296 | XIMStringConversionFeedback *feedback; | ||
| 1297 | Bool encoding_is_wchar; | ||
| 1298 | union { | ||
| 1299 | char *mbs; | ||
| 1300 | wchar_t *wcs; | ||
| 1301 | } string; | ||
| 1302 | } XIMStringConversionText; | ||
| 1303 | |||
| 1304 | typedef unsigned short XIMStringConversionPosition; | ||
| 1305 | |||
| 1306 | typedef unsigned short XIMStringConversionType; | ||
| 1307 | |||
| 1308 | #define XIMStringConversionBuffer (0x0001) | ||
| 1309 | #define XIMStringConversionLine (0x0002) | ||
| 1310 | #define XIMStringConversionWord (0x0003) | ||
| 1311 | #define XIMStringConversionChar (0x0004) | ||
| 1312 | |||
| 1313 | typedef unsigned short XIMStringConversionOperation; | ||
| 1314 | |||
| 1315 | #define XIMStringConversionSubstitution (0x0001) | ||
| 1316 | #define XIMStringConversionRetrieval (0x0002) | ||
| 1317 | |||
| 1318 | typedef enum { | ||
| 1319 | XIMForwardChar, XIMBackwardChar, | ||
| 1320 | XIMForwardWord, XIMBackwardWord, | ||
| 1321 | XIMCaretUp, XIMCaretDown, | ||
| 1322 | XIMNextLine, XIMPreviousLine, | ||
| 1323 | XIMLineStart, XIMLineEnd, | ||
| 1324 | XIMAbsolutePosition, | ||
| 1325 | XIMDontChange | ||
| 1326 | } XIMCaretDirection; | ||
| 1327 | |||
| 1328 | typedef struct _XIMStringConversionCallbackStruct { | ||
| 1329 | XIMStringConversionPosition position; | ||
| 1330 | XIMCaretDirection direction; | ||
| 1331 | XIMStringConversionOperation operation; | ||
| 1332 | unsigned short factor; | ||
| 1333 | XIMStringConversionText *text; | ||
| 1334 | } XIMStringConversionCallbackStruct; | ||
| 1335 | |||
| 1336 | typedef struct _XIMPreeditDrawCallbackStruct { | ||
| 1337 | int caret; /* Cursor offset within pre-edit string */ | ||
| 1338 | int chg_first; /* Starting change position */ | ||
| 1339 | int chg_length; /* Length of the change in character count */ | ||
| 1340 | XIMText *text; | ||
| 1341 | } XIMPreeditDrawCallbackStruct; | ||
| 1342 | |||
| 1343 | typedef enum { | ||
| 1344 | XIMIsInvisible, /* Disable caret feedback */ | ||
| 1345 | XIMIsPrimary, /* UI defined caret feedback */ | ||
| 1346 | XIMIsSecondary /* UI defined caret feedback */ | ||
| 1347 | } XIMCaretStyle; | ||
| 1348 | |||
| 1349 | typedef struct _XIMPreeditCaretCallbackStruct { | ||
| 1350 | int position; /* Caret offset within pre-edit string */ | ||
| 1351 | XIMCaretDirection direction; /* Caret moves direction */ | ||
| 1352 | XIMCaretStyle style; /* Feedback of the caret */ | ||
| 1353 | } XIMPreeditCaretCallbackStruct; | ||
| 1354 | |||
| 1355 | typedef enum { | ||
| 1356 | XIMTextType, | ||
| 1357 | XIMBitmapType | ||
| 1358 | } XIMStatusDataType; | ||
| 1359 | |||
| 1360 | typedef struct _XIMStatusDrawCallbackStruct { | ||
| 1361 | XIMStatusDataType type; | ||
| 1362 | union { | ||
| 1363 | XIMText *text; | ||
| 1364 | Pixmap bitmap; | ||
| 1365 | } data; | ||
| 1366 | } XIMStatusDrawCallbackStruct; | ||
| 1367 | |||
| 1368 | typedef struct _XIMHotKeyTrigger { | ||
| 1369 | KeySym keysym; | ||
| 1370 | int modifier; | ||
| 1371 | int modifier_mask; | ||
| 1372 | } XIMHotKeyTrigger; | ||
| 1373 | |||
| 1374 | typedef struct _XIMHotKeyTriggers { | ||
| 1375 | int num_hot_key; | ||
| 1376 | XIMHotKeyTrigger *key; | ||
| 1377 | } XIMHotKeyTriggers; | ||
| 1378 | |||
| 1379 | typedef unsigned long XIMHotKeyState; | ||
| 1380 | |||
| 1381 | #define XIMHotKeyStateON (0x0001L) | ||
| 1382 | #define XIMHotKeyStateOFF (0x0002L) | ||
| 1383 | |||
| 1384 | typedef struct { | ||
| 1385 | unsigned short count_values; | ||
| 1386 | char **supported_values; | ||
| 1387 | } XIMValuesList; | ||
| 1388 | |||
| 1389 | _XFUNCPROTOBEGIN | ||
| 1390 | |||
| 1391 | #if defined(WIN32) && !defined(_XLIBINT_) | ||
| 1392 | #define _Xdebug (*_Xdebug_p) | ||
| 1393 | #endif | ||
| 1394 | |||
| 1395 | extern int _Xdebug; | ||
| 1396 | |||
| 1397 | extern XFontStruct *XLoadQueryFont( | ||
| 1398 | Display* /* display */, | ||
| 1399 | _Xconst char* /* name */ | ||
| 1400 | ); | ||
| 1401 | |||
| 1402 | extern XFontStruct *XQueryFont( | ||
| 1403 | Display* /* display */, | ||
| 1404 | XID /* font_ID */ | ||
| 1405 | ); | ||
| 1406 | |||
| 1407 | |||
| 1408 | extern XTimeCoord *XGetMotionEvents( | ||
| 1409 | Display* /* display */, | ||
| 1410 | Window /* w */, | ||
| 1411 | Time /* start */, | ||
| 1412 | Time /* stop */, | ||
| 1413 | int* /* nevents_return */ | ||
| 1414 | ); | ||
| 1415 | |||
| 1416 | extern XModifierKeymap *XDeleteModifiermapEntry( | ||
| 1417 | XModifierKeymap* /* modmap */, | ||
| 1418 | #if NeedWidePrototypes | ||
| 1419 | unsigned int /* keycode_entry */, | ||
| 1420 | #else | ||
| 1421 | KeyCode /* keycode_entry */, | ||
| 1422 | #endif | ||
| 1423 | int /* modifier */ | ||
| 1424 | ); | ||
| 1425 | |||
| 1426 | extern XModifierKeymap *XGetModifierMapping( | ||
| 1427 | Display* /* display */ | ||
| 1428 | ); | ||
| 1429 | |||
| 1430 | extern XModifierKeymap *XInsertModifiermapEntry( | ||
| 1431 | XModifierKeymap* /* modmap */, | ||
| 1432 | #if NeedWidePrototypes | ||
| 1433 | unsigned int /* keycode_entry */, | ||
| 1434 | #else | ||
| 1435 | KeyCode /* keycode_entry */, | ||
| 1436 | #endif | ||
| 1437 | int /* modifier */ | ||
| 1438 | ); | ||
| 1439 | |||
| 1440 | extern XModifierKeymap *XNewModifiermap( | ||
| 1441 | int /* max_keys_per_mod */ | ||
| 1442 | ); | ||
| 1443 | |||
| 1444 | extern XImage *XCreateImage( | ||
| 1445 | Display* /* display */, | ||
| 1446 | Visual* /* visual */, | ||
| 1447 | unsigned int /* depth */, | ||
| 1448 | int /* format */, | ||
| 1449 | int /* offset */, | ||
| 1450 | char* /* data */, | ||
| 1451 | unsigned int /* width */, | ||
| 1452 | unsigned int /* height */, | ||
| 1453 | int /* bitmap_pad */, | ||
| 1454 | int /* bytes_per_line */ | ||
| 1455 | ); | ||
| 1456 | extern Status XInitImage( | ||
| 1457 | XImage* /* image */ | ||
| 1458 | ); | ||
| 1459 | extern XImage *XGetImage( | ||
| 1460 | Display* /* display */, | ||
| 1461 | Drawable /* d */, | ||
| 1462 | int /* x */, | ||
| 1463 | int /* y */, | ||
| 1464 | unsigned int /* width */, | ||
| 1465 | unsigned int /* height */, | ||
| 1466 | unsigned long /* plane_mask */, | ||
| 1467 | int /* format */ | ||
| 1468 | ); | ||
| 1469 | extern XImage *XGetSubImage( | ||
| 1470 | Display* /* display */, | ||
| 1471 | Drawable /* d */, | ||
| 1472 | int /* x */, | ||
| 1473 | int /* y */, | ||
| 1474 | unsigned int /* width */, | ||
| 1475 | unsigned int /* height */, | ||
| 1476 | unsigned long /* plane_mask */, | ||
| 1477 | int /* format */, | ||
| 1478 | XImage* /* dest_image */, | ||
| 1479 | int /* dest_x */, | ||
| 1480 | int /* dest_y */ | ||
| 1481 | ); | ||
| 1482 | |||
| 1483 | /* | ||
| 1484 | * X function declarations. | ||
| 1485 | */ | ||
| 1486 | extern Display *XOpenDisplay( | ||
| 1487 | _Xconst char* /* display_name */ | ||
| 1488 | ); | ||
| 1489 | |||
| 1490 | extern void XrmInitialize( | ||
| 1491 | void | ||
| 1492 | ); | ||
| 1493 | |||
| 1494 | extern char *XFetchBytes( | ||
| 1495 | Display* /* display */, | ||
| 1496 | int* /* nbytes_return */ | ||
| 1497 | ); | ||
| 1498 | extern char *XFetchBuffer( | ||
| 1499 | Display* /* display */, | ||
| 1500 | int* /* nbytes_return */, | ||
| 1501 | int /* buffer */ | ||
| 1502 | ); | ||
| 1503 | extern char *XGetAtomName( | ||
| 1504 | Display* /* display */, | ||
| 1505 | Atom /* atom */ | ||
| 1506 | ); | ||
| 1507 | extern Status XGetAtomNames( | ||
| 1508 | Display* /* dpy */, | ||
| 1509 | Atom* /* atoms */, | ||
| 1510 | int /* count */, | ||
| 1511 | char** /* names_return */ | ||
| 1512 | ); | ||
| 1513 | extern char *XGetDefault( | ||
| 1514 | Display* /* display */, | ||
| 1515 | _Xconst char* /* program */, | ||
| 1516 | _Xconst char* /* option */ | ||
| 1517 | ); | ||
| 1518 | extern char *XDisplayName( | ||
| 1519 | _Xconst char* /* string */ | ||
| 1520 | ); | ||
| 1521 | extern char *XKeysymToString( | ||
| 1522 | KeySym /* keysym */ | ||
| 1523 | ); | ||
| 1524 | |||
| 1525 | extern int (*XSynchronize( | ||
| 1526 | Display* /* display */, | ||
| 1527 | Bool /* onoff */ | ||
| 1528 | ))( | ||
| 1529 | Display* /* display */ | ||
| 1530 | ); | ||
| 1531 | extern int (*XSetAfterFunction( | ||
| 1532 | Display* /* display */, | ||
| 1533 | int (*) ( | ||
| 1534 | Display* /* display */ | ||
| 1535 | ) /* procedure */ | ||
| 1536 | ))( | ||
| 1537 | Display* /* display */ | ||
| 1538 | ); | ||
| 1539 | extern Atom XInternAtom( | ||
| 1540 | Display* /* display */, | ||
| 1541 | _Xconst char* /* atom_name */, | ||
| 1542 | Bool /* only_if_exists */ | ||
| 1543 | ); | ||
| 1544 | extern Status XInternAtoms( | ||
| 1545 | Display* /* dpy */, | ||
| 1546 | char** /* names */, | ||
| 1547 | int /* count */, | ||
| 1548 | Bool /* onlyIfExists */, | ||
| 1549 | Atom* /* atoms_return */ | ||
| 1550 | ); | ||
| 1551 | extern Colormap XCopyColormapAndFree( | ||
| 1552 | Display* /* display */, | ||
| 1553 | Colormap /* colormap */ | ||
| 1554 | ); | ||
| 1555 | extern Colormap XCreateColormap( | ||
| 1556 | Display* /* display */, | ||
| 1557 | Window /* w */, | ||
| 1558 | Visual* /* visual */, | ||
| 1559 | int /* alloc */ | ||
| 1560 | ); | ||
| 1561 | extern Cursor XCreatePixmapCursor( | ||
| 1562 | Display* /* display */, | ||
| 1563 | Pixmap /* source */, | ||
| 1564 | Pixmap /* mask */, | ||
| 1565 | XColor* /* foreground_color */, | ||
| 1566 | XColor* /* background_color */, | ||
| 1567 | unsigned int /* x */, | ||
| 1568 | unsigned int /* y */ | ||
| 1569 | ); | ||
| 1570 | extern Cursor XCreateGlyphCursor( | ||
| 1571 | Display* /* display */, | ||
| 1572 | Font /* source_font */, | ||
| 1573 | Font /* mask_font */, | ||
| 1574 | unsigned int /* source_char */, | ||
| 1575 | unsigned int /* mask_char */, | ||
| 1576 | XColor _Xconst * /* foreground_color */, | ||
| 1577 | XColor _Xconst * /* background_color */ | ||
| 1578 | ); | ||
| 1579 | extern Cursor XCreateFontCursor( | ||
| 1580 | Display* /* display */, | ||
| 1581 | unsigned int /* shape */ | ||
| 1582 | ); | ||
| 1583 | extern Font XLoadFont( | ||
| 1584 | Display* /* display */, | ||
| 1585 | _Xconst char* /* name */ | ||
| 1586 | ); | ||
| 1587 | extern GC XCreateGC( | ||
| 1588 | Display* /* display */, | ||
| 1589 | Drawable /* d */, | ||
| 1590 | unsigned long /* valuemask */, | ||
| 1591 | XGCValues* /* values */ | ||
| 1592 | ); | ||
| 1593 | extern GContext XGContextFromGC( | ||
| 1594 | GC /* gc */ | ||
| 1595 | ); | ||
| 1596 | extern void XFlushGC( | ||
| 1597 | Display* /* display */, | ||
| 1598 | GC /* gc */ | ||
| 1599 | ); | ||
| 1600 | extern Pixmap XCreatePixmap( | ||
| 1601 | Display* /* display */, | ||
| 1602 | Drawable /* d */, | ||
| 1603 | unsigned int /* width */, | ||
| 1604 | unsigned int /* height */, | ||
| 1605 | unsigned int /* depth */ | ||
| 1606 | ); | ||
| 1607 | extern Pixmap XCreateBitmapFromData( | ||
| 1608 | Display* /* display */, | ||
| 1609 | Drawable /* d */, | ||
| 1610 | _Xconst char* /* data */, | ||
| 1611 | unsigned int /* width */, | ||
| 1612 | unsigned int /* height */ | ||
| 1613 | ); | ||
| 1614 | extern Pixmap XCreatePixmapFromBitmapData( | ||
| 1615 | Display* /* display */, | ||
| 1616 | Drawable /* d */, | ||
| 1617 | char* /* data */, | ||
| 1618 | unsigned int /* width */, | ||
| 1619 | unsigned int /* height */, | ||
| 1620 | unsigned long /* fg */, | ||
| 1621 | unsigned long /* bg */, | ||
| 1622 | unsigned int /* depth */ | ||
| 1623 | ); | ||
| 1624 | extern Window XCreateSimpleWindow( | ||
| 1625 | Display* /* display */, | ||
| 1626 | Window /* parent */, | ||
| 1627 | int /* x */, | ||
| 1628 | int /* y */, | ||
| 1629 | unsigned int /* width */, | ||
| 1630 | unsigned int /* height */, | ||
| 1631 | unsigned int /* border_width */, | ||
| 1632 | unsigned long /* border */, | ||
| 1633 | unsigned long /* background */ | ||
| 1634 | ); | ||
| 1635 | extern Window XGetSelectionOwner( | ||
| 1636 | Display* /* display */, | ||
| 1637 | Atom /* selection */ | ||
| 1638 | ); | ||
| 1639 | extern Window XCreateWindow( | ||
| 1640 | Display* /* display */, | ||
| 1641 | Window /* parent */, | ||
| 1642 | int /* x */, | ||
| 1643 | int /* y */, | ||
| 1644 | unsigned int /* width */, | ||
| 1645 | unsigned int /* height */, | ||
| 1646 | unsigned int /* border_width */, | ||
| 1647 | int /* depth */, | ||
| 1648 | unsigned int /* class */, | ||
| 1649 | Visual* /* visual */, | ||
| 1650 | unsigned long /* valuemask */, | ||
| 1651 | XSetWindowAttributes* /* attributes */ | ||
| 1652 | ); | ||
| 1653 | extern Colormap *XListInstalledColormaps( | ||
| 1654 | Display* /* display */, | ||
| 1655 | Window /* w */, | ||
| 1656 | int* /* num_return */ | ||
| 1657 | ); | ||
| 1658 | extern char **XListFonts( | ||
| 1659 | Display* /* display */, | ||
| 1660 | _Xconst char* /* pattern */, | ||
| 1661 | int /* maxnames */, | ||
| 1662 | int* /* actual_count_return */ | ||
| 1663 | ); | ||
| 1664 | extern char **XListFontsWithInfo( | ||
| 1665 | Display* /* display */, | ||
| 1666 | _Xconst char* /* pattern */, | ||
| 1667 | int /* maxnames */, | ||
| 1668 | int* /* count_return */, | ||
| 1669 | XFontStruct** /* info_return */ | ||
| 1670 | ); | ||
| 1671 | extern char **XGetFontPath( | ||
| 1672 | Display* /* display */, | ||
| 1673 | int* /* npaths_return */ | ||
| 1674 | ); | ||
| 1675 | extern char **XListExtensions( | ||
| 1676 | Display* /* display */, | ||
| 1677 | int* /* nextensions_return */ | ||
| 1678 | ); | ||
| 1679 | extern Atom *XListProperties( | ||
| 1680 | Display* /* display */, | ||
| 1681 | Window /* w */, | ||
| 1682 | int* /* num_prop_return */ | ||
| 1683 | ); | ||
| 1684 | extern XHostAddress *XListHosts( | ||
| 1685 | Display* /* display */, | ||
| 1686 | int* /* nhosts_return */, | ||
| 1687 | Bool* /* state_return */ | ||
| 1688 | ); | ||
| 1689 | extern KeySym XKeycodeToKeysym( | ||
| 1690 | Display* /* display */, | ||
| 1691 | #if NeedWidePrototypes | ||
| 1692 | unsigned int /* keycode */, | ||
| 1693 | #else | ||
| 1694 | KeyCode /* keycode */, | ||
| 1695 | #endif | ||
| 1696 | int /* index */ | ||
| 1697 | ); | ||
| 1698 | extern KeySym XLookupKeysym( | ||
| 1699 | XKeyEvent* /* key_event */, | ||
| 1700 | int /* index */ | ||
| 1701 | ); | ||
| 1702 | extern KeySym *XGetKeyboardMapping( | ||
| 1703 | Display* /* display */, | ||
| 1704 | #if NeedWidePrototypes | ||
| 1705 | unsigned int /* first_keycode */, | ||
| 1706 | #else | ||
| 1707 | KeyCode /* first_keycode */, | ||
| 1708 | #endif | ||
| 1709 | int /* keycode_count */, | ||
| 1710 | int* /* keysyms_per_keycode_return */ | ||
| 1711 | ); | ||
| 1712 | extern KeySym XStringToKeysym( | ||
| 1713 | _Xconst char* /* string */ | ||
| 1714 | ); | ||
| 1715 | extern long XMaxRequestSize( | ||
| 1716 | Display* /* display */ | ||
| 1717 | ); | ||
| 1718 | extern long XExtendedMaxRequestSize( | ||
| 1719 | Display* /* display */ | ||
| 1720 | ); | ||
| 1721 | extern char *XResourceManagerString( | ||
| 1722 | Display* /* display */ | ||
| 1723 | ); | ||
| 1724 | extern char *XScreenResourceString( | ||
| 1725 | Screen* /* screen */ | ||
| 1726 | ); | ||
| 1727 | extern unsigned long XDisplayMotionBufferSize( | ||
| 1728 | Display* /* display */ | ||
| 1729 | ); | ||
| 1730 | extern VisualID XVisualIDFromVisual( | ||
| 1731 | Visual* /* visual */ | ||
| 1732 | ); | ||
| 1733 | |||
| 1734 | /* multithread routines */ | ||
| 1735 | |||
| 1736 | extern Status XInitThreads( | ||
| 1737 | void | ||
| 1738 | ); | ||
| 1739 | |||
| 1740 | extern void XLockDisplay( | ||
| 1741 | Display* /* display */ | ||
| 1742 | ); | ||
| 1743 | |||
| 1744 | extern void XUnlockDisplay( | ||
| 1745 | Display* /* display */ | ||
| 1746 | ); | ||
| 1747 | |||
| 1748 | /* routines for dealing with extensions */ | ||
| 1749 | |||
| 1750 | extern XExtCodes *XInitExtension( | ||
| 1751 | Display* /* display */, | ||
| 1752 | _Xconst char* /* name */ | ||
| 1753 | ); | ||
| 1754 | |||
| 1755 | extern XExtCodes *XAddExtension( | ||
| 1756 | Display* /* display */ | ||
| 1757 | ); | ||
| 1758 | extern XExtData *XFindOnExtensionList( | ||
| 1759 | XExtData** /* structure */, | ||
| 1760 | int /* number */ | ||
| 1761 | ); | ||
| 1762 | extern XExtData **XEHeadOfExtensionList( | ||
| 1763 | XEDataObject /* object */ | ||
| 1764 | ); | ||
| 1765 | |||
| 1766 | /* these are routines for which there are also macros */ | ||
| 1767 | extern Window XRootWindow( | ||
| 1768 | Display* /* display */, | ||
| 1769 | int /* screen_number */ | ||
| 1770 | ); | ||
| 1771 | extern Window XDefaultRootWindow( | ||
| 1772 | Display* /* display */ | ||
| 1773 | ); | ||
| 1774 | extern Window XRootWindowOfScreen( | ||
| 1775 | Screen* /* screen */ | ||
| 1776 | ); | ||
| 1777 | extern Visual *XDefaultVisual( | ||
| 1778 | Display* /* display */, | ||
| 1779 | int /* screen_number */ | ||
| 1780 | ); | ||
| 1781 | extern Visual *XDefaultVisualOfScreen( | ||
| 1782 | Screen* /* screen */ | ||
| 1783 | ); | ||
| 1784 | extern GC XDefaultGC( | ||
| 1785 | Display* /* display */, | ||
| 1786 | int /* screen_number */ | ||
| 1787 | ); | ||
| 1788 | extern GC XDefaultGCOfScreen( | ||
| 1789 | Screen* /* screen */ | ||
| 1790 | ); | ||
| 1791 | extern unsigned long XBlackPixel( | ||
| 1792 | Display* /* display */, | ||
| 1793 | int /* screen_number */ | ||
| 1794 | ); | ||
| 1795 | extern unsigned long XWhitePixel( | ||
| 1796 | Display* /* display */, | ||
| 1797 | int /* screen_number */ | ||
| 1798 | ); | ||
| 1799 | extern unsigned long XAllPlanes( | ||
| 1800 | void | ||
| 1801 | ); | ||
| 1802 | extern unsigned long XBlackPixelOfScreen( | ||
| 1803 | Screen* /* screen */ | ||
| 1804 | ); | ||
| 1805 | extern unsigned long XWhitePixelOfScreen( | ||
| 1806 | Screen* /* screen */ | ||
| 1807 | ); | ||
| 1808 | extern unsigned long XNextRequest( | ||
| 1809 | Display* /* display */ | ||
| 1810 | ); | ||
| 1811 | extern unsigned long XLastKnownRequestProcessed( | ||
| 1812 | Display* /* display */ | ||
| 1813 | ); | ||
| 1814 | extern char *XServerVendor( | ||
| 1815 | Display* /* display */ | ||
| 1816 | ); | ||
| 1817 | extern char *XDisplayString( | ||
| 1818 | Display* /* display */ | ||
| 1819 | ); | ||
| 1820 | extern Colormap XDefaultColormap( | ||
| 1821 | Display* /* display */, | ||
| 1822 | int /* screen_number */ | ||
| 1823 | ); | ||
| 1824 | extern Colormap XDefaultColormapOfScreen( | ||
| 1825 | Screen* /* screen */ | ||
| 1826 | ); | ||
| 1827 | extern Display *XDisplayOfScreen( | ||
| 1828 | Screen* /* screen */ | ||
| 1829 | ); | ||
| 1830 | extern Screen *XScreenOfDisplay( | ||
| 1831 | Display* /* display */, | ||
| 1832 | int /* screen_number */ | ||
| 1833 | ); | ||
| 1834 | extern Screen *XDefaultScreenOfDisplay( | ||
| 1835 | Display* /* display */ | ||
| 1836 | ); | ||
| 1837 | extern long XEventMaskOfScreen( | ||
| 1838 | Screen* /* screen */ | ||
| 1839 | ); | ||
| 1840 | |||
| 1841 | extern int XScreenNumberOfScreen( | ||
| 1842 | Screen* /* screen */ | ||
| 1843 | ); | ||
| 1844 | |||
| 1845 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ||
| 1846 | Display* /* display */, | ||
| 1847 | XErrorEvent* /* error_event */ | ||
| 1848 | ); | ||
| 1849 | |||
| 1850 | extern XErrorHandler XSetErrorHandler ( | ||
| 1851 | XErrorHandler /* handler */ | ||
| 1852 | ); | ||
| 1853 | |||
| 1854 | |||
| 1855 | typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ||
| 1856 | Display* /* display */ | ||
| 1857 | ); | ||
| 1858 | |||
| 1859 | extern XIOErrorHandler XSetIOErrorHandler ( | ||
| 1860 | XIOErrorHandler /* handler */ | ||
| 1861 | ); | ||
| 1862 | |||
| 1863 | |||
| 1864 | extern XPixmapFormatValues *XListPixmapFormats( | ||
| 1865 | Display* /* display */, | ||
| 1866 | int* /* count_return */ | ||
| 1867 | ); | ||
| 1868 | extern int *XListDepths( | ||
| 1869 | Display* /* display */, | ||
| 1870 | int /* screen_number */, | ||
| 1871 | int* /* count_return */ | ||
| 1872 | ); | ||
| 1873 | |||
| 1874 | /* ICCCM routines for things that don't require special include files; */ | ||
| 1875 | /* other declarations are given in Xutil.h */ | ||
| 1876 | extern Status XReconfigureWMWindow( | ||
| 1877 | Display* /* display */, | ||
| 1878 | Window /* w */, | ||
| 1879 | int /* screen_number */, | ||
| 1880 | unsigned int /* mask */, | ||
| 1881 | XWindowChanges* /* changes */ | ||
| 1882 | ); | ||
| 1883 | |||
| 1884 | extern Status XGetWMProtocols( | ||
| 1885 | Display* /* display */, | ||
| 1886 | Window /* w */, | ||
| 1887 | Atom** /* protocols_return */, | ||
| 1888 | int* /* count_return */ | ||
| 1889 | ); | ||
| 1890 | extern Status XSetWMProtocols( | ||
| 1891 | Display* /* display */, | ||
| 1892 | Window /* w */, | ||
| 1893 | Atom* /* protocols */, | ||
| 1894 | int /* count */ | ||
| 1895 | ); | ||
| 1896 | extern Status XIconifyWindow( | ||
| 1897 | Display* /* display */, | ||
| 1898 | Window /* w */, | ||
| 1899 | int /* screen_number */ | ||
| 1900 | ); | ||
| 1901 | extern Status XWithdrawWindow( | ||
| 1902 | Display* /* display */, | ||
| 1903 | Window /* w */, | ||
| 1904 | int /* screen_number */ | ||
| 1905 | ); | ||
| 1906 | extern Status XGetCommand( | ||
| 1907 | Display* /* display */, | ||
| 1908 | Window /* w */, | ||
| 1909 | char*** /* argv_return */, | ||
| 1910 | int* /* argc_return */ | ||
| 1911 | ); | ||
| 1912 | extern Status XGetWMColormapWindows( | ||
| 1913 | Display* /* display */, | ||
| 1914 | Window /* w */, | ||
| 1915 | Window** /* windows_return */, | ||
| 1916 | int* /* count_return */ | ||
| 1917 | ); | ||
| 1918 | extern Status XSetWMColormapWindows( | ||
| 1919 | Display* /* display */, | ||
| 1920 | Window /* w */, | ||
| 1921 | Window* /* colormap_windows */, | ||
| 1922 | int /* count */ | ||
| 1923 | ); | ||
| 1924 | extern void XFreeStringList( | ||
| 1925 | char** /* list */ | ||
| 1926 | ); | ||
| 1927 | extern int XSetTransientForHint( | ||
| 1928 | Display* /* display */, | ||
| 1929 | Window /* w */, | ||
| 1930 | Window /* prop_window */ | ||
| 1931 | ); | ||
| 1932 | |||
| 1933 | /* The following are given in alphabetical order */ | ||
| 1934 | |||
| 1935 | extern int XActivateScreenSaver( | ||
| 1936 | Display* /* display */ | ||
| 1937 | ); | ||
| 1938 | |||
| 1939 | extern int XAddHost( | ||
| 1940 | Display* /* display */, | ||
| 1941 | XHostAddress* /* host */ | ||
| 1942 | ); | ||
| 1943 | |||
| 1944 | extern int XAddHosts( | ||
| 1945 | Display* /* display */, | ||
| 1946 | XHostAddress* /* hosts */, | ||
| 1947 | int /* num_hosts */ | ||
| 1948 | ); | ||
| 1949 | |||
| 1950 | extern int XAddToExtensionList( | ||
| 1951 | struct _XExtData** /* structure */, | ||
| 1952 | XExtData* /* ext_data */ | ||
| 1953 | ); | ||
| 1954 | |||
| 1955 | extern int XAddToSaveSet( | ||
| 1956 | Display* /* display */, | ||
| 1957 | Window /* w */ | ||
| 1958 | ); | ||
| 1959 | |||
| 1960 | extern Status XAllocColor( | ||
| 1961 | Display* /* display */, | ||
| 1962 | Colormap /* colormap */, | ||
| 1963 | XColor* /* screen_in_out */ | ||
| 1964 | ); | ||
| 1965 | |||
| 1966 | extern Status XAllocColorCells( | ||
| 1967 | Display* /* display */, | ||
| 1968 | Colormap /* colormap */, | ||
| 1969 | Bool /* contig */, | ||
| 1970 | unsigned long* /* plane_masks_return */, | ||
| 1971 | unsigned int /* nplanes */, | ||
| 1972 | unsigned long* /* pixels_return */, | ||
| 1973 | unsigned int /* npixels */ | ||
| 1974 | ); | ||
| 1975 | |||
| 1976 | extern Status XAllocColorPlanes( | ||
| 1977 | Display* /* display */, | ||
| 1978 | Colormap /* colormap */, | ||
| 1979 | Bool /* contig */, | ||
| 1980 | unsigned long* /* pixels_return */, | ||
| 1981 | int /* ncolors */, | ||
| 1982 | int /* nreds */, | ||
| 1983 | int /* ngreens */, | ||
| 1984 | int /* nblues */, | ||
| 1985 | unsigned long* /* rmask_return */, | ||
| 1986 | unsigned long* /* gmask_return */, | ||
| 1987 | unsigned long* /* bmask_return */ | ||
| 1988 | ); | ||
| 1989 | |||
| 1990 | extern Status XAllocNamedColor( | ||
| 1991 | Display* /* display */, | ||
| 1992 | Colormap /* colormap */, | ||
| 1993 | _Xconst char* /* color_name */, | ||
| 1994 | XColor* /* screen_def_return */, | ||
| 1995 | XColor* /* exact_def_return */ | ||
| 1996 | ); | ||
| 1997 | |||
| 1998 | extern int XAllowEvents( | ||
| 1999 | Display* /* display */, | ||
| 2000 | int /* event_mode */, | ||
| 2001 | Time /* time */ | ||
| 2002 | ); | ||
| 2003 | |||
| 2004 | extern int XAutoRepeatOff( | ||
| 2005 | Display* /* display */ | ||
| 2006 | ); | ||
| 2007 | |||
| 2008 | extern int XAutoRepeatOn( | ||
| 2009 | Display* /* display */ | ||
| 2010 | ); | ||
| 2011 | |||
| 2012 | extern int XBell( | ||
| 2013 | Display* /* display */, | ||
| 2014 | int /* percent */ | ||
| 2015 | ); | ||
| 2016 | |||
| 2017 | extern int XBitmapBitOrder( | ||
| 2018 | Display* /* display */ | ||
| 2019 | ); | ||
| 2020 | |||
| 2021 | extern int XBitmapPad( | ||
| 2022 | Display* /* display */ | ||
| 2023 | ); | ||
| 2024 | |||
| 2025 | extern int XBitmapUnit( | ||
| 2026 | Display* /* display */ | ||
| 2027 | ); | ||
| 2028 | |||
| 2029 | extern int XCellsOfScreen( | ||
| 2030 | Screen* /* screen */ | ||
| 2031 | ); | ||
| 2032 | |||
| 2033 | extern int XChangeActivePointerGrab( | ||
| 2034 | Display* /* display */, | ||
| 2035 | unsigned int /* event_mask */, | ||
| 2036 | Cursor /* cursor */, | ||
| 2037 | Time /* time */ | ||
| 2038 | ); | ||
| 2039 | |||
| 2040 | extern int XChangeGC( | ||
| 2041 | Display* /* display */, | ||
| 2042 | GC /* gc */, | ||
| 2043 | unsigned long /* valuemask */, | ||
| 2044 | XGCValues* /* values */ | ||
| 2045 | ); | ||
| 2046 | |||
| 2047 | extern int XChangeKeyboardControl( | ||
| 2048 | Display* /* display */, | ||
| 2049 | unsigned long /* value_mask */, | ||
| 2050 | XKeyboardControl* /* values */ | ||
| 2051 | ); | ||
| 2052 | |||
| 2053 | extern int XChangeKeyboardMapping( | ||
| 2054 | Display* /* display */, | ||
| 2055 | int /* first_keycode */, | ||
| 2056 | int /* keysyms_per_keycode */, | ||
| 2057 | KeySym* /* keysyms */, | ||
| 2058 | int /* num_codes */ | ||
| 2059 | ); | ||
| 2060 | |||
| 2061 | extern int XChangePointerControl( | ||
| 2062 | Display* /* display */, | ||
| 2063 | Bool /* do_accel */, | ||
| 2064 | Bool /* do_threshold */, | ||
| 2065 | int /* accel_numerator */, | ||
| 2066 | int /* accel_denominator */, | ||
| 2067 | int /* threshold */ | ||
| 2068 | ); | ||
| 2069 | |||
| 2070 | extern int XChangeProperty( | ||
| 2071 | Display* /* display */, | ||
| 2072 | Window /* w */, | ||
| 2073 | Atom /* property */, | ||
| 2074 | Atom /* type */, | ||
| 2075 | int /* format */, | ||
| 2076 | int /* mode */, | ||
| 2077 | _Xconst unsigned char* /* data */, | ||
| 2078 | int /* nelements */ | ||
| 2079 | ); | ||
| 2080 | |||
| 2081 | extern int XChangeSaveSet( | ||
| 2082 | Display* /* display */, | ||
| 2083 | Window /* w */, | ||
| 2084 | int /* change_mode */ | ||
| 2085 | ); | ||
| 2086 | |||
| 2087 | extern int XChangeWindowAttributes( | ||
| 2088 | Display* /* display */, | ||
| 2089 | Window /* w */, | ||
| 2090 | unsigned long /* valuemask */, | ||
| 2091 | XSetWindowAttributes* /* attributes */ | ||
| 2092 | ); | ||
| 2093 | |||
| 2094 | extern Bool XCheckIfEvent( | ||
| 2095 | Display* /* display */, | ||
| 2096 | XEvent* /* event_return */, | ||
| 2097 | Bool (*) ( | ||
| 2098 | Display* /* display */, | ||
| 2099 | XEvent* /* event */, | ||
| 2100 | XPointer /* arg */ | ||
| 2101 | ) /* predicate */, | ||
| 2102 | XPointer /* arg */ | ||
| 2103 | ); | ||
| 2104 | |||
| 2105 | extern Bool XCheckMaskEvent( | ||
| 2106 | Display* /* display */, | ||
| 2107 | long /* event_mask */, | ||
| 2108 | XEvent* /* event_return */ | ||
| 2109 | ); | ||
| 2110 | |||
| 2111 | extern Bool XCheckTypedEvent( | ||
| 2112 | Display* /* display */, | ||
| 2113 | int /* event_type */, | ||
| 2114 | XEvent* /* event_return */ | ||
| 2115 | ); | ||
| 2116 | |||
| 2117 | extern Bool XCheckTypedWindowEvent( | ||
| 2118 | Display* /* display */, | ||
| 2119 | Window /* w */, | ||
| 2120 | int /* event_type */, | ||
| 2121 | XEvent* /* event_return */ | ||
| 2122 | ); | ||
| 2123 | |||
| 2124 | extern Bool XCheckWindowEvent( | ||
| 2125 | Display* /* display */, | ||
| 2126 | Window /* w */, | ||
| 2127 | long /* event_mask */, | ||
| 2128 | XEvent* /* event_return */ | ||
| 2129 | ); | ||
| 2130 | |||
| 2131 | extern int XCirculateSubwindows( | ||
| 2132 | Display* /* display */, | ||
| 2133 | Window /* w */, | ||
| 2134 | int /* direction */ | ||
| 2135 | ); | ||
| 2136 | |||
| 2137 | extern int XCirculateSubwindowsDown( | ||
| 2138 | Display* /* display */, | ||
| 2139 | Window /* w */ | ||
| 2140 | ); | ||
| 2141 | |||
| 2142 | extern int XCirculateSubwindowsUp( | ||
| 2143 | Display* /* display */, | ||
| 2144 | Window /* w */ | ||
| 2145 | ); | ||
| 2146 | |||
| 2147 | extern int XClearArea( | ||
| 2148 | Display* /* display */, | ||
| 2149 | Window /* w */, | ||
| 2150 | int /* x */, | ||
| 2151 | int /* y */, | ||
| 2152 | unsigned int /* width */, | ||
| 2153 | unsigned int /* height */, | ||
| 2154 | Bool /* exposures */ | ||
| 2155 | ); | ||
| 2156 | |||
| 2157 | extern int XClearWindow( | ||
| 2158 | Display* /* display */, | ||
| 2159 | Window /* w */ | ||
| 2160 | ); | ||
| 2161 | |||
| 2162 | extern int XCloseDisplay( | ||
| 2163 | Display* /* display */ | ||
| 2164 | ); | ||
| 2165 | |||
| 2166 | extern int XConfigureWindow( | ||
| 2167 | Display* /* display */, | ||
| 2168 | Window /* w */, | ||
| 2169 | unsigned int /* value_mask */, | ||
| 2170 | XWindowChanges* /* values */ | ||
| 2171 | ); | ||
| 2172 | |||
| 2173 | extern int XConnectionNumber( | ||
| 2174 | Display* /* display */ | ||
| 2175 | ); | ||
| 2176 | |||
| 2177 | extern int XConvertSelection( | ||
| 2178 | Display* /* display */, | ||
| 2179 | Atom /* selection */, | ||
| 2180 | Atom /* target */, | ||
| 2181 | Atom /* property */, | ||
| 2182 | Window /* requestor */, | ||
| 2183 | Time /* time */ | ||
| 2184 | ); | ||
| 2185 | |||
| 2186 | extern int XCopyArea( | ||
| 2187 | Display* /* display */, | ||
| 2188 | Drawable /* src */, | ||
| 2189 | Drawable /* dest */, | ||
| 2190 | GC /* gc */, | ||
| 2191 | int /* src_x */, | ||
| 2192 | int /* src_y */, | ||
| 2193 | unsigned int /* width */, | ||
| 2194 | unsigned int /* height */, | ||
| 2195 | int /* dest_x */, | ||
| 2196 | int /* dest_y */ | ||
| 2197 | ); | ||
| 2198 | |||
| 2199 | extern int XCopyGC( | ||
| 2200 | Display* /* display */, | ||
| 2201 | GC /* src */, | ||
| 2202 | unsigned long /* valuemask */, | ||
| 2203 | GC /* dest */ | ||
| 2204 | ); | ||
| 2205 | |||
| 2206 | extern int XCopyPlane( | ||
| 2207 | Display* /* display */, | ||
| 2208 | Drawable /* src */, | ||
| 2209 | Drawable /* dest */, | ||
| 2210 | GC /* gc */, | ||
| 2211 | int /* src_x */, | ||
| 2212 | int /* src_y */, | ||
| 2213 | unsigned int /* width */, | ||
| 2214 | unsigned int /* height */, | ||
| 2215 | int /* dest_x */, | ||
| 2216 | int /* dest_y */, | ||
| 2217 | unsigned long /* plane */ | ||
| 2218 | ); | ||
| 2219 | |||
| 2220 | extern int XDefaultDepth( | ||
| 2221 | Display* /* display */, | ||
| 2222 | int /* screen_number */ | ||
| 2223 | ); | ||
| 2224 | |||
| 2225 | extern int XDefaultDepthOfScreen( | ||
| 2226 | Screen* /* screen */ | ||
| 2227 | ); | ||
| 2228 | |||
| 2229 | extern int XDefaultScreen( | ||
| 2230 | Display* /* display */ | ||
| 2231 | ); | ||
| 2232 | |||
| 2233 | extern int XDefineCursor( | ||
| 2234 | Display* /* display */, | ||
| 2235 | Window /* w */, | ||
| 2236 | Cursor /* cursor */ | ||
| 2237 | ); | ||
| 2238 | |||
| 2239 | extern int XDeleteProperty( | ||
| 2240 | Display* /* display */, | ||
| 2241 | Window /* w */, | ||
| 2242 | Atom /* property */ | ||
| 2243 | ); | ||
| 2244 | |||
| 2245 | extern int XDestroyWindow( | ||
| 2246 | Display* /* display */, | ||
| 2247 | Window /* w */ | ||
| 2248 | ); | ||
| 2249 | |||
| 2250 | extern int XDestroySubwindows( | ||
| 2251 | Display* /* display */, | ||
| 2252 | Window /* w */ | ||
| 2253 | ); | ||
| 2254 | |||
| 2255 | extern int XDoesBackingStore( | ||
| 2256 | Screen* /* screen */ | ||
| 2257 | ); | ||
| 2258 | |||
| 2259 | extern Bool XDoesSaveUnders( | ||
| 2260 | Screen* /* screen */ | ||
| 2261 | ); | ||
| 2262 | |||
| 2263 | extern int XDisableAccessControl( | ||
| 2264 | Display* /* display */ | ||
| 2265 | ); | ||
| 2266 | |||
| 2267 | |||
| 2268 | extern int XDisplayCells( | ||
| 2269 | Display* /* display */, | ||
| 2270 | int /* screen_number */ | ||
| 2271 | ); | ||
| 2272 | |||
| 2273 | extern int XDisplayHeight( | ||
| 2274 | Display* /* display */, | ||
| 2275 | int /* screen_number */ | ||
| 2276 | ); | ||
| 2277 | |||
| 2278 | extern int XDisplayHeightMM( | ||
| 2279 | Display* /* display */, | ||
| 2280 | int /* screen_number */ | ||
| 2281 | ); | ||
| 2282 | |||
| 2283 | extern int XDisplayKeycodes( | ||
| 2284 | Display* /* display */, | ||
| 2285 | int* /* min_keycodes_return */, | ||
| 2286 | int* /* max_keycodes_return */ | ||
| 2287 | ); | ||
| 2288 | |||
| 2289 | extern int XDisplayPlanes( | ||
| 2290 | Display* /* display */, | ||
| 2291 | int /* screen_number */ | ||
| 2292 | ); | ||
| 2293 | |||
| 2294 | extern int XDisplayWidth( | ||
| 2295 | Display* /* display */, | ||
| 2296 | int /* screen_number */ | ||
| 2297 | ); | ||
| 2298 | |||
| 2299 | extern int XDisplayWidthMM( | ||
| 2300 | Display* /* display */, | ||
| 2301 | int /* screen_number */ | ||
| 2302 | ); | ||
| 2303 | |||
| 2304 | extern int XDrawArc( | ||
| 2305 | Display* /* display */, | ||
| 2306 | Drawable /* d */, | ||
| 2307 | GC /* gc */, | ||
| 2308 | int /* x */, | ||
| 2309 | int /* y */, | ||
| 2310 | unsigned int /* width */, | ||
| 2311 | unsigned int /* height */, | ||
| 2312 | int /* angle1 */, | ||
| 2313 | int /* angle2 */ | ||
| 2314 | ); | ||
| 2315 | |||
| 2316 | extern int XDrawArcs( | ||
| 2317 | Display* /* display */, | ||
| 2318 | Drawable /* d */, | ||
| 2319 | GC /* gc */, | ||
| 2320 | XArc* /* arcs */, | ||
| 2321 | int /* narcs */ | ||
| 2322 | ); | ||
| 2323 | |||
| 2324 | extern int XDrawImageString( | ||
| 2325 | Display* /* display */, | ||
| 2326 | Drawable /* d */, | ||
| 2327 | GC /* gc */, | ||
| 2328 | int /* x */, | ||
| 2329 | int /* y */, | ||
| 2330 | _Xconst char* /* string */, | ||
| 2331 | int /* length */ | ||
| 2332 | ); | ||
| 2333 | |||
| 2334 | extern int XDrawImageString16( | ||
| 2335 | Display* /* display */, | ||
| 2336 | Drawable /* d */, | ||
| 2337 | GC /* gc */, | ||
| 2338 | int /* x */, | ||
| 2339 | int /* y */, | ||
| 2340 | _Xconst XChar2b* /* string */, | ||
| 2341 | int /* length */ | ||
| 2342 | ); | ||
| 2343 | |||
| 2344 | extern int XDrawLine( | ||
| 2345 | Display* /* display */, | ||
| 2346 | Drawable /* d */, | ||
| 2347 | GC /* gc */, | ||
| 2348 | int /* x1 */, | ||
| 2349 | int /* y1 */, | ||
| 2350 | int /* x2 */, | ||
| 2351 | int /* y2 */ | ||
| 2352 | ); | ||
| 2353 | |||
| 2354 | extern int XDrawLines( | ||
| 2355 | Display* /* display */, | ||
| 2356 | Drawable /* d */, | ||
| 2357 | GC /* gc */, | ||
| 2358 | XPoint* /* points */, | ||
| 2359 | int /* npoints */, | ||
| 2360 | int /* mode */ | ||
| 2361 | ); | ||
| 2362 | |||
| 2363 | extern int XDrawPoint( | ||
| 2364 | Display* /* display */, | ||
| 2365 | Drawable /* d */, | ||
| 2366 | GC /* gc */, | ||
| 2367 | int /* x */, | ||
| 2368 | int /* y */ | ||
| 2369 | ); | ||
| 2370 | |||
| 2371 | extern int XDrawPoints( | ||
| 2372 | Display* /* display */, | ||
| 2373 | Drawable /* d */, | ||
| 2374 | GC /* gc */, | ||
| 2375 | XPoint* /* points */, | ||
| 2376 | int /* npoints */, | ||
| 2377 | int /* mode */ | ||
| 2378 | ); | ||
| 2379 | |||
| 2380 | extern int XDrawRectangle( | ||
| 2381 | Display* /* display */, | ||
| 2382 | Drawable /* d */, | ||
| 2383 | GC /* gc */, | ||
| 2384 | int /* x */, | ||
| 2385 | int /* y */, | ||
| 2386 | unsigned int /* width */, | ||
| 2387 | unsigned int /* height */ | ||
| 2388 | ); | ||
| 2389 | |||
| 2390 | extern int XDrawRectangles( | ||
| 2391 | Display* /* display */, | ||
| 2392 | Drawable /* d */, | ||
| 2393 | GC /* gc */, | ||
| 2394 | XRectangle* /* rectangles */, | ||
| 2395 | int /* nrectangles */ | ||
| 2396 | ); | ||
| 2397 | |||
| 2398 | extern int XDrawSegments( | ||
| 2399 | Display* /* display */, | ||
| 2400 | Drawable /* d */, | ||
| 2401 | GC /* gc */, | ||
| 2402 | XSegment* /* segments */, | ||
| 2403 | int /* nsegments */ | ||
| 2404 | ); | ||
| 2405 | |||
| 2406 | extern int XDrawString( | ||
| 2407 | Display* /* display */, | ||
| 2408 | Drawable /* d */, | ||
| 2409 | GC /* gc */, | ||
| 2410 | int /* x */, | ||
| 2411 | int /* y */, | ||
| 2412 | _Xconst char* /* string */, | ||
| 2413 | int /* length */ | ||
| 2414 | ); | ||
| 2415 | |||
| 2416 | extern int XDrawString16( | ||
| 2417 | Display* /* display */, | ||
| 2418 | Drawable /* d */, | ||
| 2419 | GC /* gc */, | ||
| 2420 | int /* x */, | ||
| 2421 | int /* y */, | ||
| 2422 | _Xconst XChar2b* /* string */, | ||
| 2423 | int /* length */ | ||
| 2424 | ); | ||
| 2425 | |||
| 2426 | extern int XDrawText( | ||
| 2427 | Display* /* display */, | ||
| 2428 | Drawable /* d */, | ||
| 2429 | GC /* gc */, | ||
| 2430 | int /* x */, | ||
| 2431 | int /* y */, | ||
| 2432 | XTextItem* /* items */, | ||
| 2433 | int /* nitems */ | ||
| 2434 | ); | ||
| 2435 | |||
| 2436 | extern int XDrawText16( | ||
| 2437 | Display* /* display */, | ||
| 2438 | Drawable /* d */, | ||
| 2439 | GC /* gc */, | ||
| 2440 | int /* x */, | ||
| 2441 | int /* y */, | ||
| 2442 | XTextItem16* /* items */, | ||
| 2443 | int /* nitems */ | ||
| 2444 | ); | ||
| 2445 | |||
| 2446 | extern int XEnableAccessControl( | ||
| 2447 | Display* /* display */ | ||
| 2448 | ); | ||
| 2449 | |||
| 2450 | extern int XEventsQueued( | ||
| 2451 | Display* /* display */, | ||
| 2452 | int /* mode */ | ||
| 2453 | ); | ||
| 2454 | |||
| 2455 | extern Status XFetchName( | ||
| 2456 | Display* /* display */, | ||
| 2457 | Window /* w */, | ||
| 2458 | char** /* window_name_return */ | ||
| 2459 | ); | ||
| 2460 | |||
| 2461 | extern int XFillArc( | ||
| 2462 | Display* /* display */, | ||
| 2463 | Drawable /* d */, | ||
| 2464 | GC /* gc */, | ||
| 2465 | int /* x */, | ||
| 2466 | int /* y */, | ||
| 2467 | unsigned int /* width */, | ||
| 2468 | unsigned int /* height */, | ||
| 2469 | int /* angle1 */, | ||
| 2470 | int /* angle2 */ | ||
| 2471 | ); | ||
| 2472 | |||
| 2473 | extern int XFillArcs( | ||
| 2474 | Display* /* display */, | ||
| 2475 | Drawable /* d */, | ||
| 2476 | GC /* gc */, | ||
| 2477 | XArc* /* arcs */, | ||
| 2478 | int /* narcs */ | ||
| 2479 | ); | ||
| 2480 | |||
| 2481 | extern int XFillPolygon( | ||
| 2482 | Display* /* display */, | ||
| 2483 | Drawable /* d */, | ||
| 2484 | GC /* gc */, | ||
| 2485 | XPoint* /* points */, | ||
| 2486 | int /* npoints */, | ||
| 2487 | int /* shape */, | ||
| 2488 | int /* mode */ | ||
| 2489 | ); | ||
| 2490 | |||
| 2491 | extern int XFillRectangle( | ||
| 2492 | Display* /* display */, | ||
| 2493 | Drawable /* d */, | ||
| 2494 | GC /* gc */, | ||
| 2495 | int /* x */, | ||
| 2496 | int /* y */, | ||
| 2497 | unsigned int /* width */, | ||
| 2498 | unsigned int /* height */ | ||
| 2499 | ); | ||
| 2500 | |||
| 2501 | extern int XFillRectangles( | ||
| 2502 | Display* /* display */, | ||
| 2503 | Drawable /* d */, | ||
| 2504 | GC /* gc */, | ||
| 2505 | XRectangle* /* rectangles */, | ||
| 2506 | int /* nrectangles */ | ||
| 2507 | ); | ||
| 2508 | |||
| 2509 | extern int XFlush( | ||
| 2510 | Display* /* display */ | ||
| 2511 | ); | ||
| 2512 | |||
| 2513 | extern int XForceScreenSaver( | ||
| 2514 | Display* /* display */, | ||
| 2515 | int /* mode */ | ||
| 2516 | ); | ||
| 2517 | |||
| 2518 | extern int XFree( | ||
| 2519 | void* /* data */ | ||
| 2520 | ); | ||
| 2521 | |||
| 2522 | extern int XFreeColormap( | ||
| 2523 | Display* /* display */, | ||
| 2524 | Colormap /* colormap */ | ||
| 2525 | ); | ||
| 2526 | |||
| 2527 | extern int XFreeColors( | ||
| 2528 | Display* /* display */, | ||
| 2529 | Colormap /* colormap */, | ||
| 2530 | unsigned long* /* pixels */, | ||
| 2531 | int /* npixels */, | ||
| 2532 | unsigned long /* planes */ | ||
| 2533 | ); | ||
| 2534 | |||
| 2535 | extern int XFreeCursor( | ||
| 2536 | Display* /* display */, | ||
| 2537 | Cursor /* cursor */ | ||
| 2538 | ); | ||
| 2539 | |||
| 2540 | extern int XFreeExtensionList( | ||
| 2541 | char** /* list */ | ||
| 2542 | ); | ||
| 2543 | |||
| 2544 | extern int XFreeFont( | ||
| 2545 | Display* /* display */, | ||
| 2546 | XFontStruct* /* font_struct */ | ||
| 2547 | ); | ||
| 2548 | |||
| 2549 | extern int XFreeFontInfo( | ||
| 2550 | char** /* names */, | ||
| 2551 | XFontStruct* /* free_info */, | ||
| 2552 | int /* actual_count */ | ||
| 2553 | ); | ||
| 2554 | |||
| 2555 | extern int XFreeFontNames( | ||
| 2556 | char** /* list */ | ||
| 2557 | ); | ||
| 2558 | |||
| 2559 | extern int XFreeFontPath( | ||
| 2560 | char** /* list */ | ||
| 2561 | ); | ||
| 2562 | |||
| 2563 | extern int XFreeGC( | ||
| 2564 | Display* /* display */, | ||
| 2565 | GC /* gc */ | ||
| 2566 | ); | ||
| 2567 | |||
| 2568 | extern int XFreeModifiermap( | ||
| 2569 | XModifierKeymap* /* modmap */ | ||
| 2570 | ); | ||
| 2571 | |||
| 2572 | extern int XFreePixmap( | ||
| 2573 | Display* /* display */, | ||
| 2574 | Pixmap /* pixmap */ | ||
| 2575 | ); | ||
| 2576 | |||
| 2577 | extern int XGeometry( | ||
| 2578 | Display* /* display */, | ||
| 2579 | int /* screen */, | ||
| 2580 | _Xconst char* /* position */, | ||
| 2581 | _Xconst char* /* default_position */, | ||
| 2582 | unsigned int /* bwidth */, | ||
| 2583 | unsigned int /* fwidth */, | ||
| 2584 | unsigned int /* fheight */, | ||
| 2585 | int /* xadder */, | ||
| 2586 | int /* yadder */, | ||
| 2587 | int* /* x_return */, | ||
| 2588 | int* /* y_return */, | ||
| 2589 | int* /* width_return */, | ||
| 2590 | int* /* height_return */ | ||
| 2591 | ); | ||
| 2592 | |||
| 2593 | extern int XGetErrorDatabaseText( | ||
| 2594 | Display* /* display */, | ||
| 2595 | _Xconst char* /* name */, | ||
| 2596 | _Xconst char* /* message */, | ||
| 2597 | _Xconst char* /* default_string */, | ||
| 2598 | char* /* buffer_return */, | ||
| 2599 | int /* length */ | ||
| 2600 | ); | ||
| 2601 | |||
| 2602 | extern int XGetErrorText( | ||
| 2603 | Display* /* display */, | ||
| 2604 | int /* code */, | ||
| 2605 | char* /* buffer_return */, | ||
| 2606 | int /* length */ | ||
| 2607 | ); | ||
| 2608 | |||
| 2609 | extern Bool XGetFontProperty( | ||
| 2610 | XFontStruct* /* font_struct */, | ||
| 2611 | Atom /* atom */, | ||
| 2612 | unsigned long* /* value_return */ | ||
| 2613 | ); | ||
| 2614 | |||
| 2615 | extern Status XGetGCValues( | ||
| 2616 | Display* /* display */, | ||
| 2617 | GC /* gc */, | ||
| 2618 | unsigned long /* valuemask */, | ||
| 2619 | XGCValues* /* values_return */ | ||
| 2620 | ); | ||
| 2621 | |||
| 2622 | extern Status XGetGeometry( | ||
| 2623 | Display* /* display */, | ||
| 2624 | Drawable /* d */, | ||
| 2625 | Window* /* root_return */, | ||
| 2626 | int* /* x_return */, | ||
| 2627 | int* /* y_return */, | ||
| 2628 | unsigned int* /* width_return */, | ||
| 2629 | unsigned int* /* height_return */, | ||
| 2630 | unsigned int* /* border_width_return */, | ||
| 2631 | unsigned int* /* depth_return */ | ||
| 2632 | ); | ||
| 2633 | |||
| 2634 | extern Status XGetIconName( | ||
| 2635 | Display* /* display */, | ||
| 2636 | Window /* w */, | ||
| 2637 | char** /* icon_name_return */ | ||
| 2638 | ); | ||
| 2639 | |||
| 2640 | extern int XGetInputFocus( | ||
| 2641 | Display* /* display */, | ||
| 2642 | Window* /* focus_return */, | ||
| 2643 | int* /* revert_to_return */ | ||
| 2644 | ); | ||
| 2645 | |||
| 2646 | extern int XGetKeyboardControl( | ||
| 2647 | Display* /* display */, | ||
| 2648 | XKeyboardState* /* values_return */ | ||
| 2649 | ); | ||
| 2650 | |||
| 2651 | extern int XGetPointerControl( | ||
| 2652 | Display* /* display */, | ||
| 2653 | int* /* accel_numerator_return */, | ||
| 2654 | int* /* accel_denominator_return */, | ||
| 2655 | int* /* threshold_return */ | ||
| 2656 | ); | ||
| 2657 | |||
| 2658 | extern int XGetPointerMapping( | ||
| 2659 | Display* /* display */, | ||
| 2660 | unsigned char* /* map_return */, | ||
| 2661 | int /* nmap */ | ||
| 2662 | ); | ||
| 2663 | |||
| 2664 | extern int XGetScreenSaver( | ||
| 2665 | Display* /* display */, | ||
| 2666 | int* /* timeout_return */, | ||
| 2667 | int* /* interval_return */, | ||
| 2668 | int* /* prefer_blanking_return */, | ||
| 2669 | int* /* allow_exposures_return */ | ||
| 2670 | ); | ||
| 2671 | |||
| 2672 | extern Status XGetTransientForHint( | ||
| 2673 | Display* /* display */, | ||
| 2674 | Window /* w */, | ||
| 2675 | Window* /* prop_window_return */ | ||
| 2676 | ); | ||
| 2677 | |||
| 2678 | extern int XGetWindowProperty( | ||
| 2679 | Display* /* display */, | ||
| 2680 | Window /* w */, | ||
| 2681 | Atom /* property */, | ||
| 2682 | long /* long_offset */, | ||
| 2683 | long /* long_length */, | ||
| 2684 | Bool /* delete */, | ||
| 2685 | Atom /* req_type */, | ||
| 2686 | Atom* /* actual_type_return */, | ||
| 2687 | int* /* actual_format_return */, | ||
| 2688 | unsigned long* /* nitems_return */, | ||
| 2689 | unsigned long* /* bytes_after_return */, | ||
| 2690 | unsigned char** /* prop_return */ | ||
| 2691 | ); | ||
| 2692 | |||
| 2693 | extern Status XGetWindowAttributes( | ||
| 2694 | Display* /* display */, | ||
| 2695 | Window /* w */, | ||
| 2696 | XWindowAttributes* /* window_attributes_return */ | ||
| 2697 | ); | ||
| 2698 | |||
| 2699 | extern int XGrabButton( | ||
| 2700 | Display* /* display */, | ||
| 2701 | unsigned int /* button */, | ||
| 2702 | unsigned int /* modifiers */, | ||
| 2703 | Window /* grab_window */, | ||
| 2704 | Bool /* owner_events */, | ||
| 2705 | unsigned int /* event_mask */, | ||
| 2706 | int /* pointer_mode */, | ||
| 2707 | int /* keyboard_mode */, | ||
| 2708 | Window /* confine_to */, | ||
| 2709 | Cursor /* cursor */ | ||
| 2710 | ); | ||
| 2711 | |||
| 2712 | extern int XGrabKey( | ||
| 2713 | Display* /* display */, | ||
| 2714 | int /* keycode */, | ||
| 2715 | unsigned int /* modifiers */, | ||
| 2716 | Window /* grab_window */, | ||
| 2717 | Bool /* owner_events */, | ||
| 2718 | int /* pointer_mode */, | ||
| 2719 | int /* keyboard_mode */ | ||
| 2720 | ); | ||
| 2721 | |||
| 2722 | extern int XGrabKeyboard( | ||
| 2723 | Display* /* display */, | ||
| 2724 | Window /* grab_window */, | ||
| 2725 | Bool /* owner_events */, | ||
| 2726 | int /* pointer_mode */, | ||
| 2727 | int /* keyboard_mode */, | ||
| 2728 | Time /* time */ | ||
| 2729 | ); | ||
| 2730 | |||
| 2731 | extern int XGrabPointer( | ||
| 2732 | Display* /* display */, | ||
| 2733 | Window /* grab_window */, | ||
| 2734 | Bool /* owner_events */, | ||
| 2735 | unsigned int /* event_mask */, | ||
| 2736 | int /* pointer_mode */, | ||
| 2737 | int /* keyboard_mode */, | ||
| 2738 | Window /* confine_to */, | ||
| 2739 | Cursor /* cursor */, | ||
| 2740 | Time /* time */ | ||
| 2741 | ); | ||
| 2742 | |||
| 2743 | extern int XGrabServer( | ||
| 2744 | Display* /* display */ | ||
| 2745 | ); | ||
| 2746 | |||
| 2747 | extern int XHeightMMOfScreen( | ||
| 2748 | Screen* /* screen */ | ||
| 2749 | ); | ||
| 2750 | |||
| 2751 | extern int XHeightOfScreen( | ||
| 2752 | Screen* /* screen */ | ||
| 2753 | ); | ||
| 2754 | |||
| 2755 | extern int XIfEvent( | ||
| 2756 | Display* /* display */, | ||
| 2757 | XEvent* /* event_return */, | ||
| 2758 | Bool (*) ( | ||
| 2759 | Display* /* display */, | ||
| 2760 | XEvent* /* event */, | ||
| 2761 | XPointer /* arg */ | ||
| 2762 | ) /* predicate */, | ||
| 2763 | XPointer /* arg */ | ||
| 2764 | ); | ||
| 2765 | |||
| 2766 | extern int XImageByteOrder( | ||
| 2767 | Display* /* display */ | ||
| 2768 | ); | ||
| 2769 | |||
| 2770 | extern int XInstallColormap( | ||
| 2771 | Display* /* display */, | ||
| 2772 | Colormap /* colormap */ | ||
| 2773 | ); | ||
| 2774 | |||
| 2775 | extern KeyCode XKeysymToKeycode( | ||
| 2776 | Display* /* display */, | ||
| 2777 | KeySym /* keysym */ | ||
| 2778 | ); | ||
| 2779 | |||
| 2780 | extern int XKillClient( | ||
| 2781 | Display* /* display */, | ||
| 2782 | XID /* resource */ | ||
| 2783 | ); | ||
| 2784 | |||
| 2785 | extern Status XLookupColor( | ||
| 2786 | Display* /* display */, | ||
| 2787 | Colormap /* colormap */, | ||
| 2788 | _Xconst char* /* color_name */, | ||
| 2789 | XColor* /* exact_def_return */, | ||
| 2790 | XColor* /* screen_def_return */ | ||
| 2791 | ); | ||
| 2792 | |||
| 2793 | extern int XLowerWindow( | ||
| 2794 | Display* /* display */, | ||
| 2795 | Window /* w */ | ||
| 2796 | ); | ||
| 2797 | |||
| 2798 | extern int XMapRaised( | ||
| 2799 | Display* /* display */, | ||
| 2800 | Window /* w */ | ||
| 2801 | ); | ||
| 2802 | |||
| 2803 | extern int XMapSubwindows( | ||
| 2804 | Display* /* display */, | ||
| 2805 | Window /* w */ | ||
| 2806 | ); | ||
| 2807 | |||
| 2808 | extern int XMapWindow( | ||
| 2809 | Display* /* display */, | ||
| 2810 | Window /* w */ | ||
| 2811 | ); | ||
| 2812 | |||
| 2813 | extern int XMaskEvent( | ||
| 2814 | Display* /* display */, | ||
| 2815 | long /* event_mask */, | ||
| 2816 | XEvent* /* event_return */ | ||
| 2817 | ); | ||
| 2818 | |||
| 2819 | extern int XMaxCmapsOfScreen( | ||
| 2820 | Screen* /* screen */ | ||
| 2821 | ); | ||
| 2822 | |||
| 2823 | extern int XMinCmapsOfScreen( | ||
| 2824 | Screen* /* screen */ | ||
| 2825 | ); | ||
| 2826 | |||
| 2827 | extern int XMoveResizeWindow( | ||
| 2828 | Display* /* display */, | ||
| 2829 | Window /* w */, | ||
| 2830 | int /* x */, | ||
| 2831 | int /* y */, | ||
| 2832 | unsigned int /* width */, | ||
| 2833 | unsigned int /* height */ | ||
| 2834 | ); | ||
| 2835 | |||
| 2836 | extern int XMoveWindow( | ||
| 2837 | Display* /* display */, | ||
| 2838 | Window /* w */, | ||
| 2839 | int /* x */, | ||
| 2840 | int /* y */ | ||
| 2841 | ); | ||
| 2842 | |||
| 2843 | extern int XNextEvent( | ||
| 2844 | Display* /* display */, | ||
| 2845 | XEvent* /* event_return */ | ||
| 2846 | ); | ||
| 2847 | |||
| 2848 | extern int XNoOp( | ||
| 2849 | Display* /* display */ | ||
| 2850 | ); | ||
| 2851 | |||
| 2852 | extern Status XParseColor( | ||
| 2853 | Display* /* display */, | ||
| 2854 | Colormap /* colormap */, | ||
| 2855 | _Xconst char* /* spec */, | ||
| 2856 | XColor* /* exact_def_return */ | ||
| 2857 | ); | ||
| 2858 | |||
| 2859 | extern int XParseGeometry( | ||
| 2860 | _Xconst char* /* parsestring */, | ||
| 2861 | int* /* x_return */, | ||
| 2862 | int* /* y_return */, | ||
| 2863 | unsigned int* /* width_return */, | ||
| 2864 | unsigned int* /* height_return */ | ||
| 2865 | ); | ||
| 2866 | |||
| 2867 | extern int XPeekEvent( | ||
| 2868 | Display* /* display */, | ||
| 2869 | XEvent* /* event_return */ | ||
| 2870 | ); | ||
| 2871 | |||
| 2872 | extern int XPeekIfEvent( | ||
| 2873 | Display* /* display */, | ||
| 2874 | XEvent* /* event_return */, | ||
| 2875 | Bool (*) ( | ||
| 2876 | Display* /* display */, | ||
| 2877 | XEvent* /* event */, | ||
| 2878 | XPointer /* arg */ | ||
| 2879 | ) /* predicate */, | ||
| 2880 | XPointer /* arg */ | ||
| 2881 | ); | ||
| 2882 | |||
| 2883 | extern int XPending( | ||
| 2884 | Display* /* display */ | ||
| 2885 | ); | ||
| 2886 | |||
| 2887 | extern int XPlanesOfScreen( | ||
| 2888 | Screen* /* screen */ | ||
| 2889 | ); | ||
| 2890 | |||
| 2891 | extern int XProtocolRevision( | ||
| 2892 | Display* /* display */ | ||
| 2893 | ); | ||
| 2894 | |||
| 2895 | extern int XProtocolVersion( | ||
| 2896 | Display* /* display */ | ||
| 2897 | ); | ||
| 2898 | |||
| 2899 | |||
| 2900 | extern int XPutBackEvent( | ||
| 2901 | Display* /* display */, | ||
| 2902 | XEvent* /* event */ | ||
| 2903 | ); | ||
| 2904 | |||
| 2905 | extern int XPutImage( | ||
| 2906 | Display* /* display */, | ||
| 2907 | Drawable /* d */, | ||
| 2908 | GC /* gc */, | ||
| 2909 | XImage* /* image */, | ||
| 2910 | int /* src_x */, | ||
| 2911 | int /* src_y */, | ||
| 2912 | int /* dest_x */, | ||
| 2913 | int /* dest_y */, | ||
| 2914 | unsigned int /* width */, | ||
| 2915 | unsigned int /* height */ | ||
| 2916 | ); | ||
| 2917 | |||
| 2918 | extern int XQLength( | ||
| 2919 | Display* /* display */ | ||
| 2920 | ); | ||
| 2921 | |||
| 2922 | extern Status XQueryBestCursor( | ||
| 2923 | Display* /* display */, | ||
| 2924 | Drawable /* d */, | ||
| 2925 | unsigned int /* width */, | ||
| 2926 | unsigned int /* height */, | ||
| 2927 | unsigned int* /* width_return */, | ||
| 2928 | unsigned int* /* height_return */ | ||
| 2929 | ); | ||
| 2930 | |||
| 2931 | extern Status XQueryBestSize( | ||
| 2932 | Display* /* display */, | ||
| 2933 | int /* class */, | ||
| 2934 | Drawable /* which_screen */, | ||
| 2935 | unsigned int /* width */, | ||
| 2936 | unsigned int /* height */, | ||
| 2937 | unsigned int* /* width_return */, | ||
| 2938 | unsigned int* /* height_return */ | ||
| 2939 | ); | ||
| 2940 | |||
| 2941 | extern Status XQueryBestStipple( | ||
| 2942 | Display* /* display */, | ||
| 2943 | Drawable /* which_screen */, | ||
| 2944 | unsigned int /* width */, | ||
| 2945 | unsigned int /* height */, | ||
| 2946 | unsigned int* /* width_return */, | ||
| 2947 | unsigned int* /* height_return */ | ||
| 2948 | ); | ||
| 2949 | |||
| 2950 | extern Status XQueryBestTile( | ||
| 2951 | Display* /* display */, | ||
| 2952 | Drawable /* which_screen */, | ||
| 2953 | unsigned int /* width */, | ||
| 2954 | unsigned int /* height */, | ||
| 2955 | unsigned int* /* width_return */, | ||
| 2956 | unsigned int* /* height_return */ | ||
| 2957 | ); | ||
| 2958 | |||
| 2959 | extern int XQueryColor( | ||
| 2960 | Display* /* display */, | ||
| 2961 | Colormap /* colormap */, | ||
| 2962 | XColor* /* def_in_out */ | ||
| 2963 | ); | ||
| 2964 | |||
| 2965 | extern int XQueryColors( | ||
| 2966 | Display* /* display */, | ||
| 2967 | Colormap /* colormap */, | ||
| 2968 | XColor* /* defs_in_out */, | ||
| 2969 | int /* ncolors */ | ||
| 2970 | ); | ||
| 2971 | |||
| 2972 | extern Bool XQueryExtension( | ||
| 2973 | Display* /* display */, | ||
| 2974 | _Xconst char* /* name */, | ||
| 2975 | int* /* major_opcode_return */, | ||
| 2976 | int* /* first_event_return */, | ||
| 2977 | int* /* first_error_return */ | ||
| 2978 | ); | ||
| 2979 | |||
| 2980 | extern int XQueryKeymap( | ||
| 2981 | Display* /* display */, | ||
| 2982 | char [32] /* keys_return */ | ||
| 2983 | ); | ||
| 2984 | |||
| 2985 | extern Bool XQueryPointer( | ||
| 2986 | Display* /* display */, | ||
| 2987 | Window /* w */, | ||
| 2988 | Window* /* root_return */, | ||
| 2989 | Window* /* child_return */, | ||
| 2990 | int* /* root_x_return */, | ||
| 2991 | int* /* root_y_return */, | ||
| 2992 | int* /* win_x_return */, | ||
| 2993 | int* /* win_y_return */, | ||
| 2994 | unsigned int* /* mask_return */ | ||
| 2995 | ); | ||
| 2996 | |||
| 2997 | extern int XQueryTextExtents( | ||
| 2998 | Display* /* display */, | ||
| 2999 | XID /* font_ID */, | ||
| 3000 | _Xconst char* /* string */, | ||
| 3001 | int /* nchars */, | ||
| 3002 | int* /* direction_return */, | ||
| 3003 | int* /* font_ascent_return */, | ||
| 3004 | int* /* font_descent_return */, | ||
| 3005 | XCharStruct* /* overall_return */ | ||
| 3006 | ); | ||
| 3007 | |||
| 3008 | extern int XQueryTextExtents16( | ||
| 3009 | Display* /* display */, | ||
| 3010 | XID /* font_ID */, | ||
| 3011 | _Xconst XChar2b* /* string */, | ||
| 3012 | int /* nchars */, | ||
| 3013 | int* /* direction_return */, | ||
| 3014 | int* /* font_ascent_return */, | ||
| 3015 | int* /* font_descent_return */, | ||
| 3016 | XCharStruct* /* overall_return */ | ||
| 3017 | ); | ||
| 3018 | |||
| 3019 | extern Status XQueryTree( | ||
| 3020 | Display* /* display */, | ||
| 3021 | Window /* w */, | ||
| 3022 | Window* /* root_return */, | ||
| 3023 | Window* /* parent_return */, | ||
| 3024 | Window** /* children_return */, | ||
| 3025 | unsigned int* /* nchildren_return */ | ||
| 3026 | ); | ||
| 3027 | |||
| 3028 | extern int XRaiseWindow( | ||
| 3029 | Display* /* display */, | ||
| 3030 | Window /* w */ | ||
| 3031 | ); | ||
| 3032 | |||
| 3033 | extern int XReadBitmapFile( | ||
| 3034 | Display* /* display */, | ||
| 3035 | Drawable /* d */, | ||
| 3036 | _Xconst char* /* filename */, | ||
| 3037 | unsigned int* /* width_return */, | ||
| 3038 | unsigned int* /* height_return */, | ||
| 3039 | Pixmap* /* bitmap_return */, | ||
| 3040 | int* /* x_hot_return */, | ||
| 3041 | int* /* y_hot_return */ | ||
| 3042 | ); | ||
| 3043 | |||
| 3044 | extern int XReadBitmapFileData( | ||
| 3045 | _Xconst char* /* filename */, | ||
| 3046 | unsigned int* /* width_return */, | ||
| 3047 | unsigned int* /* height_return */, | ||
| 3048 | unsigned char** /* data_return */, | ||
| 3049 | int* /* x_hot_return */, | ||
| 3050 | int* /* y_hot_return */ | ||
| 3051 | ); | ||
| 3052 | |||
| 3053 | extern int XRebindKeysym( | ||
| 3054 | Display* /* display */, | ||
| 3055 | KeySym /* keysym */, | ||
| 3056 | KeySym* /* list */, | ||
| 3057 | int /* mod_count */, | ||
| 3058 | _Xconst unsigned char* /* string */, | ||
| 3059 | int /* bytes_string */ | ||
| 3060 | ); | ||
| 3061 | |||
| 3062 | extern int XRecolorCursor( | ||
| 3063 | Display* /* display */, | ||
| 3064 | Cursor /* cursor */, | ||
| 3065 | XColor* /* foreground_color */, | ||
| 3066 | XColor* /* background_color */ | ||
| 3067 | ); | ||
| 3068 | |||
| 3069 | extern int XRefreshKeyboardMapping( | ||
| 3070 | XMappingEvent* /* event_map */ | ||
| 3071 | ); | ||
| 3072 | |||
| 3073 | extern int XRemoveFromSaveSet( | ||
| 3074 | Display* /* display */, | ||
| 3075 | Window /* w */ | ||
| 3076 | ); | ||
| 3077 | |||
| 3078 | extern int XRemoveHost( | ||
| 3079 | Display* /* display */, | ||
| 3080 | XHostAddress* /* host */ | ||
| 3081 | ); | ||
| 3082 | |||
| 3083 | extern int XRemoveHosts( | ||
| 3084 | Display* /* display */, | ||
| 3085 | XHostAddress* /* hosts */, | ||
| 3086 | int /* num_hosts */ | ||
| 3087 | ); | ||
| 3088 | |||
| 3089 | extern int XReparentWindow( | ||
| 3090 | Display* /* display */, | ||
| 3091 | Window /* w */, | ||
| 3092 | Window /* parent */, | ||
| 3093 | int /* x */, | ||
| 3094 | int /* y */ | ||
| 3095 | ); | ||
| 3096 | |||
| 3097 | extern int XResetScreenSaver( | ||
| 3098 | Display* /* display */ | ||
| 3099 | ); | ||
| 3100 | |||
| 3101 | extern int XResizeWindow( | ||
| 3102 | Display* /* display */, | ||
| 3103 | Window /* w */, | ||
| 3104 | unsigned int /* width */, | ||
| 3105 | unsigned int /* height */ | ||
| 3106 | ); | ||
| 3107 | |||
| 3108 | extern int XRestackWindows( | ||
| 3109 | Display* /* display */, | ||
| 3110 | Window* /* windows */, | ||
| 3111 | int /* nwindows */ | ||
| 3112 | ); | ||
| 3113 | |||
| 3114 | extern int XRotateBuffers( | ||
| 3115 | Display* /* display */, | ||
| 3116 | int /* rotate */ | ||
| 3117 | ); | ||
| 3118 | |||
| 3119 | extern int XRotateWindowProperties( | ||
| 3120 | Display* /* display */, | ||
| 3121 | Window /* w */, | ||
| 3122 | Atom* /* properties */, | ||
| 3123 | int /* num_prop */, | ||
| 3124 | int /* npositions */ | ||
| 3125 | ); | ||
| 3126 | |||
| 3127 | extern int XScreenCount( | ||
| 3128 | Display* /* display */ | ||
| 3129 | ); | ||
| 3130 | |||
| 3131 | extern int XSelectInput( | ||
| 3132 | Display* /* display */, | ||
| 3133 | Window /* w */, | ||
| 3134 | long /* event_mask */ | ||
| 3135 | ); | ||
| 3136 | |||
| 3137 | extern Status XSendEvent( | ||
| 3138 | Display* /* display */, | ||
| 3139 | Window /* w */, | ||
| 3140 | Bool /* propagate */, | ||
| 3141 | long /* event_mask */, | ||
| 3142 | XEvent* /* event_send */ | ||
| 3143 | ); | ||
| 3144 | |||
| 3145 | extern int XSetAccessControl( | ||
| 3146 | Display* /* display */, | ||
| 3147 | int /* mode */ | ||
| 3148 | ); | ||
| 3149 | |||
| 3150 | extern int XSetArcMode( | ||
| 3151 | Display* /* display */, | ||
| 3152 | GC /* gc */, | ||
| 3153 | int /* arc_mode */ | ||
| 3154 | ); | ||
| 3155 | |||
| 3156 | extern int XSetBackground( | ||
| 3157 | Display* /* display */, | ||
| 3158 | GC /* gc */, | ||
| 3159 | unsigned long /* background */ | ||
| 3160 | ); | ||
| 3161 | |||
| 3162 | extern int XSetClipMask( | ||
| 3163 | Display* /* display */, | ||
| 3164 | GC /* gc */, | ||
| 3165 | Pixmap /* pixmap */ | ||
| 3166 | ); | ||
| 3167 | |||
| 3168 | extern int XSetClipOrigin( | ||
| 3169 | Display* /* display */, | ||
| 3170 | GC /* gc */, | ||
| 3171 | int /* clip_x_origin */, | ||
| 3172 | int /* clip_y_origin */ | ||
| 3173 | ); | ||
| 3174 | |||
| 3175 | extern int XSetClipRectangles( | ||
| 3176 | Display* /* display */, | ||
| 3177 | GC /* gc */, | ||
| 3178 | int /* clip_x_origin */, | ||
| 3179 | int /* clip_y_origin */, | ||
| 3180 | XRectangle* /* rectangles */, | ||
| 3181 | int /* n */, | ||
| 3182 | int /* ordering */ | ||
| 3183 | ); | ||
| 3184 | |||
| 3185 | extern int XSetCloseDownMode( | ||
| 3186 | Display* /* display */, | ||
| 3187 | int /* close_mode */ | ||
| 3188 | ); | ||
| 3189 | |||
| 3190 | extern int XSetCommand( | ||
| 3191 | Display* /* display */, | ||
| 3192 | Window /* w */, | ||
| 3193 | char** /* argv */, | ||
| 3194 | int /* argc */ | ||
| 3195 | ); | ||
| 3196 | |||
| 3197 | extern int XSetDashes( | ||
| 3198 | Display* /* display */, | ||
| 3199 | GC /* gc */, | ||
| 3200 | int /* dash_offset */, | ||
| 3201 | _Xconst char* /* dash_list */, | ||
| 3202 | int /* n */ | ||
| 3203 | ); | ||
| 3204 | |||
| 3205 | extern int XSetFillRule( | ||
| 3206 | Display* /* display */, | ||
| 3207 | GC /* gc */, | ||
| 3208 | int /* fill_rule */ | ||
| 3209 | ); | ||
| 3210 | |||
| 3211 | extern int XSetFillStyle( | ||
| 3212 | Display* /* display */, | ||
| 3213 | GC /* gc */, | ||
| 3214 | int /* fill_style */ | ||
| 3215 | ); | ||
| 3216 | |||
| 3217 | extern int XSetFont( | ||
| 3218 | Display* /* display */, | ||
| 3219 | GC /* gc */, | ||
| 3220 | Font /* font */ | ||
| 3221 | ); | ||
| 3222 | |||
| 3223 | extern int XSetFontPath( | ||
| 3224 | Display* /* display */, | ||
| 3225 | char** /* directories */, | ||
| 3226 | int /* ndirs */ | ||
| 3227 | ); | ||
| 3228 | |||
| 3229 | extern int XSetForeground( | ||
| 3230 | Display* /* display */, | ||
| 3231 | GC /* gc */, | ||
| 3232 | unsigned long /* foreground */ | ||
| 3233 | ); | ||
| 3234 | |||
| 3235 | extern int XSetFunction( | ||
| 3236 | Display* /* display */, | ||
| 3237 | GC /* gc */, | ||
| 3238 | int /* function */ | ||
| 3239 | ); | ||
| 3240 | |||
| 3241 | extern int XSetGraphicsExposures( | ||
| 3242 | Display* /* display */, | ||
| 3243 | GC /* gc */, | ||
| 3244 | Bool /* graphics_exposures */ | ||
| 3245 | ); | ||
| 3246 | |||
| 3247 | extern int XSetIconName( | ||
| 3248 | Display* /* display */, | ||
| 3249 | Window /* w */, | ||
| 3250 | _Xconst char* /* icon_name */ | ||
| 3251 | ); | ||
| 3252 | |||
| 3253 | extern int XSetInputFocus( | ||
| 3254 | Display* /* display */, | ||
| 3255 | Window /* focus */, | ||
| 3256 | int /* revert_to */, | ||
| 3257 | Time /* time */ | ||
| 3258 | ); | ||
| 3259 | |||
| 3260 | extern int XSetLineAttributes( | ||
| 3261 | Display* /* display */, | ||
| 3262 | GC /* gc */, | ||
| 3263 | unsigned int /* line_width */, | ||
| 3264 | int /* line_style */, | ||
| 3265 | int /* cap_style */, | ||
| 3266 | int /* join_style */ | ||
| 3267 | ); | ||
| 3268 | |||
| 3269 | extern int XSetModifierMapping( | ||
| 3270 | Display* /* display */, | ||
| 3271 | XModifierKeymap* /* modmap */ | ||
| 3272 | ); | ||
| 3273 | |||
| 3274 | extern int XSetPlaneMask( | ||
| 3275 | Display* /* display */, | ||
| 3276 | GC /* gc */, | ||
| 3277 | unsigned long /* plane_mask */ | ||
| 3278 | ); | ||
| 3279 | |||
| 3280 | extern int XSetPointerMapping( | ||
| 3281 | Display* /* display */, | ||
| 3282 | _Xconst unsigned char* /* map */, | ||
| 3283 | int /* nmap */ | ||
| 3284 | ); | ||
| 3285 | |||
| 3286 | extern int XSetScreenSaver( | ||
| 3287 | Display* /* display */, | ||
| 3288 | int /* timeout */, | ||
| 3289 | int /* interval */, | ||
| 3290 | int /* prefer_blanking */, | ||
| 3291 | int /* allow_exposures */ | ||
| 3292 | ); | ||
| 3293 | |||
| 3294 | extern int XSetSelectionOwner( | ||
| 3295 | Display* /* display */, | ||
| 3296 | Atom /* selection */, | ||
| 3297 | Window /* owner */, | ||
| 3298 | Time /* time */ | ||
| 3299 | ); | ||
| 3300 | |||
| 3301 | extern int XSetState( | ||
| 3302 | Display* /* display */, | ||
| 3303 | GC /* gc */, | ||
| 3304 | unsigned long /* foreground */, | ||
| 3305 | unsigned long /* background */, | ||
| 3306 | int /* function */, | ||
| 3307 | unsigned long /* plane_mask */ | ||
| 3308 | ); | ||
| 3309 | |||
| 3310 | extern int XSetStipple( | ||
| 3311 | Display* /* display */, | ||
| 3312 | GC /* gc */, | ||
| 3313 | Pixmap /* stipple */ | ||
| 3314 | ); | ||
| 3315 | |||
| 3316 | extern int XSetSubwindowMode( | ||
| 3317 | Display* /* display */, | ||
| 3318 | GC /* gc */, | ||
| 3319 | int /* subwindow_mode */ | ||
| 3320 | ); | ||
| 3321 | |||
| 3322 | extern int XSetTSOrigin( | ||
| 3323 | Display* /* display */, | ||
| 3324 | GC /* gc */, | ||
| 3325 | int /* ts_x_origin */, | ||
| 3326 | int /* ts_y_origin */ | ||
| 3327 | ); | ||
| 3328 | |||
| 3329 | extern int XSetTile( | ||
| 3330 | Display* /* display */, | ||
| 3331 | GC /* gc */, | ||
| 3332 | Pixmap /* tile */ | ||
| 3333 | ); | ||
| 3334 | |||
| 3335 | extern int XSetWindowBackground( | ||
| 3336 | Display* /* display */, | ||
| 3337 | Window /* w */, | ||
| 3338 | unsigned long /* background_pixel */ | ||
| 3339 | ); | ||
| 3340 | |||
| 3341 | extern int XSetWindowBackgroundPixmap( | ||
| 3342 | Display* /* display */, | ||
| 3343 | Window /* w */, | ||
| 3344 | Pixmap /* background_pixmap */ | ||
| 3345 | ); | ||
| 3346 | |||
| 3347 | extern int XSetWindowBorder( | ||
| 3348 | Display* /* display */, | ||
| 3349 | Window /* w */, | ||
| 3350 | unsigned long /* border_pixel */ | ||
| 3351 | ); | ||
| 3352 | |||
| 3353 | extern int XSetWindowBorderPixmap( | ||
| 3354 | Display* /* display */, | ||
| 3355 | Window /* w */, | ||
| 3356 | Pixmap /* border_pixmap */ | ||
| 3357 | ); | ||
| 3358 | |||
| 3359 | extern int XSetWindowBorderWidth( | ||
| 3360 | Display* /* display */, | ||
| 3361 | Window /* w */, | ||
| 3362 | unsigned int /* width */ | ||
| 3363 | ); | ||
| 3364 | |||
| 3365 | extern int XSetWindowColormap( | ||
| 3366 | Display* /* display */, | ||
| 3367 | Window /* w */, | ||
| 3368 | Colormap /* colormap */ | ||
| 3369 | ); | ||
| 3370 | |||
| 3371 | extern int XStoreBuffer( | ||
| 3372 | Display* /* display */, | ||
| 3373 | _Xconst char* /* bytes */, | ||
| 3374 | int /* nbytes */, | ||
| 3375 | int /* buffer */ | ||
| 3376 | ); | ||
| 3377 | |||
| 3378 | extern int XStoreBytes( | ||
| 3379 | Display* /* display */, | ||
| 3380 | _Xconst char* /* bytes */, | ||
| 3381 | int /* nbytes */ | ||
| 3382 | ); | ||
| 3383 | |||
| 3384 | extern int XStoreColor( | ||
| 3385 | Display* /* display */, | ||
| 3386 | Colormap /* colormap */, | ||
| 3387 | XColor* /* color */ | ||
| 3388 | ); | ||
| 3389 | |||
| 3390 | extern int XStoreColors( | ||
| 3391 | Display* /* display */, | ||
| 3392 | Colormap /* colormap */, | ||
| 3393 | XColor* /* color */, | ||
| 3394 | int /* ncolors */ | ||
| 3395 | ); | ||
| 3396 | |||
| 3397 | extern int XStoreName( | ||
| 3398 | Display* /* display */, | ||
| 3399 | Window /* w */, | ||
| 3400 | _Xconst char* /* window_name */ | ||
| 3401 | ); | ||
| 3402 | |||
| 3403 | extern int XStoreNamedColor( | ||
| 3404 | Display* /* display */, | ||
| 3405 | Colormap /* colormap */, | ||
| 3406 | _Xconst char* /* color */, | ||
| 3407 | unsigned long /* pixel */, | ||
| 3408 | int /* flags */ | ||
| 3409 | ); | ||
| 3410 | |||
| 3411 | extern int XSync( | ||
| 3412 | Display* /* display */, | ||
| 3413 | Bool /* discard */ | ||
| 3414 | ); | ||
| 3415 | |||
| 3416 | extern int XTextExtents( | ||
| 3417 | XFontStruct* /* font_struct */, | ||
| 3418 | _Xconst char* /* string */, | ||
| 3419 | int /* nchars */, | ||
| 3420 | int* /* direction_return */, | ||
| 3421 | int* /* font_ascent_return */, | ||
| 3422 | int* /* font_descent_return */, | ||
| 3423 | XCharStruct* /* overall_return */ | ||
| 3424 | ); | ||
| 3425 | |||
| 3426 | extern int XTextExtents16( | ||
| 3427 | XFontStruct* /* font_struct */, | ||
| 3428 | _Xconst XChar2b* /* string */, | ||
| 3429 | int /* nchars */, | ||
| 3430 | int* /* direction_return */, | ||
| 3431 | int* /* font_ascent_return */, | ||
| 3432 | int* /* font_descent_return */, | ||
| 3433 | XCharStruct* /* overall_return */ | ||
| 3434 | ); | ||
| 3435 | |||
| 3436 | extern int XTextWidth( | ||
| 3437 | XFontStruct* /* font_struct */, | ||
| 3438 | _Xconst char* /* string */, | ||
| 3439 | int /* count */ | ||
| 3440 | ); | ||
| 3441 | |||
| 3442 | extern int XTextWidth16( | ||
| 3443 | XFontStruct* /* font_struct */, | ||
| 3444 | _Xconst XChar2b* /* string */, | ||
| 3445 | int /* count */ | ||
| 3446 | ); | ||
| 3447 | |||
| 3448 | extern Bool XTranslateCoordinates( | ||
| 3449 | Display* /* display */, | ||
| 3450 | Window /* src_w */, | ||
| 3451 | Window /* dest_w */, | ||
| 3452 | int /* src_x */, | ||
| 3453 | int /* src_y */, | ||
| 3454 | int* /* dest_x_return */, | ||
| 3455 | int* /* dest_y_return */, | ||
| 3456 | Window* /* child_return */ | ||
| 3457 | ); | ||
| 3458 | |||
| 3459 | extern int XUndefineCursor( | ||
| 3460 | Display* /* display */, | ||
| 3461 | Window /* w */ | ||
| 3462 | ); | ||
| 3463 | |||
| 3464 | extern int XUngrabButton( | ||
| 3465 | Display* /* display */, | ||
| 3466 | unsigned int /* button */, | ||
| 3467 | unsigned int /* modifiers */, | ||
| 3468 | Window /* grab_window */ | ||
| 3469 | ); | ||
| 3470 | |||
| 3471 | extern int XUngrabKey( | ||
| 3472 | Display* /* display */, | ||
| 3473 | int /* keycode */, | ||
| 3474 | unsigned int /* modifiers */, | ||
| 3475 | Window /* grab_window */ | ||
| 3476 | ); | ||
| 3477 | |||
| 3478 | extern int XUngrabKeyboard( | ||
| 3479 | Display* /* display */, | ||
| 3480 | Time /* time */ | ||
| 3481 | ); | ||
| 3482 | |||
| 3483 | extern int XUngrabPointer( | ||
| 3484 | Display* /* display */, | ||
| 3485 | Time /* time */ | ||
| 3486 | ); | ||
| 3487 | |||
| 3488 | extern int XUngrabServer( | ||
| 3489 | Display* /* display */ | ||
| 3490 | ); | ||
| 3491 | |||
| 3492 | extern int XUninstallColormap( | ||
| 3493 | Display* /* display */, | ||
| 3494 | Colormap /* colormap */ | ||
| 3495 | ); | ||
| 3496 | |||
| 3497 | extern int XUnloadFont( | ||
| 3498 | Display* /* display */, | ||
| 3499 | Font /* font */ | ||
| 3500 | ); | ||
| 3501 | |||
| 3502 | extern int XUnmapSubwindows( | ||
| 3503 | Display* /* display */, | ||
| 3504 | Window /* w */ | ||
| 3505 | ); | ||
| 3506 | |||
| 3507 | extern int XUnmapWindow( | ||
| 3508 | Display* /* display */, | ||
| 3509 | Window /* w */ | ||
| 3510 | ); | ||
| 3511 | |||
| 3512 | extern int XVendorRelease( | ||
| 3513 | Display* /* display */ | ||
| 3514 | ); | ||
| 3515 | |||
| 3516 | extern int XWarpPointer( | ||
| 3517 | Display* /* display */, | ||
| 3518 | Window /* src_w */, | ||
| 3519 | Window /* dest_w */, | ||
| 3520 | int /* src_x */, | ||
| 3521 | int /* src_y */, | ||
| 3522 | unsigned int /* src_width */, | ||
| 3523 | unsigned int /* src_height */, | ||
| 3524 | int /* dest_x */, | ||
| 3525 | int /* dest_y */ | ||
| 3526 | ); | ||
| 3527 | |||
| 3528 | extern int XWidthMMOfScreen( | ||
| 3529 | Screen* /* screen */ | ||
| 3530 | ); | ||
| 3531 | |||
| 3532 | extern int XWidthOfScreen( | ||
| 3533 | Screen* /* screen */ | ||
| 3534 | ); | ||
| 3535 | |||
| 3536 | extern int XWindowEvent( | ||
| 3537 | Display* /* display */, | ||
| 3538 | Window /* w */, | ||
| 3539 | long /* event_mask */, | ||
| 3540 | XEvent* /* event_return */ | ||
| 3541 | ); | ||
| 3542 | |||
| 3543 | extern int XWriteBitmapFile( | ||
| 3544 | Display* /* display */, | ||
| 3545 | _Xconst char* /* filename */, | ||
| 3546 | Pixmap /* bitmap */, | ||
| 3547 | unsigned int /* width */, | ||
| 3548 | unsigned int /* height */, | ||
| 3549 | int /* x_hot */, | ||
| 3550 | int /* y_hot */ | ||
| 3551 | ); | ||
| 3552 | |||
| 3553 | extern Bool XSupportsLocale (void); | ||
| 3554 | |||
| 3555 | extern char *XSetLocaleModifiers( | ||
| 3556 | const char* /* modifier_list */ | ||
| 3557 | ); | ||
| 3558 | |||
| 3559 | extern XOM XOpenOM( | ||
| 3560 | Display* /* display */, | ||
| 3561 | struct _XrmHashBucketRec* /* rdb */, | ||
| 3562 | _Xconst char* /* res_name */, | ||
| 3563 | _Xconst char* /* res_class */ | ||
| 3564 | ); | ||
| 3565 | |||
| 3566 | extern Status XCloseOM( | ||
| 3567 | XOM /* om */ | ||
| 3568 | ); | ||
| 3569 | |||
| 3570 | extern char *XSetOMValues( | ||
| 3571 | XOM /* om */, | ||
| 3572 | ... | ||
| 3573 | ) _X_SENTINEL(0); | ||
| 3574 | |||
| 3575 | extern char *XGetOMValues( | ||
| 3576 | XOM /* om */, | ||
| 3577 | ... | ||
| 3578 | ) _X_SENTINEL(0); | ||
| 3579 | |||
| 3580 | extern Display *XDisplayOfOM( | ||
| 3581 | XOM /* om */ | ||
| 3582 | ); | ||
| 3583 | |||
| 3584 | extern char *XLocaleOfOM( | ||
| 3585 | XOM /* om */ | ||
| 3586 | ); | ||
| 3587 | |||
| 3588 | extern XOC XCreateOC( | ||
| 3589 | XOM /* om */, | ||
| 3590 | ... | ||
| 3591 | ) _X_SENTINEL(0); | ||
| 3592 | |||
| 3593 | extern void XDestroyOC( | ||
| 3594 | XOC /* oc */ | ||
| 3595 | ); | ||
| 3596 | |||
| 3597 | extern XOM XOMOfOC( | ||
| 3598 | XOC /* oc */ | ||
| 3599 | ); | ||
| 3600 | |||
| 3601 | extern char *XSetOCValues( | ||
| 3602 | XOC /* oc */, | ||
| 3603 | ... | ||
| 3604 | ) _X_SENTINEL(0); | ||
| 3605 | |||
| 3606 | extern char *XGetOCValues( | ||
| 3607 | XOC /* oc */, | ||
| 3608 | ... | ||
| 3609 | ) _X_SENTINEL(0); | ||
| 3610 | |||
| 3611 | extern XFontSet XCreateFontSet( | ||
| 3612 | Display* /* display */, | ||
| 3613 | _Xconst char* /* base_font_name_list */, | ||
| 3614 | char*** /* missing_charset_list */, | ||
| 3615 | int* /* missing_charset_count */, | ||
| 3616 | char** /* def_string */ | ||
| 3617 | ); | ||
| 3618 | |||
| 3619 | extern void XFreeFontSet( | ||
| 3620 | Display* /* display */, | ||
| 3621 | XFontSet /* font_set */ | ||
| 3622 | ); | ||
| 3623 | |||
| 3624 | extern int XFontsOfFontSet( | ||
| 3625 | XFontSet /* font_set */, | ||
| 3626 | XFontStruct*** /* font_struct_list */, | ||
| 3627 | char*** /* font_name_list */ | ||
| 3628 | ); | ||
| 3629 | |||
| 3630 | extern char *XBaseFontNameListOfFontSet( | ||
| 3631 | XFontSet /* font_set */ | ||
| 3632 | ); | ||
| 3633 | |||
| 3634 | extern char *XLocaleOfFontSet( | ||
| 3635 | XFontSet /* font_set */ | ||
| 3636 | ); | ||
| 3637 | |||
| 3638 | extern Bool XContextDependentDrawing( | ||
| 3639 | XFontSet /* font_set */ | ||
| 3640 | ); | ||
| 3641 | |||
| 3642 | extern Bool XDirectionalDependentDrawing( | ||
| 3643 | XFontSet /* font_set */ | ||
| 3644 | ); | ||
| 3645 | |||
| 3646 | extern Bool XContextualDrawing( | ||
| 3647 | XFontSet /* font_set */ | ||
| 3648 | ); | ||
| 3649 | |||
| 3650 | extern XFontSetExtents *XExtentsOfFontSet( | ||
| 3651 | XFontSet /* font_set */ | ||
| 3652 | ); | ||
| 3653 | |||
| 3654 | extern int XmbTextEscapement( | ||
| 3655 | XFontSet /* font_set */, | ||
| 3656 | _Xconst char* /* text */, | ||
| 3657 | int /* bytes_text */ | ||
| 3658 | ); | ||
| 3659 | |||
| 3660 | extern int XwcTextEscapement( | ||
| 3661 | XFontSet /* font_set */, | ||
| 3662 | _Xconst wchar_t* /* text */, | ||
| 3663 | int /* num_wchars */ | ||
| 3664 | ); | ||
| 3665 | |||
| 3666 | extern int Xutf8TextEscapement( | ||
| 3667 | XFontSet /* font_set */, | ||
| 3668 | _Xconst char* /* text */, | ||
| 3669 | int /* bytes_text */ | ||
| 3670 | ); | ||
| 3671 | |||
| 3672 | extern int XmbTextExtents( | ||
| 3673 | XFontSet /* font_set */, | ||
| 3674 | _Xconst char* /* text */, | ||
| 3675 | int /* bytes_text */, | ||
| 3676 | XRectangle* /* overall_ink_return */, | ||
| 3677 | XRectangle* /* overall_logical_return */ | ||
| 3678 | ); | ||
| 3679 | |||
| 3680 | extern int XwcTextExtents( | ||
| 3681 | XFontSet /* font_set */, | ||
| 3682 | _Xconst wchar_t* /* text */, | ||
| 3683 | int /* num_wchars */, | ||
| 3684 | XRectangle* /* overall_ink_return */, | ||
| 3685 | XRectangle* /* overall_logical_return */ | ||
| 3686 | ); | ||
| 3687 | |||
| 3688 | extern int Xutf8TextExtents( | ||
| 3689 | XFontSet /* font_set */, | ||
| 3690 | _Xconst char* /* text */, | ||
| 3691 | int /* bytes_text */, | ||
| 3692 | XRectangle* /* overall_ink_return */, | ||
| 3693 | XRectangle* /* overall_logical_return */ | ||
| 3694 | ); | ||
| 3695 | |||
| 3696 | extern Status XmbTextPerCharExtents( | ||
| 3697 | XFontSet /* font_set */, | ||
| 3698 | _Xconst char* /* text */, | ||
| 3699 | int /* bytes_text */, | ||
| 3700 | XRectangle* /* ink_extents_buffer */, | ||
| 3701 | XRectangle* /* logical_extents_buffer */, | ||
| 3702 | int /* buffer_size */, | ||
| 3703 | int* /* num_chars */, | ||
| 3704 | XRectangle* /* overall_ink_return */, | ||
| 3705 | XRectangle* /* overall_logical_return */ | ||
| 3706 | ); | ||
| 3707 | |||
| 3708 | extern Status XwcTextPerCharExtents( | ||
| 3709 | XFontSet /* font_set */, | ||
| 3710 | _Xconst wchar_t* /* text */, | ||
| 3711 | int /* num_wchars */, | ||
| 3712 | XRectangle* /* ink_extents_buffer */, | ||
| 3713 | XRectangle* /* logical_extents_buffer */, | ||
| 3714 | int /* buffer_size */, | ||
| 3715 | int* /* num_chars */, | ||
| 3716 | XRectangle* /* overall_ink_return */, | ||
| 3717 | XRectangle* /* overall_logical_return */ | ||
| 3718 | ); | ||
| 3719 | |||
| 3720 | extern Status Xutf8TextPerCharExtents( | ||
| 3721 | XFontSet /* font_set */, | ||
| 3722 | _Xconst char* /* text */, | ||
| 3723 | int /* bytes_text */, | ||
| 3724 | XRectangle* /* ink_extents_buffer */, | ||
| 3725 | XRectangle* /* logical_extents_buffer */, | ||
| 3726 | int /* buffer_size */, | ||
| 3727 | int* /* num_chars */, | ||
| 3728 | XRectangle* /* overall_ink_return */, | ||
| 3729 | XRectangle* /* overall_logical_return */ | ||
| 3730 | ); | ||
| 3731 | |||
| 3732 | extern void XmbDrawText( | ||
| 3733 | Display* /* display */, | ||
| 3734 | Drawable /* d */, | ||
| 3735 | GC /* gc */, | ||
| 3736 | int /* x */, | ||
| 3737 | int /* y */, | ||
| 3738 | XmbTextItem* /* text_items */, | ||
| 3739 | int /* nitems */ | ||
| 3740 | ); | ||
| 3741 | |||
| 3742 | extern void XwcDrawText( | ||
| 3743 | Display* /* display */, | ||
| 3744 | Drawable /* d */, | ||
| 3745 | GC /* gc */, | ||
| 3746 | int /* x */, | ||
| 3747 | int /* y */, | ||
| 3748 | XwcTextItem* /* text_items */, | ||
| 3749 | int /* nitems */ | ||
| 3750 | ); | ||
| 3751 | |||
| 3752 | extern void Xutf8DrawText( | ||
| 3753 | Display* /* display */, | ||
| 3754 | Drawable /* d */, | ||
| 3755 | GC /* gc */, | ||
| 3756 | int /* x */, | ||
| 3757 | int /* y */, | ||
| 3758 | XmbTextItem* /* text_items */, | ||
| 3759 | int /* nitems */ | ||
| 3760 | ); | ||
| 3761 | |||
| 3762 | extern void XmbDrawString( | ||
| 3763 | Display* /* display */, | ||
| 3764 | Drawable /* d */, | ||
| 3765 | XFontSet /* font_set */, | ||
| 3766 | GC /* gc */, | ||
| 3767 | int /* x */, | ||
| 3768 | int /* y */, | ||
| 3769 | _Xconst char* /* text */, | ||
| 3770 | int /* bytes_text */ | ||
| 3771 | ); | ||
| 3772 | |||
| 3773 | extern void XwcDrawString( | ||
| 3774 | Display* /* display */, | ||
| 3775 | Drawable /* d */, | ||
| 3776 | XFontSet /* font_set */, | ||
| 3777 | GC /* gc */, | ||
| 3778 | int /* x */, | ||
| 3779 | int /* y */, | ||
| 3780 | _Xconst wchar_t* /* text */, | ||
| 3781 | int /* num_wchars */ | ||
| 3782 | ); | ||
| 3783 | |||
| 3784 | extern void Xutf8DrawString( | ||
| 3785 | Display* /* display */, | ||
| 3786 | Drawable /* d */, | ||
| 3787 | XFontSet /* font_set */, | ||
| 3788 | GC /* gc */, | ||
| 3789 | int /* x */, | ||
| 3790 | int /* y */, | ||
| 3791 | _Xconst char* /* text */, | ||
| 3792 | int /* bytes_text */ | ||
| 3793 | ); | ||
| 3794 | |||
| 3795 | extern void XmbDrawImageString( | ||
| 3796 | Display* /* display */, | ||
| 3797 | Drawable /* d */, | ||
| 3798 | XFontSet /* font_set */, | ||
| 3799 | GC /* gc */, | ||
| 3800 | int /* x */, | ||
| 3801 | int /* y */, | ||
| 3802 | _Xconst char* /* text */, | ||
| 3803 | int /* bytes_text */ | ||
| 3804 | ); | ||
| 3805 | |||
| 3806 | extern void XwcDrawImageString( | ||
| 3807 | Display* /* display */, | ||
| 3808 | Drawable /* d */, | ||
| 3809 | XFontSet /* font_set */, | ||
| 3810 | GC /* gc */, | ||
| 3811 | int /* x */, | ||
| 3812 | int /* y */, | ||
| 3813 | _Xconst wchar_t* /* text */, | ||
| 3814 | int /* num_wchars */ | ||
| 3815 | ); | ||
| 3816 | |||
| 3817 | extern void Xutf8DrawImageString( | ||
| 3818 | Display* /* display */, | ||
| 3819 | Drawable /* d */, | ||
| 3820 | XFontSet /* font_set */, | ||
| 3821 | GC /* gc */, | ||
| 3822 | int /* x */, | ||
| 3823 | int /* y */, | ||
| 3824 | _Xconst char* /* text */, | ||
| 3825 | int /* bytes_text */ | ||
| 3826 | ); | ||
| 3827 | |||
| 3828 | extern XIM XOpenIM( | ||
| 3829 | Display* /* dpy */, | ||
| 3830 | struct _XrmHashBucketRec* /* rdb */, | ||
| 3831 | char* /* res_name */, | ||
| 3832 | char* /* res_class */ | ||
| 3833 | ); | ||
| 3834 | |||
| 3835 | extern Status XCloseIM( | ||
| 3836 | XIM /* im */ | ||
| 3837 | ); | ||
| 3838 | |||
| 3839 | extern char *XGetIMValues( | ||
| 3840 | XIM /* im */, ... | ||
| 3841 | ) _X_SENTINEL(0); | ||
| 3842 | |||
| 3843 | extern char *XSetIMValues( | ||
| 3844 | XIM /* im */, ... | ||
| 3845 | ) _X_SENTINEL(0); | ||
| 3846 | |||
| 3847 | extern Display *XDisplayOfIM( | ||
| 3848 | XIM /* im */ | ||
| 3849 | ); | ||
| 3850 | |||
| 3851 | extern char *XLocaleOfIM( | ||
| 3852 | XIM /* im*/ | ||
| 3853 | ); | ||
| 3854 | |||
| 3855 | extern XIC XCreateIC( | ||
| 3856 | XIM /* im */, ... | ||
| 3857 | ) _X_SENTINEL(0); | ||
| 3858 | |||
| 3859 | extern void XDestroyIC( | ||
| 3860 | XIC /* ic */ | ||
| 3861 | ); | ||
| 3862 | |||
| 3863 | extern void XSetICFocus( | ||
| 3864 | XIC /* ic */ | ||
| 3865 | ); | ||
| 3866 | |||
| 3867 | extern void XUnsetICFocus( | ||
| 3868 | XIC /* ic */ | ||
| 3869 | ); | ||
| 3870 | |||
| 3871 | extern wchar_t *XwcResetIC( | ||
| 3872 | XIC /* ic */ | ||
| 3873 | ); | ||
| 3874 | |||
| 3875 | extern char *XmbResetIC( | ||
| 3876 | XIC /* ic */ | ||
| 3877 | ); | ||
| 3878 | |||
| 3879 | extern char *Xutf8ResetIC( | ||
| 3880 | XIC /* ic */ | ||
| 3881 | ); | ||
| 3882 | |||
| 3883 | extern char *XSetICValues( | ||
| 3884 | XIC /* ic */, ... | ||
| 3885 | ) _X_SENTINEL(0); | ||
| 3886 | |||
| 3887 | extern char *XGetICValues( | ||
| 3888 | XIC /* ic */, ... | ||
| 3889 | ) _X_SENTINEL(0); | ||
| 3890 | |||
| 3891 | extern XIM XIMOfIC( | ||
| 3892 | XIC /* ic */ | ||
| 3893 | ); | ||
| 3894 | |||
| 3895 | extern Bool XFilterEvent( | ||
| 3896 | XEvent* /* event */, | ||
| 3897 | Window /* window */ | ||
| 3898 | ); | ||
| 3899 | |||
| 3900 | extern int XmbLookupString( | ||
| 3901 | XIC /* ic */, | ||
| 3902 | XKeyPressedEvent* /* event */, | ||
| 3903 | char* /* buffer_return */, | ||
| 3904 | int /* bytes_buffer */, | ||
| 3905 | KeySym* /* keysym_return */, | ||
| 3906 | Status* /* status_return */ | ||
| 3907 | ); | ||
| 3908 | |||
| 3909 | extern int XwcLookupString( | ||
| 3910 | XIC /* ic */, | ||
| 3911 | XKeyPressedEvent* /* event */, | ||
| 3912 | wchar_t* /* buffer_return */, | ||
| 3913 | int /* wchars_buffer */, | ||
| 3914 | KeySym* /* keysym_return */, | ||
| 3915 | Status* /* status_return */ | ||
| 3916 | ); | ||
| 3917 | |||
| 3918 | extern int Xutf8LookupString( | ||
| 3919 | XIC /* ic */, | ||
| 3920 | XKeyPressedEvent* /* event */, | ||
| 3921 | char* /* buffer_return */, | ||
| 3922 | int /* bytes_buffer */, | ||
| 3923 | KeySym* /* keysym_return */, | ||
| 3924 | Status* /* status_return */ | ||
| 3925 | ); | ||
| 3926 | |||
| 3927 | extern XVaNestedList XVaCreateNestedList( | ||
| 3928 | int /*unused*/, ... | ||
| 3929 | ) _X_SENTINEL(0); | ||
| 3930 | |||
| 3931 | /* internal connections for IMs */ | ||
| 3932 | |||
| 3933 | extern Bool XRegisterIMInstantiateCallback( | ||
| 3934 | Display* /* dpy */, | ||
| 3935 | struct _XrmHashBucketRec* /* rdb */, | ||
| 3936 | char* /* res_name */, | ||
| 3937 | char* /* res_class */, | ||
| 3938 | XIDProc /* callback */, | ||
| 3939 | XPointer /* client_data */ | ||
| 3940 | ); | ||
| 3941 | |||
| 3942 | extern Bool XUnregisterIMInstantiateCallback( | ||
| 3943 | Display* /* dpy */, | ||
| 3944 | struct _XrmHashBucketRec* /* rdb */, | ||
| 3945 | char* /* res_name */, | ||
| 3946 | char* /* res_class */, | ||
| 3947 | XIDProc /* callback */, | ||
| 3948 | XPointer /* client_data */ | ||
| 3949 | ); | ||
| 3950 | |||
| 3951 | typedef void (*XConnectionWatchProc)( | ||
| 3952 | Display* /* dpy */, | ||
| 3953 | XPointer /* client_data */, | ||
| 3954 | int /* fd */, | ||
| 3955 | Bool /* opening */, /* open or close flag */ | ||
| 3956 | XPointer* /* watch_data */ /* open sets, close uses */ | ||
| 3957 | ); | ||
| 3958 | |||
| 3959 | |||
| 3960 | extern Status XInternalConnectionNumbers( | ||
| 3961 | Display* /* dpy */, | ||
| 3962 | int** /* fd_return */, | ||
| 3963 | int* /* count_return */ | ||
| 3964 | ); | ||
| 3965 | |||
| 3966 | extern void XProcessInternalConnection( | ||
| 3967 | Display* /* dpy */, | ||
| 3968 | int /* fd */ | ||
| 3969 | ); | ||
| 3970 | |||
| 3971 | extern Status XAddConnectionWatch( | ||
| 3972 | Display* /* dpy */, | ||
| 3973 | XConnectionWatchProc /* callback */, | ||
| 3974 | XPointer /* client_data */ | ||
| 3975 | ); | ||
| 3976 | |||
| 3977 | extern void XRemoveConnectionWatch( | ||
| 3978 | Display* /* dpy */, | ||
| 3979 | XConnectionWatchProc /* callback */, | ||
| 3980 | XPointer /* client_data */ | ||
| 3981 | ); | ||
| 3982 | |||
| 3983 | extern void XSetAuthorization( | ||
| 3984 | char * /* name */, | ||
| 3985 | int /* namelen */, | ||
| 3986 | char * /* data */, | ||
| 3987 | int /* datalen */ | ||
| 3988 | ); | ||
| 3989 | |||
| 3990 | extern int _Xmbtowc( | ||
| 3991 | wchar_t * /* wstr */, | ||
| 3992 | #ifdef ISC | ||
| 3993 | char const * /* str */, | ||
| 3994 | size_t /* len */ | ||
| 3995 | #else | ||
| 3996 | char * /* str */, | ||
| 3997 | int /* len */ | ||
| 3998 | #endif | ||
| 3999 | ); | ||
| 4000 | |||
| 4001 | extern int _Xwctomb( | ||
| 4002 | char * /* str */, | ||
| 4003 | wchar_t /* wc */ | ||
| 4004 | ); | ||
| 4005 | |||
| 4006 | _XFUNCPROTOEND | ||
| 4007 | |||
| 4008 | #endif /* _XLIB_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/XlibConf.h b/meta/packages/xorg-lib/xorg-headers-native/X11/XlibConf.h new file mode 100644 index 0000000000..c6c180a5ed --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/XlibConf.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* include/X11/XlibConf.h. Generated by configure. */ | ||
| 2 | /* | ||
| 3 | * $Id: $ | ||
| 4 | * | ||
| 5 | * Copyright © 2005 Keith Packard | ||
| 6 | * | ||
| 7 | * Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | * documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | * the above copyright notice appear in all copies and that both that | ||
| 10 | * copyright notice and this permission notice appear in supporting | ||
| 11 | * documentation, and that the name of Keith Packard not be used in | ||
| 12 | * advertising or publicity pertaining to distribution of the software without | ||
| 13 | * specific, written prior permission. Keith Packard makes no | ||
| 14 | * representations about the suitability of this software for any purpose. It | ||
| 15 | * is provided "as is" without express or implied warranty. | ||
| 16 | * | ||
| 17 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
| 18 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
| 19 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
| 20 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
| 21 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
| 22 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
| 23 | * PERFORMANCE OF THIS SOFTWARE. | ||
| 24 | */ | ||
| 25 | |||
| 26 | #ifndef _XLIBCONF_H_ | ||
| 27 | #define _XLIBCONF_H_ | ||
| 28 | /* | ||
| 29 | * This header file exports defines necessary to correctly | ||
| 30 | * use Xlibint.h both inside Xlib and by external libraries | ||
| 31 | * such as extensions. | ||
| 32 | */ | ||
| 33 | |||
| 34 | /* Threading support? */ | ||
| 35 | #define XTHREADS | ||
| 36 | |||
| 37 | /* Use multi-threaded libc functions? */ | ||
| 38 | #define XUSE_MTSAFE_API | ||
| 39 | |||
| 40 | #endif /* _XLIBCONF_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xlibint.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlibint.h new file mode 100644 index 0000000000..6b1e0c918c --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlibint.h | |||
| @@ -0,0 +1,1320 @@ | |||
| 1 | /* $Xorg: Xlibint.h,v 1.5 2001/02/09 02:03:38 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1984, 1985, 1987, 1989, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included | ||
| 14 | in all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 19 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall | ||
| 25 | not be used in advertising or otherwise to promote the sale, use or | ||
| 26 | other dealings in this Software without prior written authorization | ||
| 27 | from The Open Group. | ||
| 28 | |||
| 29 | */ | ||
| 30 | /* $XFree86: xc/lib/X11/Xlibint.h,v 3.27 2003/05/27 22:26:26 tsi Exp $ */ | ||
| 31 | |||
| 32 | #ifndef _XLIBINT_H_ | ||
| 33 | #define _XLIBINT_H_ 1 | ||
| 34 | |||
| 35 | /* | ||
| 36 | * Xlibint.h - Header definition and support file for the internal | ||
| 37 | * support routines used by the C subroutine interface | ||
| 38 | * library (Xlib) to the X Window System. | ||
| 39 | * | ||
| 40 | * Warning, there be dragons here.... | ||
| 41 | */ | ||
| 42 | |||
| 43 | #include <X11/Xlib.h> | ||
| 44 | #include <X11/Xproto.h> /* to declare xEvent */ | ||
| 45 | #include <X11/XlibConf.h> /* for configured options like XTHREADS */ | ||
| 46 | |||
| 47 | #ifdef WIN32 | ||
| 48 | #define _XFlush _XFlushIt | ||
| 49 | #endif | ||
| 50 | |||
| 51 | /* | ||
| 52 | * If your BytesReadable correctly detects broken connections, then | ||
| 53 | * you should NOT define XCONN_CHECK_FREQ. | ||
| 54 | */ | ||
| 55 | #ifndef XCONN_CHECK_FREQ | ||
| 56 | #define XCONN_CHECK_FREQ 256 | ||
| 57 | #endif | ||
| 58 | |||
| 59 | struct _XGC | ||
| 60 | { | ||
| 61 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 62 | GContext gid; /* protocol ID for graphics context */ | ||
| 63 | Bool rects; /* boolean: TRUE if clipmask is list of rectangles */ | ||
| 64 | Bool dashes; /* boolean: TRUE if dash-list is really a list */ | ||
| 65 | unsigned long dirty;/* cache dirty bits */ | ||
| 66 | XGCValues values; /* shadow structure of values */ | ||
| 67 | }; | ||
| 68 | |||
| 69 | struct _XDisplay | ||
| 70 | { | ||
| 71 | XExtData *ext_data; /* hook for extension to hang data */ | ||
| 72 | struct _XFreeFuncs *free_funcs; /* internal free functions */ | ||
| 73 | int fd; /* Network socket. */ | ||
| 74 | int conn_checker; /* ugly thing used by _XEventsQueued */ | ||
| 75 | int proto_major_version;/* maj. version of server's X protocol */ | ||
| 76 | int proto_minor_version;/* minor version of server's X protocol */ | ||
| 77 | char *vendor; /* vendor of the server hardware */ | ||
| 78 | XID resource_base; /* resource ID base */ | ||
| 79 | XID resource_mask; /* resource ID mask bits */ | ||
| 80 | XID resource_id; /* allocator current ID */ | ||
| 81 | int resource_shift; /* allocator shift to correct bits */ | ||
| 82 | XID (*resource_alloc)( /* allocator function */ | ||
| 83 | struct _XDisplay* | ||
| 84 | ); | ||
| 85 | int byte_order; /* screen byte order, LSBFirst, MSBFirst */ | ||
| 86 | int bitmap_unit; /* padding and data requirements */ | ||
| 87 | int bitmap_pad; /* padding requirements on bitmaps */ | ||
| 88 | int bitmap_bit_order; /* LeastSignificant or MostSignificant */ | ||
| 89 | int nformats; /* number of pixmap formats in list */ | ||
| 90 | ScreenFormat *pixmap_format; /* pixmap format list */ | ||
| 91 | int vnumber; /* Xlib's X protocol version number. */ | ||
| 92 | int release; /* release of the server */ | ||
| 93 | struct _XSQEvent *head, *tail; /* Input event queue. */ | ||
| 94 | int qlen; /* Length of input event queue */ | ||
| 95 | unsigned long last_request_read; /* seq number of last event read */ | ||
| 96 | unsigned long request; /* sequence number of last request. */ | ||
| 97 | char *last_req; /* beginning of last request, or dummy */ | ||
| 98 | char *buffer; /* Output buffer starting address. */ | ||
| 99 | char *bufptr; /* Output buffer index pointer. */ | ||
| 100 | char *bufmax; /* Output buffer maximum+1 address. */ | ||
| 101 | unsigned max_request_size; /* maximum number 32 bit words in request*/ | ||
| 102 | struct _XrmHashBucketRec *db; | ||
| 103 | int (*synchandler)( /* Synchronization handler */ | ||
| 104 | struct _XDisplay* | ||
| 105 | ); | ||
| 106 | char *display_name; /* "host:display" string used on this connect*/ | ||
| 107 | int default_screen; /* default screen for operations */ | ||
| 108 | int nscreens; /* number of screens on this server*/ | ||
| 109 | Screen *screens; /* pointer to list of screens */ | ||
| 110 | unsigned long motion_buffer; /* size of motion buffer */ | ||
| 111 | unsigned long flags; /* internal connection flags */ | ||
| 112 | int min_keycode; /* minimum defined keycode */ | ||
| 113 | int max_keycode; /* maximum defined keycode */ | ||
| 114 | KeySym *keysyms; /* This server's keysyms */ | ||
| 115 | XModifierKeymap *modifiermap; /* This server's modifier keymap */ | ||
| 116 | int keysyms_per_keycode;/* number of rows */ | ||
| 117 | char *xdefaults; /* contents of defaults from server */ | ||
| 118 | char *scratch_buffer; /* place to hang scratch buffer */ | ||
| 119 | unsigned long scratch_length; /* length of scratch buffer */ | ||
| 120 | int ext_number; /* extension number on this display */ | ||
| 121 | struct _XExten *ext_procs; /* extensions initialized on this display */ | ||
| 122 | /* | ||
| 123 | * the following can be fixed size, as the protocol defines how | ||
| 124 | * much address space is available. | ||
| 125 | * While this could be done using the extension vector, there | ||
| 126 | * may be MANY events processed, so a search through the extension | ||
| 127 | * list to find the right procedure for each event might be | ||
| 128 | * expensive if many extensions are being used. | ||
| 129 | */ | ||
| 130 | Bool (*event_vec[128])( /* vector for wire to event */ | ||
| 131 | Display * /* dpy */, | ||
| 132 | XEvent * /* re */, | ||
| 133 | xEvent * /* event */ | ||
| 134 | ); | ||
| 135 | Status (*wire_vec[128])( /* vector for event to wire */ | ||
| 136 | Display * /* dpy */, | ||
| 137 | XEvent * /* re */, | ||
| 138 | xEvent * /* event */ | ||
| 139 | ); | ||
| 140 | KeySym lock_meaning; /* for XLookupString */ | ||
| 141 | struct _XLockInfo *lock; /* multi-thread state, display lock */ | ||
| 142 | struct _XInternalAsync *async_handlers; /* for internal async */ | ||
| 143 | unsigned long bigreq_size; /* max size of big requests */ | ||
| 144 | struct _XLockPtrs *lock_fns; /* pointers to threads functions */ | ||
| 145 | void (*idlist_alloc)( /* XID list allocator function */ | ||
| 146 | Display * /* dpy */, | ||
| 147 | XID * /* ids */, | ||
| 148 | int /* count */ | ||
| 149 | ); | ||
| 150 | /* things above this line should not move, for binary compatibility */ | ||
| 151 | struct _XKeytrans *key_bindings; /* for XLookupString */ | ||
| 152 | Font cursor_font; /* for XCreateFontCursor */ | ||
| 153 | struct _XDisplayAtoms *atoms; /* for XInternAtom */ | ||
| 154 | unsigned int mode_switch; /* keyboard group modifiers */ | ||
| 155 | unsigned int num_lock; /* keyboard numlock modifiers */ | ||
| 156 | struct _XContextDB *context_db; /* context database */ | ||
| 157 | Bool (**error_vec)( /* vector for wire to error */ | ||
| 158 | Display * /* display */, | ||
| 159 | XErrorEvent * /* he */, | ||
| 160 | xError * /* we */ | ||
| 161 | ); | ||
| 162 | /* | ||
| 163 | * Xcms information | ||
| 164 | */ | ||
| 165 | struct { | ||
| 166 | XPointer defaultCCCs; /* pointer to an array of default XcmsCCC */ | ||
| 167 | XPointer clientCmaps; /* pointer to linked list of XcmsCmapRec */ | ||
| 168 | XPointer perVisualIntensityMaps; | ||
| 169 | /* linked list of XcmsIntensityMap */ | ||
| 170 | } cms; | ||
| 171 | struct _XIMFilter *im_filters; | ||
| 172 | struct _XSQEvent *qfree; /* unallocated event queue elements */ | ||
| 173 | unsigned long next_event_serial_num; /* inserted into next queue elt */ | ||
| 174 | struct _XExten *flushes; /* Flush hooks */ | ||
| 175 | struct _XConnectionInfo *im_fd_info; /* _XRegisterInternalConnection */ | ||
| 176 | int im_fd_length; /* number of im_fd_info */ | ||
| 177 | struct _XConnWatchInfo *conn_watchers; /* XAddConnectionWatch */ | ||
| 178 | int watcher_count; /* number of conn_watchers */ | ||
| 179 | XPointer filedes; /* struct pollfd cache for _XWaitForReadable */ | ||
| 180 | int (*savedsynchandler)( /* user synchandler when Xlib usurps */ | ||
| 181 | Display * /* dpy */ | ||
| 182 | ); | ||
| 183 | XID resource_max; /* allocator max ID */ | ||
| 184 | int xcmisc_opcode; /* major opcode for XC-MISC */ | ||
| 185 | struct _XkbInfoRec *xkb_info; /* XKB info */ | ||
| 186 | struct _XtransConnInfo *trans_conn; /* transport connection object */ | ||
| 187 | }; | ||
| 188 | |||
| 189 | #define XAllocIDs(dpy,ids,n) (*(dpy)->idlist_alloc)(dpy,ids,n) | ||
| 190 | |||
| 191 | /* | ||
| 192 | * define the following if you want the Data macro to be a procedure instead | ||
| 193 | */ | ||
| 194 | #ifdef CRAY | ||
| 195 | #define DataRoutineIsProcedure | ||
| 196 | #endif /* CRAY */ | ||
| 197 | |||
| 198 | #ifndef _XEVENT_ | ||
| 199 | /* | ||
| 200 | * _QEvent datatype for use in input queueing. | ||
| 201 | */ | ||
| 202 | typedef struct _XSQEvent | ||
| 203 | { | ||
| 204 | struct _XSQEvent *next; | ||
| 205 | XEvent event; | ||
| 206 | unsigned long qserial_num; /* so multi-threaded code can find new ones */ | ||
| 207 | } _XQEvent; | ||
| 208 | #endif | ||
| 209 | |||
| 210 | #ifdef XTHREADS /* for xReply */ | ||
| 211 | #define NEED_REPLIES | ||
| 212 | #endif | ||
| 213 | |||
| 214 | #define NEED_EVENTS | ||
| 215 | #define NEED_REPLIES | ||
| 216 | #include <X11/Xproto.h> | ||
| 217 | #ifdef __sgi | ||
| 218 | #define _SGI_MP_SOURCE /* turn this on to get MP safe errno */ | ||
| 219 | #endif | ||
| 220 | #include <errno.h> | ||
| 221 | #define _XBCOPYFUNC _Xbcopy | ||
| 222 | #include <X11/Xfuncs.h> | ||
| 223 | #include <X11/Xosdefs.h> | ||
| 224 | |||
| 225 | /* Utek leaves kernel macros around in include files (bleah) */ | ||
| 226 | #ifdef dirty | ||
| 227 | #undef dirty | ||
| 228 | #endif | ||
| 229 | |||
| 230 | #include <stdlib.h> | ||
| 231 | #include <string.h> | ||
| 232 | |||
| 233 | #include <X11/Xfuncproto.h> | ||
| 234 | |||
| 235 | _XFUNCPROTOBEGIN | ||
| 236 | |||
| 237 | /* | ||
| 238 | * The following definitions can be used for locking requests in multi-threaded | ||
| 239 | * address spaces. | ||
| 240 | */ | ||
| 241 | #ifdef XTHREADS | ||
| 242 | /* Author: Stephen Gildea, MIT X Consortium | ||
| 243 | * | ||
| 244 | * declarations for C Threads locking | ||
| 245 | */ | ||
| 246 | |||
| 247 | typedef struct _LockInfoRec *LockInfoPtr; | ||
| 248 | |||
| 249 | /* interfaces for locking.c */ | ||
| 250 | struct _XLockPtrs { | ||
| 251 | /* used by all, including extensions; do not move */ | ||
| 252 | void (*lock_display)( | ||
| 253 | Display *dpy | ||
| 254 | #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 255 | , char *file | ||
| 256 | , int line | ||
| 257 | #endif | ||
| 258 | ); | ||
| 259 | void (*unlock_display)( | ||
| 260 | Display *dpy | ||
| 261 | #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 262 | , char *file | ||
| 263 | , int line | ||
| 264 | #endif | ||
| 265 | ); | ||
| 266 | }; | ||
| 267 | |||
| 268 | #if defined(WIN32) && !defined(_XLIBINT_) | ||
| 269 | #define _XCreateMutex_fn (*_XCreateMutex_fn_p) | ||
| 270 | #define _XFreeMutex_fn (*_XFreeMutex_fn_p) | ||
| 271 | #define _XLockMutex_fn (*_XLockMutex_fn_p) | ||
| 272 | #define _XUnlockMutex_fn (*_XUnlockMutex_fn_p) | ||
| 273 | #define _Xglobal_lock (*_Xglobal_lock_p) | ||
| 274 | #endif | ||
| 275 | |||
| 276 | /* in XlibInt.c */ | ||
| 277 | extern void (*_XCreateMutex_fn)( | ||
| 278 | LockInfoPtr /* lock */ | ||
| 279 | ); | ||
| 280 | extern void (*_XFreeMutex_fn)( | ||
| 281 | LockInfoPtr /* lock */ | ||
| 282 | ); | ||
| 283 | extern void (*_XLockMutex_fn)( | ||
| 284 | LockInfoPtr /* lock */ | ||
| 285 | #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 286 | , char * /* file */ | ||
| 287 | , int /* line */ | ||
| 288 | #endif | ||
| 289 | ); | ||
| 290 | extern void (*_XUnlockMutex_fn)( | ||
| 291 | LockInfoPtr /* lock */ | ||
| 292 | #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 293 | , char * /* file */ | ||
| 294 | , int /* line */ | ||
| 295 | #endif | ||
| 296 | ); | ||
| 297 | |||
| 298 | extern LockInfoPtr _Xglobal_lock; | ||
| 299 | |||
| 300 | #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 301 | #define LockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->lock_display)((d),__FILE__,__LINE__) | ||
| 302 | #define UnlockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->unlock_display)((d),__FILE__,__LINE__) | ||
| 303 | #define _XLockMutex(lock) if (_XLockMutex_fn) (*_XLockMutex_fn)(lock,__FILE__,__LINE__) | ||
| 304 | #define _XUnlockMutex(lock) if (_XUnlockMutex_fn) (*_XUnlockMutex_fn)(lock,__FILE__,__LINE__) | ||
| 305 | #else | ||
| 306 | /* used everywhere, so must be fast if not using threads */ | ||
| 307 | #define LockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->lock_display)(d) | ||
| 308 | #define UnlockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->unlock_display)(d) | ||
| 309 | #define _XLockMutex(lock) if (_XLockMutex_fn) (*_XLockMutex_fn)(lock) | ||
| 310 | #define _XUnlockMutex(lock) if (_XUnlockMutex_fn) (*_XUnlockMutex_fn)(lock) | ||
| 311 | #endif | ||
| 312 | #define _XCreateMutex(lock) if (_XCreateMutex_fn) (*_XCreateMutex_fn)(lock); | ||
| 313 | #define _XFreeMutex(lock) if (_XFreeMutex_fn) (*_XFreeMutex_fn)(lock); | ||
| 314 | |||
| 315 | #else /* XTHREADS */ | ||
| 316 | #define LockDisplay(dis) | ||
| 317 | #define _XLockMutex(lock) | ||
| 318 | #define _XUnlockMutex(lock) | ||
| 319 | #define UnlockDisplay(dis) | ||
| 320 | #define _XCreateMutex(lock) | ||
| 321 | #define _XFreeMutex(lock) | ||
| 322 | #endif | ||
| 323 | |||
| 324 | #define Xfree(ptr) free((ptr)) | ||
| 325 | |||
| 326 | /* | ||
| 327 | * Note that some machines do not return a valid pointer for malloc(0), in | ||
| 328 | * which case we provide an alternate under the control of the | ||
| 329 | * define MALLOC_0_RETURNS_NULL. This is necessary because some | ||
| 330 | * Xlib code expects malloc(0) to return a valid pointer to storage. | ||
| 331 | */ | ||
| 332 | #ifdef MALLOC_0_RETURNS_NULL | ||
| 333 | |||
| 334 | # define Xmalloc(size) malloc(((size) == 0 ? 1 : (size))) | ||
| 335 | # define Xrealloc(ptr, size) realloc((ptr), ((size) == 0 ? 1 : (size))) | ||
| 336 | # define Xcalloc(nelem, elsize) calloc(((nelem) == 0 ? 1 : (nelem)), (elsize)) | ||
| 337 | |||
| 338 | #else | ||
| 339 | |||
| 340 | # define Xmalloc(size) malloc((size)) | ||
| 341 | # define Xrealloc(ptr, size) realloc((ptr), (size)) | ||
| 342 | # define Xcalloc(nelem, elsize) calloc((nelem), (elsize)) | ||
| 343 | |||
| 344 | #endif | ||
| 345 | |||
| 346 | #include <stddef.h> | ||
| 347 | |||
| 348 | #define LOCKED 1 | ||
| 349 | #define UNLOCKED 0 | ||
| 350 | |||
| 351 | #ifndef BUFSIZE | ||
| 352 | #define BUFSIZE 2048 /* X output buffer size. */ | ||
| 353 | #endif | ||
| 354 | #ifndef PTSPERBATCH | ||
| 355 | #define PTSPERBATCH 1024 /* point batching */ | ||
| 356 | #endif | ||
| 357 | #ifndef WLNSPERBATCH | ||
| 358 | #define WLNSPERBATCH 50 /* wide line batching */ | ||
| 359 | #endif | ||
| 360 | #ifndef ZLNSPERBATCH | ||
| 361 | #define ZLNSPERBATCH 1024 /* thin line batching */ | ||
| 362 | #endif | ||
| 363 | #ifndef WRCTSPERBATCH | ||
| 364 | #define WRCTSPERBATCH 10 /* wide line rectangle batching */ | ||
| 365 | #endif | ||
| 366 | #ifndef ZRCTSPERBATCH | ||
| 367 | #define ZRCTSPERBATCH 256 /* thin line rectangle batching */ | ||
| 368 | #endif | ||
| 369 | #ifndef FRCTSPERBATCH | ||
| 370 | #define FRCTSPERBATCH 256 /* filled rectangle batching */ | ||
| 371 | #endif | ||
| 372 | #ifndef FARCSPERBATCH | ||
| 373 | #define FARCSPERBATCH 256 /* filled arc batching */ | ||
| 374 | #endif | ||
| 375 | #ifndef CURSORFONT | ||
| 376 | #define CURSORFONT "cursor" /* standard cursor fonts */ | ||
| 377 | #endif | ||
| 378 | |||
| 379 | /* | ||
| 380 | * Display flags | ||
| 381 | */ | ||
| 382 | #define XlibDisplayIOError (1L << 0) | ||
| 383 | #define XlibDisplayClosing (1L << 1) | ||
| 384 | #define XlibDisplayNoXkb (1L << 2) | ||
| 385 | #define XlibDisplayPrivSync (1L << 3) | ||
| 386 | #define XlibDisplayProcConni (1L << 4) /* in _XProcessInternalConnection */ | ||
| 387 | #define XlibDisplayReadEvents (1L << 5) /* in _XReadEvents */ | ||
| 388 | #define XlibDisplayReply (1L << 5) /* in _XReply */ | ||
| 389 | #define XlibDisplayWriting (1L << 6) /* in _XFlushInt, _XSend */ | ||
| 390 | #define XlibDisplayDfltRMDB (1L << 7) /* mark if RM db from XGetDefault */ | ||
| 391 | |||
| 392 | /* | ||
| 393 | * X Protocol packetizing macros. | ||
| 394 | */ | ||
| 395 | |||
| 396 | /* Need to start requests on 64 bit word boundaries | ||
| 397 | * on a CRAY computer so add a NoOp (127) if needed. | ||
| 398 | * A character pointer on a CRAY computer will be non-zero | ||
| 399 | * after shifting right 61 bits of it is not pointing to | ||
| 400 | * a word boundary. | ||
| 401 | */ | ||
| 402 | #ifdef WORD64 | ||
| 403 | #define WORD64ALIGN if ((long)dpy->bufptr >> 61) {\ | ||
| 404 | dpy->last_req = dpy->bufptr;\ | ||
| 405 | *(dpy->bufptr) = X_NoOperation;\ | ||
| 406 | *(dpy->bufptr+1) = 0;\ | ||
| 407 | *(dpy->bufptr+2) = 0;\ | ||
| 408 | *(dpy->bufptr+3) = 1;\ | ||
| 409 | dpy->request++;\ | ||
| 410 | dpy->bufptr += 4;\ | ||
| 411 | } | ||
| 412 | #else /* else does not require alignment on 64-bit boundaries */ | ||
| 413 | #define WORD64ALIGN | ||
| 414 | #endif /* WORD64 */ | ||
| 415 | |||
| 416 | |||
| 417 | /* | ||
| 418 | * GetReq - Get the next available X request packet in the buffer and | ||
| 419 | * return it. | ||
| 420 | * | ||
| 421 | * "name" is the name of the request, e.g. CreatePixmap, OpenFont, etc. | ||
| 422 | * "req" is the name of the request pointer. | ||
| 423 | * | ||
| 424 | */ | ||
| 425 | |||
| 426 | #if !defined(UNIXCPP) || defined(ANSICPP) | ||
| 427 | #define GetReq(name, req) \ | ||
| 428 | WORD64ALIGN\ | ||
| 429 | if ((dpy->bufptr + SIZEOF(x##name##Req)) > dpy->bufmax)\ | ||
| 430 | _XFlush(dpy);\ | ||
| 431 | req = (x##name##Req *)(dpy->last_req = dpy->bufptr);\ | ||
| 432 | req->reqType = X_##name;\ | ||
| 433 | req->length = (SIZEOF(x##name##Req))>>2;\ | ||
| 434 | dpy->bufptr += SIZEOF(x##name##Req);\ | ||
| 435 | dpy->request++ | ||
| 436 | |||
| 437 | #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */ | ||
| 438 | #define GetReq(name, req) \ | ||
| 439 | WORD64ALIGN\ | ||
| 440 | if ((dpy->bufptr + SIZEOF(x/**/name/**/Req)) > dpy->bufmax)\ | ||
| 441 | _XFlush(dpy);\ | ||
| 442 | req = (x/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ | ||
| 443 | req->reqType = X_/**/name;\ | ||
| 444 | req->length = (SIZEOF(x/**/name/**/Req))>>2;\ | ||
| 445 | dpy->bufptr += SIZEOF(x/**/name/**/Req);\ | ||
| 446 | dpy->request++ | ||
| 447 | #endif | ||
| 448 | |||
| 449 | /* GetReqExtra is the same as GetReq, but allocates "n" additional | ||
| 450 | bytes after the request. "n" must be a multiple of 4! */ | ||
| 451 | |||
| 452 | #if !defined(UNIXCPP) || defined(ANSICPP) | ||
| 453 | #define GetReqExtra(name, n, req) \ | ||
| 454 | WORD64ALIGN\ | ||
| 455 | if ((dpy->bufptr + SIZEOF(x##name##Req) + n) > dpy->bufmax)\ | ||
| 456 | _XFlush(dpy);\ | ||
| 457 | req = (x##name##Req *)(dpy->last_req = dpy->bufptr);\ | ||
| 458 | req->reqType = X_##name;\ | ||
| 459 | req->length = (SIZEOF(x##name##Req) + n)>>2;\ | ||
| 460 | dpy->bufptr += SIZEOF(x##name##Req) + n;\ | ||
| 461 | dpy->request++ | ||
| 462 | #else | ||
| 463 | #define GetReqExtra(name, n, req) \ | ||
| 464 | WORD64ALIGN\ | ||
| 465 | if ((dpy->bufptr + SIZEOF(x/**/name/**/Req) + n) > dpy->bufmax)\ | ||
| 466 | _XFlush(dpy);\ | ||
| 467 | req = (x/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ | ||
| 468 | req->reqType = X_/**/name;\ | ||
| 469 | req->length = (SIZEOF(x/**/name/**/Req) + n)>>2;\ | ||
| 470 | dpy->bufptr += SIZEOF(x/**/name/**/Req) + n;\ | ||
| 471 | dpy->request++ | ||
| 472 | #endif | ||
| 473 | |||
| 474 | |||
| 475 | /* | ||
| 476 | * GetResReq is for those requests that have a resource ID | ||
| 477 | * (Window, Pixmap, GContext, etc.) as their single argument. | ||
| 478 | * "rid" is the name of the resource. | ||
| 479 | */ | ||
| 480 | |||
| 481 | #if !defined(UNIXCPP) || defined(ANSICPP) | ||
| 482 | #define GetResReq(name, rid, req) \ | ||
| 483 | WORD64ALIGN\ | ||
| 484 | if ((dpy->bufptr + SIZEOF(xResourceReq)) > dpy->bufmax)\ | ||
| 485 | _XFlush(dpy);\ | ||
| 486 | req = (xResourceReq *) (dpy->last_req = dpy->bufptr);\ | ||
| 487 | req->reqType = X_##name;\ | ||
| 488 | req->length = 2;\ | ||
| 489 | req->id = (rid);\ | ||
| 490 | dpy->bufptr += SIZEOF(xResourceReq);\ | ||
| 491 | dpy->request++ | ||
| 492 | #else | ||
| 493 | #define GetResReq(name, rid, req) \ | ||
| 494 | WORD64ALIGN\ | ||
| 495 | if ((dpy->bufptr + SIZEOF(xResourceReq)) > dpy->bufmax)\ | ||
| 496 | _XFlush(dpy);\ | ||
| 497 | req = (xResourceReq *) (dpy->last_req = dpy->bufptr);\ | ||
| 498 | req->reqType = X_/**/name;\ | ||
| 499 | req->length = 2;\ | ||
| 500 | req->id = (rid);\ | ||
| 501 | dpy->bufptr += SIZEOF(xResourceReq);\ | ||
| 502 | dpy->request++ | ||
| 503 | #endif | ||
| 504 | |||
| 505 | /* | ||
| 506 | * GetEmptyReq is for those requests that have no arguments | ||
| 507 | * at all. | ||
| 508 | */ | ||
| 509 | #if !defined(UNIXCPP) || defined(ANSICPP) | ||
| 510 | #define GetEmptyReq(name, req) \ | ||
| 511 | WORD64ALIGN\ | ||
| 512 | if ((dpy->bufptr + SIZEOF(xReq)) > dpy->bufmax)\ | ||
| 513 | _XFlush(dpy);\ | ||
| 514 | req = (xReq *) (dpy->last_req = dpy->bufptr);\ | ||
| 515 | req->reqType = X_##name;\ | ||
| 516 | req->length = 1;\ | ||
| 517 | dpy->bufptr += SIZEOF(xReq);\ | ||
| 518 | dpy->request++ | ||
| 519 | #else | ||
| 520 | #define GetEmptyReq(name, req) \ | ||
| 521 | WORD64ALIGN\ | ||
| 522 | if ((dpy->bufptr + SIZEOF(xReq)) > dpy->bufmax)\ | ||
| 523 | _XFlush(dpy);\ | ||
| 524 | req = (xReq *) (dpy->last_req = dpy->bufptr);\ | ||
| 525 | req->reqType = X_/**/name;\ | ||
| 526 | req->length = 1;\ | ||
| 527 | dpy->bufptr += SIZEOF(xReq);\ | ||
| 528 | dpy->request++ | ||
| 529 | #endif | ||
| 530 | |||
| 531 | #ifdef WORD64 | ||
| 532 | #define MakeBigReq(req,n) \ | ||
| 533 | { \ | ||
| 534 | char _BRdat[4]; \ | ||
| 535 | unsigned long _BRlen = req->length - 1; \ | ||
| 536 | req->length = 0; \ | ||
| 537 | memcpy(_BRdat, ((char *)req) + (_BRlen << 2), 4); \ | ||
| 538 | memmove(((char *)req) + 8, ((char *)req) + 4, _BRlen << 2); \ | ||
| 539 | memcpy(((char *)req) + 4, _BRdat, 4); \ | ||
| 540 | Data32(dpy, (long *)&_BRdat, 4); \ | ||
| 541 | } | ||
| 542 | #else | ||
| 543 | #ifdef LONG64 | ||
| 544 | #define MakeBigReq(req,n) \ | ||
| 545 | { \ | ||
| 546 | CARD64 _BRdat; \ | ||
| 547 | CARD32 _BRlen = req->length - 1; \ | ||
| 548 | req->length = 0; \ | ||
| 549 | _BRdat = ((CARD32 *)req)[_BRlen]; \ | ||
| 550 | memmove(((char *)req) + 8, ((char *)req) + 4, _BRlen << 2); \ | ||
| 551 | ((CARD32 *)req)[1] = _BRlen + n + 2; \ | ||
| 552 | Data32(dpy, &_BRdat, 4); \ | ||
| 553 | } | ||
| 554 | #else | ||
| 555 | #define MakeBigReq(req,n) \ | ||
| 556 | { \ | ||
| 557 | CARD32 _BRdat; \ | ||
| 558 | CARD32 _BRlen = req->length - 1; \ | ||
| 559 | req->length = 0; \ | ||
| 560 | _BRdat = ((CARD32 *)req)[_BRlen]; \ | ||
| 561 | memmove(((char *)req) + 8, ((char *)req) + 4, _BRlen << 2); \ | ||
| 562 | ((CARD32 *)req)[1] = _BRlen + n + 2; \ | ||
| 563 | Data32(dpy, &_BRdat, 4); \ | ||
| 564 | } | ||
| 565 | #endif | ||
| 566 | #endif | ||
| 567 | |||
| 568 | #define SetReqLen(req,n,badlen) \ | ||
| 569 | if ((req->length + n) > (unsigned)65535) { \ | ||
| 570 | if (dpy->bigreq_size) { \ | ||
| 571 | MakeBigReq(req,n) \ | ||
| 572 | } else { \ | ||
| 573 | n = badlen; \ | ||
| 574 | req->length += n; \ | ||
| 575 | } \ | ||
| 576 | } else \ | ||
| 577 | req->length += n | ||
| 578 | |||
| 579 | #define SyncHandle() \ | ||
| 580 | if (dpy->synchandler) (*dpy->synchandler)(dpy) | ||
| 581 | |||
| 582 | extern void _XFlushGCCache(Display *dpy, GC gc); | ||
| 583 | #define FlushGC(dpy, gc) \ | ||
| 584 | if ((gc)->dirty) _XFlushGCCache((dpy), (gc)) | ||
| 585 | /* | ||
| 586 | * Data - Place data in the buffer and pad the end to provide | ||
| 587 | * 32 bit word alignment. Transmit if the buffer fills. | ||
| 588 | * | ||
| 589 | * "dpy" is a pointer to a Display. | ||
| 590 | * "data" is a pinter to a data buffer. | ||
| 591 | * "len" is the length of the data buffer. | ||
| 592 | */ | ||
| 593 | #ifndef DataRoutineIsProcedure | ||
| 594 | #define Data(dpy, data, len) {\ | ||
| 595 | if (dpy->bufptr + (len) <= dpy->bufmax) {\ | ||
| 596 | memcpy(dpy->bufptr, data, (int)len);\ | ||
| 597 | dpy->bufptr += ((len) + 3) & ~3;\ | ||
| 598 | } else\ | ||
| 599 | _XSend(dpy, data, len);\ | ||
| 600 | } | ||
| 601 | #endif /* DataRoutineIsProcedure */ | ||
| 602 | |||
| 603 | |||
| 604 | /* Allocate bytes from the buffer. No padding is done, so if | ||
| 605 | * the length is not a multiple of 4, the caller must be | ||
| 606 | * careful to leave the buffer aligned after sending the | ||
| 607 | * current request. | ||
| 608 | * | ||
| 609 | * "type" is the type of the pointer being assigned to. | ||
| 610 | * "ptr" is the pointer being assigned to. | ||
| 611 | * "n" is the number of bytes to allocate. | ||
| 612 | * | ||
| 613 | * Example: | ||
| 614 | * xTextElt *elt; | ||
| 615 | * BufAlloc (xTextElt *, elt, nbytes) | ||
| 616 | */ | ||
| 617 | |||
| 618 | #define BufAlloc(type, ptr, n) \ | ||
| 619 | if (dpy->bufptr + (n) > dpy->bufmax) \ | ||
| 620 | _XFlush (dpy); \ | ||
| 621 | ptr = (type) dpy->bufptr; \ | ||
| 622 | (void)ptr; \ | ||
| 623 | dpy->bufptr += (n); | ||
| 624 | |||
| 625 | #ifdef WORD64 | ||
| 626 | #define Data16(dpy, data, len) _XData16(dpy, (short *)data, len) | ||
| 627 | #define Data32(dpy, data, len) _XData32(dpy, (long *)data, len) | ||
| 628 | #else | ||
| 629 | #define Data16(dpy, data, len) Data((dpy), (char *)(data), (len)) | ||
| 630 | #define _XRead16Pad(dpy, data, len) _XReadPad((dpy), (char *)(data), (len)) | ||
| 631 | #define _XRead16(dpy, data, len) _XRead((dpy), (char *)(data), (len)) | ||
| 632 | #ifdef LONG64 | ||
| 633 | #define Data32(dpy, data, len) _XData32(dpy, (long *)data, len) | ||
| 634 | extern int _XData32( | ||
| 635 | Display *dpy, | ||
| 636 | register long *data, | ||
| 637 | unsigned len | ||
| 638 | ); | ||
| 639 | extern void _XRead32( | ||
| 640 | Display *dpy, | ||
| 641 | register long *data, | ||
| 642 | long len | ||
| 643 | ); | ||
| 644 | #else | ||
| 645 | #define Data32(dpy, data, len) Data((dpy), (char *)(data), (len)) | ||
| 646 | #define _XRead32(dpy, data, len) _XRead((dpy), (char *)(data), (len)) | ||
| 647 | #endif | ||
| 648 | #endif /* not WORD64 */ | ||
| 649 | |||
| 650 | #define PackData16(dpy,data,len) Data16 (dpy, data, len) | ||
| 651 | #define PackData32(dpy,data,len) Data32 (dpy, data, len) | ||
| 652 | |||
| 653 | /* Xlib manual is bogus */ | ||
| 654 | #define PackData(dpy,data,len) PackData16 (dpy, data, len) | ||
| 655 | |||
| 656 | #define min(a,b) (((a) < (b)) ? (a) : (b)) | ||
| 657 | #define max(a,b) (((a) > (b)) ? (a) : (b)) | ||
| 658 | |||
| 659 | #define CI_NONEXISTCHAR(cs) (((cs)->width == 0) && \ | ||
| 660 | (((cs)->rbearing|(cs)->lbearing| \ | ||
| 661 | (cs)->ascent|(cs)->descent) == 0)) | ||
| 662 | |||
| 663 | /* | ||
| 664 | * CI_GET_CHAR_INFO_1D - return the charinfo struct for the indicated 8bit | ||
| 665 | * character. If the character is in the column and exists, then return the | ||
| 666 | * appropriate metrics (note that fonts with common per-character metrics will | ||
| 667 | * return min_bounds). If none of these hold true, try again with the default | ||
| 668 | * char. | ||
| 669 | */ | ||
| 670 | #define CI_GET_CHAR_INFO_1D(fs,col,def,cs) \ | ||
| 671 | { \ | ||
| 672 | cs = def; \ | ||
| 673 | if (col >= fs->min_char_or_byte2 && col <= fs->max_char_or_byte2) { \ | ||
| 674 | if (fs->per_char == NULL) { \ | ||
| 675 | cs = &fs->min_bounds; \ | ||
| 676 | } else { \ | ||
| 677 | cs = &fs->per_char[(col - fs->min_char_or_byte2)]; \ | ||
| 678 | if (CI_NONEXISTCHAR(cs)) cs = def; \ | ||
| 679 | } \ | ||
| 680 | } \ | ||
| 681 | } | ||
| 682 | |||
| 683 | #define CI_GET_DEFAULT_INFO_1D(fs,cs) \ | ||
| 684 | CI_GET_CHAR_INFO_1D (fs, fs->default_char, NULL, cs) | ||
| 685 | |||
| 686 | |||
| 687 | |||
| 688 | /* | ||
| 689 | * CI_GET_CHAR_INFO_2D - return the charinfo struct for the indicated row and | ||
| 690 | * column. This is used for fonts that have more than row zero. | ||
| 691 | */ | ||
| 692 | #define CI_GET_CHAR_INFO_2D(fs,row,col,def,cs) \ | ||
| 693 | { \ | ||
| 694 | cs = def; \ | ||
| 695 | if (row >= fs->min_byte1 && row <= fs->max_byte1 && \ | ||
| 696 | col >= fs->min_char_or_byte2 && col <= fs->max_char_or_byte2) { \ | ||
| 697 | if (fs->per_char == NULL) { \ | ||
| 698 | cs = &fs->min_bounds; \ | ||
| 699 | } else { \ | ||
| 700 | cs = &fs->per_char[((row - fs->min_byte1) * \ | ||
| 701 | (fs->max_char_or_byte2 - \ | ||
| 702 | fs->min_char_or_byte2 + 1)) + \ | ||
| 703 | (col - fs->min_char_or_byte2)]; \ | ||
| 704 | if (CI_NONEXISTCHAR(cs)) cs = def; \ | ||
| 705 | } \ | ||
| 706 | } \ | ||
| 707 | } | ||
| 708 | |||
| 709 | #define CI_GET_DEFAULT_INFO_2D(fs,cs) \ | ||
| 710 | { \ | ||
| 711 | unsigned int r = (fs->default_char >> 8); \ | ||
| 712 | unsigned int c = (fs->default_char & 0xff); \ | ||
| 713 | CI_GET_CHAR_INFO_2D (fs, r, c, NULL, cs); \ | ||
| 714 | } | ||
| 715 | |||
| 716 | |||
| 717 | #ifdef MUSTCOPY | ||
| 718 | |||
| 719 | /* for when 32-bit alignment is not good enough */ | ||
| 720 | #define OneDataCard32(dpy,dstaddr,srcvar) \ | ||
| 721 | { dpy->bufptr -= 4; Data32 (dpy, (char *) &(srcvar), 4); } | ||
| 722 | |||
| 723 | #else | ||
| 724 | |||
| 725 | /* srcvar must be a variable for large architecture version */ | ||
| 726 | #define OneDataCard32(dpy,dstaddr,srcvar) \ | ||
| 727 | { *(CARD32 *)(dstaddr) = (srcvar); } | ||
| 728 | |||
| 729 | #endif /* MUSTCOPY */ | ||
| 730 | |||
| 731 | typedef struct _XInternalAsync { | ||
| 732 | struct _XInternalAsync *next; | ||
| 733 | /* | ||
| 734 | * handler arguments: | ||
| 735 | * rep is the generic reply that caused this handler | ||
| 736 | * to be invoked. It must also be passed to _XGetAsyncReply. | ||
| 737 | * buf and len are opaque values that must be passed to | ||
| 738 | * _XGetAsyncReply or _XGetAsyncData. | ||
| 739 | * data is the closure stored in this struct. | ||
| 740 | * The handler returns True iff it handled this reply. | ||
| 741 | */ | ||
| 742 | Bool (*handler)( | ||
| 743 | Display* /* dpy */, | ||
| 744 | xReply* /* rep */, | ||
| 745 | char* /* buf */, | ||
| 746 | int /* len */, | ||
| 747 | XPointer /* data */ | ||
| 748 | ); | ||
| 749 | XPointer data; | ||
| 750 | } _XAsyncHandler; | ||
| 751 | |||
| 752 | typedef struct _XAsyncEState { | ||
| 753 | unsigned long min_sequence_number; | ||
| 754 | unsigned long max_sequence_number; | ||
| 755 | unsigned char error_code; | ||
| 756 | unsigned char major_opcode; | ||
| 757 | unsigned short minor_opcode; | ||
| 758 | unsigned char last_error_received; | ||
| 759 | int error_count; | ||
| 760 | } _XAsyncErrorState; | ||
| 761 | |||
| 762 | extern void _XDeqAsyncHandler(Display *dpy, _XAsyncHandler *handler); | ||
| 763 | #define DeqAsyncHandler(dpy,handler) { \ | ||
| 764 | if (dpy->async_handlers == (handler)) \ | ||
| 765 | dpy->async_handlers = (handler)->next; \ | ||
| 766 | else \ | ||
| 767 | _XDeqAsyncHandler(dpy, handler); \ | ||
| 768 | } | ||
| 769 | |||
| 770 | typedef void (*FreeFuncType) ( | ||
| 771 | Display* /* display */ | ||
| 772 | ); | ||
| 773 | |||
| 774 | typedef int (*FreeModmapType) ( | ||
| 775 | XModifierKeymap* /* modmap */ | ||
| 776 | ); | ||
| 777 | |||
| 778 | /* | ||
| 779 | * This structure is private to the library. | ||
| 780 | */ | ||
| 781 | typedef struct _XFreeFuncs { | ||
| 782 | FreeFuncType atoms; /* _XFreeAtomTable */ | ||
| 783 | FreeModmapType modifiermap; /* XFreeModifierMap */ | ||
| 784 | FreeFuncType key_bindings; /* _XFreeKeyBindings */ | ||
| 785 | FreeFuncType context_db; /* _XFreeContextDB */ | ||
| 786 | FreeFuncType defaultCCCs; /* _XcmsFreeDefaultCCCs */ | ||
| 787 | FreeFuncType clientCmaps; /* _XcmsFreeClientCmaps */ | ||
| 788 | FreeFuncType intensityMaps; /* _XcmsFreeIntensityMaps */ | ||
| 789 | FreeFuncType im_filters; /* _XFreeIMFilters */ | ||
| 790 | FreeFuncType xkb; /* _XkbFreeInfo */ | ||
| 791 | } _XFreeFuncRec; | ||
| 792 | |||
| 793 | /* types for InitExt.c */ | ||
| 794 | typedef int (*CreateGCType) ( | ||
| 795 | Display* /* display */, | ||
| 796 | GC /* gc */, | ||
| 797 | XExtCodes* /* codes */ | ||
| 798 | ); | ||
| 799 | |||
| 800 | typedef int (*CopyGCType)( | ||
| 801 | Display* /* display */, | ||
| 802 | GC /* gc */, | ||
| 803 | XExtCodes* /* codes */ | ||
| 804 | ); | ||
| 805 | |||
| 806 | typedef int (*FlushGCType) ( | ||
| 807 | Display* /* display */, | ||
| 808 | GC /* gc */, | ||
| 809 | XExtCodes* /* codes */ | ||
| 810 | ); | ||
| 811 | |||
| 812 | typedef int (*FreeGCType) ( | ||
| 813 | Display* /* display */, | ||
| 814 | GC /* gc */, | ||
| 815 | XExtCodes* /* codes */ | ||
| 816 | ); | ||
| 817 | |||
| 818 | typedef int (*CreateFontType) ( | ||
| 819 | Display* /* display */, | ||
| 820 | XFontStruct* /* fs */, | ||
| 821 | XExtCodes* /* codes */ | ||
| 822 | ); | ||
| 823 | |||
| 824 | typedef int (*FreeFontType) ( | ||
| 825 | Display* /* display */, | ||
| 826 | XFontStruct* /* fs */, | ||
| 827 | XExtCodes* /* codes */ | ||
| 828 | ); | ||
| 829 | |||
| 830 | typedef int (*CloseDisplayType) ( | ||
| 831 | Display* /* display */, | ||
| 832 | XExtCodes* /* codes */ | ||
| 833 | ); | ||
| 834 | |||
| 835 | typedef int (*ErrorType) ( | ||
| 836 | Display* /* display */, | ||
| 837 | xError* /* err */, | ||
| 838 | XExtCodes* /* codes */, | ||
| 839 | int* /* ret_code */ | ||
| 840 | ); | ||
| 841 | |||
| 842 | typedef char* (*ErrorStringType) ( | ||
| 843 | Display* /* display */, | ||
| 844 | int /* code */, | ||
| 845 | XExtCodes* /* codes */, | ||
| 846 | char* /* buffer */, | ||
| 847 | int /* nbytes */ | ||
| 848 | ); | ||
| 849 | |||
| 850 | typedef void (*PrintErrorType)( | ||
| 851 | Display* /* display */, | ||
| 852 | XErrorEvent* /* ev */, | ||
| 853 | void* /* fp */ | ||
| 854 | ); | ||
| 855 | |||
| 856 | typedef void (*BeforeFlushType)( | ||
| 857 | Display* /* display */, | ||
| 858 | XExtCodes* /* codes */, | ||
| 859 | _Xconst char* /* data */, | ||
| 860 | long /* len */ | ||
| 861 | ); | ||
| 862 | |||
| 863 | /* | ||
| 864 | * This structure is private to the library. | ||
| 865 | */ | ||
| 866 | typedef struct _XExten { /* private to extension mechanism */ | ||
| 867 | struct _XExten *next; /* next in list */ | ||
| 868 | XExtCodes codes; /* public information, all extension told */ | ||
| 869 | CreateGCType create_GC; /* routine to call when GC created */ | ||
| 870 | CopyGCType copy_GC; /* routine to call when GC copied */ | ||
| 871 | FlushGCType flush_GC; /* routine to call when GC flushed */ | ||
| 872 | FreeGCType free_GC; /* routine to call when GC freed */ | ||
| 873 | CreateFontType create_Font; /* routine to call when Font created */ | ||
| 874 | FreeFontType free_Font; /* routine to call when Font freed */ | ||
| 875 | CloseDisplayType close_display; /* routine to call when connection closed */ | ||
| 876 | ErrorType error; /* who to call when an error occurs */ | ||
| 877 | ErrorStringType error_string; /* routine to supply error string */ | ||
| 878 | char *name; /* name of this extension */ | ||
| 879 | PrintErrorType error_values; /* routine to supply error values */ | ||
| 880 | BeforeFlushType before_flush; /* routine to call when sending data */ | ||
| 881 | struct _XExten *next_flush; /* next in list of those with flushes */ | ||
| 882 | } _XExtension; | ||
| 883 | |||
| 884 | /* extension hooks */ | ||
| 885 | |||
| 886 | #ifdef DataRoutineIsProcedure | ||
| 887 | extern void Data(Display *dpy, char *data, long len); | ||
| 888 | #endif | ||
| 889 | extern int _XError( | ||
| 890 | Display* /* dpy */, | ||
| 891 | xError* /* rep */ | ||
| 892 | ); | ||
| 893 | extern int _XIOError( | ||
| 894 | Display* /* dpy */ | ||
| 895 | ); | ||
| 896 | extern int (*_XIOErrorFunction)( | ||
| 897 | Display* /* dpy */ | ||
| 898 | ); | ||
| 899 | extern int (*_XErrorFunction)( | ||
| 900 | Display* /* dpy */, | ||
| 901 | XErrorEvent* /* error_event */ | ||
| 902 | ); | ||
| 903 | extern void _XEatData( | ||
| 904 | Display* /* dpy */, | ||
| 905 | unsigned long /* n */ | ||
| 906 | ); | ||
| 907 | extern char *_XAllocScratch( | ||
| 908 | Display* /* dpy */, | ||
| 909 | unsigned long /* nbytes */ | ||
| 910 | ); | ||
| 911 | extern char *_XAllocTemp( | ||
| 912 | Display* /* dpy */, | ||
| 913 | unsigned long /* nbytes */ | ||
| 914 | ); | ||
| 915 | extern void _XFreeTemp( | ||
| 916 | Display* /* dpy */, | ||
| 917 | char* /* buf */, | ||
| 918 | unsigned long /* nbytes */ | ||
| 919 | ); | ||
| 920 | extern Visual *_XVIDtoVisual( | ||
| 921 | Display* /* dpy */, | ||
| 922 | VisualID /* id */ | ||
| 923 | ); | ||
| 924 | extern unsigned long _XSetLastRequestRead( | ||
| 925 | Display* /* dpy */, | ||
| 926 | xGenericReply* /* rep */ | ||
| 927 | ); | ||
| 928 | extern int _XGetHostname( | ||
| 929 | char* /* buf */, | ||
| 930 | int /* maxlen */ | ||
| 931 | ); | ||
| 932 | extern Screen *_XScreenOfWindow( | ||
| 933 | Display* /* dpy */, | ||
| 934 | Window /* w */ | ||
| 935 | ); | ||
| 936 | extern Bool _XAsyncErrorHandler( | ||
| 937 | Display* /* dpy */, | ||
| 938 | xReply* /* rep */, | ||
| 939 | char* /* buf */, | ||
| 940 | int /* len */, | ||
| 941 | XPointer /* data */ | ||
| 942 | ); | ||
| 943 | extern char *_XGetAsyncReply( | ||
| 944 | Display* /* dpy */, | ||
| 945 | char* /* replbuf */, | ||
| 946 | xReply* /* rep */, | ||
| 947 | char* /* buf */, | ||
| 948 | int /* len */, | ||
| 949 | int /* extra */, | ||
| 950 | Bool /* discard */ | ||
| 951 | ); | ||
| 952 | extern void _XGetAsyncData( | ||
| 953 | Display* /* dpy */, | ||
| 954 | char * /* data */, | ||
| 955 | char * /* buf */, | ||
| 956 | int /* len */, | ||
| 957 | int /* skip */, | ||
| 958 | int /* datalen */, | ||
| 959 | int /* discardtotal */ | ||
| 960 | ); | ||
| 961 | extern void _XFlush( | ||
| 962 | Display* /* dpy */ | ||
| 963 | ); | ||
| 964 | extern int _XEventsQueued( | ||
| 965 | Display* /* dpy */, | ||
| 966 | int /* mode */ | ||
| 967 | ); | ||
| 968 | extern void _XReadEvents( | ||
| 969 | Display* /* dpy */ | ||
| 970 | ); | ||
| 971 | extern int _XRead( | ||
| 972 | Display* /* dpy */, | ||
| 973 | char* /* data */, | ||
| 974 | long /* size */ | ||
| 975 | ); | ||
| 976 | extern void _XReadPad( | ||
| 977 | Display* /* dpy */, | ||
| 978 | char* /* data */, | ||
| 979 | long /* size */ | ||
| 980 | ); | ||
| 981 | extern void _XSend( | ||
| 982 | Display* /* dpy */, | ||
| 983 | _Xconst char* /* data */, | ||
| 984 | long /* size */ | ||
| 985 | ); | ||
| 986 | extern Status _XReply( | ||
| 987 | Display* /* dpy */, | ||
| 988 | xReply* /* rep */, | ||
| 989 | int /* extra */, | ||
| 990 | Bool /* discard */ | ||
| 991 | ); | ||
| 992 | extern void _XEnq( | ||
| 993 | Display* /* dpy */, | ||
| 994 | xEvent* /* event */ | ||
| 995 | ); | ||
| 996 | extern void _XDeq( | ||
| 997 | Display* /* dpy */, | ||
| 998 | _XQEvent* /* prev */, | ||
| 999 | _XQEvent* /* qelt */ | ||
| 1000 | ); | ||
| 1001 | |||
| 1002 | extern Bool _XUnknownWireEvent( | ||
| 1003 | Display* /* dpy */, | ||
| 1004 | XEvent* /* re */, | ||
| 1005 | xEvent* /* event */ | ||
| 1006 | ); | ||
| 1007 | extern Status _XUnknownNativeEvent( | ||
| 1008 | Display* /* dpy */, | ||
| 1009 | XEvent* /* re */, | ||
| 1010 | xEvent* /* event */ | ||
| 1011 | ); | ||
| 1012 | |||
| 1013 | extern Bool _XWireToEvent(Display *dpy, XEvent *re, xEvent *event); | ||
| 1014 | extern Bool _XDefaultWireError(Display *display, XErrorEvent *he, xError *we); | ||
| 1015 | extern Bool _XPollfdCacheInit(Display *dpy); | ||
| 1016 | extern void _XPollfdCacheAdd(Display *dpy, int fd); | ||
| 1017 | extern void _XPollfdCacheDel(Display *dpy, int fd); | ||
| 1018 | extern XID _XAllocID(Display *dpy); | ||
| 1019 | extern void _XAllocIDs(Display *dpy, XID *ids, int count); | ||
| 1020 | |||
| 1021 | extern int _XFreeExtData( | ||
| 1022 | XExtData* /* extension */ | ||
| 1023 | ); | ||
| 1024 | |||
| 1025 | extern int (*XESetCreateGC( | ||
| 1026 | Display* /* display */, | ||
| 1027 | int /* extension */, | ||
| 1028 | int (*) ( | ||
| 1029 | Display* /* display */, | ||
| 1030 | GC /* gc */, | ||
| 1031 | XExtCodes* /* codes */ | ||
| 1032 | ) /* proc */ | ||
| 1033 | ))( | ||
| 1034 | Display*, GC, XExtCodes* | ||
| 1035 | ); | ||
| 1036 | |||
| 1037 | extern int (*XESetCopyGC( | ||
| 1038 | Display* /* display */, | ||
| 1039 | int /* extension */, | ||
| 1040 | int (*) ( | ||
| 1041 | Display* /* display */, | ||
| 1042 | GC /* gc */, | ||
| 1043 | XExtCodes* /* codes */ | ||
| 1044 | ) /* proc */ | ||
| 1045 | ))( | ||
| 1046 | Display*, GC, XExtCodes* | ||
| 1047 | ); | ||
| 1048 | |||
| 1049 | extern int (*XESetFlushGC( | ||
| 1050 | Display* /* display */, | ||
| 1051 | int /* extension */, | ||
| 1052 | int (*) ( | ||
| 1053 | Display* /* display */, | ||
| 1054 | GC /* gc */, | ||
| 1055 | XExtCodes* /* codes */ | ||
| 1056 | ) /* proc */ | ||
| 1057 | ))( | ||
| 1058 | Display*, GC, XExtCodes* | ||
| 1059 | ); | ||
| 1060 | |||
| 1061 | extern int (*XESetFreeGC( | ||
| 1062 | Display* /* display */, | ||
| 1063 | int /* extension */, | ||
| 1064 | int (*) ( | ||
| 1065 | Display* /* display */, | ||
| 1066 | GC /* gc */, | ||
| 1067 | XExtCodes* /* codes */ | ||
| 1068 | ) /* proc */ | ||
| 1069 | ))( | ||
| 1070 | Display*, GC, XExtCodes* | ||
| 1071 | ); | ||
| 1072 | |||
| 1073 | extern int (*XESetCreateFont( | ||
| 1074 | Display* /* display */, | ||
| 1075 | int /* extension */, | ||
| 1076 | int (*) ( | ||
| 1077 | Display* /* display */, | ||
| 1078 | XFontStruct* /* fs */, | ||
| 1079 | XExtCodes* /* codes */ | ||
| 1080 | ) /* proc */ | ||
| 1081 | ))( | ||
| 1082 | Display*, XFontStruct*, XExtCodes* | ||
| 1083 | ); | ||
| 1084 | |||
| 1085 | extern int (*XESetFreeFont( | ||
| 1086 | Display* /* display */, | ||
| 1087 | int /* extension */, | ||
| 1088 | int (*) ( | ||
| 1089 | Display* /* display */, | ||
| 1090 | XFontStruct* /* fs */, | ||
| 1091 | XExtCodes* /* codes */ | ||
| 1092 | ) /* proc */ | ||
| 1093 | ))( | ||
| 1094 | Display*, XFontStruct*, XExtCodes* | ||
| 1095 | ); | ||
| 1096 | |||
| 1097 | extern int (*XESetCloseDisplay( | ||
| 1098 | Display* /* display */, | ||
| 1099 | int /* extension */, | ||
| 1100 | int (*) ( | ||
| 1101 | Display* /* display */, | ||
| 1102 | XExtCodes* /* codes */ | ||
| 1103 | ) /* proc */ | ||
| 1104 | ))( | ||
| 1105 | Display*, XExtCodes* | ||
| 1106 | ); | ||
| 1107 | |||
| 1108 | extern int (*XESetError( | ||
| 1109 | Display* /* display */, | ||
| 1110 | int /* extension */, | ||
| 1111 | int (*) ( | ||
| 1112 | Display* /* display */, | ||
| 1113 | xError* /* err */, | ||
| 1114 | XExtCodes* /* codes */, | ||
| 1115 | int* /* ret_code */ | ||
| 1116 | ) /* proc */ | ||
| 1117 | ))( | ||
| 1118 | Display*, xError*, XExtCodes*, int* | ||
| 1119 | ); | ||
| 1120 | |||
| 1121 | extern char* (*XESetErrorString( | ||
| 1122 | Display* /* display */, | ||
| 1123 | int /* extension */, | ||
| 1124 | char* (*) ( | ||
| 1125 | Display* /* display */, | ||
| 1126 | int /* code */, | ||
| 1127 | XExtCodes* /* codes */, | ||
| 1128 | char* /* buffer */, | ||
| 1129 | int /* nbytes */ | ||
| 1130 | ) /* proc */ | ||
| 1131 | ))( | ||
| 1132 | Display*, int, XExtCodes*, char*, int | ||
| 1133 | ); | ||
| 1134 | |||
| 1135 | extern void (*XESetPrintErrorValues ( | ||
| 1136 | Display* /* display */, | ||
| 1137 | int /* extension */, | ||
| 1138 | void (*)( | ||
| 1139 | Display* /* display */, | ||
| 1140 | XErrorEvent* /* ev */, | ||
| 1141 | void* /* fp */ | ||
| 1142 | ) /* proc */ | ||
| 1143 | ))( | ||
| 1144 | Display*, XErrorEvent*, void* | ||
| 1145 | ); | ||
| 1146 | |||
| 1147 | extern Bool (*XESetWireToEvent( | ||
| 1148 | Display* /* display */, | ||
| 1149 | int /* event_number */, | ||
| 1150 | Bool (*) ( | ||
| 1151 | Display* /* display */, | ||
| 1152 | XEvent* /* re */, | ||
| 1153 | xEvent* /* event */ | ||
| 1154 | ) /* proc */ | ||
| 1155 | ))( | ||
| 1156 | Display*, XEvent*, xEvent* | ||
| 1157 | ); | ||
| 1158 | |||
| 1159 | extern Status (*XESetEventToWire( | ||
| 1160 | Display* /* display */, | ||
| 1161 | int /* event_number */, | ||
| 1162 | Status (*) ( | ||
| 1163 | Display* /* display */, | ||
| 1164 | XEvent* /* re */, | ||
| 1165 | xEvent* /* event */ | ||
| 1166 | ) /* proc */ | ||
| 1167 | ))( | ||
| 1168 | Display*, XEvent*, xEvent* | ||
| 1169 | ); | ||
| 1170 | |||
| 1171 | extern Bool (*XESetWireToError( | ||
| 1172 | Display* /* display */, | ||
| 1173 | int /* error_number */, | ||
| 1174 | Bool (*) ( | ||
| 1175 | Display* /* display */, | ||
| 1176 | XErrorEvent* /* he */, | ||
| 1177 | xError* /* we */ | ||
| 1178 | ) /* proc */ | ||
| 1179 | ))( | ||
| 1180 | Display*, XErrorEvent*, xError* | ||
| 1181 | ); | ||
| 1182 | |||
| 1183 | extern void (*XESetBeforeFlush( | ||
| 1184 | Display* /* display */, | ||
| 1185 | int /* error_number */, | ||
| 1186 | void (*) ( | ||
| 1187 | Display* /* display */, | ||
| 1188 | XExtCodes* /* codes */, | ||
| 1189 | _Xconst char* /* data */, | ||
| 1190 | long /* len */ | ||
| 1191 | ) /* proc */ | ||
| 1192 | ))( | ||
| 1193 | Display*, XExtCodes*, _Xconst char*, long | ||
| 1194 | ); | ||
| 1195 | |||
| 1196 | /* internal connections for IMs */ | ||
| 1197 | |||
| 1198 | typedef void (*_XInternalConnectionProc)( | ||
| 1199 | Display* /* dpy */, | ||
| 1200 | int /* fd */, | ||
| 1201 | XPointer /* call_data */ | ||
| 1202 | ); | ||
| 1203 | |||
| 1204 | |||
| 1205 | extern Status _XRegisterInternalConnection( | ||
| 1206 | Display* /* dpy */, | ||
| 1207 | int /* fd */, | ||
| 1208 | _XInternalConnectionProc /* callback */, | ||
| 1209 | XPointer /* call_data */ | ||
| 1210 | ); | ||
| 1211 | |||
| 1212 | extern void _XUnregisterInternalConnection( | ||
| 1213 | Display* /* dpy */, | ||
| 1214 | int /* fd */ | ||
| 1215 | ); | ||
| 1216 | |||
| 1217 | /* Display structure has pointers to these */ | ||
| 1218 | |||
| 1219 | struct _XConnectionInfo { /* info from _XRegisterInternalConnection */ | ||
| 1220 | int fd; | ||
| 1221 | _XInternalConnectionProc read_callback; | ||
| 1222 | XPointer call_data; | ||
| 1223 | XPointer *watch_data; /* set/used by XConnectionWatchProc */ | ||
| 1224 | struct _XConnectionInfo *next; | ||
| 1225 | }; | ||
| 1226 | |||
| 1227 | struct _XConnWatchInfo { /* info from XAddConnectionWatch */ | ||
| 1228 | XConnectionWatchProc fn; | ||
| 1229 | XPointer client_data; | ||
| 1230 | struct _XConnWatchInfo *next; | ||
| 1231 | }; | ||
| 1232 | |||
| 1233 | #ifdef __UNIXOS2__ | ||
| 1234 | extern char* __XOS2RedirRoot( | ||
| 1235 | char* | ||
| 1236 | ); | ||
| 1237 | #endif | ||
| 1238 | |||
| 1239 | extern int _XTextHeight( | ||
| 1240 | XFontStruct* /* font_struct */, | ||
| 1241 | _Xconst char* /* string */, | ||
| 1242 | int /* count */ | ||
| 1243 | ); | ||
| 1244 | |||
| 1245 | extern int _XTextHeight16( | ||
| 1246 | XFontStruct* /* font_struct */, | ||
| 1247 | _Xconst XChar2b* /* string */, | ||
| 1248 | int /* count */ | ||
| 1249 | ); | ||
| 1250 | |||
| 1251 | #if defined(WIN32) | ||
| 1252 | |||
| 1253 | extern int _XOpenFile( | ||
| 1254 | _Xconst char* /* path */, | ||
| 1255 | int /* flags */ | ||
| 1256 | ); | ||
| 1257 | |||
| 1258 | extern int _XOpenFileMode( | ||
| 1259 | _Xconst char* /* path */, | ||
| 1260 | int /* flags */, | ||
| 1261 | mode_t /* mode */ | ||
| 1262 | ); | ||
| 1263 | |||
| 1264 | extern void* _XFopenFile( | ||
| 1265 | _Xconst char* /* path */, | ||
| 1266 | _Xconst char* /* mode */ | ||
| 1267 | ); | ||
| 1268 | |||
| 1269 | extern int _XAccessFile( | ||
| 1270 | _Xconst char* /* path */ | ||
| 1271 | ); | ||
| 1272 | #else | ||
| 1273 | #define _XOpenFile(path,flags) open(path,flags) | ||
| 1274 | #define _XOpenFileMode(path,flags,mode) open(path,flags,mode) | ||
| 1275 | #define _XFopenFile(path,mode) fopen(path,mode) | ||
| 1276 | #endif | ||
| 1277 | |||
| 1278 | /* EvToWire.c */ | ||
| 1279 | extern Status _XEventToWire(Display *dpy, XEvent *re, xEvent *event); | ||
| 1280 | |||
| 1281 | extern int _XF86LoadQueryLocaleFont( | ||
| 1282 | Display* /* dpy */, | ||
| 1283 | _Xconst char* /* name*/, | ||
| 1284 | XFontStruct** /* xfp*/, | ||
| 1285 | Font* /* fidp */ | ||
| 1286 | ); | ||
| 1287 | |||
| 1288 | extern void _XProcessWindowAttributes ( | ||
| 1289 | register Display *dpy, | ||
| 1290 | xChangeWindowAttributesReq *req, | ||
| 1291 | register unsigned long valuemask, | ||
| 1292 | register XSetWindowAttributes *attributes); | ||
| 1293 | |||
| 1294 | extern int _XDefaultError( | ||
| 1295 | Display *dpy, | ||
| 1296 | XErrorEvent *event); | ||
| 1297 | |||
| 1298 | extern int _XDefaultIOError( | ||
| 1299 | Display *dpy); | ||
| 1300 | |||
| 1301 | extern void _XSetClipRectangles ( | ||
| 1302 | register Display *dpy, | ||
| 1303 | GC gc, | ||
| 1304 | int clip_x_origin, int clip_y_origin, | ||
| 1305 | XRectangle *rectangles, | ||
| 1306 | int n, | ||
| 1307 | int ordering); | ||
| 1308 | |||
| 1309 | Status _XGetWindowAttributes( | ||
| 1310 | register Display *dpy, | ||
| 1311 | Window w, | ||
| 1312 | XWindowAttributes *attr); | ||
| 1313 | |||
| 1314 | int _XPutBackEvent ( | ||
| 1315 | register Display *dpy, | ||
| 1316 | register XEvent *event); | ||
| 1317 | |||
| 1318 | _XFUNCPROTOEND | ||
| 1319 | |||
| 1320 | #endif /* _XLIBINT_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xlocale.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlocale.h new file mode 100644 index 0000000000..61d2f7a846 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xlocale.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* $Xorg: Xlocale.h,v 1.4 2001/02/09 02:03:38 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1991, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 21 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization | ||
| 26 | from The Open Group. | ||
| 27 | |||
| 28 | */ | ||
| 29 | /* $XFree86: xc/lib/X11/Xlocale.h,v 1.4 2001/12/14 19:54:09 dawes Exp $ */ | ||
| 30 | |||
| 31 | #ifndef _XLOCALE_H_ | ||
| 32 | #define _XLOCALE_H_ | ||
| 33 | |||
| 34 | #include <X11/Xfuncproto.h> | ||
| 35 | #include <X11/Xosdefs.h> | ||
| 36 | |||
| 37 | #ifndef X_LOCALE | ||
| 38 | #include <locale.h> | ||
| 39 | #else | ||
| 40 | |||
| 41 | #define LC_ALL 0 | ||
| 42 | #define LC_COLLATE 1 | ||
| 43 | #define LC_CTYPE 2 | ||
| 44 | #define LC_MONETARY 3 | ||
| 45 | #define LC_NUMERIC 4 | ||
| 46 | #define LC_TIME 5 | ||
| 47 | |||
| 48 | _XFUNCPROTOBEGIN | ||
| 49 | extern char *_Xsetlocale( | ||
| 50 | int /* category */, | ||
| 51 | _Xconst char* /* name */ | ||
| 52 | ); | ||
| 53 | _XFUNCPROTOEND | ||
| 54 | |||
| 55 | #define setlocale _Xsetlocale | ||
| 56 | |||
| 57 | #include <stddef.h> | ||
| 58 | |||
| 59 | #endif /* X_LOCALE */ | ||
| 60 | |||
| 61 | #endif /* _XLOCALE_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xmd.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xmd.h new file mode 100644 index 0000000000..06fd2bf300 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xmd.h | |||
| @@ -0,0 +1,208 @@ | |||
| 1 | /* $XdotOrg: proto/X11/Xmd.h,v 1.4 2006/04/20 01:24:25 alanc Exp $ */ | ||
| 2 | /* $XFree86: xc/include/Xmd.h,v 3.18tsi Exp $ */ | ||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | #ifndef XMD_H | ||
| 50 | #define XMD_H 1 | ||
| 51 | /* $Xorg: Xmd.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 52 | /* | ||
| 53 | * Xmd.h: MACHINE DEPENDENT DECLARATIONS. | ||
| 54 | */ | ||
| 55 | |||
| 56 | /* | ||
| 57 | * Special per-machine configuration flags. | ||
| 58 | */ | ||
| 59 | #if defined(sun) && defined(__SVR4) | ||
| 60 | # include <sys/isa_defs.h> /* Solaris: defines _LP64 if necessary */ | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #ifdef CRAY | ||
| 64 | #define WORD64 /* 64-bit architecture */ | ||
| 65 | #endif | ||
| 66 | #if defined (_LP64) || \ | ||
| 67 | defined(__alpha) || defined(__alpha__) || \ | ||
| 68 | defined(__ia64__) || defined(ia64) || \ | ||
| 69 | defined(__sparc64__) || \ | ||
| 70 | defined(__s390x__) || \ | ||
| 71 | (defined(__hppa__) && defined(__LP64__)) || \ | ||
| 72 | defined(__amd64__) || defined(amd64) || \ | ||
| 73 | defined(__powerpc64__) || \ | ||
| 74 | (defined(sgi) && (_MIPS_SZLONG == 64)) | ||
| 75 | #define LONG64 /* 32/64-bit architecture */ | ||
| 76 | #endif | ||
| 77 | |||
| 78 | /* | ||
| 79 | * Stuff to handle large architecture machines; the constants were generated | ||
| 80 | * on a 32-bit machine and must correspond to the protocol. | ||
| 81 | */ | ||
| 82 | #ifdef WORD64 | ||
| 83 | #define MUSTCOPY | ||
| 84 | #endif /* WORD64 */ | ||
| 85 | |||
| 86 | |||
| 87 | /* | ||
| 88 | * Definition of macro used to set constants for size of network structures; | ||
| 89 | * machines with preprocessors that can't handle all of the sz_ symbols | ||
| 90 | * can define this macro to be sizeof(x) if and only if their compiler doesn't | ||
| 91 | * pad out structures (esp. the xTextElt structure which contains only two | ||
| 92 | * one-byte fields). Network structures should always define sz_symbols. | ||
| 93 | * | ||
| 94 | * The sz_ prefix is used instead of something more descriptive so that the | ||
| 95 | * symbols are no more than 32 characters long (which causes problems for some | ||
| 96 | * compilers and preprocessors). | ||
| 97 | * | ||
| 98 | * The extra indirection in the __STDC__ case is to get macro arguments to | ||
| 99 | * expand correctly before the concatenation, rather than afterward. | ||
| 100 | */ | ||
| 101 | #if ((defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)) && !defined(UNIXCPP)) || defined(ANSICPP) | ||
| 102 | #define _SIZEOF(x) sz_##x | ||
| 103 | #define SIZEOF(x) _SIZEOF(x) | ||
| 104 | #else | ||
| 105 | #define SIZEOF(x) sz_/**/x | ||
| 106 | #endif /* if ANSI C compiler else not */ | ||
| 107 | |||
| 108 | /* | ||
| 109 | * Bitfield suffixes for the protocol structure elements, if you | ||
| 110 | * need them. Note that bitfields are not guaranteed to be signed | ||
| 111 | * (or even unsigned) according to ANSI C. | ||
| 112 | */ | ||
| 113 | #ifdef WORD64 | ||
| 114 | typedef long INT64; | ||
| 115 | typedef unsigned long CARD64; | ||
| 116 | #define B32 :32 | ||
| 117 | #define B16 :16 | ||
| 118 | #ifdef UNSIGNEDBITFIELDS | ||
| 119 | typedef unsigned int INT32; | ||
| 120 | typedef unsigned int INT16; | ||
| 121 | #else | ||
| 122 | #ifdef __STDC__ | ||
| 123 | typedef signed int INT32; | ||
| 124 | typedef signed int INT16; | ||
| 125 | #else | ||
| 126 | typedef int INT32; | ||
| 127 | typedef int INT16; | ||
| 128 | #endif | ||
| 129 | #endif | ||
| 130 | #else | ||
| 131 | #define B32 | ||
| 132 | #define B16 | ||
| 133 | #ifdef LONG64 | ||
| 134 | typedef long INT64; | ||
| 135 | typedef int INT32; | ||
| 136 | #else | ||
| 137 | typedef long INT32; | ||
| 138 | #endif | ||
| 139 | typedef short INT16; | ||
| 140 | #endif | ||
| 141 | |||
| 142 | #if defined(__STDC__) || defined(sgi) || defined(AIXV3) | ||
| 143 | typedef signed char INT8; | ||
| 144 | #else | ||
| 145 | typedef char INT8; | ||
| 146 | #endif | ||
| 147 | |||
| 148 | #ifdef LONG64 | ||
| 149 | typedef unsigned long CARD64; | ||
| 150 | typedef unsigned int CARD32; | ||
| 151 | #else | ||
| 152 | typedef unsigned long CARD32; | ||
| 153 | #endif | ||
| 154 | typedef unsigned short CARD16; | ||
| 155 | typedef unsigned char CARD8; | ||
| 156 | |||
| 157 | typedef CARD32 BITS32; | ||
| 158 | typedef CARD16 BITS16; | ||
| 159 | |||
| 160 | #ifndef I_NEED_OS2_H | ||
| 161 | typedef CARD8 BYTE; | ||
| 162 | typedef CARD8 BOOL; | ||
| 163 | #else | ||
| 164 | #define BYTE CARD8 | ||
| 165 | #define BOOL CARD8 | ||
| 166 | #endif | ||
| 167 | |||
| 168 | /* | ||
| 169 | * definitions for sign-extending bitfields on 64-bit architectures | ||
| 170 | */ | ||
| 171 | #if defined(WORD64) && defined(UNSIGNEDBITFIELDS) | ||
| 172 | #define cvtINT8toInt(val) (((val) & 0x00000080) ? ((val) | 0xffffffffffffff00) : (val)) | ||
| 173 | #define cvtINT16toInt(val) (((val) & 0x00008000) ? ((val) | 0xffffffffffff0000) : (val)) | ||
| 174 | #define cvtINT32toInt(val) (((val) & 0x80000000) ? ((val) | 0xffffffff00000000) : (val)) | ||
| 175 | #define cvtINT8toShort(val) cvtINT8toInt(val) | ||
| 176 | #define cvtINT16toShort(val) cvtINT16toInt(val) | ||
| 177 | #define cvtINT32toShort(val) cvtINT32toInt(val) | ||
| 178 | #define cvtINT8toLong(val) cvtINT8toInt(val) | ||
| 179 | #define cvtINT16toLong(val) cvtINT16toInt(val) | ||
| 180 | #define cvtINT32toLong(val) cvtINT32toInt(val) | ||
| 181 | #else | ||
| 182 | #define cvtINT8toInt(val) (val) | ||
| 183 | #define cvtINT16toInt(val) (val) | ||
| 184 | #define cvtINT32toInt(val) (val) | ||
| 185 | #define cvtINT8toShort(val) (val) | ||
| 186 | #define cvtINT16toShort(val) (val) | ||
| 187 | #define cvtINT32toShort(val) (val) | ||
| 188 | #define cvtINT8toLong(val) (val) | ||
| 189 | #define cvtINT16toLong(val) (val) | ||
| 190 | #define cvtINT32toLong(val) (val) | ||
| 191 | #endif /* WORD64 and UNSIGNEDBITFIELDS */ | ||
| 192 | |||
| 193 | |||
| 194 | |||
| 195 | #ifdef MUSTCOPY | ||
| 196 | /* | ||
| 197 | * This macro must not cast or else pointers will get aligned and be wrong | ||
| 198 | */ | ||
| 199 | #define NEXTPTR(p,t) (((char *) p) + SIZEOF(t)) | ||
| 200 | #else /* else not MUSTCOPY, this is used for 32-bit machines */ | ||
| 201 | /* | ||
| 202 | * this version should leave result of type (t *), but that should only be | ||
| 203 | * used when not in MUSTCOPY | ||
| 204 | */ | ||
| 205 | #define NEXTPTR(p,t) (((t *)(p)) + 1) | ||
| 206 | #endif /* MUSTCOPY - used machines whose C structs don't line up with proto */ | ||
| 207 | |||
| 208 | #endif /* XMD_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xos.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xos.h new file mode 100644 index 0000000000..83be4c638b --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xos.h | |||
| @@ -0,0 +1,296 @@ | |||
| 1 | /* | ||
| 2 | * $XdotOrg: proto/X11/Xos.h,v 1.9 2006/04/20 01:24:25 alanc Exp $ | ||
| 3 | * $Xorg: Xos.h,v 1.6 2001/02/09 02:03:22 xorgcvs Exp $ | ||
| 4 | * | ||
| 5 | * | ||
| 6 | Copyright 1987, 1998 The Open Group | ||
| 7 | |||
| 8 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 9 | documentation for any purpose is hereby granted without fee, provided that | ||
| 10 | the above copyright notice appear in all copies and that both that | ||
| 11 | copyright notice and this permission notice appear in supporting | ||
| 12 | documentation. | ||
| 13 | |||
| 14 | The above copyright notice and this permission notice shall be included in | ||
| 15 | all copies or substantial portions of the Software. | ||
| 16 | |||
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 20 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 21 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 25 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 26 | in this Software without prior written authorization from The Open Group. | ||
| 27 | * | ||
| 28 | * The X Window System is a Trademark of The Open Group. | ||
| 29 | * | ||
| 30 | */ | ||
| 31 | /* $XFree86: xc/include/Xos.h,v 3.41tsi Exp $ */ | ||
| 32 | |||
| 33 | /* This is a collection of things to try and minimize system dependencies | ||
| 34 | * in a "significant" number of source files. | ||
| 35 | */ | ||
| 36 | |||
| 37 | #ifndef _XOS_H_ | ||
| 38 | #define _XOS_H_ | ||
| 39 | |||
| 40 | #include <X11/Xosdefs.h> | ||
| 41 | |||
| 42 | /* | ||
| 43 | * Get major data types (esp. caddr_t) | ||
| 44 | */ | ||
| 45 | |||
| 46 | #ifdef USG | ||
| 47 | #ifndef __TYPES__ | ||
| 48 | #ifdef CRAY | ||
| 49 | #define word word_t | ||
| 50 | #endif /* CRAY */ | ||
| 51 | #include <sys/types.h> /* forgot to protect it... */ | ||
| 52 | #define __TYPES__ | ||
| 53 | #endif /* __TYPES__ */ | ||
| 54 | #else /* USG */ | ||
| 55 | #if defined(_POSIX_SOURCE) && defined(MOTOROLA) | ||
| 56 | #undef _POSIX_SOURCE | ||
| 57 | #include <sys/types.h> | ||
| 58 | #define _POSIX_SOURCE | ||
| 59 | #else | ||
| 60 | # include <sys/types.h> | ||
| 61 | #endif | ||
| 62 | #endif /* USG */ | ||
| 63 | |||
| 64 | #ifndef sgi | ||
| 65 | #if defined(__SCO__) || defined(__UNIXWARE__) | ||
| 66 | #include <stdint.h> | ||
| 67 | #endif | ||
| 68 | #endif | ||
| 69 | |||
| 70 | #ifdef _SEQUENT_ | ||
| 71 | /* | ||
| 72 | * in_systm.h compatibility between SysV and BSD types u_char u_short u_long | ||
| 73 | * select.h for typedef of args to select, fd_set, may use SVR4 later | ||
| 74 | */ | ||
| 75 | #include <netinet/in_systm.h> | ||
| 76 | #include <sys/select.h> | ||
| 77 | #endif /* _SEQUENT_ */ | ||
| 78 | |||
| 79 | /* | ||
| 80 | * Just about everyone needs the strings routines. We provide both forms here, | ||
| 81 | * index/rindex and strchr/strrchr, so any systems that don't provide them all | ||
| 82 | * need to have #defines here. | ||
| 83 | * | ||
| 84 | * These macros are defined this way, rather than, e.g.: | ||
| 85 | * #defined index(s,c) strchr(s,c) | ||
| 86 | * because someone might be using them as function pointers, and such | ||
| 87 | * a change would break compatibility for anyone who's relying on them | ||
| 88 | * being the way they currently are. So we're stuck with them this way, | ||
| 89 | * which can be really inconvenient. :-( | ||
| 90 | */ | ||
| 91 | |||
| 92 | #ifndef X_NOT_STDC_ENV | ||
| 93 | |||
| 94 | #include <string.h> | ||
| 95 | #if defined(__SCO__) || defined(__UNIXWARE__) | ||
| 96 | #include <strings.h> | ||
| 97 | #else | ||
| 98 | #if (defined(sun) && defined(__SVR4)) | ||
| 99 | #include <strings.h> | ||
| 100 | #endif | ||
| 101 | #ifdef __STDC__ | ||
| 102 | #ifndef index | ||
| 103 | #define index(s,c) (strchr((s),(c))) | ||
| 104 | #endif | ||
| 105 | #ifndef rindex | ||
| 106 | #define rindex(s,c) (strrchr((s),(c))) | ||
| 107 | #endif | ||
| 108 | #else | ||
| 109 | #ifndef index | ||
| 110 | #define index strchr | ||
| 111 | #endif | ||
| 112 | #ifndef rindex | ||
| 113 | #define rindex strrchr | ||
| 114 | #endif | ||
| 115 | #endif | ||
| 116 | #endif | ||
| 117 | |||
| 118 | #else | ||
| 119 | |||
| 120 | #ifdef SYSV | ||
| 121 | #if defined(clipper) || defined(__clipper__) | ||
| 122 | #include <malloc.h> | ||
| 123 | #endif | ||
| 124 | #include <string.h> | ||
| 125 | #define index strchr | ||
| 126 | #define rindex strrchr | ||
| 127 | #else | ||
| 128 | #include <strings.h> | ||
| 129 | #define strchr index | ||
| 130 | #define strrchr rindex | ||
| 131 | #endif | ||
| 132 | |||
| 133 | #endif /* X_NOT_STDC_ENV */ | ||
| 134 | |||
| 135 | /* | ||
| 136 | * strerror() | ||
| 137 | */ | ||
| 138 | #if (defined(X_NOT_STDC_ENV) || (defined(sun) && !defined(SVR4)) || defined(macII)) && !defined(__GLIBC__) | ||
| 139 | #ifndef strerror | ||
| 140 | extern char *sys_errlist[]; | ||
| 141 | extern int sys_nerr; | ||
| 142 | #define strerror(n) \ | ||
| 143 | (((n) >= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error") | ||
| 144 | #endif | ||
| 145 | #endif | ||
| 146 | |||
| 147 | /* | ||
| 148 | * Get open(2) constants | ||
| 149 | */ | ||
| 150 | #if defined(X_NOT_POSIX) | ||
| 151 | #include <fcntl.h> | ||
| 152 | #if defined(USL) || defined(CRAY) || defined(MOTOROLA) || (defined(i386) && (defined(SYSV) || defined(SVR4))) || defined(__sxg__) | ||
| 153 | #include <unistd.h> | ||
| 154 | #endif | ||
| 155 | #ifdef WIN32 | ||
| 156 | #include <X11/Xw32defs.h> | ||
| 157 | #else | ||
| 158 | #include <sys/file.h> | ||
| 159 | #endif | ||
| 160 | #else /* X_NOT_POSIX */ | ||
| 161 | #if !defined(_POSIX_SOURCE) && defined(macII) | ||
| 162 | #define _POSIX_SOURCE | ||
| 163 | #include <fcntl.h> | ||
| 164 | #include <unistd.h> | ||
| 165 | #undef _POSIX_SOURCE | ||
| 166 | #else | ||
| 167 | #include <fcntl.h> | ||
| 168 | #include <unistd.h> | ||
| 169 | #endif | ||
| 170 | #endif /* X_NOT_POSIX else */ | ||
| 171 | |||
| 172 | /* | ||
| 173 | * Get struct timeval and struct tm | ||
| 174 | */ | ||
| 175 | |||
| 176 | #if defined(SYSV) && !defined(_SEQUENT_) | ||
| 177 | |||
| 178 | #ifndef USL | ||
| 179 | #include <sys/time.h> | ||
| 180 | #endif | ||
| 181 | #include <time.h> | ||
| 182 | #ifdef CRAY | ||
| 183 | #undef word | ||
| 184 | #endif /* CRAY */ | ||
| 185 | #if defined(USG) && !defined(CRAY) && !defined(MOTOROLA) && !defined(uniosu) && !defined(__sxg__) && !defined(clipper) && !defined(__clipper__) | ||
| 186 | struct timeval { | ||
| 187 | long tv_sec; | ||
| 188 | long tv_usec; | ||
| 189 | }; | ||
| 190 | #ifndef USL_SHARELIB | ||
| 191 | struct timezone { | ||
| 192 | int tz_minuteswest; | ||
| 193 | int tz_dsttime; | ||
| 194 | }; | ||
| 195 | #endif /* USL_SHARELIB */ | ||
| 196 | #endif /* USG */ | ||
| 197 | |||
| 198 | #ifdef _SEQUENT_ | ||
| 199 | struct timezone { | ||
| 200 | int tz_minuteswest; | ||
| 201 | int tz_dsttime; | ||
| 202 | }; | ||
| 203 | #endif /* _SEQUENT_ */ | ||
| 204 | |||
| 205 | #else /* not SYSV */ | ||
| 206 | |||
| 207 | #if defined(_POSIX_SOURCE) && defined(SVR4) | ||
| 208 | /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */ | ||
| 209 | #undef _POSIX_SOURCE | ||
| 210 | #include <sys/time.h> | ||
| 211 | #define _POSIX_SOURCE | ||
| 212 | #elif defined(WIN32) | ||
| 213 | #include <time.h> | ||
| 214 | #if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) && !defined(_TIMEVAL_DEFINED) && !defined(_STRUCT_TIMEVAL) | ||
| 215 | struct timeval { | ||
| 216 | long tv_sec; /* seconds */ | ||
| 217 | long tv_usec; /* and microseconds */ | ||
| 218 | }; | ||
| 219 | #define _TIMEVAL_DEFINED | ||
| 220 | #endif | ||
| 221 | #include <sys/timeb.h> | ||
| 222 | #define gettimeofday(t) \ | ||
| 223 | { \ | ||
| 224 | struct _timeb _gtodtmp; \ | ||
| 225 | _ftime (&_gtodtmp); \ | ||
| 226 | (t)->tv_sec = _gtodtmp.time; \ | ||
| 227 | (t)->tv_usec = _gtodtmp.millitm * 1000; \ | ||
| 228 | } | ||
| 229 | #elif defined(_SEQUENT_) || defined(Lynx) | ||
| 230 | #include <time.h> | ||
| 231 | #elif defined (__QNX__) | ||
| 232 | typedef unsigned long fd_mask; | ||
| 233 | /* Make sure we get 256 bit select masks */ | ||
| 234 | #define FD_SETSIZE 256 | ||
| 235 | #include <sys/select.h> | ||
| 236 | #include <sys/time.h> | ||
| 237 | #include <time.h> | ||
| 238 | #else | ||
| 239 | #include <sys/time.h> | ||
| 240 | #include <time.h> | ||
| 241 | #endif /* defined(_POSIX_SOURCE) && defined(SVR4) */ | ||
| 242 | |||
| 243 | #endif /* SYSV */ | ||
| 244 | |||
| 245 | /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */ | ||
| 246 | #if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */ | ||
| 247 | #define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) | ||
| 248 | #else | ||
| 249 | #if defined(SVR4) || defined(VMS) || defined(WIN32) | ||
| 250 | #define X_GETTIMEOFDAY(t) gettimeofday(t) | ||
| 251 | #else | ||
| 252 | #define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) | ||
| 253 | #endif | ||
| 254 | #endif /* XPG4 else */ | ||
| 255 | |||
| 256 | #ifdef __UNIXOS2__ | ||
| 257 | typedef unsigned long fd_mask; | ||
| 258 | #include <limits.h> | ||
| 259 | #define MAX_PATH _POSIX_PATH_MAX | ||
| 260 | #endif | ||
| 261 | |||
| 262 | #ifdef __GNU__ | ||
| 263 | #define PATH_MAX 4096 | ||
| 264 | #define MAXPATHLEN 4096 | ||
| 265 | #define OPEN_MAX 256 /* We define a reasonable limit. */ | ||
| 266 | #endif | ||
| 267 | |||
| 268 | /* use POSIX name for signal */ | ||
| 269 | #if defined(X_NOT_POSIX) && defined(SYSV) && !defined(SIGCHLD) && !defined(ISC) | ||
| 270 | #define SIGCHLD SIGCLD | ||
| 271 | #endif | ||
| 272 | |||
| 273 | #ifdef ISC | ||
| 274 | #include <sys/bsdtypes.h> | ||
| 275 | #include <sys/limits.h> | ||
| 276 | #define NGROUPS 16 | ||
| 277 | #endif | ||
| 278 | |||
| 279 | #if defined(ISC) || defined(__UNIXOS2__) || \ | ||
| 280 | (defined(__linux__) && !defined(__GLIBC__)) || \ | ||
| 281 | (defined(__QNX__) && !defined(UNIXCONN)) | ||
| 282 | /* | ||
| 283 | * Some OS's may not have this | ||
| 284 | */ | ||
| 285 | |||
| 286 | #define X_NO_SYS_UN 1 | ||
| 287 | |||
| 288 | struct sockaddr_un { | ||
| 289 | short sun_family; | ||
| 290 | char sun_path[108]; | ||
| 291 | }; | ||
| 292 | #endif | ||
| 293 | |||
| 294 | #include <X11/Xarch.h> | ||
| 295 | |||
| 296 | #endif /* _XOS_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xos_r.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xos_r.h new file mode 100644 index 0000000000..694f7a0efa --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xos_r.h | |||
| @@ -0,0 +1,1160 @@ | |||
| 1 | /* $Xorg: Xos_r.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */ | ||
| 2 | /* $XdotOrg: proto/X11/Xos_r.h,v 1.6 2006/04/20 01:24:25 alanc Exp $ */ | ||
| 3 | /* | ||
| 4 | Copyright 1996, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | */ | ||
| 26 | /* $XFree86: xc/include/Xos_r.h,v 1.18tsi Exp $ */ | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Various and sundry Thread-Safe functions used by X11, Motif, and CDE. | ||
| 30 | * | ||
| 31 | * Use this file in MT-safe code where you would have included | ||
| 32 | * <dirent.h> for readdir() | ||
| 33 | * <grp.h> for getgrgid() or getgrnam() | ||
| 34 | * <netdb.h> for gethostbyname(), gethostbyaddr(), or getservbyname() | ||
| 35 | * <pwd.h> for getpwnam() or getpwuid() | ||
| 36 | * <string.h> for strtok() | ||
| 37 | * <time.h> for asctime(), ctime(), localtime(), or gmtime() | ||
| 38 | * <unistd.h> for getlogin() or ttyname() | ||
| 39 | * or their thread-safe analogs. | ||
| 40 | * | ||
| 41 | * If you are on a platform that defines XTHREADS but does not have | ||
| 42 | * MT-safe system API (e.g. UnixWare) you must define _Xos_processLock | ||
| 43 | * and _Xos_processUnlock macros before including this header. If | ||
| 44 | * you are on OSF/1 V3.2 and plan to use readdir(), you must also define | ||
| 45 | * _Xos_isThreadInitialized. For convenience XOS_USE_XLIB_LOCKING or | ||
| 46 | * XOS_USE_XT_LOCKING may be defined to obtain either Xlib-only or | ||
| 47 | * Xt-based versions of these macros. These macros won't result in | ||
| 48 | * truly thread-safe calls, but they are better than nothing. If you | ||
| 49 | * do not want locking in this situation define XOS_USE_NO_LOCKING. | ||
| 50 | * | ||
| 51 | * NOTE: On systems lacking appropriate _r functions Gethostbyname(), | ||
| 52 | * Gethostbyaddr(), and Getservbyname() do NOT copy the host or | ||
| 53 | * protocol lists! | ||
| 54 | * | ||
| 55 | * NOTE: On systems lacking appropriate _r functions Getgrgid() and | ||
| 56 | * Getgrnam() do NOT copy the list of group members! | ||
| 57 | * | ||
| 58 | * This header is nominally intended to simplify porting X11, Motif, and | ||
| 59 | * CDE; it may be useful to other people too. The structure below is | ||
| 60 | * complicated, mostly because P1003.1c (the IEEE POSIX Threads spec) | ||
| 61 | * went through lots of drafts, and some vendors shipped systems based | ||
| 62 | * on draft API that were changed later. Unfortunately POSIX did not | ||
| 63 | * provide a feature-test macro for distinguishing each of the drafts. | ||
| 64 | */ | ||
| 65 | |||
| 66 | /* | ||
| 67 | * This header has several parts. Search for "Effective prototypes" | ||
| 68 | * to locate the beginning of a section. | ||
| 69 | */ | ||
| 70 | |||
| 71 | /* This header can be included multiple times with different defines! */ | ||
| 72 | #ifndef _XOS_R_H_ | ||
| 73 | # define _XOS_R_H_ | ||
| 74 | |||
| 75 | # include <X11/Xos.h> | ||
| 76 | # include <X11/Xfuncs.h> | ||
| 77 | |||
| 78 | # ifndef X_NOT_POSIX | ||
| 79 | # ifdef _POSIX_SOURCE | ||
| 80 | # include <limits.h> | ||
| 81 | # else | ||
| 82 | # define _POSIX_SOURCE | ||
| 83 | # include <limits.h> | ||
| 84 | # undef _POSIX_SOURCE | ||
| 85 | # endif | ||
| 86 | # ifndef LINE_MAX | ||
| 87 | # define X_LINE_MAX 2048 | ||
| 88 | # else | ||
| 89 | # define X_LINE_MAX LINE_MAX | ||
| 90 | # endif | ||
| 91 | # endif | ||
| 92 | #endif /* _XOS_R_H */ | ||
| 93 | |||
| 94 | #ifndef WIN32 | ||
| 95 | |||
| 96 | #ifdef __cplusplus | ||
| 97 | extern "C" { | ||
| 98 | #endif | ||
| 99 | |||
| 100 | # if defined(XOS_USE_XLIB_LOCKING) | ||
| 101 | # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ | ||
| 102 | typedef struct _LockInfoRec *LockInfoPtr; | ||
| 103 | extern LockInfoPtr _Xglobal_lock; | ||
| 104 | # endif | ||
| 105 | # ifndef _Xos_isThreadInitialized | ||
| 106 | # define _Xos_isThreadInitialized (_Xglobal_lock) | ||
| 107 | # endif | ||
| 108 | # if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) | ||
| 109 | # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ | ||
| 110 | # include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ | ||
| 111 | extern void (*_XLockMutex_fn)( | ||
| 112 | # if NeedFunctionPrototypes | ||
| 113 | LockInfoPtr /* lock */, char * /* file */, int /* line */ | ||
| 114 | # endif | ||
| 115 | ); | ||
| 116 | extern void (*_XUnlockMutex_fn)( | ||
| 117 | # if NeedFunctionPrototypes | ||
| 118 | LockInfoPtr /* lock */, char * /* file */, int /* line */ | ||
| 119 | # endif | ||
| 120 | ); | ||
| 121 | # endif | ||
| 122 | # ifndef _Xos_processLock | ||
| 123 | # define _Xos_processLock \ | ||
| 124 | (_XLockMutex_fn ? (*_XLockMutex_fn)(_Xglobal_lock,__FILE__,__LINE__) : 0) | ||
| 125 | # endif | ||
| 126 | # ifndef _Xos_processUnlock | ||
| 127 | # define _Xos_processUnlock \ | ||
| 128 | (_XUnlockMutex_fn ? (*_XUnlockMutex_fn)(_Xglobal_lock,__FILE__,__LINE__) : 0) | ||
| 129 | # endif | ||
| 130 | # else | ||
| 131 | # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ | ||
| 132 | # include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ | ||
| 133 | extern void (*_XLockMutex_fn)( | ||
| 134 | # if NeedFunctionPrototypes | ||
| 135 | LockInfoPtr /* lock */ | ||
| 136 | # endif | ||
| 137 | ); | ||
| 138 | extern void (*_XUnlockMutex_fn)( | ||
| 139 | # if NeedFunctionPrototypes | ||
| 140 | LockInfoPtr /* lock */ | ||
| 141 | # endif | ||
| 142 | ); | ||
| 143 | # endif | ||
| 144 | # ifndef _Xos_processLock | ||
| 145 | # define _Xos_processLock \ | ||
| 146 | (_XLockMutex_fn ? ((*_XLockMutex_fn)(_Xglobal_lock), 0) : 0) | ||
| 147 | # endif | ||
| 148 | # ifndef _Xos_processUnlock | ||
| 149 | # define _Xos_processUnlock \ | ||
| 150 | (_XUnlockMutex_fn ? ((*_XUnlockMutex_fn)(_Xglobal_lock), 0) : 0) | ||
| 151 | # endif | ||
| 152 | # endif | ||
| 153 | # elif defined(XOS_USE_XT_LOCKING) | ||
| 154 | # ifndef _XtThreadsI_h | ||
| 155 | extern void (*_XtProcessLock)(void); | ||
| 156 | # endif | ||
| 157 | # ifndef _XtintrinsicP_h | ||
| 158 | # include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ | ||
| 159 | extern void XtProcessLock( | ||
| 160 | # if NeedFunctionPrototypes | ||
| 161 | void | ||
| 162 | # endif | ||
| 163 | ); | ||
| 164 | extern void XtProcessUnlock( | ||
| 165 | # if NeedFunctionPrototypes | ||
| 166 | void | ||
| 167 | # endif | ||
| 168 | ); | ||
| 169 | # endif | ||
| 170 | # ifndef _Xos_isThreadInitialized | ||
| 171 | # define _Xos_isThreadInitialized _XtProcessLock | ||
| 172 | # endif | ||
| 173 | # ifndef _Xos_processLock | ||
| 174 | # define _Xos_processLock XtProcessLock() | ||
| 175 | # endif | ||
| 176 | # ifndef _Xos_processUnlock | ||
| 177 | # define _Xos_processUnlock XtProcessUnlock() | ||
| 178 | # endif | ||
| 179 | # elif defined(XOS_USE_NO_LOCKING) | ||
| 180 | # ifndef _Xos_isThreadInitialized | ||
| 181 | # define _Xos_isThreadInitialized 0 | ||
| 182 | # endif | ||
| 183 | # ifndef _Xos_processLock | ||
| 184 | # define _Xos_processLock 0 | ||
| 185 | # endif | ||
| 186 | # ifndef _Xos_processUnlock | ||
| 187 | # define _Xos_processUnlock 0 | ||
| 188 | # endif | ||
| 189 | # endif | ||
| 190 | |||
| 191 | #endif /* !defined WIN32 */ | ||
| 192 | |||
| 193 | /* | ||
| 194 | * Solaris defines the POSIX thread-safe feature test macro, but | ||
| 195 | * uses the older SVR4 thread-safe functions unless the POSIX ones | ||
| 196 | * are specifically requested. Fix the feature test macro. | ||
| 197 | */ | ||
| 198 | #if defined(sun) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && \ | ||
| 199 | (_POSIX_C_SOURCE - 0 < 199506L) && !defined(_POSIX_PTHREAD_SEMANTICS) | ||
| 200 | # undef _POSIX_THREAD_SAFE_FUNCTIONS | ||
| 201 | #endif | ||
| 202 | |||
| 203 | /* | ||
| 204 | * LynxOS 3.1 defines _POSIX_THREAD_SAFE_FUNCTIONS but | ||
| 205 | * getpwuid_r has different semantics than defined by POSIX | ||
| 206 | */ | ||
| 207 | #if defined(Lynx) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) | ||
| 208 | # undef _POSIX_THREAD_SAFE_FUNCTIONS | ||
| 209 | #endif | ||
| 210 | |||
| 211 | |||
| 212 | /***** <pwd.h> wrappers *****/ | ||
| 213 | |||
| 214 | /* | ||
| 215 | * Effective prototypes for <pwd.h> wrappers: | ||
| 216 | * | ||
| 217 | * #define X_INCLUDE_PWD_H | ||
| 218 | * #define XOS_USE_..._LOCKING | ||
| 219 | * #include <X11/Xos_r.h> | ||
| 220 | * | ||
| 221 | * typedef ... _Xgetpwparams; | ||
| 222 | * | ||
| 223 | * struct passwd* _XGetpwnam(const char *name, _Xgetpwparams); | ||
| 224 | * struct passwd* _XGetpwuid(uid_t uid, _Xgetpwparams); | ||
| 225 | */ | ||
| 226 | |||
| 227 | #if defined(X_INCLUDE_PWD_H) && !defined(_XOS_INCLUDED_PWD_H) | ||
| 228 | # include <pwd.h> | ||
| 229 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_PWDAPI) | ||
| 230 | # define XOS_USE_MTSAFE_PWDAPI 1 | ||
| 231 | # endif | ||
| 232 | #endif | ||
| 233 | |||
| 234 | #undef X_NEEDS_PWPARAMS | ||
| 235 | #if !defined(X_INCLUDE_PWD_H) || defined(_XOS_INCLUDED_PWD_H) | ||
| 236 | /* Do nothing */ | ||
| 237 | |||
| 238 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 239 | /* Use regular, unsafe API. */ | ||
| 240 | # if defined(X_NOT_POSIX) && !defined(i386) && !defined(SYSV) | ||
| 241 | extern struct passwd *getpwuid(), *getpwnam(); | ||
| 242 | # endif | ||
| 243 | typedef int _Xgetpwparams; /* dummy */ | ||
| 244 | # define _XGetpwuid(u,p) getpwuid((u)) | ||
| 245 | # define _XGetpwnam(u,p) getpwnam((u)) | ||
| 246 | |||
| 247 | #elif !defined(XOS_USE_MTSAFE_PWDAPI) || defined(XNO_MTSAFE_PWDAPI) | ||
| 248 | /* UnixWare 2.0, or other systems with thread support but no _r API. */ | ||
| 249 | # define X_NEEDS_PWPARAMS | ||
| 250 | typedef struct { | ||
| 251 | struct passwd pws; | ||
| 252 | char pwbuf[1024]; | ||
| 253 | struct passwd* pwp; | ||
| 254 | size_t len; | ||
| 255 | } _Xgetpwparams; | ||
| 256 | |||
| 257 | /* | ||
| 258 | * NetBSD and FreeBSD, at least, are missing several of the unixware passwd | ||
| 259 | * fields. | ||
| 260 | */ | ||
| 261 | |||
| 262 | #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ | ||
| 263 | defined(__APPLE__) || defined(__DragonFly__) | ||
| 264 | static __inline__ void _Xpw_copyPasswd(_Xgetpwparams p) | ||
| 265 | { | ||
| 266 | memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)); | ||
| 267 | |||
| 268 | (p).pws.pw_name = (p).pwbuf; | ||
| 269 | (p).len = strlen((p).pwp->pw_name); | ||
| 270 | strcpy((p).pws.pw_name, (p).pwp->pw_name); | ||
| 271 | |||
| 272 | (p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1; | ||
| 273 | (p).len = strlen((p).pwp->pw_passwd); | ||
| 274 | strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd); | ||
| 275 | |||
| 276 | (p).pws.pw_class = (p).pws.pw_passwd + (p).len + 1; | ||
| 277 | (p).len = strlen((p).pwp->pw_class); | ||
| 278 | strcpy((p).pws.pw_class, (p).pwp->pw_class); | ||
| 279 | |||
| 280 | (p).pws.pw_gecos = (p).pws.pw_class + (p).len + 1; | ||
| 281 | (p).len = strlen((p).pwp->pw_gecos); | ||
| 282 | strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos); | ||
| 283 | |||
| 284 | (p).pws.pw_dir = (p).pws.pw_gecos + (p).len + 1; | ||
| 285 | (p).len = strlen((p).pwp->pw_dir); | ||
| 286 | strcpy((p).pws.pw_dir, (p).pwp->pw_dir); | ||
| 287 | |||
| 288 | (p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1; | ||
| 289 | (p).len = strlen((p).pwp->pw_shell); | ||
| 290 | strcpy((p).pws.pw_shell, (p).pwp->pw_shell); | ||
| 291 | |||
| 292 | (p).pwp = &(p).pws; | ||
| 293 | } | ||
| 294 | |||
| 295 | #else | ||
| 296 | # define _Xpw_copyPasswd(p) \ | ||
| 297 | (memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)), \ | ||
| 298 | ((p).pws.pw_name = (p).pwbuf), \ | ||
| 299 | ((p).len = strlen((p).pwp->pw_name)), \ | ||
| 300 | strcpy((p).pws.pw_name, (p).pwp->pw_name), \ | ||
| 301 | ((p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1), \ | ||
| 302 | ((p).len = strlen((p).pwp->pw_passwd)), \ | ||
| 303 | strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd), \ | ||
| 304 | ((p).pws.pw_age = (p).pws.pw_passwd + (p).len + 1), \ | ||
| 305 | ((p).len = strlen((p).pwp->pw_age)), \ | ||
| 306 | strcpy((p).pws.pw_age, (p).pwp->pw_age), \ | ||
| 307 | ((p).pws.pw_comment = (p).pws.pw_age + (p).len + 1), \ | ||
| 308 | ((p).len = strlen((p).pwp->pw_comment)), \ | ||
| 309 | strcpy((p).pws.pw_comment, (p).pwp->pw_comment), \ | ||
| 310 | ((p).pws.pw_gecos = (p).pws.pw_comment + (p).len + 1), \ | ||
| 311 | ((p).len = strlen((p).pwp->pw_gecos)), \ | ||
| 312 | strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos), \ | ||
| 313 | ((p).pws.pw_dir = (p).pws.pw_comment + (p).len + 1), \ | ||
| 314 | ((p).len = strlen((p).pwp->pw_dir)), \ | ||
| 315 | strcpy((p).pws.pw_dir, (p).pwp->pw_dir), \ | ||
| 316 | ((p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1), \ | ||
| 317 | ((p).len = strlen((p).pwp->pw_shell)), \ | ||
| 318 | strcpy((p).pws.pw_shell, (p).pwp->pw_shell), \ | ||
| 319 | ((p).pwp = &(p).pws), \ | ||
| 320 | 0 ) | ||
| 321 | #endif | ||
| 322 | # define _XGetpwuid(u,p) \ | ||
| 323 | ( (_Xos_processLock), \ | ||
| 324 | (((p).pwp = getpwuid((u))) ? _Xpw_copyPasswd(p), 0 : 0), \ | ||
| 325 | (_Xos_processUnlock), \ | ||
| 326 | (p).pwp ) | ||
| 327 | # define _XGetpwnam(u,p) \ | ||
| 328 | ( (_Xos_processLock), \ | ||
| 329 | (((p).pwp = getpwnam((u))) ? _Xpw_copyPasswd(p), 0 : 0), \ | ||
| 330 | (_Xos_processUnlock), \ | ||
| 331 | (p).pwp ) | ||
| 332 | |||
| 333 | #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(__APPLE__) | ||
| 334 | /* SVR4 threads, AIX 4.2.0 and earlier and OSF/1 3.2 and earlier pthreads */ | ||
| 335 | # define X_NEEDS_PWPARAMS | ||
| 336 | typedef struct { | ||
| 337 | struct passwd pws; | ||
| 338 | char pwbuf[X_LINE_MAX]; | ||
| 339 | } _Xgetpwparams; | ||
| 340 | # if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) || defined(Lynx) | ||
| 341 | # ifndef Lynx | ||
| 342 | # define _XGetpwuid(u,p) \ | ||
| 343 | ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) | ||
| 344 | # define _XGetpwnam(u,p) \ | ||
| 345 | ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) | ||
| 346 | # else /* Lynx */ | ||
| 347 | # define _XGetpwuid(u,p) \ | ||
| 348 | ((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) | ||
| 349 | # define _XGetpwnam(u,p) \ | ||
| 350 | ((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) | ||
| 351 | # endif | ||
| 352 | # else /* SVR4 */ | ||
| 353 | # define _XGetpwuid(u,p) \ | ||
| 354 | ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) | ||
| 355 | # define _XGetpwnam(u,p) \ | ||
| 356 | ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) | ||
| 357 | # endif /* SVR4 */ | ||
| 358 | |||
| 359 | #else /* _POSIX_THREAD_SAFE_FUNCTIONS */ | ||
| 360 | /* Digital UNIX 4.0, but not (beta) T4.0-1 */ | ||
| 361 | # if defined(__osf__) | ||
| 362 | /* OSF/1 V4.0 <pwd.h> doesn't declare the _P routines, breaking under C++. */ | ||
| 363 | extern int _Pgetpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **); | ||
| 364 | extern int _Pgetpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **); | ||
| 365 | # endif | ||
| 366 | # define X_NEEDS_PWPARAMS | ||
| 367 | typedef struct { | ||
| 368 | struct passwd pws; | ||
| 369 | char pwbuf[X_LINE_MAX]; | ||
| 370 | struct passwd* pwp; | ||
| 371 | } _Xgetpwparams; | ||
| 372 | typedef int _Xgetpwret; | ||
| 373 | # define _XGetpwuid(u,p) \ | ||
| 374 | ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \ | ||
| 375 | (p).pwp : NULL) | ||
| 376 | # define _XGetpwnam(u,p) \ | ||
| 377 | ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \ | ||
| 378 | (p).pwp : NULL) | ||
| 379 | #endif /* X_INCLUDE_PWD_H */ | ||
| 380 | |||
| 381 | #if defined(X_INCLUDE_PWD_H) && !defined(_XOS_INCLUDED_PWD_H) | ||
| 382 | # define _XOS_INCLUDED_PWD_H | ||
| 383 | #endif | ||
| 384 | |||
| 385 | |||
| 386 | /***** <netdb.h> wrappers *****/ | ||
| 387 | |||
| 388 | /* | ||
| 389 | * Effective prototypes for <netdb.h> wrappers: | ||
| 390 | * | ||
| 391 | * NOTE: On systems lacking the appropriate _r functions Gethostbyname(), | ||
| 392 | * Gethostbyaddr(), and Getservbyname() do NOT copy the host or | ||
| 393 | * protocol lists! | ||
| 394 | * | ||
| 395 | * #define X_INCLUDE_NETDB_H | ||
| 396 | * #define XOS_USE_..._LOCKING | ||
| 397 | * #include <X11/Xos_r.h> | ||
| 398 | * | ||
| 399 | * typedef ... _Xgethostbynameparams; | ||
| 400 | * typedef ... _Xgetservbynameparams; | ||
| 401 | * | ||
| 402 | * struct hostent* _XGethostbyname(const char* name,_Xgethostbynameparams); | ||
| 403 | * struct hostent* _XGethostbyaddr(const char* addr, int len, int type, | ||
| 404 | * _Xgethostbynameparams); | ||
| 405 | * struct servent* _XGetservbyname(const char* name, const char* proto, | ||
| 406 | * _Xgetservbynameparams); | ||
| 407 | */ | ||
| 408 | |||
| 409 | #undef XTHREADS_NEEDS_BYNAMEPARAMS | ||
| 410 | #if defined(X_INCLUDE_NETDB_H) && !defined(_XOS_INCLUDED_NETDB_H) \ | ||
| 411 | && !defined(WIN32) | ||
| 412 | # include <netdb.h> | ||
| 413 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_NETDBAPI) | ||
| 414 | # define XOS_USE_MTSAFE_NETDBAPI 1 | ||
| 415 | # endif | ||
| 416 | #endif | ||
| 417 | |||
| 418 | #if !defined(X_INCLUDE_NETDB_H) || defined(_XOS_INCLUDED_NETDB_H) | ||
| 419 | /* Do nothing. */ | ||
| 420 | |||
| 421 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 422 | /* Use regular, unsafe API. */ | ||
| 423 | typedef int _Xgethostbynameparams; /* dummy */ | ||
| 424 | typedef int _Xgetservbynameparams; /* dummy */ | ||
| 425 | # define _XGethostbyname(h,hp) gethostbyname((h)) | ||
| 426 | # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t)) | ||
| 427 | # define _XGetservbyname(s,p,sp) getservbyname((s),(p)) | ||
| 428 | |||
| 429 | #elif !defined(XOS_USE_MTSAFE_NETDBAPI) || defined(XNO_MTSAFE_NETDBAPI) | ||
| 430 | /* UnixWare 2.0, or other systems with thread support but no _r API. */ | ||
| 431 | /* WARNING: The h_addr_list and s_aliases values are *not* copied! */ | ||
| 432 | |||
| 433 | #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) | ||
| 434 | #include <sys/param.h> | ||
| 435 | #endif | ||
| 436 | |||
| 437 | typedef struct { | ||
| 438 | struct hostent hent; | ||
| 439 | char h_name[MAXHOSTNAMELEN]; | ||
| 440 | struct hostent *hptr; | ||
| 441 | } _Xgethostbynameparams; | ||
| 442 | typedef struct { | ||
| 443 | struct servent sent; | ||
| 444 | char s_name[255]; | ||
| 445 | char s_proto[255]; | ||
| 446 | struct servent *sptr; | ||
| 447 | } _Xgetservbynameparams; | ||
| 448 | |||
| 449 | # define XTHREADS_NEEDS_BYNAMEPARAMS | ||
| 450 | |||
| 451 | # define _Xg_copyHostent(hp) \ | ||
| 452 | (memcpy(&(hp).hent, (hp).hptr, sizeof(struct hostent)), \ | ||
| 453 | strcpy((hp).h_name, (hp).hptr->h_name), \ | ||
| 454 | ((hp).hent.h_name = (hp).h_name), \ | ||
| 455 | ((hp).hptr = &(hp).hent), \ | ||
| 456 | 0 ) | ||
| 457 | # define _Xg_copyServent(sp) \ | ||
| 458 | (memcpy(&(sp).sent, (sp).sptr, sizeof(struct servent)), \ | ||
| 459 | strcpy((sp).s_name, (sp).sptr->s_name), \ | ||
| 460 | ((sp).sent.s_name = (sp).s_name), \ | ||
| 461 | strcpy((sp).s_proto, (sp).sptr->s_proto), \ | ||
| 462 | ((sp).sent.s_proto = (sp).s_proto), \ | ||
| 463 | ((sp).sptr = &(sp).sent), \ | ||
| 464 | 0 ) | ||
| 465 | # define _XGethostbyname(h,hp) \ | ||
| 466 | ((_Xos_processLock), \ | ||
| 467 | (((hp).hptr = gethostbyname((h))) ? _Xg_copyHostent(hp) : 0), \ | ||
| 468 | (_Xos_processUnlock), \ | ||
| 469 | (hp).hptr ) | ||
| 470 | # define _XGethostbyaddr(a,al,t,hp) \ | ||
| 471 | ((_Xos_processLock), \ | ||
| 472 | (((hp).hptr = gethostbyaddr((a),(al),(t))) ? _Xg_copyHostent(hp) : 0), \ | ||
| 473 | (_Xos_processUnlock), \ | ||
| 474 | (hp).hptr ) | ||
| 475 | # define _XGetservbyname(s,p,sp) \ | ||
| 476 | ((_Xos_processLock), \ | ||
| 477 | (((sp).sptr = getservbyname((s),(p))) ? _Xg_copyServent(sp) : 0), \ | ||
| 478 | (_Xos_processUnlock), \ | ||
| 479 | (sp).sptr ) | ||
| 480 | |||
| 481 | #elif defined(XUSE_NETDB_R_API) | ||
| 482 | /* | ||
| 483 | * POSIX does not specify _r equivalents for <netdb.h> API, but some | ||
| 484 | * vendors provide them anyway. Use them only when explicitly asked. | ||
| 485 | */ | ||
| 486 | # ifdef _POSIX_REENTRANT_FUNCTIONS | ||
| 487 | # ifndef _POSIX_THREAD_SAFE_FUNCTIONS | ||
| 488 | # if defined(AIXV3) || defined(AIXV4) || defined(__osf__) | ||
| 489 | # define X_POSIX_THREAD_SAFE_FUNCTIONS 1 | ||
| 490 | # endif | ||
| 491 | # endif | ||
| 492 | # endif | ||
| 493 | # ifdef _POSIX_THREAD_SAFE_FUNCTIONS | ||
| 494 | # define X_POSIX_THREAD_SAFE_FUNCTIONS 1 | ||
| 495 | # endif | ||
| 496 | |||
| 497 | # define XTHREADS_NEEDS_BYNAMEPARAMS | ||
| 498 | |||
| 499 | # ifndef X_POSIX_THREAD_SAFE_FUNCTIONS | ||
| 500 | typedef struct { | ||
| 501 | struct hostent hent; | ||
| 502 | char hbuf[X_LINE_MAX]; | ||
| 503 | int herr; | ||
| 504 | } _Xgethostbynameparams; | ||
| 505 | typedef struct { | ||
| 506 | struct servent sent; | ||
| 507 | char sbuf[X_LINE_MAX]; | ||
| 508 | } _Xgetservbynameparams; | ||
| 509 | # define _XGethostbyname(h,hp) \ | ||
| 510 | gethostbyname_r((h),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr) | ||
| 511 | # define _XGethostbyaddr(a,al,t,hp) \ | ||
| 512 | gethostbyaddr_r((a),(al),(t),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr) | ||
| 513 | # define _XGetservbyname(s,p,sp) \ | ||
| 514 | getservbyname_r((s),(p),&(sp).sent,(sp).sbuf,sizeof((sp).sbuf)) | ||
| 515 | # else | ||
| 516 | typedef struct { | ||
| 517 | struct hostent hent; | ||
| 518 | struct hostent_data hdata; | ||
| 519 | } _Xgethostbynameparams; | ||
| 520 | typedef struct { | ||
| 521 | struct servent sent; | ||
| 522 | struct servent_data sdata; | ||
| 523 | } _Xgetservbynameparams; | ||
| 524 | # define _XGethostbyname(h,hp) \ | ||
| 525 | (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \ | ||
| 526 | ((gethostbyname_r((h),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent)) | ||
| 527 | # define _XGethostbyaddr(a,al,t,hp) \ | ||
| 528 | (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \ | ||
| 529 | ((gethostbyaddr_r((a),(al),(t),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent)) | ||
| 530 | # define _XGetservbyname(s,p,sp) \ | ||
| 531 | (bzero((char*)&(sp).sdata,sizeof((sp).sdata)), \ | ||
| 532 | ((getservbyname_r((s),(p),&(sp).sent,&(sp).sdata) == -1) ? NULL : &(sp).sent) ) | ||
| 533 | # endif | ||
| 534 | # ifdef X_POSIX_THREAD_SAFE_FUNCTIONS | ||
| 535 | # undef X_POSIX_THREAD_SAFE_FUNCTIONS | ||
| 536 | # endif | ||
| 537 | |||
| 538 | #else | ||
| 539 | /* The regular API is assumed to be MT-safe under POSIX. */ | ||
| 540 | typedef int _Xgethostbynameparams; /* dummy */ | ||
| 541 | typedef int _Xgetservbynameparams; /* dummy */ | ||
| 542 | # define _XGethostbyname(h,hp) gethostbyname((h)) | ||
| 543 | # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t)) | ||
| 544 | # define _XGetservbyname(s,p,sp) getservbyname((s),(p)) | ||
| 545 | #endif /* X_INCLUDE_NETDB_H */ | ||
| 546 | |||
| 547 | #if defined(X_INCLUDE_NETDB_H) && !defined(_XOS_INCLUDED_NETDB_H) | ||
| 548 | # define _XOS_INCLUDED_NETDB_H | ||
| 549 | #endif | ||
| 550 | |||
| 551 | |||
| 552 | /***** <dirent.h> wrappers *****/ | ||
| 553 | |||
| 554 | /* | ||
| 555 | * Effective prototypes for <dirent.h> wrappers: | ||
| 556 | * | ||
| 557 | * #define X_INCLUDE_DIRENT_H | ||
| 558 | * #define XOS_USE_..._LOCKING | ||
| 559 | * #include <X11/Xos_r.h> | ||
| 560 | * | ||
| 561 | * typedef ... _Xreaddirparams; | ||
| 562 | * | ||
| 563 | * struct dirent *_XReaddir(DIR *dir_pointer, _Xreaddirparams); | ||
| 564 | */ | ||
| 565 | |||
| 566 | #if defined(X_INCLUDE_DIRENT_H) && !defined(_XOS_INCLUDED_DIRENT_H) | ||
| 567 | # include <sys/types.h> | ||
| 568 | # if !defined(X_NOT_POSIX) || defined(SYSV) || defined(USG) | ||
| 569 | # include <dirent.h> | ||
| 570 | # else | ||
| 571 | # include <sys/dir.h> | ||
| 572 | # ifndef dirent | ||
| 573 | # define dirent direct | ||
| 574 | # endif | ||
| 575 | # endif | ||
| 576 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_DIRENTAPI) | ||
| 577 | # define XOS_USE_MTSAFE_DIRENTAPI 1 | ||
| 578 | # endif | ||
| 579 | #endif | ||
| 580 | |||
| 581 | #if !defined(X_INCLUDE_DIRENT_H) || defined(_XOS_INCLUDED_DIRENT_H) | ||
| 582 | /* Do nothing. */ | ||
| 583 | |||
| 584 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 585 | /* Use regular, unsafe API. */ | ||
| 586 | typedef int _Xreaddirparams; /* dummy */ | ||
| 587 | # define _XReaddir(d,p) readdir(d) | ||
| 588 | |||
| 589 | #elif !defined(XOS_USE_MTSAFE_DIRENTAPI) || defined(XNO_MTSAFE_DIRENTAPI) | ||
| 590 | /* Systems with thread support but no _r API. */ | ||
| 591 | typedef struct { | ||
| 592 | struct dirent *result; | ||
| 593 | struct dirent dir_entry; | ||
| 594 | # ifdef _POSIX_PATH_MAX | ||
| 595 | char buf[_POSIX_PATH_MAX]; | ||
| 596 | # elif defined(NAME_MAX) | ||
| 597 | char buf[NAME_MAX]; | ||
| 598 | # else | ||
| 599 | char buf[255]; | ||
| 600 | # endif | ||
| 601 | } _Xreaddirparams; | ||
| 602 | |||
| 603 | # define _XReaddir(d,p) \ | ||
| 604 | ( (_Xos_processLock), \ | ||
| 605 | (((p).result = readdir((d))) ? \ | ||
| 606 | (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \ | ||
| 607 | ((p).result = &(p).dir_entry), 0) : \ | ||
| 608 | 0), \ | ||
| 609 | (_Xos_processUnlock), \ | ||
| 610 | (p).result ) | ||
| 611 | |||
| 612 | #else | ||
| 613 | typedef struct { | ||
| 614 | struct dirent *result; | ||
| 615 | struct dirent dir_entry; | ||
| 616 | # ifdef _POSIX_PATH_MAX | ||
| 617 | char buf[_POSIX_PATH_MAX]; | ||
| 618 | # elif defined(NAME_MAX) | ||
| 619 | char buf[NAME_MAX]; | ||
| 620 | # else | ||
| 621 | char buf[255]; | ||
| 622 | # endif | ||
| 623 | } _Xreaddirparams; | ||
| 624 | |||
| 625 | # if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(AIXV3) || \ | ||
| 626 | defined(AIXV4) || defined(__APPLE__) | ||
| 627 | /* AIX defines the draft POSIX symbol, but uses the final API. */ | ||
| 628 | /* POSIX final API, returns (int)0 on success. */ | ||
| 629 | # if defined(__osf__) | ||
| 630 | /* OSF/1 V4.0 <dirent.h> doesn't declare _Preaddir_r, breaking under C++. */ | ||
| 631 | extern int _Preaddir_r(DIR *, struct dirent *, struct dirent **); | ||
| 632 | # endif | ||
| 633 | # define _XReaddir(d,p) \ | ||
| 634 | (readdir_r((d), &((p).dir_entry), &((p).result)) ? NULL : (p).result) | ||
| 635 | # elif defined(_POSIX_REENTRANT_FUNCTIONS) && defined(__osf__) | ||
| 636 | /* | ||
| 637 | * OSF/1 V3.2 readdir_r() will SEGV if the main program is not | ||
| 638 | * explicitly linked with -lc_r. The library REQUIREDLIBS don't help. | ||
| 639 | * Assume that if threads have been initialized we're linked properly. | ||
| 640 | */ | ||
| 641 | # define _XReaddir(d,p) \ | ||
| 642 | ( (_Xos_isThreadInitialized) ? \ | ||
| 643 | (readdir_r((d), &((p).dir_entry)) ? NULL : &((p).dir_entry)) : \ | ||
| 644 | ((_Xos_processLock), \ | ||
| 645 | (((p).result = readdir((d))) ? \ | ||
| 646 | (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \ | ||
| 647 | ((p).result = &(p).dir_entry), 0) : \ | ||
| 648 | 0), \ | ||
| 649 | (_Xos_processUnlock), \ | ||
| 650 | (p).result) ) | ||
| 651 | # elif defined(_POSIX_REENTRANT_FUNCTIONS) | ||
| 652 | /* POSIX draft API, returns (int)0 on success. */ | ||
| 653 | # define _XReaddir(d,p) \ | ||
| 654 | (readdir_r((d),&((p).dir_entry)) ? NULL : &((p).dir_entry)) | ||
| 655 | # elif defined(SVR4) | ||
| 656 | /* Pre-POSIX API, returns non-NULL on success. */ | ||
| 657 | # define _XReaddir(d,p) (readdir_r((d), &(p).dir_entry)) | ||
| 658 | # else | ||
| 659 | /* We have no idea what is going on. Fake it all using process locks. */ | ||
| 660 | # define _XReaddir(d,p) \ | ||
| 661 | ( (_Xos_processLock), \ | ||
| 662 | (((p).result = readdir((d))) ? \ | ||
| 663 | (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \ | ||
| 664 | ((p).result = &(p).dir_entry), 0) : \ | ||
| 665 | 0), \ | ||
| 666 | (_Xos_processUnlock), \ | ||
| 667 | (p).result ) | ||
| 668 | # endif | ||
| 669 | #endif /* X_INCLUDE_DIRENT_H */ | ||
| 670 | |||
| 671 | #if defined(X_INCLUDE_DIRENT_H) && !defined(_XOS_INCLUDED_DIRENT_H) | ||
| 672 | # define _XOS_INCLUDED_DIRENT_H | ||
| 673 | #endif | ||
| 674 | |||
| 675 | |||
| 676 | /***** <unistd.h> wrappers *****/ | ||
| 677 | |||
| 678 | /* | ||
| 679 | * Effective prototypes for <unistd.h> wrappers: | ||
| 680 | * | ||
| 681 | * #define X_INCLUDE_UNISTD_H | ||
| 682 | * #define XOS_USE_..._LOCKING | ||
| 683 | * #include <X11/Xos_r.h> | ||
| 684 | * | ||
| 685 | * typedef ... _Xgetloginparams; | ||
| 686 | * typedef ... _Xttynameparams; | ||
| 687 | * | ||
| 688 | * char *_XGetlogin(_Xgetloginparams); | ||
| 689 | * char *_XTtyname(int, _Xttynameparams); | ||
| 690 | */ | ||
| 691 | |||
| 692 | #if defined(X_INCLUDE_UNISTD_H) && !defined(_XOS_INCLUDED_UNISTD_H) | ||
| 693 | /* <unistd.h> already included by <X11/Xos.h> */ | ||
| 694 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_UNISTDAPI) | ||
| 695 | # define XOS_USE_MTSAFE_UNISTDAPI 1 | ||
| 696 | # endif | ||
| 697 | #endif | ||
| 698 | |||
| 699 | #if !defined(X_INCLUDE_UNISTD_H) || defined(_XOS_INCLUDED_UNISTD_H) | ||
| 700 | /* Do nothing. */ | ||
| 701 | |||
| 702 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 703 | /* Use regular, unsafe API. */ | ||
| 704 | typedef int _Xgetloginparams; /* dummy */ | ||
| 705 | typedef int _Xttynameparams; /* dummy */ | ||
| 706 | # define _XGetlogin(p) getlogin() | ||
| 707 | # define _XTtyname(f) ttyname((f)) | ||
| 708 | |||
| 709 | #elif !defined(XOS_USE_MTSAFE_UNISTDAPI) || defined(XNO_MTSAFE_UNISTDAPI) | ||
| 710 | /* Systems with thread support but no _r API. */ | ||
| 711 | typedef struct { | ||
| 712 | char *result; | ||
| 713 | # if defined(MAXLOGNAME) | ||
| 714 | char buf[MAXLOGNAME]; | ||
| 715 | # elif defined(LOGIN_NAME_MAX) | ||
| 716 | char buf[LOGIN_NAME_MAX]; | ||
| 717 | # else | ||
| 718 | char buf[64]; | ||
| 719 | # endif | ||
| 720 | } _Xgetloginparams; | ||
| 721 | typedef struct { | ||
| 722 | char *result; | ||
| 723 | # ifdef TTY_NAME_MAX | ||
| 724 | char buf[TTY_NAME_MAX]; | ||
| 725 | # elif defined(_POSIX_TTY_NAME_MAX) | ||
| 726 | char buf[_POSIX_TTY_NAME_MAX]; | ||
| 727 | # elif defined(_POSIX_PATH_MAX) | ||
| 728 | char buf[_POSIX_PATH_MAX]; | ||
| 729 | # else | ||
| 730 | char buf[256]; | ||
| 731 | # endif | ||
| 732 | } _Xttynameparams; | ||
| 733 | |||
| 734 | # define _XGetlogin(p) \ | ||
| 735 | ( (_Xos_processLock), \ | ||
| 736 | (((p).result = getlogin()) ? \ | ||
| 737 | (strncpy((p).buf, (p).result, sizeof((p).buf)), \ | ||
| 738 | ((p).buf[sizeof((p).buf)-1] = '\0'), \ | ||
| 739 | ((p).result = (p).buf), 0) : 0), \ | ||
| 740 | (_Xos_processUnlock), \ | ||
| 741 | (p).result ) | ||
| 742 | #define _XTtyname(f,p) \ | ||
| 743 | ( (_Xos_processLock), \ | ||
| 744 | (((p).result = ttyname(f)) ? \ | ||
| 745 | (strncpy((p).buf, (p).result, sizeof((p).buf)), \ | ||
| 746 | ((p).buf[sizeof((p).buf)-1] = '\0'), \ | ||
| 747 | ((p).result = (p).buf), 0) : 0), \ | ||
| 748 | (_Xos_processUnlock), \ | ||
| 749 | (p).result ) | ||
| 750 | |||
| 751 | #elif defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_POSIX_REENTRANT_FUNCTIONS) | ||
| 752 | /* POSIX API. | ||
| 753 | * | ||
| 754 | * extern int getlogin_r(char *, size_t); | ||
| 755 | * extern int ttyname_r(int, char *, size_t); | ||
| 756 | */ | ||
| 757 | typedef struct { | ||
| 758 | # if defined(MAXLOGNAME) | ||
| 759 | char buf[MAXLOGNAME]; | ||
| 760 | # elif defined(LOGIN_NAME_MAX) | ||
| 761 | char buf[LOGIN_NAME_MAX]; | ||
| 762 | # else | ||
| 763 | char buf[64]; | ||
| 764 | # endif | ||
| 765 | } _Xgetloginparams; | ||
| 766 | typedef struct { | ||
| 767 | # ifdef TTY_NAME_MAX | ||
| 768 | char buf[TTY_NAME_MAX]; | ||
| 769 | # elif defined(_POSIX_TTY_NAME_MAX) | ||
| 770 | char buf[_POSIX_TTY_NAME_MAX]; | ||
| 771 | # elif defined(_POSIX_PATH_MAX) | ||
| 772 | char buf[_POSIX_PATH_MAX]; | ||
| 773 | # else | ||
| 774 | char buf[256]; | ||
| 775 | # endif | ||
| 776 | } _Xttynameparams; | ||
| 777 | |||
| 778 | # define _XGetlogin(p) (getlogin_r((p).buf, sizeof((p).buf)) ? NULL : (p).buf) | ||
| 779 | # define _XTtyname(f,p) \ | ||
| 780 | (ttyname_r((f), (p).buf, sizeof((p).buf)) ? NULL : (p).buf) | ||
| 781 | |||
| 782 | #else | ||
| 783 | /* Pre-POSIX API. | ||
| 784 | * | ||
| 785 | * extern char *getlogin_r(char *, size_t); | ||
| 786 | * extern char *ttyname_r(int, char *, size_t); | ||
| 787 | */ | ||
| 788 | typedef struct { | ||
| 789 | # if defined(MAXLOGNAME) | ||
| 790 | char buf[MAXLOGNAME]; | ||
| 791 | # elif defined(LOGIN_NAME_MAX) | ||
| 792 | char buf[LOGIN_NAME_MAX]; | ||
| 793 | # else | ||
| 794 | char buf[64]; | ||
| 795 | # endif | ||
| 796 | } _Xgetloginparams; | ||
| 797 | typedef struct { | ||
| 798 | # ifdef TTY_NAME_MAX | ||
| 799 | char buf[TTY_NAME_MAX]; | ||
| 800 | # elif defined(_POSIX_TTY_NAME_MAX) | ||
| 801 | char buf[_POSIX_TTY_NAME_MAX]; | ||
| 802 | # elif defined(_POSIX_PATH_MAX) | ||
| 803 | char buf[_POSIX_PATH_MAX]; | ||
| 804 | # else | ||
| 805 | char buf[256]; | ||
| 806 | # endif | ||
| 807 | } _Xttynameparams; | ||
| 808 | |||
| 809 | # define _XGetlogin(p) getlogin_r((p).buf, sizeof((p).buf)) | ||
| 810 | # define _XTtyname(f,p) ttyname_r((f), (p).buf, sizeof((p).buf)) | ||
| 811 | #endif /* X_INCLUDE_UNISTD_H */ | ||
| 812 | |||
| 813 | #if defined(X_INCLUDE_UNISTD_H) && !defined(_XOS_INCLUDED_UNISTD_H) | ||
| 814 | # define _XOS_INCLUDED_UNISTD_H | ||
| 815 | #endif | ||
| 816 | |||
| 817 | |||
| 818 | /***** <string.h> wrappers *****/ | ||
| 819 | |||
| 820 | /* | ||
| 821 | * Effective prototypes for <string.h> wrappers: | ||
| 822 | * | ||
| 823 | * #define X_INCLUDE_STRING_H | ||
| 824 | * #define XOS_USE_..._LOCKING | ||
| 825 | * #include <X11/Xos_r.h> | ||
| 826 | * | ||
| 827 | * typedef ... _Xstrtokparams; | ||
| 828 | * | ||
| 829 | * char *_XStrtok(char *, const char*, _Xstrtokparams); | ||
| 830 | */ | ||
| 831 | |||
| 832 | #if defined(X_INCLUDE_STRING_H) && !defined(_XOS_INCLUDED_STRING_H) | ||
| 833 | /* <string.h> has already been included by <X11/Xos.h> */ | ||
| 834 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_STRINGAPI) | ||
| 835 | # define XOS_USE_MTSAFE_STRINGAPI 1 | ||
| 836 | # endif | ||
| 837 | #endif | ||
| 838 | |||
| 839 | #if !defined(X_INCLUDE_STRING_H) || defined(_XOS_INCLUDED_STRING_H) | ||
| 840 | /* Do nothing. */ | ||
| 841 | |||
| 842 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 843 | /* Use regular, unsafe API. */ | ||
| 844 | typedef int _Xstrtokparams; /* dummy */ | ||
| 845 | # define _XStrtok(s1,s2,p) \ | ||
| 846 | ( p = 0, (void)p, strtok((s1),(s2)) ) | ||
| 847 | |||
| 848 | #elif !defined(XOS_USE_MTSAFE_STRINGAPI) || defined(XNO_MTSAFE_STRINGAPI) | ||
| 849 | /* Systems with thread support but no _r API. */ | ||
| 850 | typedef char *_Xstrtokparams; | ||
| 851 | # define _XStrtok(s1,s2,p) \ | ||
| 852 | ( (_Xos_processLock), \ | ||
| 853 | ((p) = strtok((s1),(s2))), \ | ||
| 854 | (_Xos_processUnlock), \ | ||
| 855 | (p) ) | ||
| 856 | |||
| 857 | #else | ||
| 858 | /* POSIX or pre-POSIX API. */ | ||
| 859 | typedef char * _Xstrtokparams; | ||
| 860 | # define _XStrtok(s1,s2,p) strtok_r((s1),(s2),&(p)) | ||
| 861 | #endif /* X_INCLUDE_STRING_H */ | ||
| 862 | |||
| 863 | |||
| 864 | /***** <time.h> wrappers *****/ | ||
| 865 | |||
| 866 | /* | ||
| 867 | * Effective prototypes for <time.h> wrappers: | ||
| 868 | * | ||
| 869 | * #define X_INCLUDE_TIME_H | ||
| 870 | * #define XOS_USE_..._LOCKING | ||
| 871 | * #include <X11/Xos_r.h> | ||
| 872 | * | ||
| 873 | * typedef ... _Xatimeparams; | ||
| 874 | * typedef ... _Xctimeparams; | ||
| 875 | * typedef ... _Xgtimeparams; | ||
| 876 | * typedef ... _Xltimeparams; | ||
| 877 | * | ||
| 878 | * char *_XAsctime(const struct tm *, _Xatimeparams); | ||
| 879 | * char *_XCtime(const time_t *, _Xctimeparams); | ||
| 880 | * struct tm *_XGmtime(const time_t *, _Xgtimeparams); | ||
| 881 | * struct tm *_XLocaltime(const time_t *, _Xltimeparams); | ||
| 882 | */ | ||
| 883 | |||
| 884 | #if defined(X_INCLUDE_TIME_H) && !defined(_XOS_INCLUDED_TIME_H) | ||
| 885 | # include <time.h> | ||
| 886 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_TIMEAPI) | ||
| 887 | # define XOS_USE_MTSAFE_TIMEAPI 1 | ||
| 888 | # endif | ||
| 889 | #endif | ||
| 890 | |||
| 891 | #if !defined(X_INCLUDE_TIME_H) || defined(_XOS_INCLUDED_TIME_H) | ||
| 892 | /* Do nothing. */ | ||
| 893 | |||
| 894 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 895 | /* Use regular, unsafe API. */ | ||
| 896 | typedef int _Xatimeparams; /* dummy */ | ||
| 897 | # define _XAsctime(t,p) asctime((t)) | ||
| 898 | typedef int _Xctimeparams; /* dummy */ | ||
| 899 | # define _XCtime(t,p) ctime((t)) | ||
| 900 | typedef int _Xgtimeparams; /* dummy */ | ||
| 901 | # define _XGmtime(t,p) gmtime((t)) | ||
| 902 | typedef int _Xltimeparams; /* dummy */ | ||
| 903 | # define _XLocaltime(t,p) localtime((t)) | ||
| 904 | |||
| 905 | #elif !defined(XOS_USE_MTSAFE_TIMEAPI) || defined(XNO_MTSAFE_TIMEAPI) | ||
| 906 | /* Systems with thread support but no _r API. */ | ||
| 907 | typedef struct { | ||
| 908 | # ifdef TIMELEN | ||
| 909 | char buf[TIMELEN]; | ||
| 910 | # else | ||
| 911 | char buf[26]; | ||
| 912 | # endif | ||
| 913 | char *result; | ||
| 914 | } _Xctimeparams, _Xatimeparams; | ||
| 915 | typedef struct { | ||
| 916 | struct tm buf; | ||
| 917 | struct tm *result; | ||
| 918 | } _Xgtimeparams, _Xltimeparams; | ||
| 919 | # define _XAsctime(t,p) \ | ||
| 920 | ( (_Xos_processLock), \ | ||
| 921 | (((p).result = asctime((t))) ? \ | ||
| 922 | (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ | ||
| 923 | 0), \ | ||
| 924 | (_Xos_processUnlock), \ | ||
| 925 | (p).result ) | ||
| 926 | # define _XCtime(t,p) \ | ||
| 927 | ( (_Xos_processLock), \ | ||
| 928 | (((p).result = ctime((t))) ? \ | ||
| 929 | (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ | ||
| 930 | 0), \ | ||
| 931 | (_Xos_processUnlock), \ | ||
| 932 | (p).result ) | ||
| 933 | # define _XGmtime(t,p) \ | ||
| 934 | ( (_Xos_processLock), \ | ||
| 935 | (((p).result = gmtime(t)) ? \ | ||
| 936 | (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ | ||
| 937 | 0), \ | ||
| 938 | (_Xos_processUnlock), \ | ||
| 939 | (p).result ) | ||
| 940 | # define _XLocaltime(t,p) \ | ||
| 941 | ( (_Xos_processLock), \ | ||
| 942 | (((p).result = localtime(t)) ? \ | ||
| 943 | (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ | ||
| 944 | 0), \ | ||
| 945 | (_Xos_processUnlock), \ | ||
| 946 | (p).result ) | ||
| 947 | |||
| 948 | #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && (defined(__osf__) || defined(hpV4)) | ||
| 949 | /* Returns (int)0 on success. OSF/1 v3.2, HP/UX 10 | ||
| 950 | * | ||
| 951 | * extern int asctime_r(const struct tm *timeptr, char *buffer, int buflen); | ||
| 952 | * extern int ctime_r(const time_t *timer, char *buffer, int buflen); | ||
| 953 | * extern int gmtime_r(const time_t *timer, struct tm *result); | ||
| 954 | * extern int localtime_r(const time_t *timer, struct tm *result); | ||
| 955 | */ | ||
| 956 | # ifdef TIMELEN | ||
| 957 | typedef char _Xatimeparams[TIMELEN]; | ||
| 958 | typedef char _Xctimeparams[TIMELEN]; | ||
| 959 | # else | ||
| 960 | typedef char _Xatimeparams[26]; | ||
| 961 | typedef char _Xctimeparams[26]; | ||
| 962 | # endif | ||
| 963 | typedef struct tm _Xgtimeparams; | ||
| 964 | typedef struct tm _Xltimeparams; | ||
| 965 | # define _XAsctime(t,p) (asctime_r((t),(p),sizeof((p))) ? NULL : (p)) | ||
| 966 | # define _XCtime(t,p) (ctime_r((t),(p),sizeof((p))) ? NULL : (p)) | ||
| 967 | # define _XGmtime(t,p) (gmtime_r((t),&(p)) ? NULL : &(p)) | ||
| 968 | # define _XLocaltime(t,p) (localtime_r((t),&(p)) ? NULL : &(p)) | ||
| 969 | |||
| 970 | #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(sun) | ||
| 971 | /* Returns NULL on failure. Solaris 2.5 | ||
| 972 | * | ||
| 973 | * extern char *asctime_r(const struct tm *tm,char *buf, int buflen); | ||
| 974 | * extern char *ctime_r(const time_t *clock, char *buf, int buflen); | ||
| 975 | * extern struct tm *gmtime_r(const time_t *clock, struct tm *res); | ||
| 976 | * extern struct tm *localtime_r(const time_t *clock, struct tm *res); | ||
| 977 | */ | ||
| 978 | # ifdef TIMELEN | ||
| 979 | typedef char _Xatimeparams[TIMELEN]; | ||
| 980 | typedef char _Xctimeparams[TIMELEN]; | ||
| 981 | # else | ||
| 982 | typedef char _Xatimeparams[26]; | ||
| 983 | typedef char _Xctimeparams[26]; | ||
| 984 | # endif | ||
| 985 | typedef struct tm _Xgtimeparams; | ||
| 986 | typedef struct tm _Xltimeparams; | ||
| 987 | # define _XAsctime(t,p) asctime_r((t),(p),sizeof((p))) | ||
| 988 | # define _XCtime(t,p) ctime_r((t),(p),sizeof((p))) | ||
| 989 | # define _XGmtime(t,p) gmtime_r((t),&(p)) | ||
| 990 | # define _XLocaltime(t,p) localtime_r((t),&(p)) | ||
| 991 | |||
| 992 | #else /* defined(_POSIX_THREAD_SAFE_FUNCTIONS) */ | ||
| 993 | /* POSIX final API. OSF/1 v4.0, AIX, etc. | ||
| 994 | * | ||
| 995 | * extern char *asctime_r(const struct tm *timeptr, char *buffer); | ||
| 996 | * extern char *ctime_r(const time_t *timer, char *buffer); | ||
| 997 | * extern struct tm *gmtime_r(const time_t *timer, struct tm *result); | ||
| 998 | * extern struct tm *localtime_r(const time_t *timer, struct tm *result); | ||
| 999 | */ | ||
| 1000 | # if defined(__osf__) | ||
| 1001 | /* OSF/1 V4.0 <time.h> doesn't declare the _P routines, breaking under C++. */ | ||
| 1002 | extern char *_Pasctime_r(const struct tm *, char *); | ||
| 1003 | extern char *_Pctime_r(const time_t *, char *); | ||
| 1004 | extern struct tm *_Plocaltime_r(const time_t *, struct tm *); | ||
| 1005 | # endif | ||
| 1006 | # ifdef TIMELEN | ||
| 1007 | typedef char _Xatimeparams[TIMELEN]; | ||
| 1008 | typedef char _Xctimeparams[TIMELEN]; | ||
| 1009 | # else | ||
| 1010 | typedef char _Xatimeparams[26]; | ||
| 1011 | typedef char _Xctimeparams[26]; | ||
| 1012 | # endif | ||
| 1013 | typedef struct tm _Xgtimeparams; | ||
| 1014 | typedef struct tm _Xltimeparams; | ||
| 1015 | # define _XAsctime(t,p) asctime_r((t),(p)) | ||
| 1016 | # define _XCtime(t,p) ctime_r((t),(p)) | ||
| 1017 | # define _XGmtime(t,p) gmtime_r((t),&(p)) | ||
| 1018 | # define _XLocaltime(t,p) localtime_r((t),&(p)) | ||
| 1019 | #endif /* X_INCLUDE_TIME_H */ | ||
| 1020 | |||
| 1021 | #if defined(X_INCLUDE_TIME_H) && !defined(_XOS_INCLUDED_TIME_H) | ||
| 1022 | # define _XOS_INCLUDED_TIME_H | ||
| 1023 | #endif | ||
| 1024 | |||
| 1025 | |||
| 1026 | /***** <grp.h> wrappers *****/ | ||
| 1027 | |||
| 1028 | /* | ||
| 1029 | * Effective prototypes for <grp.h> wrappers: | ||
| 1030 | * | ||
| 1031 | * NOTE: On systems lacking appropriate _r functions Getgrgid() and | ||
| 1032 | * Getgrnam() do NOT copy the list of group members! | ||
| 1033 | * | ||
| 1034 | * Remember that fgetgrent(), setgrent(), getgrent(), and endgrent() | ||
| 1035 | * are not included in POSIX. | ||
| 1036 | * | ||
| 1037 | * #define X_INCLUDE_GRP_H | ||
| 1038 | * #define XOS_USE_..._LOCKING | ||
| 1039 | * #include <X11/Xos_r.h> | ||
| 1040 | * | ||
| 1041 | * typedef ... _Xgetgrparams; | ||
| 1042 | * | ||
| 1043 | * struct group *_XGetgrgid(gid_t, _Xgetgrparams); | ||
| 1044 | * struct group *_XGetgrnam(const char *, _Xgetgrparams); | ||
| 1045 | */ | ||
| 1046 | |||
| 1047 | #if defined(X_INCLUDE_GRP_H) && !defined(_XOS_INCLUDED_GRP_H) | ||
| 1048 | # include <grp.h> | ||
| 1049 | # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_GRPAPI) | ||
| 1050 | # define XOS_USE_MTSAFE_GRPAPI 1 | ||
| 1051 | # endif | ||
| 1052 | #endif | ||
| 1053 | |||
| 1054 | #if !defined(X_INCLUDE_GRP_H) || defined(_XOS_INCLUDED_GRP_H) | ||
| 1055 | /* Do nothing. */ | ||
| 1056 | |||
| 1057 | #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) | ||
| 1058 | /* Use regular, unsafe API. */ | ||
| 1059 | typedef int _Xgetgrparams; /* dummy */ | ||
| 1060 | #define _XGetgrgid(g,p) getgrgid((g)) | ||
| 1061 | #define _XGetgrnam(n,p) getgrnam((n)) | ||
| 1062 | |||
| 1063 | #elif !defined(XOS_USE_MTSAFE_GRPAPI) || defined(XNO_MTSAFE_GRPAPI) | ||
| 1064 | /* Systems with thread support but no _r API. UnixWare 2.0. */ | ||
| 1065 | typedef struct { | ||
| 1066 | struct group grp; | ||
| 1067 | char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ | ||
| 1068 | struct group *pgrp; | ||
| 1069 | size_t len; | ||
| 1070 | } _Xgetgrparams; | ||
| 1071 | #ifdef SVR4 | ||
| 1072 | /* Copy the gr_passwd field too. */ | ||
| 1073 | # define _Xgrp_copyGroup(p) \ | ||
| 1074 | ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \ | ||
| 1075 | ((p).grp.gr_name = (p).buf), \ | ||
| 1076 | ((p).len = strlen((p).pgrp->gr_name)), \ | ||
| 1077 | strcpy((p).grp.gr_name, (p).pgrp->gr_name), \ | ||
| 1078 | ((p).grp.gr_passwd = (p).grp.gr_name + (p).len + 1), \ | ||
| 1079 | ((p).pgrp = &(p).grp), \ | ||
| 1080 | 0 ) | ||
| 1081 | #else | ||
| 1082 | # define _Xgrp_copyGroup(p) \ | ||
| 1083 | ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \ | ||
| 1084 | ((p).grp.gr_name = (p).buf), \ | ||
| 1085 | strcpy((p).grp.gr_name, (p).pgrp->gr_name), \ | ||
| 1086 | ((p).pgrp = &(p).grp), \ | ||
| 1087 | 0 ) | ||
| 1088 | #endif | ||
| 1089 | #define _XGetgrgid(g,p) \ | ||
| 1090 | ( (_Xos_processLock), \ | ||
| 1091 | (((p).pgrp = getgrgid((g))) ? _Xgrp_copyGroup(p) : 0), \ | ||
| 1092 | (_Xos_processUnlock), \ | ||
| 1093 | (p).pgrp ) | ||
| 1094 | #define _XGetgrnam(n,p) \ | ||
| 1095 | ( (_Xos_processLock), \ | ||
| 1096 | (((p).pgrp = getgrnam((n))) ? _Xgrp_copyGroup(p) : 0), \ | ||
| 1097 | (_Xos_processUnlock), \ | ||
| 1098 | (p).pgrp ) | ||
| 1099 | |||
| 1100 | #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && (defined(sun) || defined(__osf__)) | ||
| 1101 | /* Non-POSIX API. Solaris, DEC v3.2. | ||
| 1102 | * | ||
| 1103 | * extern struct group *getgrgid_r(gid_t, struct group *, char *, int); | ||
| 1104 | * extern struct group *getgrnam_r(const char *, struct group *, char *, int); | ||
| 1105 | */ | ||
| 1106 | typedef struct { | ||
| 1107 | struct group grp; | ||
| 1108 | char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ | ||
| 1109 | } _Xgetgrparams; | ||
| 1110 | #define _XGetgrgid(g,p) getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf)) | ||
| 1111 | #define _XGetgrnam(n,p) getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf)) | ||
| 1112 | |||
| 1113 | #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) | ||
| 1114 | /* Non-POSIX API. HP/UX 10, AIX 4. | ||
| 1115 | * | ||
| 1116 | * extern int getgrgid_r(gid_t, struct group *, char *, int); | ||
| 1117 | * extern int getgrnam_r(const char *, struct group *, char *, int); | ||
| 1118 | */ | ||
| 1119 | typedef struct { | ||
| 1120 | struct group grp; | ||
| 1121 | char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ | ||
| 1122 | } _Xgetgrparams; | ||
| 1123 | #define _XGetgrgid(g,p) \ | ||
| 1124 | ((getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf)) ? NULL : &(p).grp)) | ||
| 1125 | #define _XGetgrnam(n,p) \ | ||
| 1126 | ((getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf)) ? NULL : &(p).grp)) | ||
| 1127 | |||
| 1128 | #else | ||
| 1129 | /* POSIX final API. DEC v4.0, IRIX 6.2. | ||
| 1130 | * | ||
| 1131 | * int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); | ||
| 1132 | * int getgrnam_r(const char *, struct group *, char *, size_t, struct group **); | ||
| 1133 | */ | ||
| 1134 | # if defined(__osf__) | ||
| 1135 | /* OSF/1 V4.0 <grp.h> doesn't declare the _P routines, breaking under C++. */ | ||
| 1136 | extern int _Pgetgrgid_r(gid_t, struct group *, char *, size_t, struct group **); | ||
| 1137 | extern int _Pgetgrnam_r(const char *, struct group *, char *, size_t, struct group **); | ||
| 1138 | # endif | ||
| 1139 | typedef struct { | ||
| 1140 | struct group grp; | ||
| 1141 | char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ | ||
| 1142 | struct group *result; | ||
| 1143 | } _Xgetgrparams; | ||
| 1144 | |||
| 1145 | #define _XGetgrgid(g,p) \ | ||
| 1146 | ((getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf), &(p).result) ? \ | ||
| 1147 | NULL : (p).result)) | ||
| 1148 | #define _XGetgrnam(n,p) \ | ||
| 1149 | ((getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf), &(p).result) ? \ | ||
| 1150 | NULL : (p).result)) | ||
| 1151 | #endif | ||
| 1152 | |||
| 1153 | #if defined(X_INCLUDE_GRP_H) && !defined(_XOS_INCLUDED_GRP_H) | ||
| 1154 | # define _XOS_INCLUDED_GRP_H | ||
| 1155 | #endif | ||
| 1156 | |||
| 1157 | |||
| 1158 | #ifdef __cplusplus | ||
| 1159 | } /* Close scope of 'extern "C"' declaration which encloses file. */ | ||
| 1160 | #endif | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xosdefs.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xosdefs.h new file mode 100644 index 0000000000..d6c76826db --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xosdefs.h | |||
| @@ -0,0 +1,166 @@ | |||
| 1 | /* | ||
| 2 | * O/S-dependent (mis)feature macro definitions | ||
| 3 | * | ||
| 4 | * $XdotOrg: proto/X11/Xosdefs.h,v 1.7 2005/11/08 06:33:25 jkj Exp $ | ||
| 5 | * $Xorg: Xosdefs.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $ | ||
| 6 | * | ||
| 7 | Copyright 1991, 1998 The Open Group | ||
| 8 | |||
| 9 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 10 | documentation for any purpose is hereby granted without fee, provided that | ||
| 11 | the above copyright notice appear in all copies and that both that | ||
| 12 | copyright notice and this permission notice appear in supporting | ||
| 13 | documentation. | ||
| 14 | |||
| 15 | The above copyright notice and this permission notice shall be included in | ||
| 16 | all copies or substantial portions of the Software. | ||
| 17 | |||
| 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 21 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 22 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 24 | |||
| 25 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 26 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 27 | in this Software without prior written authorization from The Open Group. | ||
| 28 | */ | ||
| 29 | /* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */ | ||
| 30 | |||
| 31 | #ifndef _XOSDEFS_H_ | ||
| 32 | #define _XOSDEFS_H_ | ||
| 33 | |||
| 34 | /* | ||
| 35 | * X_NOT_STDC_ENV means does not have ANSI C header files. Lack of this | ||
| 36 | * symbol does NOT mean that the system has stdarg.h. | ||
| 37 | * | ||
| 38 | * X_NOT_POSIX means does not have POSIX header files. Lack of this | ||
| 39 | * symbol does NOT mean that the POSIX environment is the default. | ||
| 40 | * You may still have to define _POSIX_SOURCE to get it. | ||
| 41 | */ | ||
| 42 | |||
| 43 | #ifdef NOSTDHDRS | ||
| 44 | #define X_NOT_POSIX | ||
| 45 | #define X_NOT_STDC_ENV | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #ifdef sony | ||
| 49 | #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) | ||
| 50 | #define X_NOT_POSIX | ||
| 51 | #endif | ||
| 52 | #endif | ||
| 53 | |||
| 54 | #ifdef UTEK | ||
| 55 | #define X_NOT_POSIX | ||
| 56 | #define X_NOT_STDC_ENV | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #ifdef vax | ||
| 60 | #ifndef ultrix /* assume vanilla BSD */ | ||
| 61 | #define X_NOT_POSIX | ||
| 62 | #define X_NOT_STDC_ENV | ||
| 63 | #endif | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #ifdef luna | ||
| 67 | #define X_NOT_POSIX | ||
| 68 | #define X_NOT_STDC_ENV | ||
| 69 | #endif | ||
| 70 | |||
| 71 | #ifdef Mips | ||
| 72 | #define X_NOT_POSIX | ||
| 73 | #define X_NOT_STDC_ENV | ||
| 74 | #endif | ||
| 75 | |||
| 76 | #ifdef USL | ||
| 77 | #ifdef SYSV /* (release 3.2) */ | ||
| 78 | #define X_NOT_POSIX | ||
| 79 | #define X_NOT_STDC_ENV | ||
| 80 | #endif | ||
| 81 | #endif | ||
| 82 | |||
| 83 | #ifdef _SCO_DS | ||
| 84 | #ifndef __SCO__ | ||
| 85 | #define __SCO__ | ||
| 86 | #endif | ||
| 87 | #endif | ||
| 88 | |||
| 89 | #ifdef i386 | ||
| 90 | #ifdef SYSV | ||
| 91 | #if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \ | ||
| 92 | !defined(__UNIXWARE__) && !defined(sun) | ||
| 93 | #if !defined(_POSIX_SOURCE) | ||
| 94 | #define X_NOT_POSIX | ||
| 95 | #endif | ||
| 96 | #define X_NOT_STDC_ENV | ||
| 97 | #endif | ||
| 98 | #endif | ||
| 99 | #endif | ||
| 100 | |||
| 101 | #ifdef MOTOROLA | ||
| 102 | #ifdef SYSV | ||
| 103 | #define X_NOT_STDC_ENV | ||
| 104 | #endif | ||
| 105 | #endif | ||
| 106 | |||
| 107 | #ifdef sun | ||
| 108 | /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4 | ||
| 109 | * This check allows non-Imake configured programs to build correctly. | ||
| 110 | */ | ||
| 111 | #if defined(__SVR4) && !defined(SVR4) | ||
| 112 | #define SVR4 1 | ||
| 113 | #endif | ||
| 114 | #ifdef SVR4 | ||
| 115 | /* define this to whatever it needs to be */ | ||
| 116 | #define X_POSIX_C_SOURCE 199300L | ||
| 117 | #endif | ||
| 118 | #endif | ||
| 119 | |||
| 120 | #ifdef WIN32 | ||
| 121 | #ifndef _POSIX_ | ||
| 122 | #define X_NOT_POSIX | ||
| 123 | #endif | ||
| 124 | #endif | ||
| 125 | |||
| 126 | #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX) | ||
| 127 | #define X_NOT_POSIX | ||
| 128 | #define X_NOT_STDC_ENV | ||
| 129 | #endif | ||
| 130 | |||
| 131 | #ifdef __UNIXOS2__ | ||
| 132 | #define USGISH | ||
| 133 | #define NULL_NOT_ZERO | ||
| 134 | #endif | ||
| 135 | |||
| 136 | #ifdef __DARWIN__ | ||
| 137 | #define NULL_NOT_ZERO | ||
| 138 | #endif | ||
| 139 | |||
| 140 | #ifdef __GNU__ | ||
| 141 | #ifndef PATH_MAX | ||
| 142 | #define PATH_MAX 4096 | ||
| 143 | #endif | ||
| 144 | #ifndef MAXPATHLEN | ||
| 145 | #define MAXPATHLEN 4096 | ||
| 146 | #endif | ||
| 147 | #endif | ||
| 148 | |||
| 149 | #if defined(__SCO__) || defined(__UNIXWARE__) | ||
| 150 | # ifndef PATH_MAX | ||
| 151 | # define PATH_MAX 1024 | ||
| 152 | # endif | ||
| 153 | # ifndef MAXPATHLEN | ||
| 154 | # define MAXPATHLEN 1024 | ||
| 155 | # endif | ||
| 156 | #endif | ||
| 157 | |||
| 158 | #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \ | ||
| 159 | || defined(__Darwin__) || defined(__DragonFly__) | ||
| 160 | # ifndef CSRG_BASED | ||
| 161 | # define CSRG_BASED | ||
| 162 | # endif | ||
| 163 | #endif | ||
| 164 | |||
| 165 | #endif /* _XOSDEFS_H_ */ | ||
| 166 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xpoll.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xpoll.h new file mode 100644 index 0000000000..e483c21e13 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xpoll.h | |||
| @@ -0,0 +1,255 @@ | |||
| 1 | /* $Xorg: Xpoll.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | |||
| 5 | Copyright 1994, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included | ||
| 14 | in all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 19 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | |||
| 24 | Except as contained in this notice, the name of The Open Group shall | ||
| 25 | not be used in advertising or otherwise to promote the sale, use or | ||
| 26 | other dealings in this Software without prior written authorization | ||
| 27 | from The Open Group. | ||
| 28 | |||
| 29 | */ | ||
| 30 | |||
| 31 | /* | ||
| 32 | * Copyright © 2005 Daniel Stone | ||
| 33 | * | ||
| 34 | * Permission to use, copy, modify, distribute, and sell this software and its | ||
| 35 | * documentation for any purpose is hereby granted without fee, provided that | ||
| 36 | * the above copyright notice appear in all copies and that both that | ||
| 37 | * copyright notice and this permission notice appear in supporting | ||
| 38 | * documentation, and that the name of Daniel Stone not be used in advertising | ||
| 39 | * or publicity pertaining to distribution of the software without specific, | ||
| 40 | * written prior permission. Daniel Stone makes no representations about the | ||
| 41 | * suitability of this software for any purpose. It is provided "as is" | ||
| 42 | * without express or implied warranty. | ||
| 43 | * | ||
| 44 | * DANIEL STONE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 45 | * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 46 | * DANIEL STONE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 47 | * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | ||
| 48 | * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 49 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 50 | */ | ||
| 51 | |||
| 52 | /* $XFree86: xc/include/Xpoll.h,v 3.8 2001/01/17 17:53:11 dawes Exp $ */ | ||
| 53 | |||
| 54 | #ifndef _XPOLL_H_ | ||
| 55 | #define _XPOLL_H_ | ||
| 56 | |||
| 57 | #ifndef WIN32 | ||
| 58 | |||
| 59 | #ifndef USE_POLL | ||
| 60 | |||
| 61 | #include <X11/Xos.h> | ||
| 62 | |||
| 63 | /* Below is the monster branch from hell. Basically, most systems will drop to | ||
| 64 | * 'the branch below is the fallthrough for halfway modern systems', and include | ||
| 65 | * <sys/select.h>, so we get the FD_* macros. */ | ||
| 66 | #if !defined(DGUX) | ||
| 67 | # if (defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE) | ||
| 68 | # include <sys/select.h> | ||
| 69 | # ifdef luna | ||
| 70 | # include <sysent.h> | ||
| 71 | # endif | ||
| 72 | # else /* not SVR4/CRAY/AIXv3 */ | ||
| 73 | # if defined(AIXV4) /* AIX 4.2 fubar-ed <sys/select.h>, so try really hard. */ | ||
| 74 | # if !defined(NFDBITS) | ||
| 75 | # include <sys/select.h> | ||
| 76 | # endif | ||
| 77 | # else /* the branch below is the fallthrough for halfway modern systems */ | ||
| 78 | # ifdef __QNX__ /* Make sure we get 256 bit select masks */ | ||
| 79 | # define FD_SETSIZE 256 | ||
| 80 | # endif | ||
| 81 | # include <sys/select.h> | ||
| 82 | # endif | ||
| 83 | # endif | ||
| 84 | #else /* DGUX -- No sys/select in Intel DG/ux */ | ||
| 85 | # include <sys/time.h> | ||
| 86 | # include <sys/types.h> | ||
| 87 | # include <unistd.h> | ||
| 88 | #endif | ||
| 89 | |||
| 90 | #include <X11/Xmd.h> | ||
| 91 | |||
| 92 | #ifdef CSRG_BASED | ||
| 93 | #include <sys/param.h> | ||
| 94 | # if BSD < 199103 | ||
| 95 | typedef long fd_mask; | ||
| 96 | # endif | ||
| 97 | #endif | ||
| 98 | |||
| 99 | #define XFD_SETSIZE 256 | ||
| 100 | |||
| 101 | #ifndef FD_SETSIZE | ||
| 102 | #define FD_SETSIZE XFD_SETSIZE | ||
| 103 | #endif | ||
| 104 | |||
| 105 | #ifndef NBBY | ||
| 106 | #define NBBY 8 /* number of bits in a byte */ | ||
| 107 | #endif | ||
| 108 | |||
| 109 | #ifndef NFDBITS | ||
| 110 | #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #ifndef howmany | ||
| 114 | #define howmany(x,y) (((x)+((y)-1))/(y)) | ||
| 115 | #endif | ||
| 116 | |||
| 117 | #if defined(BSD) && BSD < 198911 && !defined(luna) | ||
| 118 | typedef struct fd_set { | ||
| 119 | fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; | ||
| 120 | } fd_set; | ||
| 121 | #endif | ||
| 122 | |||
| 123 | #ifndef hpux /* and perhaps old BSD ??? */ | ||
| 124 | # define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) | ||
| 125 | #else | ||
| 126 | # ifndef _XPG4_EXTENDED /* HPUX 9.x and earlier */ | ||
| 127 | # define Select(n,r,w,e,t) select(n,(int*)r,(int*)w,(int*)e,(struct timeval*)t) | ||
| 128 | # else | ||
| 129 | # define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) | ||
| 130 | # endif | ||
| 131 | #endif | ||
| 132 | |||
| 133 | #define __X_FDS_BITS __fds_bits | ||
| 134 | |||
| 135 | #ifndef __FDS_BITS | ||
| 136 | # define __FDS_BITS(p) ((p)->__X_FDS_BITS) | ||
| 137 | #endif | ||
| 138 | |||
| 139 | #define __XFDS_BITS(p, n) (__FDS_BITS(p))[n] | ||
| 140 | |||
| 141 | #ifndef FD_SET | ||
| 142 | #define FD_SET(n, p) (__XFDS_BITS(p, ((n)/NFDBITS)) |= ((fd_mask)1 << ((n) % NFDBITS))) | ||
| 143 | #endif | ||
| 144 | #ifndef FD_CLR | ||
| 145 | #define FD_CLR(n, p) (__XFDS_BITS((p), ((n)/NFDBITS)) &= ~((fd_mask)1 << ((n) % NFDBITS))) | ||
| 146 | #endif | ||
| 147 | #ifndef FD_ISSET | ||
| 148 | #define FD_ISSET(n, p) ((__XFDS_BITS((p), ((n)/NFDBITS))) & ((fd_mask)1 << ((n) % NFDBITS))) | ||
| 149 | #endif | ||
| 150 | #ifndef FD_ZERO | ||
| 151 | #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) | ||
| 152 | #endif | ||
| 153 | |||
| 154 | /* | ||
| 155 | * The howmany(FD_SETSIZE, NFDBITS) computes the number of elements in the | ||
| 156 | * array. before accessing an element in the array we check it exists. | ||
| 157 | * If it does not exist then the compiler discards the code to access it. | ||
| 158 | */ | ||
| 159 | #define XFD_ANYSET(p) \ | ||
| 160 | ((howmany(FD_SETSIZE, NFDBITS) > 0 && (__XFDS_BITS(p, 0))) || \ | ||
| 161 | (howmany(FD_SETSIZE, NFDBITS) > 1 && (__XFDS_BITS(p, 1))) || \ | ||
| 162 | (howmany(FD_SETSIZE, NFDBITS) > 2 && (__XFDS_BITS(p, 2))) || \ | ||
| 163 | (howmany(FD_SETSIZE, NFDBITS) > 3 && (__XFDS_BITS(p, 3))) || \ | ||
| 164 | (howmany(FD_SETSIZE, NFDBITS) > 4 && (__XFDS_BITS(p, 4))) || \ | ||
| 165 | (howmany(FD_SETSIZE, NFDBITS) > 5 && (__XFDS_BITS(p, 5))) || \ | ||
| 166 | (howmany(FD_SETSIZE, NFDBITS) > 6 && (__XFDS_BITS(p, 6))) || \ | ||
| 167 | (howmany(FD_SETSIZE, NFDBITS) > 7 && (__XFDS_BITS(p, 7)))) | ||
| 168 | |||
| 169 | #define XFD_COPYSET(src,dst) { \ | ||
| 170 | int __i__; \ | ||
| 171 | for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ | ||
| 172 | __XFDS_BITS((dst), __i__) = __XFDS_BITS((src), __i__); \ | ||
| 173 | } | ||
| 174 | #define XFD_ANDSET(dst,b1,b2) { \ | ||
| 175 | int __i__; \ | ||
| 176 | for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ | ||
| 177 | __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) & (__XFDS_BITS((b2), __i__))); \ | ||
| 178 | } | ||
| 179 | #define XFD_ORSET(dst,b1,b2) { \ | ||
| 180 | int __i__; \ | ||
| 181 | for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ | ||
| 182 | __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) | (__XFDS_BITS((b2), __i__))); \ | ||
| 183 | } | ||
| 184 | #define XFD_UNSET(dst,b1) { \ | ||
| 185 | int __i__; \ | ||
| 186 | for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ | ||
| 187 | __XFDS_BITS((dst), __i__) &= ~(__XFDS_BITS((b1), __i__)); \ | ||
| 188 | } | ||
| 189 | |||
| 190 | #else /* USE_POLL */ | ||
| 191 | #include <sys/poll.h> | ||
| 192 | #endif /* USE_POLL */ | ||
| 193 | |||
| 194 | #else /* WIN32 */ | ||
| 195 | |||
| 196 | #define XFD_SETSIZE 256 | ||
| 197 | #ifndef FD_SETSIZE | ||
| 198 | #define FD_SETSIZE XFD_SETSIZE | ||
| 199 | #endif | ||
| 200 | #include <X11/Xwinsock.h> | ||
| 201 | |||
| 202 | #define Select(n,r,w,e,t) select(0,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) | ||
| 203 | |||
| 204 | #define XFD_SETCOUNT(p) (((fd_set FAR *)(p))->fd_count) | ||
| 205 | #define XFD_FD(p,i) (((fd_set FAR *)(p))->fd_array[i]) | ||
| 206 | #define XFD_ANYSET(p) XFD_SETCOUNT(p) | ||
| 207 | |||
| 208 | #define XFD_COPYSET(src,dst) { \ | ||
| 209 | u_int __i; \ | ||
| 210 | FD_ZERO(dst); \ | ||
| 211 | for (__i = 0; __i < XFD_SETCOUNT(src) ; __i++) { \ | ||
| 212 | XFD_FD(dst,__i) = XFD_FD(src,__i); \ | ||
| 213 | } \ | ||
| 214 | XFD_SETCOUNT(dst) = XFD_SETCOUNT(src); \ | ||
| 215 | } | ||
| 216 | |||
| 217 | #define XFD_ANDSET(dst,b1,b2) { \ | ||
| 218 | u_int __i; \ | ||
| 219 | FD_ZERO(dst); \ | ||
| 220 | for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ | ||
| 221 | if (FD_ISSET(XFD_FD(b1,__i), b2)) \ | ||
| 222 | FD_SET(XFD_FD(b1,__i), dst); \ | ||
| 223 | } \ | ||
| 224 | } | ||
| 225 | |||
| 226 | #define XFD_ORSET(dst,b1,b2) { \ | ||
| 227 | u_int __i; \ | ||
| 228 | if (dst != b1) XFD_COPYSET(b1,dst); \ | ||
| 229 | for (__i = 0; __i < XFD_SETCOUNT(b2) ; __i++) { \ | ||
| 230 | if (!FD_ISSET(XFD_FD(b2,__i), dst)) \ | ||
| 231 | FD_SET(XFD_FD(b2,__i), dst); \ | ||
| 232 | } \ | ||
| 233 | } | ||
| 234 | |||
| 235 | /* this one is really sub-optimal */ | ||
| 236 | #define XFD_UNSET(dst,b1) { \ | ||
| 237 | u_int __i; \ | ||
| 238 | for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ | ||
| 239 | FD_CLR(XFD_FD(b1,__i), dst); \ | ||
| 240 | } \ | ||
| 241 | } | ||
| 242 | |||
| 243 | /* we have to pay the price of having an array here, unlike with bitmasks | ||
| 244 | calling twice FD_SET with the same fd is not transparent, so be careful */ | ||
| 245 | #undef FD_SET | ||
| 246 | #define FD_SET(fd,set) do { \ | ||
| 247 | if (XFD_SETCOUNT(set) < FD_SETSIZE && !FD_ISSET(fd,set)) \ | ||
| 248 | XFD_FD(set,XFD_SETCOUNT(set)++)=(fd); \ | ||
| 249 | } while(0) | ||
| 250 | |||
| 251 | #define getdtablesize() FD_SETSIZE | ||
| 252 | |||
| 253 | #endif /* WIN32 */ | ||
| 254 | |||
| 255 | #endif /* _XPOLL_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xproto.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xproto.h new file mode 100644 index 0000000000..e5bba70082 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xproto.h | |||
| @@ -0,0 +1,2129 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: Xproto.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ | ||
| 3 | */ | ||
| 4 | |||
| 5 | /* Definitions for the X window system used by server and c bindings */ | ||
| 6 | |||
| 7 | /* | ||
| 8 | * This packet-construction scheme makes the following assumptions: | ||
| 9 | * | ||
| 10 | * 1. The compiler is able | ||
| 11 | * to generate code which addresses one- and two-byte quantities. | ||
| 12 | * In the worst case, this would be done with bit-fields. If bit-fields | ||
| 13 | * are used it may be necessary to reorder the request fields in this file, | ||
| 14 | * depending on the order in which the machine assigns bit fields to | ||
| 15 | * machine words. There may also be a problem with sign extension, | ||
| 16 | * as K+R specify that bitfields are always unsigned. | ||
| 17 | * | ||
| 18 | * 2. 2- and 4-byte fields in packet structures must be ordered by hand | ||
| 19 | * such that they are naturally-aligned, so that no compiler will ever | ||
| 20 | * insert padding bytes. | ||
| 21 | * | ||
| 22 | * 3. All packets are hand-padded to a multiple of 4 bytes, for | ||
| 23 | * the same reason. | ||
| 24 | */ | ||
| 25 | |||
| 26 | #ifndef XPROTO_H | ||
| 27 | #define XPROTO_H | ||
| 28 | |||
| 29 | /*********************************************************** | ||
| 30 | |||
| 31 | Copyright 1987, 1998 The Open Group | ||
| 32 | |||
| 33 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 34 | documentation for any purpose is hereby granted without fee, provided that | ||
| 35 | the above copyright notice appear in all copies and that both that | ||
| 36 | copyright notice and this permission notice appear in supporting | ||
| 37 | documentation. | ||
| 38 | |||
| 39 | The above copyright notice and this permission notice shall be included in | ||
| 40 | all copies or substantial portions of the Software. | ||
| 41 | |||
| 42 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 43 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 44 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 45 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 46 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 47 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 48 | |||
| 49 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 50 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 51 | in this Software without prior written authorization from The Open Group. | ||
| 52 | |||
| 53 | |||
| 54 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 55 | |||
| 56 | All Rights Reserved | ||
| 57 | |||
| 58 | Permission to use, copy, modify, and distribute this software and its | ||
| 59 | documentation for any purpose and without fee is hereby granted, | ||
| 60 | provided that the above copyright notice appear in all copies and that | ||
| 61 | both that copyright notice and this permission notice appear in | ||
| 62 | supporting documentation, and that the name of Digital not be | ||
| 63 | used in advertising or publicity pertaining to distribution of the | ||
| 64 | software without specific, written prior permission. | ||
| 65 | |||
| 66 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 67 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 68 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 69 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 70 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 71 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 72 | SOFTWARE. | ||
| 73 | |||
| 74 | ******************************************************************/ | ||
| 75 | |||
| 76 | #include <X11/Xmd.h> | ||
| 77 | #include <X11/Xprotostr.h> | ||
| 78 | |||
| 79 | /* | ||
| 80 | * Define constants for the sizes of the network packets. The sz_ prefix is | ||
| 81 | * used instead of something more descriptive so that the symbols are no more | ||
| 82 | * than 32 characters in length (which causes problems for some compilers). | ||
| 83 | */ | ||
| 84 | #define sz_xSegment 8 | ||
| 85 | #define sz_xPoint 4 | ||
| 86 | #define sz_xRectangle 8 | ||
| 87 | #define sz_xArc 12 | ||
| 88 | #define sz_xConnClientPrefix 12 | ||
| 89 | #define sz_xConnSetupPrefix 8 | ||
| 90 | #define sz_xConnSetup 32 | ||
| 91 | #define sz_xPixmapFormat 8 | ||
| 92 | #define sz_xDepth 8 | ||
| 93 | #define sz_xVisualType 24 | ||
| 94 | #define sz_xWindowRoot 40 | ||
| 95 | #define sz_xTimecoord 8 | ||
| 96 | #define sz_xHostEntry 4 | ||
| 97 | #define sz_xCharInfo 12 | ||
| 98 | #define sz_xFontProp 8 | ||
| 99 | #define sz_xTextElt 2 | ||
| 100 | #define sz_xColorItem 12 | ||
| 101 | #define sz_xrgb 8 | ||
| 102 | #define sz_xGenericReply 32 | ||
| 103 | #define sz_xGetWindowAttributesReply 44 | ||
| 104 | #define sz_xGetGeometryReply 32 | ||
| 105 | #define sz_xQueryTreeReply 32 | ||
| 106 | #define sz_xInternAtomReply 32 | ||
| 107 | #define sz_xGetAtomNameReply 32 | ||
| 108 | #define sz_xGetPropertyReply 32 | ||
| 109 | #define sz_xListPropertiesReply 32 | ||
| 110 | #define sz_xGetSelectionOwnerReply 32 | ||
| 111 | #define sz_xGrabPointerReply 32 | ||
| 112 | #define sz_xQueryPointerReply 32 | ||
| 113 | #define sz_xGetMotionEventsReply 32 | ||
| 114 | #define sz_xTranslateCoordsReply 32 | ||
| 115 | #define sz_xGetInputFocusReply 32 | ||
| 116 | #define sz_xQueryKeymapReply 40 | ||
| 117 | #define sz_xQueryFontReply 60 | ||
| 118 | #define sz_xQueryTextExtentsReply 32 | ||
| 119 | #define sz_xListFontsReply 32 | ||
| 120 | #define sz_xGetFontPathReply 32 | ||
| 121 | #define sz_xGetImageReply 32 | ||
| 122 | #define sz_xListInstalledColormapsReply 32 | ||
| 123 | #define sz_xAllocColorReply 32 | ||
| 124 | #define sz_xAllocNamedColorReply 32 | ||
| 125 | #define sz_xAllocColorCellsReply 32 | ||
| 126 | #define sz_xAllocColorPlanesReply 32 | ||
| 127 | #define sz_xQueryColorsReply 32 | ||
| 128 | #define sz_xLookupColorReply 32 | ||
| 129 | #define sz_xQueryBestSizeReply 32 | ||
| 130 | #define sz_xQueryExtensionReply 32 | ||
| 131 | #define sz_xListExtensionsReply 32 | ||
| 132 | #define sz_xSetMappingReply 32 | ||
| 133 | #define sz_xGetKeyboardControlReply 52 | ||
| 134 | #define sz_xGetPointerControlReply 32 | ||
| 135 | #define sz_xGetScreenSaverReply 32 | ||
| 136 | #define sz_xListHostsReply 32 | ||
| 137 | #define sz_xSetModifierMappingReply 32 | ||
| 138 | #define sz_xError 32 | ||
| 139 | #define sz_xEvent 32 | ||
| 140 | #define sz_xKeymapEvent 32 | ||
| 141 | #define sz_xReq 4 | ||
| 142 | #define sz_xResourceReq 8 | ||
| 143 | #define sz_xCreateWindowReq 32 | ||
| 144 | #define sz_xChangeWindowAttributesReq 12 | ||
| 145 | #define sz_xChangeSaveSetReq 8 | ||
| 146 | #define sz_xReparentWindowReq 16 | ||
| 147 | #define sz_xConfigureWindowReq 12 | ||
| 148 | #define sz_xCirculateWindowReq 8 | ||
| 149 | #define sz_xInternAtomReq 8 | ||
| 150 | #define sz_xChangePropertyReq 24 | ||
| 151 | #define sz_xDeletePropertyReq 12 | ||
| 152 | #define sz_xGetPropertyReq 24 | ||
| 153 | #define sz_xSetSelectionOwnerReq 16 | ||
| 154 | #define sz_xConvertSelectionReq 24 | ||
| 155 | #define sz_xSendEventReq 44 | ||
| 156 | #define sz_xGrabPointerReq 24 | ||
| 157 | #define sz_xGrabButtonReq 24 | ||
| 158 | #define sz_xUngrabButtonReq 12 | ||
| 159 | #define sz_xChangeActivePointerGrabReq 16 | ||
| 160 | #define sz_xGrabKeyboardReq 16 | ||
| 161 | #define sz_xGrabKeyReq 16 | ||
| 162 | #define sz_xUngrabKeyReq 12 | ||
| 163 | #define sz_xAllowEventsReq 8 | ||
| 164 | #define sz_xGetMotionEventsReq 16 | ||
| 165 | #define sz_xTranslateCoordsReq 16 | ||
| 166 | #define sz_xWarpPointerReq 24 | ||
| 167 | #define sz_xSetInputFocusReq 12 | ||
| 168 | #define sz_xOpenFontReq 12 | ||
| 169 | #define sz_xQueryTextExtentsReq 8 | ||
| 170 | #define sz_xListFontsReq 8 | ||
| 171 | #define sz_xSetFontPathReq 8 | ||
| 172 | #define sz_xCreatePixmapReq 16 | ||
| 173 | #define sz_xCreateGCReq 16 | ||
| 174 | #define sz_xChangeGCReq 12 | ||
| 175 | #define sz_xCopyGCReq 16 | ||
| 176 | #define sz_xSetDashesReq 12 | ||
| 177 | #define sz_xSetClipRectanglesReq 12 | ||
| 178 | #define sz_xCopyAreaReq 28 | ||
| 179 | #define sz_xCopyPlaneReq 32 | ||
| 180 | #define sz_xPolyPointReq 12 | ||
| 181 | #define sz_xPolySegmentReq 12 | ||
| 182 | #define sz_xFillPolyReq 16 | ||
| 183 | #define sz_xPutImageReq 24 | ||
| 184 | #define sz_xGetImageReq 20 | ||
| 185 | #define sz_xPolyTextReq 16 | ||
| 186 | #define sz_xImageTextReq 16 | ||
| 187 | #define sz_xCreateColormapReq 16 | ||
| 188 | #define sz_xCopyColormapAndFreeReq 12 | ||
| 189 | #define sz_xAllocColorReq 16 | ||
| 190 | #define sz_xAllocNamedColorReq 12 | ||
| 191 | #define sz_xAllocColorCellsReq 12 | ||
| 192 | #define sz_xAllocColorPlanesReq 16 | ||
| 193 | #define sz_xFreeColorsReq 12 | ||
| 194 | #define sz_xStoreColorsReq 8 | ||
| 195 | #define sz_xStoreNamedColorReq 16 | ||
| 196 | #define sz_xQueryColorsReq 8 | ||
| 197 | #define sz_xLookupColorReq 12 | ||
| 198 | #define sz_xCreateCursorReq 32 | ||
| 199 | #define sz_xCreateGlyphCursorReq 32 | ||
| 200 | #define sz_xRecolorCursorReq 20 | ||
| 201 | #define sz_xQueryBestSizeReq 12 | ||
| 202 | #define sz_xQueryExtensionReq 8 | ||
| 203 | #define sz_xChangeKeyboardControlReq 8 | ||
| 204 | #define sz_xBellReq 4 | ||
| 205 | #define sz_xChangePointerControlReq 12 | ||
| 206 | #define sz_xSetScreenSaverReq 12 | ||
| 207 | #define sz_xChangeHostsReq 8 | ||
| 208 | #define sz_xListHostsReq 4 | ||
| 209 | #define sz_xChangeModeReq 4 | ||
| 210 | #define sz_xRotatePropertiesReq 12 | ||
| 211 | #define sz_xReply 32 | ||
| 212 | #define sz_xGrabKeyboardReply 32 | ||
| 213 | #define sz_xListFontsWithInfoReply 60 | ||
| 214 | #define sz_xSetPointerMappingReply 32 | ||
| 215 | #define sz_xGetKeyboardMappingReply 32 | ||
| 216 | #define sz_xGetPointerMappingReply 32 | ||
| 217 | #define sz_xGetModifierMappingReply 32 | ||
| 218 | #define sz_xListFontsWithInfoReq 8 | ||
| 219 | #define sz_xPolyLineReq 12 | ||
| 220 | #define sz_xPolyArcReq 12 | ||
| 221 | #define sz_xPolyRectangleReq 12 | ||
| 222 | #define sz_xPolyFillRectangleReq 12 | ||
| 223 | #define sz_xPolyFillArcReq 12 | ||
| 224 | #define sz_xPolyText8Req 16 | ||
| 225 | #define sz_xPolyText16Req 16 | ||
| 226 | #define sz_xImageText8Req 16 | ||
| 227 | #define sz_xImageText16Req 16 | ||
| 228 | #define sz_xSetPointerMappingReq 4 | ||
| 229 | #define sz_xForceScreenSaverReq 4 | ||
| 230 | #define sz_xSetCloseDownModeReq 4 | ||
| 231 | #define sz_xClearAreaReq 16 | ||
| 232 | #define sz_xSetAccessControlReq 4 | ||
| 233 | #define sz_xGetKeyboardMappingReq 8 | ||
| 234 | #define sz_xSetModifierMappingReq 4 | ||
| 235 | #define sz_xPropIconSize 24 | ||
| 236 | #define sz_xChangeKeyboardMappingReq 8 | ||
| 237 | |||
| 238 | |||
| 239 | /* For the purpose of the structure definitions in this file, | ||
| 240 | we must redefine the following types in terms of Xmd.h's types, which may | ||
| 241 | include bit fields. All of these are #undef'd at the end of this file, | ||
| 242 | restoring the definitions in X.h. */ | ||
| 243 | |||
| 244 | #define Window CARD32 | ||
| 245 | #define Drawable CARD32 | ||
| 246 | #define Font CARD32 | ||
| 247 | #define Pixmap CARD32 | ||
| 248 | #define Cursor CARD32 | ||
| 249 | #define Colormap CARD32 | ||
| 250 | #define GContext CARD32 | ||
| 251 | #define Atom CARD32 | ||
| 252 | #define VisualID CARD32 | ||
| 253 | #define Time CARD32 | ||
| 254 | #define KeyCode CARD8 | ||
| 255 | #define KeySym CARD32 | ||
| 256 | |||
| 257 | #define X_TCP_PORT 6000 /* add display number */ | ||
| 258 | |||
| 259 | #define xTrue 1 | ||
| 260 | #define xFalse 0 | ||
| 261 | |||
| 262 | |||
| 263 | typedef CARD16 KeyButMask; | ||
| 264 | |||
| 265 | /***************** | ||
| 266 | connection setup structure. This is followed by | ||
| 267 | numRoots xWindowRoot structs. | ||
| 268 | *****************/ | ||
| 269 | |||
| 270 | typedef struct { | ||
| 271 | CARD8 byteOrder; | ||
| 272 | BYTE pad; | ||
| 273 | CARD16 majorVersion B16, minorVersion B16; | ||
| 274 | CARD16 nbytesAuthProto B16; /* Authorization protocol */ | ||
| 275 | CARD16 nbytesAuthString B16; /* Authorization string */ | ||
| 276 | CARD16 pad2 B16; | ||
| 277 | } xConnClientPrefix; | ||
| 278 | |||
| 279 | typedef struct { | ||
| 280 | CARD8 success; | ||
| 281 | BYTE lengthReason; /*num bytes in string following if failure */ | ||
| 282 | CARD16 majorVersion B16, | ||
| 283 | minorVersion B16; | ||
| 284 | CARD16 length B16; /* 1/4 additional bytes in setup info */ | ||
| 285 | } xConnSetupPrefix; | ||
| 286 | |||
| 287 | |||
| 288 | typedef struct { | ||
| 289 | CARD32 release B32; | ||
| 290 | CARD32 ridBase B32, | ||
| 291 | ridMask B32; | ||
| 292 | CARD32 motionBufferSize B32; | ||
| 293 | CARD16 nbytesVendor B16; /* number of bytes in vendor string */ | ||
| 294 | CARD16 maxRequestSize B16; | ||
| 295 | CARD8 numRoots; /* number of roots structs to follow */ | ||
| 296 | CARD8 numFormats; /* number of pixmap formats */ | ||
| 297 | CARD8 imageByteOrder; /* LSBFirst, MSBFirst */ | ||
| 298 | CARD8 bitmapBitOrder; /* LeastSignificant, MostSign...*/ | ||
| 299 | CARD8 bitmapScanlineUnit, /* 8, 16, 32 */ | ||
| 300 | bitmapScanlinePad; /* 8, 16, 32 */ | ||
| 301 | KeyCode minKeyCode, maxKeyCode; | ||
| 302 | CARD32 pad2 B32; | ||
| 303 | } xConnSetup; | ||
| 304 | |||
| 305 | typedef struct { | ||
| 306 | CARD8 depth; | ||
| 307 | CARD8 bitsPerPixel; | ||
| 308 | CARD8 scanLinePad; | ||
| 309 | CARD8 pad1; | ||
| 310 | CARD32 pad2 B32; | ||
| 311 | } xPixmapFormat; | ||
| 312 | |||
| 313 | /* window root */ | ||
| 314 | |||
| 315 | typedef struct { | ||
| 316 | CARD8 depth; | ||
| 317 | CARD8 pad1; | ||
| 318 | CARD16 nVisuals B16; /* number of xVisualType structures following */ | ||
| 319 | CARD32 pad2 B32; | ||
| 320 | } xDepth; | ||
| 321 | |||
| 322 | typedef struct { | ||
| 323 | VisualID visualID B32; | ||
| 324 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 325 | CARD8 c_class; | ||
| 326 | #else | ||
| 327 | CARD8 class; | ||
| 328 | #endif | ||
| 329 | CARD8 bitsPerRGB; | ||
| 330 | CARD16 colormapEntries B16; | ||
| 331 | CARD32 redMask B32, greenMask B32, blueMask B32; | ||
| 332 | CARD32 pad B32; | ||
| 333 | } xVisualType; | ||
| 334 | |||
| 335 | typedef struct { | ||
| 336 | Window windowId B32; | ||
| 337 | Colormap defaultColormap B32; | ||
| 338 | CARD32 whitePixel B32, blackPixel B32; | ||
| 339 | CARD32 currentInputMask B32; | ||
| 340 | CARD16 pixWidth B16, pixHeight B16; | ||
| 341 | CARD16 mmWidth B16, mmHeight B16; | ||
| 342 | CARD16 minInstalledMaps B16, maxInstalledMaps B16; | ||
| 343 | VisualID rootVisualID B32; | ||
| 344 | CARD8 backingStore; | ||
| 345 | BOOL saveUnders; | ||
| 346 | CARD8 rootDepth; | ||
| 347 | CARD8 nDepths; /* number of xDepth structures following */ | ||
| 348 | } xWindowRoot; | ||
| 349 | |||
| 350 | |||
| 351 | /***************************************************************** | ||
| 352 | * Structure Defns | ||
| 353 | * Structures needed for replies | ||
| 354 | *****************************************************************/ | ||
| 355 | |||
| 356 | /* Used in GetMotionEvents */ | ||
| 357 | |||
| 358 | typedef struct { | ||
| 359 | CARD32 time B32; | ||
| 360 | INT16 x B16, y B16; | ||
| 361 | } xTimecoord; | ||
| 362 | |||
| 363 | typedef struct { | ||
| 364 | CARD8 family; | ||
| 365 | BYTE pad; | ||
| 366 | CARD16 length B16; | ||
| 367 | } xHostEntry; | ||
| 368 | |||
| 369 | typedef struct { | ||
| 370 | INT16 leftSideBearing B16, | ||
| 371 | rightSideBearing B16, | ||
| 372 | characterWidth B16, | ||
| 373 | ascent B16, | ||
| 374 | descent B16; | ||
| 375 | CARD16 attributes B16; | ||
| 376 | } xCharInfo; | ||
| 377 | |||
| 378 | typedef struct { | ||
| 379 | Atom name B32; | ||
| 380 | CARD32 value B32; | ||
| 381 | } xFontProp; | ||
| 382 | |||
| 383 | /* | ||
| 384 | * non-aligned big-endian font ID follows this struct | ||
| 385 | */ | ||
| 386 | typedef struct { /* followed by string */ | ||
| 387 | CARD8 len; /* number of *characters* in string, or FontChange (255) | ||
| 388 | for font change, or 0 if just delta given */ | ||
| 389 | INT8 delta; | ||
| 390 | } xTextElt; | ||
| 391 | |||
| 392 | |||
| 393 | typedef struct { | ||
| 394 | CARD32 pixel B32; | ||
| 395 | CARD16 red B16, green B16, blue B16; | ||
| 396 | CARD8 flags; /* DoRed, DoGreen, DoBlue booleans */ | ||
| 397 | CARD8 pad; | ||
| 398 | } xColorItem; | ||
| 399 | |||
| 400 | |||
| 401 | typedef struct { | ||
| 402 | CARD16 red B16, green B16, blue B16, pad B16; | ||
| 403 | } xrgb; | ||
| 404 | |||
| 405 | typedef CARD8 KEYCODE; | ||
| 406 | |||
| 407 | |||
| 408 | /***************** | ||
| 409 | * XRep: | ||
| 410 | * meant to be 32 byte quantity | ||
| 411 | *****************/ | ||
| 412 | |||
| 413 | /* GenericReply is the common format of all replies. The "data" items | ||
| 414 | are specific to each individual reply type. */ | ||
| 415 | |||
| 416 | typedef struct { | ||
| 417 | BYTE type; /* X_Reply */ | ||
| 418 | BYTE data1; /* depends on reply type */ | ||
| 419 | CARD16 sequenceNumber B16; /* of last request received by server */ | ||
| 420 | CARD32 length B32; /* 4 byte quantities beyond size of GenericReply */ | ||
| 421 | CARD32 data00 B32; | ||
| 422 | CARD32 data01 B32; | ||
| 423 | CARD32 data02 B32; | ||
| 424 | CARD32 data03 B32; | ||
| 425 | CARD32 data04 B32; | ||
| 426 | CARD32 data05 B32; | ||
| 427 | } xGenericReply; | ||
| 428 | |||
| 429 | /* Individual reply formats. */ | ||
| 430 | |||
| 431 | typedef struct { | ||
| 432 | BYTE type; /* X_Reply */ | ||
| 433 | CARD8 backingStore; | ||
| 434 | CARD16 sequenceNumber B16; | ||
| 435 | CARD32 length B32; /* NOT 0; this is an extra-large reply */ | ||
| 436 | VisualID visualID B32; | ||
| 437 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 438 | CARD16 c_class B16; | ||
| 439 | #else | ||
| 440 | CARD16 class B16; | ||
| 441 | #endif | ||
| 442 | CARD8 bitGravity; | ||
| 443 | CARD8 winGravity; | ||
| 444 | CARD32 backingBitPlanes B32; | ||
| 445 | CARD32 backingPixel B32; | ||
| 446 | BOOL saveUnder; | ||
| 447 | BOOL mapInstalled; | ||
| 448 | CARD8 mapState; | ||
| 449 | BOOL override; | ||
| 450 | Colormap colormap B32; | ||
| 451 | CARD32 allEventMasks B32; | ||
| 452 | CARD32 yourEventMask B32; | ||
| 453 | CARD16 doNotPropagateMask B16; | ||
| 454 | CARD16 pad B16; | ||
| 455 | } xGetWindowAttributesReply; | ||
| 456 | |||
| 457 | typedef struct { | ||
| 458 | BYTE type; /* X_Reply */ | ||
| 459 | CARD8 depth; | ||
| 460 | CARD16 sequenceNumber B16; | ||
| 461 | CARD32 length B32; /* 0 */ | ||
| 462 | Window root B32; | ||
| 463 | INT16 x B16, y B16; | ||
| 464 | CARD16 width B16, height B16; | ||
| 465 | CARD16 borderWidth B16; | ||
| 466 | CARD16 pad1 B16; | ||
| 467 | CARD32 pad2 B32; | ||
| 468 | CARD32 pad3 B32; | ||
| 469 | } xGetGeometryReply; | ||
| 470 | |||
| 471 | typedef struct { | ||
| 472 | BYTE type; /* X_Reply */ | ||
| 473 | BYTE pad1; | ||
| 474 | CARD16 sequenceNumber B16; | ||
| 475 | CARD32 length B32; | ||
| 476 | Window root B32, parent B32; | ||
| 477 | CARD16 nChildren B16; | ||
| 478 | CARD16 pad2 B16; | ||
| 479 | CARD32 pad3 B32; | ||
| 480 | CARD32 pad4 B32; | ||
| 481 | CARD32 pad5 B32; | ||
| 482 | } xQueryTreeReply; | ||
| 483 | |||
| 484 | typedef struct { | ||
| 485 | BYTE type; /* X_Reply */ | ||
| 486 | BYTE pad1; | ||
| 487 | CARD16 sequenceNumber B16; | ||
| 488 | CARD32 length B32; /* 0 */ | ||
| 489 | Atom atom B32; | ||
| 490 | CARD32 pad2 B32; | ||
| 491 | CARD32 pad3 B32; | ||
| 492 | CARD32 pad4 B32; | ||
| 493 | CARD32 pad5 B32; | ||
| 494 | CARD32 pad6 B32; | ||
| 495 | } xInternAtomReply; | ||
| 496 | |||
| 497 | typedef struct { | ||
| 498 | BYTE type; /* X_Reply */ | ||
| 499 | BYTE pad1; | ||
| 500 | CARD16 sequenceNumber B16; | ||
| 501 | CARD32 length B32; /* of additional bytes */ | ||
| 502 | CARD16 nameLength B16; /* # of characters in name */ | ||
| 503 | CARD16 pad2 B16; | ||
| 504 | CARD32 pad3 B32; | ||
| 505 | CARD32 pad4 B32; | ||
| 506 | CARD32 pad5 B32; | ||
| 507 | CARD32 pad6 B32; | ||
| 508 | CARD32 pad7 B32; | ||
| 509 | } xGetAtomNameReply; | ||
| 510 | |||
| 511 | typedef struct { | ||
| 512 | BYTE type; /* X_Reply */ | ||
| 513 | CARD8 format; | ||
| 514 | CARD16 sequenceNumber B16; | ||
| 515 | CARD32 length B32; /* of additional bytes */ | ||
| 516 | Atom propertyType B32; | ||
| 517 | CARD32 bytesAfter B32; | ||
| 518 | CARD32 nItems B32; /* # of 8, 16, or 32-bit entities in reply */ | ||
| 519 | CARD32 pad1 B32; | ||
| 520 | CARD32 pad2 B32; | ||
| 521 | CARD32 pad3 B32; | ||
| 522 | } xGetPropertyReply; | ||
| 523 | |||
| 524 | typedef struct { | ||
| 525 | BYTE type; /* X_Reply */ | ||
| 526 | BYTE pad1; | ||
| 527 | CARD16 sequenceNumber B16; | ||
| 528 | CARD32 length B32; | ||
| 529 | CARD16 nProperties B16; | ||
| 530 | CARD16 pad2 B16; | ||
| 531 | CARD32 pad3 B32; | ||
| 532 | CARD32 pad4 B32; | ||
| 533 | CARD32 pad5 B32; | ||
| 534 | CARD32 pad6 B32; | ||
| 535 | CARD32 pad7 B32; | ||
| 536 | } xListPropertiesReply; | ||
| 537 | |||
| 538 | typedef struct { | ||
| 539 | BYTE type; /* X_Reply */ | ||
| 540 | BYTE pad1; | ||
| 541 | CARD16 sequenceNumber B16; | ||
| 542 | CARD32 length B32; /* 0 */ | ||
| 543 | Window owner B32; | ||
| 544 | CARD32 pad2 B32; | ||
| 545 | CARD32 pad3 B32; | ||
| 546 | CARD32 pad4 B32; | ||
| 547 | CARD32 pad5 B32; | ||
| 548 | CARD32 pad6 B32; | ||
| 549 | } xGetSelectionOwnerReply; | ||
| 550 | |||
| 551 | typedef struct { | ||
| 552 | BYTE type; /* X_Reply */ | ||
| 553 | BYTE status; | ||
| 554 | CARD16 sequenceNumber B16; | ||
| 555 | CARD32 length B32; /* 0 */ | ||
| 556 | CARD32 pad1 B32; | ||
| 557 | CARD32 pad2 B32; | ||
| 558 | CARD32 pad3 B32; | ||
| 559 | CARD32 pad4 B32; | ||
| 560 | CARD32 pad5 B32; | ||
| 561 | CARD32 pad6 B32; | ||
| 562 | } xGrabPointerReply; | ||
| 563 | |||
| 564 | typedef xGrabPointerReply xGrabKeyboardReply; | ||
| 565 | |||
| 566 | typedef struct { | ||
| 567 | BYTE type; /* X_Reply */ | ||
| 568 | BOOL sameScreen; | ||
| 569 | CARD16 sequenceNumber B16; | ||
| 570 | CARD32 length B32; /* 0 */ | ||
| 571 | Window root B32, child B32; | ||
| 572 | INT16 rootX B16, rootY B16, winX B16, winY B16; | ||
| 573 | CARD16 mask B16; | ||
| 574 | CARD16 pad1 B16; | ||
| 575 | CARD32 pad B32; | ||
| 576 | } xQueryPointerReply; | ||
| 577 | |||
| 578 | typedef struct { | ||
| 579 | BYTE type; /* X_Reply */ | ||
| 580 | BYTE pad1; | ||
| 581 | CARD16 sequenceNumber B16; | ||
| 582 | CARD32 length B32; | ||
| 583 | CARD32 nEvents B32; | ||
| 584 | CARD32 pad2 B32; | ||
| 585 | CARD32 pad3 B32; | ||
| 586 | CARD32 pad4 B32; | ||
| 587 | CARD32 pad5 B32; | ||
| 588 | CARD32 pad6 B32; | ||
| 589 | } xGetMotionEventsReply; | ||
| 590 | |||
| 591 | typedef struct { | ||
| 592 | BYTE type; /* X_Reply */ | ||
| 593 | BOOL sameScreen; | ||
| 594 | CARD16 sequenceNumber B16; | ||
| 595 | CARD32 length B32; /* 0 */ | ||
| 596 | Window child B32; | ||
| 597 | INT16 dstX B16, dstY B16; | ||
| 598 | CARD32 pad2 B32; | ||
| 599 | CARD32 pad3 B32; | ||
| 600 | CARD32 pad4 B32; | ||
| 601 | CARD32 pad5 B32; | ||
| 602 | } xTranslateCoordsReply; | ||
| 603 | |||
| 604 | typedef struct { | ||
| 605 | BYTE type; /* X_Reply */ | ||
| 606 | CARD8 revertTo; | ||
| 607 | CARD16 sequenceNumber B16; | ||
| 608 | CARD32 length B32; /* 0 */ | ||
| 609 | Window focus B32; | ||
| 610 | CARD32 pad1 B32; | ||
| 611 | CARD32 pad2 B32; | ||
| 612 | CARD32 pad3 B32; | ||
| 613 | CARD32 pad4 B32; | ||
| 614 | CARD32 pad5 B32; | ||
| 615 | } xGetInputFocusReply; | ||
| 616 | |||
| 617 | typedef struct { | ||
| 618 | BYTE type; /* X_Reply */ | ||
| 619 | BYTE pad1; | ||
| 620 | CARD16 sequenceNumber B16; | ||
| 621 | CARD32 length B32; /* 2, NOT 0; this is an extra-large reply */ | ||
| 622 | BYTE map[32]; | ||
| 623 | } xQueryKeymapReply; | ||
| 624 | |||
| 625 | /* Warning: this MUST match (up to component renaming) xListFontsWithInfoReply */ | ||
| 626 | typedef struct _xQueryFontReply { | ||
| 627 | BYTE type; /* X_Reply */ | ||
| 628 | BYTE pad1; | ||
| 629 | CARD16 sequenceNumber B16; | ||
| 630 | CARD32 length B32; /* definitely > 0, even if "nCharInfos" is 0 */ | ||
| 631 | xCharInfo minBounds; | ||
| 632 | #ifndef WORD64 | ||
| 633 | CARD32 walign1 B32; | ||
| 634 | #endif | ||
| 635 | xCharInfo maxBounds; | ||
| 636 | #ifndef WORD64 | ||
| 637 | CARD32 walign2 B32; | ||
| 638 | #endif | ||
| 639 | CARD16 minCharOrByte2 B16, maxCharOrByte2 B16; | ||
| 640 | CARD16 defaultChar B16; | ||
| 641 | CARD16 nFontProps B16; /* followed by this many xFontProp structures */ | ||
| 642 | CARD8 drawDirection; | ||
| 643 | CARD8 minByte1, maxByte1; | ||
| 644 | BOOL allCharsExist; | ||
| 645 | INT16 fontAscent B16, fontDescent B16; | ||
| 646 | CARD32 nCharInfos B32; /* followed by this many xCharInfo structures */ | ||
| 647 | } xQueryFontReply; | ||
| 648 | |||
| 649 | typedef struct { | ||
| 650 | BYTE type; /* X_Reply */ | ||
| 651 | CARD8 drawDirection; | ||
| 652 | CARD16 sequenceNumber B16; | ||
| 653 | CARD32 length B32; /* 0 */ | ||
| 654 | INT16 fontAscent B16, fontDescent B16; | ||
| 655 | INT16 overallAscent B16, overallDescent B16; | ||
| 656 | INT32 overallWidth B32, overallLeft B32, overallRight B32; | ||
| 657 | CARD32 pad B32; | ||
| 658 | } xQueryTextExtentsReply; | ||
| 659 | |||
| 660 | typedef struct { | ||
| 661 | BYTE type; /* X_Reply */ | ||
| 662 | BYTE pad1; | ||
| 663 | CARD16 sequenceNumber B16; | ||
| 664 | CARD32 length B32; | ||
| 665 | CARD16 nFonts B16; | ||
| 666 | CARD16 pad2 B16; | ||
| 667 | CARD32 pad3 B32; | ||
| 668 | CARD32 pad4 B32; | ||
| 669 | CARD32 pad5 B32; | ||
| 670 | CARD32 pad6 B32; | ||
| 671 | CARD32 pad7 B32; | ||
| 672 | } xListFontsReply; | ||
| 673 | |||
| 674 | /* Warning: this MUST match (up to component renaming) xQueryFontReply */ | ||
| 675 | typedef struct { | ||
| 676 | BYTE type; /* X_Reply */ | ||
| 677 | CARD8 nameLength; /* 0 indicates end-of-reply-sequence */ | ||
| 678 | CARD16 sequenceNumber B16; | ||
| 679 | CARD32 length B32; /* definitely > 0, even if "nameLength" is 0 */ | ||
| 680 | xCharInfo minBounds; | ||
| 681 | #ifndef WORD64 | ||
| 682 | CARD32 walign1 B32; | ||
| 683 | #endif | ||
| 684 | xCharInfo maxBounds; | ||
| 685 | #ifndef WORD64 | ||
| 686 | CARD32 walign2 B32; | ||
| 687 | #endif | ||
| 688 | CARD16 minCharOrByte2 B16, maxCharOrByte2 B16; | ||
| 689 | CARD16 defaultChar B16; | ||
| 690 | CARD16 nFontProps B16; /* followed by this many xFontProp structures */ | ||
| 691 | CARD8 drawDirection; | ||
| 692 | CARD8 minByte1, maxByte1; | ||
| 693 | BOOL allCharsExist; | ||
| 694 | INT16 fontAscent B16, fontDescent B16; | ||
| 695 | CARD32 nReplies B32; /* hint as to how many more replies might be coming */ | ||
| 696 | } xListFontsWithInfoReply; | ||
| 697 | |||
| 698 | typedef struct { | ||
| 699 | BYTE type; /* X_Reply */ | ||
| 700 | BYTE pad1; | ||
| 701 | CARD16 sequenceNumber B16; | ||
| 702 | CARD32 length B32; | ||
| 703 | CARD16 nPaths B16; | ||
| 704 | CARD16 pad2 B16; | ||
| 705 | CARD32 pad3 B32; | ||
| 706 | CARD32 pad4 B32; | ||
| 707 | CARD32 pad5 B32; | ||
| 708 | CARD32 pad6 B32; | ||
| 709 | CARD32 pad7 B32; | ||
| 710 | } xGetFontPathReply; | ||
| 711 | |||
| 712 | typedef struct { | ||
| 713 | BYTE type; /* X_Reply */ | ||
| 714 | CARD8 depth; | ||
| 715 | CARD16 sequenceNumber B16; | ||
| 716 | CARD32 length B32; | ||
| 717 | VisualID visual B32; | ||
| 718 | CARD32 pad3 B32; | ||
| 719 | CARD32 pad4 B32; | ||
| 720 | CARD32 pad5 B32; | ||
| 721 | CARD32 pad6 B32; | ||
| 722 | CARD32 pad7 B32; | ||
| 723 | } xGetImageReply; | ||
| 724 | |||
| 725 | typedef struct { | ||
| 726 | BYTE type; /* X_Reply */ | ||
| 727 | BYTE pad1; | ||
| 728 | CARD16 sequenceNumber B16; | ||
| 729 | CARD32 length B32; | ||
| 730 | CARD16 nColormaps B16; | ||
| 731 | CARD16 pad2 B16; | ||
| 732 | CARD32 pad3 B32; | ||
| 733 | CARD32 pad4 B32; | ||
| 734 | CARD32 pad5 B32; | ||
| 735 | CARD32 pad6 B32; | ||
| 736 | CARD32 pad7 B32; | ||
| 737 | } xListInstalledColormapsReply; | ||
| 738 | |||
| 739 | typedef struct { | ||
| 740 | BYTE type; /* X_Reply */ | ||
| 741 | BYTE pad1; | ||
| 742 | CARD16 sequenceNumber B16; | ||
| 743 | CARD32 length B32; /* 0 */ | ||
| 744 | CARD16 red B16, green B16, blue B16; | ||
| 745 | CARD16 pad2 B16; | ||
| 746 | CARD32 pixel B32; | ||
| 747 | CARD32 pad3 B32; | ||
| 748 | CARD32 pad4 B32; | ||
| 749 | CARD32 pad5 B32; | ||
| 750 | } xAllocColorReply; | ||
| 751 | |||
| 752 | typedef struct { | ||
| 753 | BYTE type; /* X_Reply */ | ||
| 754 | BYTE pad1; | ||
| 755 | CARD16 sequenceNumber B16; | ||
| 756 | CARD32 length B32; /* 0 */ | ||
| 757 | CARD32 pixel B32; | ||
| 758 | CARD16 exactRed B16, exactGreen B16, exactBlue B16; | ||
| 759 | CARD16 screenRed B16, screenGreen B16, screenBlue B16; | ||
| 760 | CARD32 pad2 B32; | ||
| 761 | CARD32 pad3 B32; | ||
| 762 | } xAllocNamedColorReply; | ||
| 763 | |||
| 764 | typedef struct { | ||
| 765 | BYTE type; /* X_Reply */ | ||
| 766 | BYTE pad1; | ||
| 767 | CARD16 sequenceNumber B16; | ||
| 768 | CARD32 length B32; | ||
| 769 | CARD16 nPixels B16, nMasks B16; | ||
| 770 | CARD32 pad3 B32; | ||
| 771 | CARD32 pad4 B32; | ||
| 772 | CARD32 pad5 B32; | ||
| 773 | CARD32 pad6 B32; | ||
| 774 | CARD32 pad7 B32; | ||
| 775 | } xAllocColorCellsReply; | ||
| 776 | |||
| 777 | typedef struct { | ||
| 778 | BYTE type; /* X_Reply */ | ||
| 779 | BYTE pad1; | ||
| 780 | CARD16 sequenceNumber B16; | ||
| 781 | CARD32 length B32; | ||
| 782 | CARD16 nPixels B16; | ||
| 783 | CARD16 pad2 B16; | ||
| 784 | CARD32 redMask B32, greenMask B32, blueMask B32; | ||
| 785 | CARD32 pad3 B32; | ||
| 786 | CARD32 pad4 B32; | ||
| 787 | } xAllocColorPlanesReply; | ||
| 788 | |||
| 789 | typedef struct { | ||
| 790 | BYTE type; /* X_Reply */ | ||
| 791 | BYTE pad1; | ||
| 792 | CARD16 sequenceNumber B16; | ||
| 793 | CARD32 length B32; | ||
| 794 | CARD16 nColors B16; | ||
| 795 | CARD16 pad2 B16; | ||
| 796 | CARD32 pad3 B32; | ||
| 797 | CARD32 pad4 B32; | ||
| 798 | CARD32 pad5 B32; | ||
| 799 | CARD32 pad6 B32; | ||
| 800 | CARD32 pad7 B32; | ||
| 801 | } xQueryColorsReply; | ||
| 802 | |||
| 803 | typedef struct { | ||
| 804 | BYTE type; /* X_Reply */ | ||
| 805 | BYTE pad1; | ||
| 806 | CARD16 sequenceNumber B16; | ||
| 807 | CARD32 length B32; /* 0 */ | ||
| 808 | CARD16 exactRed B16, exactGreen B16, exactBlue B16; | ||
| 809 | CARD16 screenRed B16, screenGreen B16, screenBlue B16; | ||
| 810 | CARD32 pad3 B32; | ||
| 811 | CARD32 pad4 B32; | ||
| 812 | CARD32 pad5 B32; | ||
| 813 | } xLookupColorReply; | ||
| 814 | |||
| 815 | typedef struct { | ||
| 816 | BYTE type; /* X_Reply */ | ||
| 817 | BYTE pad1; | ||
| 818 | CARD16 sequenceNumber B16; | ||
| 819 | CARD32 length B32; /* 0 */ | ||
| 820 | CARD16 width B16, height B16; | ||
| 821 | CARD32 pad3 B32; | ||
| 822 | CARD32 pad4 B32; | ||
| 823 | CARD32 pad5 B32; | ||
| 824 | CARD32 pad6 B32; | ||
| 825 | CARD32 pad7 B32; | ||
| 826 | } xQueryBestSizeReply; | ||
| 827 | |||
| 828 | typedef struct { | ||
| 829 | BYTE type; /* X_Reply */ | ||
| 830 | BYTE pad1; | ||
| 831 | CARD16 sequenceNumber B16; | ||
| 832 | CARD32 length B32; /* 0 */ | ||
| 833 | BOOL present; | ||
| 834 | CARD8 major_opcode; | ||
| 835 | CARD8 first_event; | ||
| 836 | CARD8 first_error; | ||
| 837 | CARD32 pad3 B32; | ||
| 838 | CARD32 pad4 B32; | ||
| 839 | CARD32 pad5 B32; | ||
| 840 | CARD32 pad6 B32; | ||
| 841 | CARD32 pad7 B32; | ||
| 842 | } xQueryExtensionReply; | ||
| 843 | |||
| 844 | typedef struct { | ||
| 845 | BYTE type; /* X_Reply */ | ||
| 846 | CARD8 nExtensions; | ||
| 847 | CARD16 sequenceNumber B16; | ||
| 848 | CARD32 length B32; | ||
| 849 | CARD32 pad2 B32; | ||
| 850 | CARD32 pad3 B32; | ||
| 851 | CARD32 pad4 B32; | ||
| 852 | CARD32 pad5 B32; | ||
| 853 | CARD32 pad6 B32; | ||
| 854 | CARD32 pad7 B32; | ||
| 855 | } xListExtensionsReply; | ||
| 856 | |||
| 857 | |||
| 858 | typedef struct { | ||
| 859 | BYTE type; /* X_Reply */ | ||
| 860 | CARD8 success; | ||
| 861 | CARD16 sequenceNumber B16; | ||
| 862 | CARD32 length B32; | ||
| 863 | CARD32 pad2 B32; | ||
| 864 | CARD32 pad3 B32; | ||
| 865 | CARD32 pad4 B32; | ||
| 866 | CARD32 pad5 B32; | ||
| 867 | CARD32 pad6 B32; | ||
| 868 | CARD32 pad7 B32; | ||
| 869 | } xSetMappingReply; | ||
| 870 | typedef xSetMappingReply xSetPointerMappingReply; | ||
| 871 | typedef xSetMappingReply xSetModifierMappingReply; | ||
| 872 | |||
| 873 | typedef struct { | ||
| 874 | BYTE type; /* X_Reply */ | ||
| 875 | CARD8 nElts; /* how many elements does the map have */ | ||
| 876 | CARD16 sequenceNumber B16; | ||
| 877 | CARD32 length B32; | ||
| 878 | CARD32 pad2 B32; | ||
| 879 | CARD32 pad3 B32; | ||
| 880 | CARD32 pad4 B32; | ||
| 881 | CARD32 pad5 B32; | ||
| 882 | CARD32 pad6 B32; | ||
| 883 | CARD32 pad7 B32; | ||
| 884 | } xGetPointerMappingReply; | ||
| 885 | |||
| 886 | typedef struct { | ||
| 887 | BYTE type; | ||
| 888 | CARD8 keySymsPerKeyCode; | ||
| 889 | CARD16 sequenceNumber B16; | ||
| 890 | CARD32 length B32; | ||
| 891 | CARD32 pad2 B32; | ||
| 892 | CARD32 pad3 B32; | ||
| 893 | CARD32 pad4 B32; | ||
| 894 | CARD32 pad5 B32; | ||
| 895 | CARD32 pad6 B32; | ||
| 896 | CARD32 pad7 B32; | ||
| 897 | } xGetKeyboardMappingReply; | ||
| 898 | |||
| 899 | typedef struct { | ||
| 900 | BYTE type; | ||
| 901 | CARD8 numKeyPerModifier; | ||
| 902 | CARD16 sequenceNumber B16; | ||
| 903 | CARD32 length B32; | ||
| 904 | CARD32 pad1 B32; | ||
| 905 | CARD32 pad2 B32; | ||
| 906 | CARD32 pad3 B32; | ||
| 907 | CARD32 pad4 B32; | ||
| 908 | CARD32 pad5 B32; | ||
| 909 | CARD32 pad6 B32; | ||
| 910 | } xGetModifierMappingReply; | ||
| 911 | |||
| 912 | typedef struct { | ||
| 913 | BYTE type; /* X_Reply */ | ||
| 914 | BOOL globalAutoRepeat; | ||
| 915 | CARD16 sequenceNumber B16; | ||
| 916 | CARD32 length B32; /* 5 */ | ||
| 917 | CARD32 ledMask B32; | ||
| 918 | CARD8 keyClickPercent, bellPercent; | ||
| 919 | CARD16 bellPitch B16, bellDuration B16; | ||
| 920 | CARD16 pad B16; | ||
| 921 | BYTE map[32]; /* bit masks start here */ | ||
| 922 | } xGetKeyboardControlReply; | ||
| 923 | |||
| 924 | typedef struct { | ||
| 925 | BYTE type; /* X_Reply */ | ||
| 926 | BYTE pad1; | ||
| 927 | CARD16 sequenceNumber B16; | ||
| 928 | CARD32 length B32; /* 0 */ | ||
| 929 | CARD16 accelNumerator B16, accelDenominator B16; | ||
| 930 | CARD16 threshold B16; | ||
| 931 | CARD16 pad2 B16; | ||
| 932 | CARD32 pad3 B32; | ||
| 933 | CARD32 pad4 B32; | ||
| 934 | CARD32 pad5 B32; | ||
| 935 | CARD32 pad6 B32; | ||
| 936 | } xGetPointerControlReply; | ||
| 937 | |||
| 938 | typedef struct { | ||
| 939 | BYTE type; /* X_Reply */ | ||
| 940 | BYTE pad1; | ||
| 941 | CARD16 sequenceNumber B16; | ||
| 942 | CARD32 length B32; /* 0 */ | ||
| 943 | CARD16 timeout B16, interval B16; | ||
| 944 | BOOL preferBlanking; | ||
| 945 | BOOL allowExposures; | ||
| 946 | CARD16 pad2 B16; | ||
| 947 | CARD32 pad3 B32; | ||
| 948 | CARD32 pad4 B32; | ||
| 949 | CARD32 pad5 B32; | ||
| 950 | CARD32 pad6 B32; | ||
| 951 | } xGetScreenSaverReply; | ||
| 952 | |||
| 953 | typedef struct { | ||
| 954 | BYTE type; /* X_Reply */ | ||
| 955 | BOOL enabled; | ||
| 956 | CARD16 sequenceNumber B16; | ||
| 957 | CARD32 length B32; | ||
| 958 | CARD16 nHosts B16; | ||
| 959 | CARD16 pad1 B16; | ||
| 960 | CARD32 pad3 B32; | ||
| 961 | CARD32 pad4 B32; | ||
| 962 | CARD32 pad5 B32; | ||
| 963 | CARD32 pad6 B32; | ||
| 964 | CARD32 pad7 B32; | ||
| 965 | } xListHostsReply; | ||
| 966 | |||
| 967 | |||
| 968 | |||
| 969 | |||
| 970 | /***************************************************************** | ||
| 971 | * Xerror | ||
| 972 | * All errors are 32 bytes | ||
| 973 | *****************************************************************/ | ||
| 974 | |||
| 975 | typedef struct { | ||
| 976 | BYTE type; /* X_Error */ | ||
| 977 | BYTE errorCode; | ||
| 978 | CARD16 sequenceNumber B16; /* the nth request from this client */ | ||
| 979 | CARD32 resourceID B32; | ||
| 980 | CARD16 minorCode B16; | ||
| 981 | CARD8 majorCode; | ||
| 982 | BYTE pad1; | ||
| 983 | CARD32 pad3 B32; | ||
| 984 | CARD32 pad4 B32; | ||
| 985 | CARD32 pad5 B32; | ||
| 986 | CARD32 pad6 B32; | ||
| 987 | CARD32 pad7 B32; | ||
| 988 | } xError; | ||
| 989 | |||
| 990 | /***************************************************************** | ||
| 991 | * xEvent | ||
| 992 | * All events are 32 bytes | ||
| 993 | *****************************************************************/ | ||
| 994 | |||
| 995 | typedef struct _xEvent { | ||
| 996 | union { | ||
| 997 | struct { | ||
| 998 | BYTE type; | ||
| 999 | BYTE detail; | ||
| 1000 | CARD16 sequenceNumber B16; | ||
| 1001 | } u; | ||
| 1002 | struct { | ||
| 1003 | CARD32 pad00 B32; | ||
| 1004 | Time time B32; | ||
| 1005 | Window root B32, event B32, child B32; | ||
| 1006 | INT16 rootX B16, rootY B16, eventX B16, eventY B16; | ||
| 1007 | KeyButMask state B16; | ||
| 1008 | BOOL sameScreen; | ||
| 1009 | BYTE pad1; | ||
| 1010 | } keyButtonPointer; | ||
| 1011 | struct { | ||
| 1012 | CARD32 pad00 B32; | ||
| 1013 | Time time B32; | ||
| 1014 | Window root B32, event B32, child B32; | ||
| 1015 | INT16 rootX B16, rootY B16, eventX B16, eventY B16; | ||
| 1016 | KeyButMask state B16; | ||
| 1017 | BYTE mode; /* really XMode */ | ||
| 1018 | BYTE flags; /* sameScreen and focus booleans, packed together */ | ||
| 1019 | #define ELFlagFocus (1<<0) | ||
| 1020 | #define ELFlagSameScreen (1<<1) | ||
| 1021 | } enterLeave; | ||
| 1022 | struct { | ||
| 1023 | CARD32 pad00 B32; | ||
| 1024 | Window window B32; | ||
| 1025 | BYTE mode; /* really XMode */ | ||
| 1026 | BYTE pad1, pad2, pad3; | ||
| 1027 | } focus; | ||
| 1028 | struct { | ||
| 1029 | CARD32 pad00 B32; | ||
| 1030 | Window window B32; | ||
| 1031 | CARD16 x B16, y B16, width B16, height B16; | ||
| 1032 | CARD16 count B16; | ||
| 1033 | CARD16 pad2 B16; | ||
| 1034 | } expose; | ||
| 1035 | struct { | ||
| 1036 | CARD32 pad00 B32; | ||
| 1037 | Drawable drawable B32; | ||
| 1038 | CARD16 x B16, y B16, width B16, height B16; | ||
| 1039 | CARD16 minorEvent B16; | ||
| 1040 | CARD16 count B16; | ||
| 1041 | BYTE majorEvent; | ||
| 1042 | BYTE pad1, pad2, pad3; | ||
| 1043 | } graphicsExposure; | ||
| 1044 | struct { | ||
| 1045 | CARD32 pad00 B32; | ||
| 1046 | Drawable drawable B32; | ||
| 1047 | CARD16 minorEvent B16; | ||
| 1048 | BYTE majorEvent; | ||
| 1049 | BYTE bpad; | ||
| 1050 | } noExposure; | ||
| 1051 | struct { | ||
| 1052 | CARD32 pad00 B32; | ||
| 1053 | Window window B32; | ||
| 1054 | CARD8 state; | ||
| 1055 | BYTE pad1, pad2, pad3; | ||
| 1056 | } visibility; | ||
| 1057 | struct { | ||
| 1058 | CARD32 pad00 B32; | ||
| 1059 | Window parent B32, window B32; | ||
| 1060 | INT16 x B16, y B16; | ||
| 1061 | CARD16 width B16, height B16, borderWidth B16; | ||
| 1062 | BOOL override; | ||
| 1063 | BYTE bpad; | ||
| 1064 | } createNotify; | ||
| 1065 | /* | ||
| 1066 | * The event fields in the structures for DestroyNotify, UnmapNotify, | ||
| 1067 | * MapNotify, ReparentNotify, ConfigureNotify, CirculateNotify, GravityNotify, | ||
| 1068 | * must be at the same offset because server internal code is depending upon | ||
| 1069 | * this to patch up the events before they are delivered. | ||
| 1070 | * Also note that MapRequest, ConfigureRequest and CirculateRequest have | ||
| 1071 | * the same offset for the event window. | ||
| 1072 | */ | ||
| 1073 | struct { | ||
| 1074 | CARD32 pad00 B32; | ||
| 1075 | Window event B32, window B32; | ||
| 1076 | } destroyNotify; | ||
| 1077 | struct { | ||
| 1078 | CARD32 pad00 B32; | ||
| 1079 | Window event B32, window B32; | ||
| 1080 | BOOL fromConfigure; | ||
| 1081 | BYTE pad1, pad2, pad3; | ||
| 1082 | } unmapNotify; | ||
| 1083 | struct { | ||
| 1084 | CARD32 pad00 B32; | ||
| 1085 | Window event B32, window B32; | ||
| 1086 | BOOL override; | ||
| 1087 | BYTE pad1, pad2, pad3; | ||
| 1088 | } mapNotify; | ||
| 1089 | struct { | ||
| 1090 | CARD32 pad00 B32; | ||
| 1091 | Window parent B32, window B32; | ||
| 1092 | } mapRequest; | ||
| 1093 | struct { | ||
| 1094 | CARD32 pad00 B32; | ||
| 1095 | Window event B32, window B32, parent B32; | ||
| 1096 | INT16 x B16, y B16; | ||
| 1097 | BOOL override; | ||
| 1098 | BYTE pad1, pad2, pad3; | ||
| 1099 | } reparent; | ||
| 1100 | struct { | ||
| 1101 | CARD32 pad00 B32; | ||
| 1102 | Window event B32, window B32, aboveSibling B32; | ||
| 1103 | INT16 x B16, y B16; | ||
| 1104 | CARD16 width B16, height B16, borderWidth B16; | ||
| 1105 | BOOL override; | ||
| 1106 | BYTE bpad; | ||
| 1107 | } configureNotify; | ||
| 1108 | struct { | ||
| 1109 | CARD32 pad00 B32; | ||
| 1110 | Window parent B32, window B32, sibling B32; | ||
| 1111 | INT16 x B16, y B16; | ||
| 1112 | CARD16 width B16, height B16, borderWidth B16; | ||
| 1113 | CARD16 valueMask B16; | ||
| 1114 | CARD32 pad1 B32; | ||
| 1115 | } configureRequest; | ||
| 1116 | struct { | ||
| 1117 | CARD32 pad00 B32; | ||
| 1118 | Window event B32, window B32; | ||
| 1119 | INT16 x B16, y B16; | ||
| 1120 | CARD32 pad1 B32, pad2 B32, pad3 B32, pad4 B32; | ||
| 1121 | } gravity; | ||
| 1122 | struct { | ||
| 1123 | CARD32 pad00 B32; | ||
| 1124 | Window window B32; | ||
| 1125 | CARD16 width B16, height B16; | ||
| 1126 | } resizeRequest; | ||
| 1127 | struct { | ||
| 1128 | /* The event field in the circulate record is really the parent when this | ||
| 1129 | is used as a CirculateRequest instead of a CirculateNotify */ | ||
| 1130 | CARD32 pad00 B32; | ||
| 1131 | Window event B32, window B32, parent B32; | ||
| 1132 | BYTE place; /* Top or Bottom */ | ||
| 1133 | BYTE pad1, pad2, pad3; | ||
| 1134 | } circulate; | ||
| 1135 | struct { | ||
| 1136 | CARD32 pad00 B32; | ||
| 1137 | Window window B32; | ||
| 1138 | Atom atom B32; | ||
| 1139 | Time time B32; | ||
| 1140 | BYTE state; /* NewValue or Deleted */ | ||
| 1141 | BYTE pad1; | ||
| 1142 | CARD16 pad2 B16; | ||
| 1143 | } property; | ||
| 1144 | struct { | ||
| 1145 | CARD32 pad00 B32; | ||
| 1146 | Time time B32; | ||
| 1147 | Window window B32; | ||
| 1148 | Atom atom B32; | ||
| 1149 | } selectionClear; | ||
| 1150 | struct { | ||
| 1151 | CARD32 pad00 B32; | ||
| 1152 | Time time B32; | ||
| 1153 | Window owner B32, requestor B32; | ||
| 1154 | Atom selection B32, target B32, property B32; | ||
| 1155 | } selectionRequest; | ||
| 1156 | struct { | ||
| 1157 | CARD32 pad00 B32; | ||
| 1158 | Time time B32; | ||
| 1159 | Window requestor B32; | ||
| 1160 | Atom selection B32, target B32, property B32; | ||
| 1161 | } selectionNotify; | ||
| 1162 | struct { | ||
| 1163 | CARD32 pad00 B32; | ||
| 1164 | Window window B32; | ||
| 1165 | Colormap colormap B32; | ||
| 1166 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 1167 | BOOL c_new; | ||
| 1168 | #else | ||
| 1169 | BOOL new; | ||
| 1170 | #endif | ||
| 1171 | BYTE state; /* Installed or UnInstalled */ | ||
| 1172 | BYTE pad1, pad2; | ||
| 1173 | } colormap; | ||
| 1174 | struct { | ||
| 1175 | CARD32 pad00 B32; | ||
| 1176 | CARD8 request; | ||
| 1177 | KeyCode firstKeyCode; | ||
| 1178 | CARD8 count; | ||
| 1179 | BYTE pad1; | ||
| 1180 | } mappingNotify; | ||
| 1181 | struct { | ||
| 1182 | CARD32 pad00 B32; | ||
| 1183 | Window window B32; | ||
| 1184 | union { | ||
| 1185 | struct { | ||
| 1186 | Atom type B32; | ||
| 1187 | INT32 longs0 B32; | ||
| 1188 | INT32 longs1 B32; | ||
| 1189 | INT32 longs2 B32; | ||
| 1190 | INT32 longs3 B32; | ||
| 1191 | INT32 longs4 B32; | ||
| 1192 | } l; | ||
| 1193 | struct { | ||
| 1194 | Atom type B32; | ||
| 1195 | INT16 shorts0 B16; | ||
| 1196 | INT16 shorts1 B16; | ||
| 1197 | INT16 shorts2 B16; | ||
| 1198 | INT16 shorts3 B16; | ||
| 1199 | INT16 shorts4 B16; | ||
| 1200 | INT16 shorts5 B16; | ||
| 1201 | INT16 shorts6 B16; | ||
| 1202 | INT16 shorts7 B16; | ||
| 1203 | INT16 shorts8 B16; | ||
| 1204 | INT16 shorts9 B16; | ||
| 1205 | } s; | ||
| 1206 | struct { | ||
| 1207 | Atom type B32; | ||
| 1208 | INT8 bytes[20]; | ||
| 1209 | } b; | ||
| 1210 | } u; | ||
| 1211 | } clientMessage; | ||
| 1212 | } u; | ||
| 1213 | } xEvent; | ||
| 1214 | |||
| 1215 | /* KeymapNotify events are not included in the above union because they | ||
| 1216 | are different from all other events: they do not have a "detail" | ||
| 1217 | or "sequenceNumber", so there is room for a 248-bit key mask. */ | ||
| 1218 | |||
| 1219 | typedef struct { | ||
| 1220 | BYTE type; | ||
| 1221 | BYTE map[31]; | ||
| 1222 | } xKeymapEvent; | ||
| 1223 | |||
| 1224 | #define XEventSize (sizeof(xEvent)) | ||
| 1225 | |||
| 1226 | /* XReply is the union of all the replies above whose "fixed part" | ||
| 1227 | fits in 32 bytes. It does NOT include GetWindowAttributesReply, | ||
| 1228 | QueryFontReply, QueryKeymapReply, or GetKeyboardControlReply | ||
| 1229 | ListFontsWithInfoReply */ | ||
| 1230 | |||
| 1231 | typedef union { | ||
| 1232 | xGenericReply generic; | ||
| 1233 | xGetGeometryReply geom; | ||
| 1234 | xQueryTreeReply tree; | ||
| 1235 | xInternAtomReply atom; | ||
| 1236 | xGetAtomNameReply atomName; | ||
| 1237 | xGetPropertyReply property; | ||
| 1238 | xListPropertiesReply listProperties; | ||
| 1239 | xGetSelectionOwnerReply selection; | ||
| 1240 | xGrabPointerReply grabPointer; | ||
| 1241 | xGrabKeyboardReply grabKeyboard; | ||
| 1242 | xQueryPointerReply pointer; | ||
| 1243 | xGetMotionEventsReply motionEvents; | ||
| 1244 | xTranslateCoordsReply coords; | ||
| 1245 | xGetInputFocusReply inputFocus; | ||
| 1246 | xQueryTextExtentsReply textExtents; | ||
| 1247 | xListFontsReply fonts; | ||
| 1248 | xGetFontPathReply fontPath; | ||
| 1249 | xGetImageReply image; | ||
| 1250 | xListInstalledColormapsReply colormaps; | ||
| 1251 | xAllocColorReply allocColor; | ||
| 1252 | xAllocNamedColorReply allocNamedColor; | ||
| 1253 | xAllocColorCellsReply colorCells; | ||
| 1254 | xAllocColorPlanesReply colorPlanes; | ||
| 1255 | xQueryColorsReply colors; | ||
| 1256 | xLookupColorReply lookupColor; | ||
| 1257 | xQueryBestSizeReply bestSize; | ||
| 1258 | xQueryExtensionReply extension; | ||
| 1259 | xListExtensionsReply extensions; | ||
| 1260 | xSetModifierMappingReply setModifierMapping; | ||
| 1261 | xGetModifierMappingReply getModifierMapping; | ||
| 1262 | xSetPointerMappingReply setPointerMapping; | ||
| 1263 | xGetKeyboardMappingReply getKeyboardMapping; | ||
| 1264 | xGetPointerMappingReply getPointerMapping; | ||
| 1265 | xGetPointerControlReply pointerControl; | ||
| 1266 | xGetScreenSaverReply screenSaver; | ||
| 1267 | xListHostsReply hosts; | ||
| 1268 | xError error; | ||
| 1269 | xEvent event; | ||
| 1270 | } xReply; | ||
| 1271 | |||
| 1272 | |||
| 1273 | |||
| 1274 | /***************************************************************** | ||
| 1275 | * REQUESTS | ||
| 1276 | *****************************************************************/ | ||
| 1277 | |||
| 1278 | |||
| 1279 | /* Request structure */ | ||
| 1280 | |||
| 1281 | typedef struct _xReq { | ||
| 1282 | CARD8 reqType; | ||
| 1283 | CARD8 data; /* meaning depends on request type */ | ||
| 1284 | CARD16 length B16; /* length in 4 bytes quantities | ||
| 1285 | of whole request, including this header */ | ||
| 1286 | } xReq; | ||
| 1287 | |||
| 1288 | /***************************************************************** | ||
| 1289 | * structures that follow request. | ||
| 1290 | *****************************************************************/ | ||
| 1291 | |||
| 1292 | /* ResourceReq is used for any request which has a resource ID | ||
| 1293 | (or Atom or Time) as its one and only argument. */ | ||
| 1294 | |||
| 1295 | typedef struct { | ||
| 1296 | CARD8 reqType; | ||
| 1297 | BYTE pad; | ||
| 1298 | CARD16 length B16; | ||
| 1299 | CARD32 id B32; /* a Window, Drawable, Font, GContext, Pixmap, etc. */ | ||
| 1300 | } xResourceReq; | ||
| 1301 | |||
| 1302 | typedef struct { | ||
| 1303 | CARD8 reqType; | ||
| 1304 | CARD8 depth; | ||
| 1305 | CARD16 length B16; | ||
| 1306 | Window wid B32, parent B32; | ||
| 1307 | INT16 x B16, y B16; | ||
| 1308 | CARD16 width B16, height B16, borderWidth B16; | ||
| 1309 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 1310 | CARD16 c_class B16; | ||
| 1311 | #else | ||
| 1312 | CARD16 class B16; | ||
| 1313 | #endif | ||
| 1314 | VisualID visual B32; | ||
| 1315 | CARD32 mask B32; | ||
| 1316 | } xCreateWindowReq; | ||
| 1317 | |||
| 1318 | typedef struct { | ||
| 1319 | CARD8 reqType; | ||
| 1320 | BYTE pad; | ||
| 1321 | CARD16 length B16; | ||
| 1322 | Window window B32; | ||
| 1323 | CARD32 valueMask B32; | ||
| 1324 | } xChangeWindowAttributesReq; | ||
| 1325 | |||
| 1326 | typedef struct { | ||
| 1327 | CARD8 reqType; | ||
| 1328 | BYTE mode; | ||
| 1329 | CARD16 length B16; | ||
| 1330 | Window window B32; | ||
| 1331 | } xChangeSaveSetReq; | ||
| 1332 | |||
| 1333 | typedef struct { | ||
| 1334 | CARD8 reqType; | ||
| 1335 | BYTE pad; | ||
| 1336 | CARD16 length B16; | ||
| 1337 | Window window B32, parent B32; | ||
| 1338 | INT16 x B16, y B16; | ||
| 1339 | } xReparentWindowReq; | ||
| 1340 | |||
| 1341 | typedef struct { | ||
| 1342 | CARD8 reqType; | ||
| 1343 | CARD8 pad; | ||
| 1344 | CARD16 length B16; | ||
| 1345 | Window window B32; | ||
| 1346 | CARD16 mask B16; | ||
| 1347 | CARD16 pad2 B16; | ||
| 1348 | } xConfigureWindowReq; | ||
| 1349 | |||
| 1350 | typedef struct { | ||
| 1351 | CARD8 reqType; | ||
| 1352 | CARD8 direction; | ||
| 1353 | CARD16 length B16; | ||
| 1354 | Window window B32; | ||
| 1355 | } xCirculateWindowReq; | ||
| 1356 | |||
| 1357 | typedef struct { /* followed by padded string */ | ||
| 1358 | CARD8 reqType; | ||
| 1359 | BOOL onlyIfExists; | ||
| 1360 | CARD16 length B16; | ||
| 1361 | CARD16 nbytes B16; /* number of bytes in string */ | ||
| 1362 | CARD16 pad B16; | ||
| 1363 | } xInternAtomReq; | ||
| 1364 | |||
| 1365 | typedef struct { | ||
| 1366 | CARD8 reqType; | ||
| 1367 | CARD8 mode; | ||
| 1368 | CARD16 length B16; | ||
| 1369 | Window window B32; | ||
| 1370 | Atom property B32, type B32; | ||
| 1371 | CARD8 format; | ||
| 1372 | BYTE pad[3]; | ||
| 1373 | CARD32 nUnits B32; /* length of stuff following, depends on format */ | ||
| 1374 | } xChangePropertyReq; | ||
| 1375 | |||
| 1376 | typedef struct { | ||
| 1377 | CARD8 reqType; | ||
| 1378 | BYTE pad; | ||
| 1379 | CARD16 length B16; | ||
| 1380 | Window window B32; | ||
| 1381 | Atom property B32; | ||
| 1382 | } xDeletePropertyReq; | ||
| 1383 | |||
| 1384 | typedef struct { | ||
| 1385 | CARD8 reqType; | ||
| 1386 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 1387 | BOOL c_delete; | ||
| 1388 | #else | ||
| 1389 | BOOL delete; | ||
| 1390 | #endif | ||
| 1391 | CARD16 length B16; | ||
| 1392 | Window window B32; | ||
| 1393 | Atom property B32, type B32; | ||
| 1394 | CARD32 longOffset B32; | ||
| 1395 | CARD32 longLength B32; | ||
| 1396 | } xGetPropertyReq; | ||
| 1397 | |||
| 1398 | typedef struct { | ||
| 1399 | CARD8 reqType; | ||
| 1400 | BYTE pad; | ||
| 1401 | CARD16 length B16; | ||
| 1402 | Window window B32; | ||
| 1403 | Atom selection B32; | ||
| 1404 | Time time B32; | ||
| 1405 | } xSetSelectionOwnerReq; | ||
| 1406 | |||
| 1407 | typedef struct { | ||
| 1408 | CARD8 reqType; | ||
| 1409 | BYTE pad; | ||
| 1410 | CARD16 length B16; | ||
| 1411 | Window requestor B32; | ||
| 1412 | Atom selection B32, target B32, property B32; | ||
| 1413 | Time time B32; | ||
| 1414 | } xConvertSelectionReq; | ||
| 1415 | |||
| 1416 | typedef struct { | ||
| 1417 | CARD8 reqType; | ||
| 1418 | BOOL propagate; | ||
| 1419 | CARD16 length B16; | ||
| 1420 | Window destination B32; | ||
| 1421 | CARD32 eventMask B32; | ||
| 1422 | #ifdef WORD64 | ||
| 1423 | /* the structure should have been quad-aligned */ | ||
| 1424 | BYTE eventdata[SIZEOF(xEvent)]; | ||
| 1425 | #else | ||
| 1426 | xEvent event; | ||
| 1427 | #endif /* WORD64 */ | ||
| 1428 | } xSendEventReq; | ||
| 1429 | |||
| 1430 | typedef struct { | ||
| 1431 | CARD8 reqType; | ||
| 1432 | BOOL ownerEvents; | ||
| 1433 | CARD16 length B16; | ||
| 1434 | Window grabWindow B32; | ||
| 1435 | CARD16 eventMask B16; | ||
| 1436 | BYTE pointerMode, keyboardMode; | ||
| 1437 | Window confineTo B32; | ||
| 1438 | Cursor cursor B32; | ||
| 1439 | Time time B32; | ||
| 1440 | } xGrabPointerReq; | ||
| 1441 | |||
| 1442 | typedef struct { | ||
| 1443 | CARD8 reqType; | ||
| 1444 | BOOL ownerEvents; | ||
| 1445 | CARD16 length B16; | ||
| 1446 | Window grabWindow B32; | ||
| 1447 | CARD16 eventMask B16; | ||
| 1448 | BYTE pointerMode, keyboardMode; | ||
| 1449 | Window confineTo B32; | ||
| 1450 | Cursor cursor B32; | ||
| 1451 | CARD8 button; | ||
| 1452 | BYTE pad; | ||
| 1453 | CARD16 modifiers B16; | ||
| 1454 | } xGrabButtonReq; | ||
| 1455 | |||
| 1456 | typedef struct { | ||
| 1457 | CARD8 reqType; | ||
| 1458 | CARD8 button; | ||
| 1459 | CARD16 length B16; | ||
| 1460 | Window grabWindow B32; | ||
| 1461 | CARD16 modifiers B16; | ||
| 1462 | CARD16 pad B16; | ||
| 1463 | } xUngrabButtonReq; | ||
| 1464 | |||
| 1465 | typedef struct { | ||
| 1466 | CARD8 reqType; | ||
| 1467 | BYTE pad; | ||
| 1468 | CARD16 length B16; | ||
| 1469 | Cursor cursor B32; | ||
| 1470 | Time time B32; | ||
| 1471 | CARD16 eventMask B16; | ||
| 1472 | CARD16 pad2 B16; | ||
| 1473 | } xChangeActivePointerGrabReq; | ||
| 1474 | |||
| 1475 | typedef struct { | ||
| 1476 | CARD8 reqType; | ||
| 1477 | BOOL ownerEvents; | ||
| 1478 | CARD16 length B16; | ||
| 1479 | Window grabWindow B32; | ||
| 1480 | Time time B32; | ||
| 1481 | BYTE pointerMode, keyboardMode; | ||
| 1482 | CARD16 pad B16; | ||
| 1483 | } xGrabKeyboardReq; | ||
| 1484 | |||
| 1485 | typedef struct { | ||
| 1486 | CARD8 reqType; | ||
| 1487 | BOOL ownerEvents; | ||
| 1488 | CARD16 length B16; | ||
| 1489 | Window grabWindow B32; | ||
| 1490 | CARD16 modifiers B16; | ||
| 1491 | CARD8 key; | ||
| 1492 | BYTE pointerMode, keyboardMode; | ||
| 1493 | BYTE pad1, pad2, pad3; | ||
| 1494 | } xGrabKeyReq; | ||
| 1495 | |||
| 1496 | typedef struct { | ||
| 1497 | CARD8 reqType; | ||
| 1498 | CARD8 key; | ||
| 1499 | CARD16 length B16; | ||
| 1500 | Window grabWindow B32; | ||
| 1501 | CARD16 modifiers B16; | ||
| 1502 | CARD16 pad B16; | ||
| 1503 | } xUngrabKeyReq; | ||
| 1504 | |||
| 1505 | typedef struct { | ||
| 1506 | CARD8 reqType; | ||
| 1507 | CARD8 mode; | ||
| 1508 | CARD16 length B16; | ||
| 1509 | Time time B32; | ||
| 1510 | } xAllowEventsReq; | ||
| 1511 | |||
| 1512 | typedef struct { | ||
| 1513 | CARD8 reqType; | ||
| 1514 | BYTE pad; | ||
| 1515 | CARD16 length B16; | ||
| 1516 | Window window B32; | ||
| 1517 | Time start B32, stop B32; | ||
| 1518 | } xGetMotionEventsReq; | ||
| 1519 | |||
| 1520 | typedef struct { | ||
| 1521 | CARD8 reqType; | ||
| 1522 | BYTE pad; | ||
| 1523 | CARD16 length B16; | ||
| 1524 | Window srcWid B32, dstWid B32; | ||
| 1525 | INT16 srcX B16, srcY B16; | ||
| 1526 | } xTranslateCoordsReq; | ||
| 1527 | |||
| 1528 | typedef struct { | ||
| 1529 | CARD8 reqType; | ||
| 1530 | BYTE pad; | ||
| 1531 | CARD16 length B16; | ||
| 1532 | Window srcWid B32, dstWid B32; | ||
| 1533 | INT16 srcX B16, srcY B16; | ||
| 1534 | CARD16 srcWidth B16, srcHeight B16; | ||
| 1535 | INT16 dstX B16, dstY B16; | ||
| 1536 | } xWarpPointerReq; | ||
| 1537 | |||
| 1538 | typedef struct { | ||
| 1539 | CARD8 reqType; | ||
| 1540 | CARD8 revertTo; | ||
| 1541 | CARD16 length B16; | ||
| 1542 | Window focus B32; | ||
| 1543 | Time time B32; | ||
| 1544 | } xSetInputFocusReq; | ||
| 1545 | |||
| 1546 | typedef struct { | ||
| 1547 | CARD8 reqType; | ||
| 1548 | BYTE pad; | ||
| 1549 | CARD16 length B16; | ||
| 1550 | Font fid B32; | ||
| 1551 | CARD16 nbytes B16; | ||
| 1552 | BYTE pad1, pad2; /* string follows on word boundary */ | ||
| 1553 | } xOpenFontReq; | ||
| 1554 | |||
| 1555 | typedef struct { | ||
| 1556 | CARD8 reqType; | ||
| 1557 | BOOL oddLength; | ||
| 1558 | CARD16 length B16; | ||
| 1559 | Font fid B32; | ||
| 1560 | } xQueryTextExtentsReq; | ||
| 1561 | |||
| 1562 | typedef struct { | ||
| 1563 | CARD8 reqType; | ||
| 1564 | BYTE pad; | ||
| 1565 | CARD16 length B16; | ||
| 1566 | CARD16 maxNames B16; | ||
| 1567 | CARD16 nbytes B16; /* followed immediately by string bytes */ | ||
| 1568 | } xListFontsReq; | ||
| 1569 | |||
| 1570 | typedef xListFontsReq xListFontsWithInfoReq; | ||
| 1571 | |||
| 1572 | typedef struct { | ||
| 1573 | CARD8 reqType; | ||
| 1574 | BYTE pad; | ||
| 1575 | CARD16 length B16; | ||
| 1576 | CARD16 nFonts B16; | ||
| 1577 | BYTE pad1, pad2; /* LISTofSTRING8 follows on word boundary */ | ||
| 1578 | } xSetFontPathReq; | ||
| 1579 | |||
| 1580 | typedef struct { | ||
| 1581 | CARD8 reqType; | ||
| 1582 | CARD8 depth; | ||
| 1583 | CARD16 length B16; | ||
| 1584 | Pixmap pid B32; | ||
| 1585 | Drawable drawable B32; | ||
| 1586 | CARD16 width B16, height B16; | ||
| 1587 | } xCreatePixmapReq; | ||
| 1588 | |||
| 1589 | typedef struct { | ||
| 1590 | CARD8 reqType; | ||
| 1591 | BYTE pad; | ||
| 1592 | CARD16 length B16; | ||
| 1593 | GContext gc B32; | ||
| 1594 | Drawable drawable B32; | ||
| 1595 | CARD32 mask B32; | ||
| 1596 | } xCreateGCReq; | ||
| 1597 | |||
| 1598 | typedef struct { | ||
| 1599 | CARD8 reqType; | ||
| 1600 | BYTE pad; | ||
| 1601 | CARD16 length B16; | ||
| 1602 | GContext gc B32; | ||
| 1603 | CARD32 mask B32; | ||
| 1604 | } xChangeGCReq; | ||
| 1605 | |||
| 1606 | typedef struct { | ||
| 1607 | CARD8 reqType; | ||
| 1608 | BYTE pad; | ||
| 1609 | CARD16 length B16; | ||
| 1610 | GContext srcGC B32, dstGC B32; | ||
| 1611 | CARD32 mask B32; | ||
| 1612 | } xCopyGCReq; | ||
| 1613 | |||
| 1614 | typedef struct { | ||
| 1615 | CARD8 reqType; | ||
| 1616 | BYTE pad; | ||
| 1617 | CARD16 length B16; | ||
| 1618 | GContext gc B32; | ||
| 1619 | CARD16 dashOffset B16; | ||
| 1620 | CARD16 nDashes B16; /* length LISTofCARD8 of values following */ | ||
| 1621 | } xSetDashesReq; | ||
| 1622 | |||
| 1623 | typedef struct { | ||
| 1624 | CARD8 reqType; | ||
| 1625 | BYTE ordering; | ||
| 1626 | CARD16 length B16; | ||
| 1627 | GContext gc B32; | ||
| 1628 | INT16 xOrigin B16, yOrigin B16; | ||
| 1629 | } xSetClipRectanglesReq; | ||
| 1630 | |||
| 1631 | typedef struct { | ||
| 1632 | CARD8 reqType; | ||
| 1633 | BOOL exposures; | ||
| 1634 | CARD16 length B16; | ||
| 1635 | Window window B32; | ||
| 1636 | INT16 x B16, y B16; | ||
| 1637 | CARD16 width B16, height B16; | ||
| 1638 | } xClearAreaReq; | ||
| 1639 | |||
| 1640 | typedef struct { | ||
| 1641 | CARD8 reqType; | ||
| 1642 | BYTE pad; | ||
| 1643 | CARD16 length B16; | ||
| 1644 | Drawable srcDrawable B32, dstDrawable B32; | ||
| 1645 | GContext gc B32; | ||
| 1646 | INT16 srcX B16, srcY B16, dstX B16, dstY B16; | ||
| 1647 | CARD16 width B16, height B16; | ||
| 1648 | } xCopyAreaReq; | ||
| 1649 | |||
| 1650 | typedef struct { | ||
| 1651 | CARD8 reqType; | ||
| 1652 | BYTE pad; | ||
| 1653 | CARD16 length B16; | ||
| 1654 | Drawable srcDrawable B32, dstDrawable B32; | ||
| 1655 | GContext gc B32; | ||
| 1656 | INT16 srcX B16, srcY B16, dstX B16, dstY B16; | ||
| 1657 | CARD16 width B16, height B16; | ||
| 1658 | CARD32 bitPlane B32; | ||
| 1659 | } xCopyPlaneReq; | ||
| 1660 | |||
| 1661 | typedef struct { | ||
| 1662 | CARD8 reqType; | ||
| 1663 | BYTE coordMode; | ||
| 1664 | CARD16 length B16; | ||
| 1665 | Drawable drawable B32; | ||
| 1666 | GContext gc B32; | ||
| 1667 | } xPolyPointReq; | ||
| 1668 | |||
| 1669 | typedef xPolyPointReq xPolyLineReq; /* same request structure */ | ||
| 1670 | |||
| 1671 | /* The following used for PolySegment, PolyRectangle, PolyArc, PolyFillRectangle, PolyFillArc */ | ||
| 1672 | |||
| 1673 | typedef struct { | ||
| 1674 | CARD8 reqType; | ||
| 1675 | BYTE pad; | ||
| 1676 | CARD16 length B16; | ||
| 1677 | Drawable drawable B32; | ||
| 1678 | GContext gc B32; | ||
| 1679 | } xPolySegmentReq; | ||
| 1680 | |||
| 1681 | typedef xPolySegmentReq xPolyArcReq; | ||
| 1682 | typedef xPolySegmentReq xPolyRectangleReq; | ||
| 1683 | typedef xPolySegmentReq xPolyFillRectangleReq; | ||
| 1684 | typedef xPolySegmentReq xPolyFillArcReq; | ||
| 1685 | |||
| 1686 | typedef struct _FillPolyReq { | ||
| 1687 | CARD8 reqType; | ||
| 1688 | BYTE pad; | ||
| 1689 | CARD16 length B16; | ||
| 1690 | Drawable drawable B32; | ||
| 1691 | GContext gc B32; | ||
| 1692 | BYTE shape; | ||
| 1693 | BYTE coordMode; | ||
| 1694 | CARD16 pad1 B16; | ||
| 1695 | } xFillPolyReq; | ||
| 1696 | |||
| 1697 | |||
| 1698 | typedef struct _PutImageReq { | ||
| 1699 | CARD8 reqType; | ||
| 1700 | CARD8 format; | ||
| 1701 | CARD16 length B16; | ||
| 1702 | Drawable drawable B32; | ||
| 1703 | GContext gc B32; | ||
| 1704 | CARD16 width B16, height B16; | ||
| 1705 | INT16 dstX B16, dstY B16; | ||
| 1706 | CARD8 leftPad; | ||
| 1707 | CARD8 depth; | ||
| 1708 | CARD16 pad B16; | ||
| 1709 | } xPutImageReq; | ||
| 1710 | |||
| 1711 | typedef struct { | ||
| 1712 | CARD8 reqType; | ||
| 1713 | CARD8 format; | ||
| 1714 | CARD16 length B16; | ||
| 1715 | Drawable drawable B32; | ||
| 1716 | INT16 x B16, y B16; | ||
| 1717 | CARD16 width B16, height B16; | ||
| 1718 | CARD32 planeMask B32; | ||
| 1719 | } xGetImageReq; | ||
| 1720 | |||
| 1721 | /* the following used by PolyText8 and PolyText16 */ | ||
| 1722 | |||
| 1723 | typedef struct { | ||
| 1724 | CARD8 reqType; | ||
| 1725 | CARD8 pad; | ||
| 1726 | CARD16 length B16; | ||
| 1727 | Drawable drawable B32; | ||
| 1728 | GContext gc B32; | ||
| 1729 | INT16 x B16, y B16; /* items (xTextElt) start after struct */ | ||
| 1730 | } xPolyTextReq; | ||
| 1731 | |||
| 1732 | typedef xPolyTextReq xPolyText8Req; | ||
| 1733 | typedef xPolyTextReq xPolyText16Req; | ||
| 1734 | |||
| 1735 | typedef struct { | ||
| 1736 | CARD8 reqType; | ||
| 1737 | BYTE nChars; | ||
| 1738 | CARD16 length B16; | ||
| 1739 | Drawable drawable B32; | ||
| 1740 | GContext gc B32; | ||
| 1741 | INT16 x B16, y B16; | ||
| 1742 | } xImageTextReq; | ||
| 1743 | |||
| 1744 | typedef xImageTextReq xImageText8Req; | ||
| 1745 | typedef xImageTextReq xImageText16Req; | ||
| 1746 | |||
| 1747 | typedef struct { | ||
| 1748 | CARD8 reqType; | ||
| 1749 | BYTE alloc; | ||
| 1750 | CARD16 length B16; | ||
| 1751 | Colormap mid B32; | ||
| 1752 | Window window B32; | ||
| 1753 | VisualID visual B32; | ||
| 1754 | } xCreateColormapReq; | ||
| 1755 | |||
| 1756 | typedef struct { | ||
| 1757 | CARD8 reqType; | ||
| 1758 | BYTE pad; | ||
| 1759 | CARD16 length B16; | ||
| 1760 | Colormap mid B32; | ||
| 1761 | Colormap srcCmap B32; | ||
| 1762 | } xCopyColormapAndFreeReq; | ||
| 1763 | |||
| 1764 | typedef struct { | ||
| 1765 | CARD8 reqType; | ||
| 1766 | BYTE pad; | ||
| 1767 | CARD16 length B16; | ||
| 1768 | Colormap cmap B32; | ||
| 1769 | CARD16 red B16, green B16, blue B16; | ||
| 1770 | CARD16 pad2 B16; | ||
| 1771 | } xAllocColorReq; | ||
| 1772 | |||
| 1773 | typedef struct { | ||
| 1774 | CARD8 reqType; | ||
| 1775 | BYTE pad; | ||
| 1776 | CARD16 length B16; | ||
| 1777 | Colormap cmap B32; | ||
| 1778 | CARD16 nbytes B16; /* followed by structure */ | ||
| 1779 | BYTE pad1, pad2; | ||
| 1780 | } xAllocNamedColorReq; | ||
| 1781 | |||
| 1782 | typedef struct { | ||
| 1783 | CARD8 reqType; | ||
| 1784 | BOOL contiguous; | ||
| 1785 | CARD16 length B16; | ||
| 1786 | Colormap cmap B32; | ||
| 1787 | CARD16 colors B16, planes B16; | ||
| 1788 | } xAllocColorCellsReq; | ||
| 1789 | |||
| 1790 | typedef struct { | ||
| 1791 | CARD8 reqType; | ||
| 1792 | BOOL contiguous; | ||
| 1793 | CARD16 length B16; | ||
| 1794 | Colormap cmap B32; | ||
| 1795 | CARD16 colors B16, red B16, green B16, blue B16; | ||
| 1796 | } xAllocColorPlanesReq; | ||
| 1797 | |||
| 1798 | typedef struct { | ||
| 1799 | CARD8 reqType; | ||
| 1800 | BYTE pad; | ||
| 1801 | CARD16 length B16; | ||
| 1802 | Colormap cmap B32; | ||
| 1803 | CARD32 planeMask B32; | ||
| 1804 | } xFreeColorsReq; | ||
| 1805 | |||
| 1806 | typedef struct { | ||
| 1807 | CARD8 reqType; | ||
| 1808 | BYTE pad; | ||
| 1809 | CARD16 length B16; | ||
| 1810 | Colormap cmap B32; | ||
| 1811 | } xStoreColorsReq; | ||
| 1812 | |||
| 1813 | typedef struct { | ||
| 1814 | CARD8 reqType; | ||
| 1815 | CARD8 flags; /* DoRed, DoGreen, DoBlue, as in xColorItem */ | ||
| 1816 | CARD16 length B16; | ||
| 1817 | Colormap cmap B32; | ||
| 1818 | CARD32 pixel B32; | ||
| 1819 | CARD16 nbytes B16; /* number of name string bytes following structure */ | ||
| 1820 | BYTE pad1, pad2; | ||
| 1821 | } xStoreNamedColorReq; | ||
| 1822 | |||
| 1823 | typedef struct { | ||
| 1824 | CARD8 reqType; | ||
| 1825 | BYTE pad; | ||
| 1826 | CARD16 length B16; | ||
| 1827 | Colormap cmap B32; | ||
| 1828 | } xQueryColorsReq; | ||
| 1829 | |||
| 1830 | typedef struct { /* followed by string of length len */ | ||
| 1831 | CARD8 reqType; | ||
| 1832 | BYTE pad; | ||
| 1833 | CARD16 length B16; | ||
| 1834 | Colormap cmap B32; | ||
| 1835 | CARD16 nbytes B16; /* number of string bytes following structure*/ | ||
| 1836 | BYTE pad1, pad2; | ||
| 1837 | } xLookupColorReq; | ||
| 1838 | |||
| 1839 | typedef struct { | ||
| 1840 | CARD8 reqType; | ||
| 1841 | BYTE pad; | ||
| 1842 | CARD16 length B16; | ||
| 1843 | Cursor cid B32; | ||
| 1844 | Pixmap source B32, mask B32; | ||
| 1845 | CARD16 foreRed B16, foreGreen B16, foreBlue B16; | ||
| 1846 | CARD16 backRed B16, backGreen B16, backBlue B16; | ||
| 1847 | CARD16 x B16, y B16; | ||
| 1848 | } xCreateCursorReq; | ||
| 1849 | |||
| 1850 | typedef struct { | ||
| 1851 | CARD8 reqType; | ||
| 1852 | BYTE pad; | ||
| 1853 | CARD16 length B16; | ||
| 1854 | Cursor cid B32; | ||
| 1855 | Font source B32, mask B32; | ||
| 1856 | CARD16 sourceChar B16, maskChar B16; | ||
| 1857 | CARD16 foreRed B16, foreGreen B16, foreBlue B16; | ||
| 1858 | CARD16 backRed B16, backGreen B16, backBlue B16; | ||
| 1859 | } xCreateGlyphCursorReq; | ||
| 1860 | |||
| 1861 | typedef struct { | ||
| 1862 | CARD8 reqType; | ||
| 1863 | BYTE pad; | ||
| 1864 | CARD16 length B16; | ||
| 1865 | Cursor cursor B32; | ||
| 1866 | CARD16 foreRed B16, foreGreen B16, foreBlue B16; | ||
| 1867 | CARD16 backRed B16, backGreen B16, backBlue B16; | ||
| 1868 | } xRecolorCursorReq; | ||
| 1869 | |||
| 1870 | typedef struct { | ||
| 1871 | CARD8 reqType; | ||
| 1872 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 1873 | CARD8 c_class; | ||
| 1874 | #else | ||
| 1875 | CARD8 class; | ||
| 1876 | #endif | ||
| 1877 | CARD16 length B16; | ||
| 1878 | Drawable drawable B32; | ||
| 1879 | CARD16 width B16, height B16; | ||
| 1880 | } xQueryBestSizeReq; | ||
| 1881 | |||
| 1882 | typedef struct { | ||
| 1883 | CARD8 reqType; | ||
| 1884 | BYTE pad; | ||
| 1885 | CARD16 length B16; | ||
| 1886 | CARD16 nbytes B16; /* number of string bytes following structure */ | ||
| 1887 | BYTE pad1, pad2; | ||
| 1888 | } xQueryExtensionReq; | ||
| 1889 | |||
| 1890 | typedef struct { | ||
| 1891 | CARD8 reqType; | ||
| 1892 | CARD8 numKeyPerModifier; | ||
| 1893 | CARD16 length B16; | ||
| 1894 | } xSetModifierMappingReq; | ||
| 1895 | |||
| 1896 | typedef struct { | ||
| 1897 | CARD8 reqType; | ||
| 1898 | CARD8 nElts; /* how many elements in the map */ | ||
| 1899 | CARD16 length B16; | ||
| 1900 | } xSetPointerMappingReq; | ||
| 1901 | |||
| 1902 | typedef struct { | ||
| 1903 | CARD8 reqType; | ||
| 1904 | BYTE pad; | ||
| 1905 | CARD16 length B16; | ||
| 1906 | KeyCode firstKeyCode; | ||
| 1907 | CARD8 count; | ||
| 1908 | CARD16 pad1 B16; | ||
| 1909 | } xGetKeyboardMappingReq; | ||
| 1910 | |||
| 1911 | typedef struct { | ||
| 1912 | CARD8 reqType; | ||
| 1913 | CARD8 keyCodes; | ||
| 1914 | CARD16 length B16; | ||
| 1915 | KeyCode firstKeyCode; | ||
| 1916 | CARD8 keySymsPerKeyCode; | ||
| 1917 | CARD16 pad1 B16; | ||
| 1918 | } xChangeKeyboardMappingReq; | ||
| 1919 | |||
| 1920 | typedef struct { | ||
| 1921 | CARD8 reqType; | ||
| 1922 | BYTE pad; | ||
| 1923 | CARD16 length B16; | ||
| 1924 | CARD32 mask B32; | ||
| 1925 | } xChangeKeyboardControlReq; | ||
| 1926 | |||
| 1927 | typedef struct { | ||
| 1928 | CARD8 reqType; | ||
| 1929 | INT8 percent; /* -100 to 100 */ | ||
| 1930 | CARD16 length B16; | ||
| 1931 | } xBellReq; | ||
| 1932 | |||
| 1933 | typedef struct { | ||
| 1934 | CARD8 reqType; | ||
| 1935 | BYTE pad; | ||
| 1936 | CARD16 length B16; | ||
| 1937 | INT16 accelNum B16, accelDenum B16; | ||
| 1938 | INT16 threshold B16; | ||
| 1939 | BOOL doAccel, doThresh; | ||
| 1940 | } xChangePointerControlReq; | ||
| 1941 | |||
| 1942 | typedef struct { | ||
| 1943 | CARD8 reqType; | ||
| 1944 | BYTE pad; | ||
| 1945 | CARD16 length B16; | ||
| 1946 | INT16 timeout B16, interval B16; | ||
| 1947 | BYTE preferBlank, allowExpose; | ||
| 1948 | CARD16 pad2 B16; | ||
| 1949 | } xSetScreenSaverReq; | ||
| 1950 | |||
| 1951 | typedef struct { | ||
| 1952 | CARD8 reqType; | ||
| 1953 | BYTE mode; | ||
| 1954 | CARD16 length B16; | ||
| 1955 | CARD8 hostFamily; | ||
| 1956 | BYTE pad; | ||
| 1957 | CARD16 hostLength B16; | ||
| 1958 | } xChangeHostsReq; | ||
| 1959 | |||
| 1960 | typedef struct { | ||
| 1961 | CARD8 reqType; | ||
| 1962 | BYTE pad; | ||
| 1963 | CARD16 length B16; | ||
| 1964 | } xListHostsReq; | ||
| 1965 | |||
| 1966 | typedef struct { | ||
| 1967 | CARD8 reqType; | ||
| 1968 | BYTE mode; | ||
| 1969 | CARD16 length B16; | ||
| 1970 | } xChangeModeReq; | ||
| 1971 | |||
| 1972 | typedef xChangeModeReq xSetAccessControlReq; | ||
| 1973 | typedef xChangeModeReq xSetCloseDownModeReq; | ||
| 1974 | typedef xChangeModeReq xForceScreenSaverReq; | ||
| 1975 | |||
| 1976 | typedef struct { /* followed by LIST of ATOM */ | ||
| 1977 | CARD8 reqType; | ||
| 1978 | BYTE pad; | ||
| 1979 | CARD16 length B16; | ||
| 1980 | Window window B32; | ||
| 1981 | CARD16 nAtoms B16; | ||
| 1982 | INT16 nPositions B16; | ||
| 1983 | } xRotatePropertiesReq; | ||
| 1984 | |||
| 1985 | |||
| 1986 | |||
| 1987 | /* Reply codes */ | ||
| 1988 | |||
| 1989 | #define X_Reply 1 /* Normal reply */ | ||
| 1990 | #define X_Error 0 /* Error */ | ||
| 1991 | |||
| 1992 | /* Request codes */ | ||
| 1993 | |||
| 1994 | #define X_CreateWindow 1 | ||
| 1995 | #define X_ChangeWindowAttributes 2 | ||
| 1996 | #define X_GetWindowAttributes 3 | ||
| 1997 | #define X_DestroyWindow 4 | ||
| 1998 | #define X_DestroySubwindows 5 | ||
| 1999 | #define X_ChangeSaveSet 6 | ||
| 2000 | #define X_ReparentWindow 7 | ||
| 2001 | #define X_MapWindow 8 | ||
| 2002 | #define X_MapSubwindows 9 | ||
| 2003 | #define X_UnmapWindow 10 | ||
| 2004 | #define X_UnmapSubwindows 11 | ||
| 2005 | #define X_ConfigureWindow 12 | ||
| 2006 | #define X_CirculateWindow 13 | ||
| 2007 | #define X_GetGeometry 14 | ||
| 2008 | #define X_QueryTree 15 | ||
| 2009 | #define X_InternAtom 16 | ||
| 2010 | #define X_GetAtomName 17 | ||
| 2011 | #define X_ChangeProperty 18 | ||
| 2012 | #define X_DeleteProperty 19 | ||
| 2013 | #define X_GetProperty 20 | ||
| 2014 | #define X_ListProperties 21 | ||
| 2015 | #define X_SetSelectionOwner 22 | ||
| 2016 | #define X_GetSelectionOwner 23 | ||
| 2017 | #define X_ConvertSelection 24 | ||
| 2018 | #define X_SendEvent 25 | ||
| 2019 | #define X_GrabPointer 26 | ||
| 2020 | #define X_UngrabPointer 27 | ||
| 2021 | #define X_GrabButton 28 | ||
| 2022 | #define X_UngrabButton 29 | ||
| 2023 | #define X_ChangeActivePointerGrab 30 | ||
| 2024 | #define X_GrabKeyboard 31 | ||
| 2025 | #define X_UngrabKeyboard 32 | ||
| 2026 | #define X_GrabKey 33 | ||
| 2027 | #define X_UngrabKey 34 | ||
| 2028 | #define X_AllowEvents 35 | ||
| 2029 | #define X_GrabServer 36 | ||
| 2030 | #define X_UngrabServer 37 | ||
| 2031 | #define X_QueryPointer 38 | ||
| 2032 | #define X_GetMotionEvents 39 | ||
| 2033 | #define X_TranslateCoords 40 | ||
| 2034 | #define X_WarpPointer 41 | ||
| 2035 | #define X_SetInputFocus 42 | ||
| 2036 | #define X_GetInputFocus 43 | ||
| 2037 | #define X_QueryKeymap 44 | ||
| 2038 | #define X_OpenFont 45 | ||
| 2039 | #define X_CloseFont 46 | ||
| 2040 | #define X_QueryFont 47 | ||
| 2041 | #define X_QueryTextExtents 48 | ||
| 2042 | #define X_ListFonts 49 | ||
| 2043 | #define X_ListFontsWithInfo 50 | ||
| 2044 | #define X_SetFontPath 51 | ||
| 2045 | #define X_GetFontPath 52 | ||
| 2046 | #define X_CreatePixmap 53 | ||
| 2047 | #define X_FreePixmap 54 | ||
| 2048 | #define X_CreateGC 55 | ||
| 2049 | #define X_ChangeGC 56 | ||
| 2050 | #define X_CopyGC 57 | ||
| 2051 | #define X_SetDashes 58 | ||
| 2052 | #define X_SetClipRectangles 59 | ||
| 2053 | #define X_FreeGC 60 | ||
| 2054 | #define X_ClearArea 61 | ||
| 2055 | #define X_CopyArea 62 | ||
| 2056 | #define X_CopyPlane 63 | ||
| 2057 | #define X_PolyPoint 64 | ||
| 2058 | #define X_PolyLine 65 | ||
| 2059 | #define X_PolySegment 66 | ||
| 2060 | #define X_PolyRectangle 67 | ||
| 2061 | #define X_PolyArc 68 | ||
| 2062 | #define X_FillPoly 69 | ||
| 2063 | #define X_PolyFillRectangle 70 | ||
| 2064 | #define X_PolyFillArc 71 | ||
| 2065 | #define X_PutImage 72 | ||
| 2066 | #define X_GetImage 73 | ||
| 2067 | #define X_PolyText8 74 | ||
| 2068 | #define X_PolyText16 75 | ||
| 2069 | #define X_ImageText8 76 | ||
| 2070 | #define X_ImageText16 77 | ||
| 2071 | #define X_CreateColormap 78 | ||
| 2072 | #define X_FreeColormap 79 | ||
| 2073 | #define X_CopyColormapAndFree 80 | ||
| 2074 | #define X_InstallColormap 81 | ||
| 2075 | #define X_UninstallColormap 82 | ||
| 2076 | #define X_ListInstalledColormaps 83 | ||
| 2077 | #define X_AllocColor 84 | ||
| 2078 | #define X_AllocNamedColor 85 | ||
| 2079 | #define X_AllocColorCells 86 | ||
| 2080 | #define X_AllocColorPlanes 87 | ||
| 2081 | #define X_FreeColors 88 | ||
| 2082 | #define X_StoreColors 89 | ||
| 2083 | #define X_StoreNamedColor 90 | ||
| 2084 | #define X_QueryColors 91 | ||
| 2085 | #define X_LookupColor 92 | ||
| 2086 | #define X_CreateCursor 93 | ||
| 2087 | #define X_CreateGlyphCursor 94 | ||
| 2088 | #define X_FreeCursor 95 | ||
| 2089 | #define X_RecolorCursor 96 | ||
| 2090 | #define X_QueryBestSize 97 | ||
| 2091 | #define X_QueryExtension 98 | ||
| 2092 | #define X_ListExtensions 99 | ||
| 2093 | #define X_ChangeKeyboardMapping 100 | ||
| 2094 | #define X_GetKeyboardMapping 101 | ||
| 2095 | #define X_ChangeKeyboardControl 102 | ||
| 2096 | #define X_GetKeyboardControl 103 | ||
| 2097 | #define X_Bell 104 | ||
| 2098 | #define X_ChangePointerControl 105 | ||
| 2099 | #define X_GetPointerControl 106 | ||
| 2100 | #define X_SetScreenSaver 107 | ||
| 2101 | #define X_GetScreenSaver 108 | ||
| 2102 | #define X_ChangeHosts 109 | ||
| 2103 | #define X_ListHosts 110 | ||
| 2104 | #define X_SetAccessControl 111 | ||
| 2105 | #define X_SetCloseDownMode 112 | ||
| 2106 | #define X_KillClient 113 | ||
| 2107 | #define X_RotateProperties 114 | ||
| 2108 | #define X_ForceScreenSaver 115 | ||
| 2109 | #define X_SetPointerMapping 116 | ||
| 2110 | #define X_GetPointerMapping 117 | ||
| 2111 | #define X_SetModifierMapping 118 | ||
| 2112 | #define X_GetModifierMapping 119 | ||
| 2113 | #define X_NoOperation 127 | ||
| 2114 | |||
| 2115 | /* restore these definitions back to the typedefs in X.h */ | ||
| 2116 | #undef Window | ||
| 2117 | #undef Drawable | ||
| 2118 | #undef Font | ||
| 2119 | #undef Pixmap | ||
| 2120 | #undef Cursor | ||
| 2121 | #undef Colormap | ||
| 2122 | #undef GContext | ||
| 2123 | #undef Atom | ||
| 2124 | #undef VisualID | ||
| 2125 | #undef Time | ||
| 2126 | #undef KeyCode | ||
| 2127 | #undef KeySym | ||
| 2128 | |||
| 2129 | #endif /* XPROTO_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xprotostr.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xprotostr.h new file mode 100644 index 0000000000..f343d98498 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xprotostr.h | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | /* $Xorg: Xprotostr.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */ | ||
| 2 | #ifndef XPROTOSTRUCTS_H | ||
| 3 | #define XPROTOSTRUCTS_H | ||
| 4 | |||
| 5 | /*********************************************************** | ||
| 6 | |||
| 7 | Copyright 1987, 1998 The Open Group | ||
| 8 | |||
| 9 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 10 | documentation for any purpose is hereby granted without fee, provided that | ||
| 11 | the above copyright notice appear in all copies and that both that | ||
| 12 | copyright notice and this permission notice appear in supporting | ||
| 13 | documentation. | ||
| 14 | |||
| 15 | The above copyright notice and this permission notice shall be included in | ||
| 16 | all copies or substantial portions of the Software. | ||
| 17 | |||
| 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 21 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 22 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 24 | |||
| 25 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 26 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 27 | in this Software without prior written authorization from The Open Group. | ||
| 28 | |||
| 29 | |||
| 30 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 31 | |||
| 32 | All Rights Reserved | ||
| 33 | |||
| 34 | Permission to use, copy, modify, and distribute this software and its | ||
| 35 | documentation for any purpose and without fee is hereby granted, | ||
| 36 | provided that the above copyright notice appear in all copies and that | ||
| 37 | both that copyright notice and this permission notice appear in | ||
| 38 | supporting documentation, and that the name of Digital not be | ||
| 39 | used in advertising or publicity pertaining to distribution of the | ||
| 40 | software without specific, written prior permission. | ||
| 41 | |||
| 42 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 43 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 44 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 45 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 46 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 47 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 48 | SOFTWARE. | ||
| 49 | |||
| 50 | ******************************************************************/ | ||
| 51 | #include <X11/Xmd.h> | ||
| 52 | |||
| 53 | /* Used by PolySegment */ | ||
| 54 | |||
| 55 | typedef struct _xSegment { | ||
| 56 | INT16 x1 B16, y1 B16, x2 B16, y2 B16; | ||
| 57 | } xSegment; | ||
| 58 | |||
| 59 | /* POINT */ | ||
| 60 | |||
| 61 | typedef struct _xPoint { | ||
| 62 | INT16 x B16, y B16; | ||
| 63 | } xPoint; | ||
| 64 | |||
| 65 | typedef struct _xRectangle { | ||
| 66 | INT16 x B16, y B16; | ||
| 67 | CARD16 width B16, height B16; | ||
| 68 | } xRectangle; | ||
| 69 | |||
| 70 | /* ARC */ | ||
| 71 | |||
| 72 | typedef struct _xArc { | ||
| 73 | INT16 x B16, y B16; | ||
| 74 | CARD16 width B16, height B16; | ||
| 75 | INT16 angle1 B16, angle2 B16; | ||
| 76 | } xArc; | ||
| 77 | |||
| 78 | #endif /* XPROTOSTRUCTS_H */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xregion.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xregion.h new file mode 100644 index 0000000000..2ddf12caca --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xregion.h | |||
| @@ -0,0 +1,190 @@ | |||
| 1 | /* $Xorg: region.h,v 1.4 2001/02/09 02:03:40 xorgcvs Exp $ */ | ||
| 2 | /************************************************************************ | ||
| 3 | |||
| 4 | Copyright 1987, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in | ||
| 13 | all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 21 | |||
| 22 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 23 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 24 | in this Software without prior written authorization from The Open Group. | ||
| 25 | |||
| 26 | |||
| 27 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 28 | |||
| 29 | All Rights Reserved | ||
| 30 | |||
| 31 | Permission to use, copy, modify, and distribute this software and its | ||
| 32 | documentation for any purpose and without fee is hereby granted, | ||
| 33 | provided that the above copyright notice appear in all copies and that | ||
| 34 | both that copyright notice and this permission notice appear in | ||
| 35 | supporting documentation, and that the name of Digital not be | ||
| 36 | used in advertising or publicity pertaining to distribution of the | ||
| 37 | software without specific, written prior permission. | ||
| 38 | |||
| 39 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 40 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 41 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 42 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 44 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 45 | SOFTWARE. | ||
| 46 | |||
| 47 | ************************************************************************/ | ||
| 48 | |||
| 49 | #ifndef _XREGION_H | ||
| 50 | #define _XREGION_H | ||
| 51 | |||
| 52 | typedef struct { | ||
| 53 | short x1, x2, y1, y2; | ||
| 54 | } Box, BOX, BoxRec, *BoxPtr; | ||
| 55 | |||
| 56 | typedef struct { | ||
| 57 | short x, y, width, height; | ||
| 58 | }RECTANGLE, RectangleRec, *RectanglePtr; | ||
| 59 | |||
| 60 | #define TRUE 1 | ||
| 61 | #define FALSE 0 | ||
| 62 | #define MAXSHORT 32767 | ||
| 63 | #define MINSHORT -MAXSHORT | ||
| 64 | #ifndef MAX | ||
| 65 | #define MAX(a,b) (((a) > (b)) ? (a) : (b)) | ||
| 66 | #endif | ||
| 67 | #ifndef MIN | ||
| 68 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) | ||
| 69 | #endif | ||
| 70 | |||
| 71 | |||
| 72 | /* | ||
| 73 | * clip region | ||
| 74 | */ | ||
| 75 | |||
| 76 | typedef struct _XRegion { | ||
| 77 | long size; | ||
| 78 | long numRects; | ||
| 79 | BOX *rects; | ||
| 80 | BOX extents; | ||
| 81 | } REGION; | ||
| 82 | |||
| 83 | /* Xutil.h contains the declaration: | ||
| 84 | * typedef struct _XRegion *Region; | ||
| 85 | */ | ||
| 86 | |||
| 87 | /* 1 if two BOXs overlap. | ||
| 88 | * 0 if two BOXs do not overlap. | ||
| 89 | * Remember, x2 and y2 are not in the region | ||
| 90 | */ | ||
| 91 | #define EXTENTCHECK(r1, r2) \ | ||
| 92 | ((r1)->x2 > (r2)->x1 && \ | ||
| 93 | (r1)->x1 < (r2)->x2 && \ | ||
| 94 | (r1)->y2 > (r2)->y1 && \ | ||
| 95 | (r1)->y1 < (r2)->y2) | ||
| 96 | |||
| 97 | /* | ||
| 98 | * update region extents | ||
| 99 | */ | ||
| 100 | #define EXTENTS(r,idRect){\ | ||
| 101 | if((r)->x1 < (idRect)->extents.x1)\ | ||
| 102 | (idRect)->extents.x1 = (r)->x1;\ | ||
| 103 | if((r)->y1 < (idRect)->extents.y1)\ | ||
| 104 | (idRect)->extents.y1 = (r)->y1;\ | ||
| 105 | if((r)->x2 > (idRect)->extents.x2)\ | ||
| 106 | (idRect)->extents.x2 = (r)->x2;\ | ||
| 107 | if((r)->y2 > (idRect)->extents.y2)\ | ||
| 108 | (idRect)->extents.y2 = (r)->y2;\ | ||
| 109 | } | ||
| 110 | |||
| 111 | /* | ||
| 112 | * Check to see if there is enough memory in the present region. | ||
| 113 | */ | ||
| 114 | #define MEMCHECK(reg, rect, firstrect){\ | ||
| 115 | if ((reg)->numRects >= ((reg)->size - 1)){\ | ||
| 116 | (firstrect) = (BOX *) Xrealloc \ | ||
| 117 | ((char *)(firstrect), (unsigned) (2 * (sizeof(BOX)) * ((reg)->size)));\ | ||
| 118 | if ((firstrect) == 0)\ | ||
| 119 | return(0);\ | ||
| 120 | (reg)->size *= 2;\ | ||
| 121 | (rect) = &(firstrect)[(reg)->numRects];\ | ||
| 122 | }\ | ||
| 123 | } | ||
| 124 | |||
| 125 | /* this routine checks to see if the previous rectangle is the same | ||
| 126 | * or subsumes the new rectangle to add. | ||
| 127 | */ | ||
| 128 | |||
| 129 | #define CHECK_PREVIOUS(Reg, R, Rx1, Ry1, Rx2, Ry2)\ | ||
| 130 | (!(((Reg)->numRects > 0)&&\ | ||
| 131 | ((R-1)->y1 == (Ry1)) &&\ | ||
| 132 | ((R-1)->y2 == (Ry2)) &&\ | ||
| 133 | ((R-1)->x1 <= (Rx1)) &&\ | ||
| 134 | ((R-1)->x2 >= (Rx2)))) | ||
| 135 | |||
| 136 | /* add a rectangle to the given Region */ | ||
| 137 | #define ADDRECT(reg, r, rx1, ry1, rx2, ry2){\ | ||
| 138 | if (((rx1) < (rx2)) && ((ry1) < (ry2)) &&\ | ||
| 139 | CHECK_PREVIOUS((reg), (r), (rx1), (ry1), (rx2), (ry2))){\ | ||
| 140 | (r)->x1 = (rx1);\ | ||
| 141 | (r)->y1 = (ry1);\ | ||
| 142 | (r)->x2 = (rx2);\ | ||
| 143 | (r)->y2 = (ry2);\ | ||
| 144 | EXTENTS((r), (reg));\ | ||
| 145 | (reg)->numRects++;\ | ||
| 146 | (r)++;\ | ||
| 147 | }\ | ||
| 148 | } | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | /* add a rectangle to the given Region */ | ||
| 153 | #define ADDRECTNOX(reg, r, rx1, ry1, rx2, ry2){\ | ||
| 154 | if ((rx1 < rx2) && (ry1 < ry2) &&\ | ||
| 155 | CHECK_PREVIOUS((reg), (r), (rx1), (ry1), (rx2), (ry2))){\ | ||
| 156 | (r)->x1 = (rx1);\ | ||
| 157 | (r)->y1 = (ry1);\ | ||
| 158 | (r)->x2 = (rx2);\ | ||
| 159 | (r)->y2 = (ry2);\ | ||
| 160 | (reg)->numRects++;\ | ||
| 161 | (r)++;\ | ||
| 162 | }\ | ||
| 163 | } | ||
| 164 | |||
| 165 | #define EMPTY_REGION(pReg) pReg->numRects = 0 | ||
| 166 | |||
| 167 | #define REGION_NOT_EMPTY(pReg) pReg->numRects | ||
| 168 | |||
| 169 | #define INBOX(r, x, y) \ | ||
| 170 | ( ( ((r).x2 > x)) && \ | ||
| 171 | ( ((r).x1 <= x)) && \ | ||
| 172 | ( ((r).y2 > y)) && \ | ||
| 173 | ( ((r).y1 <= y)) ) | ||
| 174 | |||
| 175 | /* | ||
| 176 | * number of points to buffer before sending them off | ||
| 177 | * to scanlines() : Must be an even number | ||
| 178 | */ | ||
| 179 | #define NUMPTSTOBUFFER 200 | ||
| 180 | |||
| 181 | /* | ||
| 182 | * used to allocate buffers for points and link | ||
| 183 | * the buffers together | ||
| 184 | */ | ||
| 185 | typedef struct _POINTBLOCK { | ||
| 186 | XPoint pts[NUMPTSTOBUFFER]; | ||
| 187 | struct _POINTBLOCK *next; | ||
| 188 | } POINTBLOCK; | ||
| 189 | |||
| 190 | #endif | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xresource.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xresource.h new file mode 100644 index 0000000000..ce1213748c --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xresource.h | |||
| @@ -0,0 +1,360 @@ | |||
| 1 | /* $Xorg: Xresource.h,v 1.7 2001/02/09 02:03:39 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1988, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/X11/Xresource.h,v 3.8 2001/12/14 19:54:10 dawes Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XRESOURCE_H_ | ||
| 52 | #define _XRESOURCE_H_ | ||
| 53 | |||
| 54 | #ifndef _XP_PRINT_SERVER_ | ||
| 55 | #include <X11/Xlib.h> | ||
| 56 | #endif | ||
| 57 | |||
| 58 | /**************************************************************** | ||
| 59 | **************************************************************** | ||
| 60 | *** *** | ||
| 61 | *** *** | ||
| 62 | *** X Resource Manager Intrinsics *** | ||
| 63 | *** *** | ||
| 64 | *** *** | ||
| 65 | **************************************************************** | ||
| 66 | ****************************************************************/ | ||
| 67 | |||
| 68 | _XFUNCPROTOBEGIN | ||
| 69 | |||
| 70 | /**************************************************************** | ||
| 71 | * | ||
| 72 | * Memory Management | ||
| 73 | * | ||
| 74 | ****************************************************************/ | ||
| 75 | |||
| 76 | extern char *Xpermalloc( | ||
| 77 | unsigned int /* size */ | ||
| 78 | ); | ||
| 79 | |||
| 80 | /**************************************************************** | ||
| 81 | * | ||
| 82 | * Quark Management | ||
| 83 | * | ||
| 84 | ****************************************************************/ | ||
| 85 | |||
| 86 | typedef int XrmQuark, *XrmQuarkList; | ||
| 87 | #define NULLQUARK ((XrmQuark) 0) | ||
| 88 | |||
| 89 | typedef char *XrmString; | ||
| 90 | #define NULLSTRING ((XrmString) 0) | ||
| 91 | |||
| 92 | /* find quark for string, create new quark if none already exists */ | ||
| 93 | extern XrmQuark XrmStringToQuark( | ||
| 94 | _Xconst char* /* string */ | ||
| 95 | ); | ||
| 96 | |||
| 97 | extern XrmQuark XrmPermStringToQuark( | ||
| 98 | _Xconst char* /* string */ | ||
| 99 | ); | ||
| 100 | |||
| 101 | /* find string for quark */ | ||
| 102 | extern XrmString XrmQuarkToString( | ||
| 103 | XrmQuark /* quark */ | ||
| 104 | ); | ||
| 105 | |||
| 106 | extern XrmQuark XrmUniqueQuark( | ||
| 107 | void | ||
| 108 | ); | ||
| 109 | |||
| 110 | #define XrmStringsEqual(a1, a2) (strcmp(a1, a2) == 0) | ||
| 111 | |||
| 112 | |||
| 113 | /**************************************************************** | ||
| 114 | * | ||
| 115 | * Conversion of Strings to Lists | ||
| 116 | * | ||
| 117 | ****************************************************************/ | ||
| 118 | |||
| 119 | typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList; | ||
| 120 | |||
| 121 | extern void XrmStringToQuarkList( | ||
| 122 | _Xconst char* /* string */, | ||
| 123 | XrmQuarkList /* quarks_return */ | ||
| 124 | ); | ||
| 125 | |||
| 126 | extern void XrmStringToBindingQuarkList( | ||
| 127 | _Xconst char* /* string */, | ||
| 128 | XrmBindingList /* bindings_return */, | ||
| 129 | XrmQuarkList /* quarks_return */ | ||
| 130 | ); | ||
| 131 | |||
| 132 | /**************************************************************** | ||
| 133 | * | ||
| 134 | * Name and Class lists. | ||
| 135 | * | ||
| 136 | ****************************************************************/ | ||
| 137 | |||
| 138 | typedef XrmQuark XrmName; | ||
| 139 | typedef XrmQuarkList XrmNameList; | ||
| 140 | #define XrmNameToString(name) XrmQuarkToString(name) | ||
| 141 | #define XrmStringToName(string) XrmStringToQuark(string) | ||
| 142 | #define XrmStringToNameList(str, name) XrmStringToQuarkList(str, name) | ||
| 143 | |||
| 144 | typedef XrmQuark XrmClass; | ||
| 145 | typedef XrmQuarkList XrmClassList; | ||
| 146 | #define XrmClassToString(c_class) XrmQuarkToString(c_class) | ||
| 147 | #define XrmStringToClass(c_class) XrmStringToQuark(c_class) | ||
| 148 | #define XrmStringToClassList(str,c_class) XrmStringToQuarkList(str, c_class) | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | /**************************************************************** | ||
| 153 | * | ||
| 154 | * Resource Representation Types and Values | ||
| 155 | * | ||
| 156 | ****************************************************************/ | ||
| 157 | |||
| 158 | typedef XrmQuark XrmRepresentation; | ||
| 159 | #define XrmStringToRepresentation(string) XrmStringToQuark(string) | ||
| 160 | #define XrmRepresentationToString(type) XrmQuarkToString(type) | ||
| 161 | |||
| 162 | typedef struct { | ||
| 163 | unsigned int size; | ||
| 164 | XPointer addr; | ||
| 165 | } XrmValue, *XrmValuePtr; | ||
| 166 | |||
| 167 | |||
| 168 | /**************************************************************** | ||
| 169 | * | ||
| 170 | * Resource Manager Functions | ||
| 171 | * | ||
| 172 | ****************************************************************/ | ||
| 173 | |||
| 174 | typedef struct _XrmHashBucketRec *XrmHashBucket; | ||
| 175 | typedef XrmHashBucket *XrmHashTable; | ||
| 176 | typedef XrmHashTable XrmSearchList[]; | ||
| 177 | typedef struct _XrmHashBucketRec *XrmDatabase; | ||
| 178 | |||
| 179 | |||
| 180 | extern void XrmDestroyDatabase( | ||
| 181 | XrmDatabase /* database */ | ||
| 182 | ); | ||
| 183 | |||
| 184 | extern void XrmQPutResource( | ||
| 185 | XrmDatabase* /* database */, | ||
| 186 | XrmBindingList /* bindings */, | ||
| 187 | XrmQuarkList /* quarks */, | ||
| 188 | XrmRepresentation /* type */, | ||
| 189 | XrmValue* /* value */ | ||
| 190 | ); | ||
| 191 | |||
| 192 | extern void XrmPutResource( | ||
| 193 | XrmDatabase* /* database */, | ||
| 194 | _Xconst char* /* specifier */, | ||
| 195 | _Xconst char* /* type */, | ||
| 196 | XrmValue* /* value */ | ||
| 197 | ); | ||
| 198 | |||
| 199 | extern void XrmQPutStringResource( | ||
| 200 | XrmDatabase* /* database */, | ||
| 201 | XrmBindingList /* bindings */, | ||
| 202 | XrmQuarkList /* quarks */, | ||
| 203 | _Xconst char* /* value */ | ||
| 204 | ); | ||
| 205 | |||
| 206 | extern void XrmPutStringResource( | ||
| 207 | XrmDatabase* /* database */, | ||
| 208 | _Xconst char* /* specifier */, | ||
| 209 | _Xconst char* /* value */ | ||
| 210 | ); | ||
| 211 | |||
| 212 | extern void XrmPutLineResource( | ||
| 213 | XrmDatabase* /* database */, | ||
| 214 | _Xconst char* /* line */ | ||
| 215 | ); | ||
| 216 | |||
| 217 | extern Bool XrmQGetResource( | ||
| 218 | XrmDatabase /* database */, | ||
| 219 | XrmNameList /* quark_name */, | ||
| 220 | XrmClassList /* quark_class */, | ||
| 221 | XrmRepresentation* /* quark_type_return */, | ||
| 222 | XrmValue* /* value_return */ | ||
| 223 | ); | ||
| 224 | |||
| 225 | extern Bool XrmGetResource( | ||
| 226 | XrmDatabase /* database */, | ||
| 227 | _Xconst char* /* str_name */, | ||
| 228 | _Xconst char* /* str_class */, | ||
| 229 | char** /* str_type_return */, | ||
| 230 | XrmValue* /* value_return */ | ||
| 231 | ); | ||
| 232 | |||
| 233 | extern Bool XrmQGetSearchList( | ||
| 234 | XrmDatabase /* database */, | ||
| 235 | XrmNameList /* names */, | ||
| 236 | XrmClassList /* classes */, | ||
| 237 | XrmSearchList /* list_return */, | ||
| 238 | int /* list_length */ | ||
| 239 | ); | ||
| 240 | |||
| 241 | extern Bool XrmQGetSearchResource( | ||
| 242 | XrmSearchList /* list */, | ||
| 243 | XrmName /* name */, | ||
| 244 | XrmClass /* class */, | ||
| 245 | XrmRepresentation* /* type_return */, | ||
| 246 | XrmValue* /* value_return */ | ||
| 247 | ); | ||
| 248 | |||
| 249 | /**************************************************************** | ||
| 250 | * | ||
| 251 | * Resource Database Management | ||
| 252 | * | ||
| 253 | ****************************************************************/ | ||
| 254 | |||
| 255 | #ifndef _XP_PRINT_SERVER_ | ||
| 256 | |||
| 257 | extern void XrmSetDatabase( | ||
| 258 | Display* /* display */, | ||
| 259 | XrmDatabase /* database */ | ||
| 260 | ); | ||
| 261 | |||
| 262 | extern XrmDatabase XrmGetDatabase( | ||
| 263 | Display* /* display */ | ||
| 264 | ); | ||
| 265 | |||
| 266 | #endif /* !_XP_PRINT_SERVER_ */ | ||
| 267 | |||
| 268 | extern XrmDatabase XrmGetFileDatabase( | ||
| 269 | _Xconst char* /* filename */ | ||
| 270 | ); | ||
| 271 | |||
| 272 | extern Status XrmCombineFileDatabase( | ||
| 273 | _Xconst char* /* filename */, | ||
| 274 | XrmDatabase* /* target */, | ||
| 275 | Bool /* override */ | ||
| 276 | ); | ||
| 277 | |||
| 278 | extern XrmDatabase XrmGetStringDatabase( | ||
| 279 | _Xconst char* /* data */ /* null terminated string */ | ||
| 280 | ); | ||
| 281 | |||
| 282 | extern void XrmPutFileDatabase( | ||
| 283 | XrmDatabase /* database */, | ||
| 284 | _Xconst char* /* filename */ | ||
| 285 | ); | ||
| 286 | |||
| 287 | extern void XrmMergeDatabases( | ||
| 288 | XrmDatabase /* source_db */, | ||
| 289 | XrmDatabase* /* target_db */ | ||
| 290 | ); | ||
| 291 | |||
| 292 | extern void XrmCombineDatabase( | ||
| 293 | XrmDatabase /* source_db */, | ||
| 294 | XrmDatabase* /* target_db */, | ||
| 295 | Bool /* override */ | ||
| 296 | ); | ||
| 297 | |||
| 298 | #define XrmEnumAllLevels 0 | ||
| 299 | #define XrmEnumOneLevel 1 | ||
| 300 | |||
| 301 | extern Bool XrmEnumerateDatabase( | ||
| 302 | XrmDatabase /* db */, | ||
| 303 | XrmNameList /* name_prefix */, | ||
| 304 | XrmClassList /* class_prefix */, | ||
| 305 | int /* mode */, | ||
| 306 | Bool (*)( | ||
| 307 | XrmDatabase* /* db */, | ||
| 308 | XrmBindingList /* bindings */, | ||
| 309 | XrmQuarkList /* quarks */, | ||
| 310 | XrmRepresentation* /* type */, | ||
| 311 | XrmValue* /* value */, | ||
| 312 | XPointer /* closure */ | ||
| 313 | ) /* proc */, | ||
| 314 | XPointer /* closure */ | ||
| 315 | ); | ||
| 316 | |||
| 317 | extern const char *XrmLocaleOfDatabase( | ||
| 318 | XrmDatabase /* database */ | ||
| 319 | ); | ||
| 320 | |||
| 321 | |||
| 322 | /**************************************************************** | ||
| 323 | * | ||
| 324 | * Command line option mapping to resource entries | ||
| 325 | * | ||
| 326 | ****************************************************************/ | ||
| 327 | |||
| 328 | typedef enum { | ||
| 329 | XrmoptionNoArg, /* Value is specified in OptionDescRec.value */ | ||
| 330 | XrmoptionIsArg, /* Value is the option string itself */ | ||
| 331 | XrmoptionStickyArg, /* Value is characters immediately following option */ | ||
| 332 | XrmoptionSepArg, /* Value is next argument in argv */ | ||
| 333 | XrmoptionResArg, /* Resource and value in next argument in argv */ | ||
| 334 | XrmoptionSkipArg, /* Ignore this option and the next argument in argv */ | ||
| 335 | XrmoptionSkipLine, /* Ignore this option and the rest of argv */ | ||
| 336 | XrmoptionSkipNArgs /* Ignore this option and the next | ||
| 337 | OptionDescRes.value arguments in argv */ | ||
| 338 | } XrmOptionKind; | ||
| 339 | |||
| 340 | typedef struct { | ||
| 341 | char *option; /* Option abbreviation in argv */ | ||
| 342 | char *specifier; /* Resource specifier */ | ||
| 343 | XrmOptionKind argKind; /* Which style of option it is */ | ||
| 344 | XPointer value; /* Value to provide if XrmoptionNoArg */ | ||
| 345 | } XrmOptionDescRec, *XrmOptionDescList; | ||
| 346 | |||
| 347 | |||
| 348 | extern void XrmParseCommand( | ||
| 349 | XrmDatabase* /* database */, | ||
| 350 | XrmOptionDescList /* table */, | ||
| 351 | int /* table_count */, | ||
| 352 | _Xconst char* /* name */, | ||
| 353 | int* /* argc_in_out */, | ||
| 354 | char** /* argv_in_out */ | ||
| 355 | ); | ||
| 356 | |||
| 357 | _XFUNCPROTOEND | ||
| 358 | |||
| 359 | #endif /* _XRESOURCE_H_ */ | ||
| 360 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xthreads.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xthreads.h new file mode 100644 index 0000000000..54b5440ad8 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xthreads.h | |||
| @@ -0,0 +1,316 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: Xthreads.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $ | ||
| 3 | * | ||
| 4 | * | ||
| 5 | Copyright 1993, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | * * | ||
| 27 | */ | ||
| 28 | /* $XFree86: Xthreads.h,v 3.10 2001/12/14 19:53:26 dawes Exp $ */ | ||
| 29 | |||
| 30 | #ifndef _XTHREADS_H_ | ||
| 31 | #define _XTHREADS_H_ | ||
| 32 | |||
| 33 | /* Redefine these to XtMalloc/XtFree or whatever you want before including | ||
| 34 | * this header file. | ||
| 35 | */ | ||
| 36 | #ifndef xmalloc | ||
| 37 | #define xmalloc malloc | ||
| 38 | #endif | ||
| 39 | #ifndef xfree | ||
| 40 | #define xfree free | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #ifdef CTHREADS | ||
| 44 | #include <cthreads.h> | ||
| 45 | typedef cthread_t xthread_t; | ||
| 46 | typedef struct condition xcondition_rec; | ||
| 47 | typedef struct mutex xmutex_rec; | ||
| 48 | #define xthread_init() cthread_init() | ||
| 49 | #define xthread_self cthread_self | ||
| 50 | #define xthread_fork(func,closure) cthread_fork(func,closure) | ||
| 51 | #define xthread_yield() cthread_yield() | ||
| 52 | #define xthread_exit(v) cthread_exit(v) | ||
| 53 | #define xthread_set_name(t,str) cthread_set_name(t,str) | ||
| 54 | #define xmutex_init(m) mutex_init(m) | ||
| 55 | #define xmutex_clear(m) mutex_clear(m) | ||
| 56 | #define xmutex_lock(m) mutex_lock(m) | ||
| 57 | #define xmutex_unlock(m) mutex_unlock(m) | ||
| 58 | #define xmutex_set_name(m,str) mutex_set_name(m,str) | ||
| 59 | #define xcondition_init(cv) condition_init(cv) | ||
| 60 | #define xcondition_clear(cv) condition_clear(cv) | ||
| 61 | #define xcondition_wait(cv,m) condition_wait(cv,m) | ||
| 62 | #define xcondition_signal(cv) condition_signal(cv) | ||
| 63 | #define xcondition_broadcast(cv) condition_broadcast(cv) | ||
| 64 | #define xcondition_set_name(cv,str) condition_set_name(cv,str) | ||
| 65 | #else /* !CTHREADS */ | ||
| 66 | #if defined(SVR4) && !defined(__sgi) && !defined(_SEQUENT_) | ||
| 67 | #include <thread.h> | ||
| 68 | #include <synch.h> | ||
| 69 | typedef thread_t xthread_t; | ||
| 70 | typedef thread_key_t xthread_key_t; | ||
| 71 | typedef cond_t xcondition_rec; | ||
| 72 | typedef mutex_t xmutex_rec; | ||
| 73 | #if defined(__UNIXWARE__) | ||
| 74 | extern xthread_t (*_x11_thr_self)(); | ||
| 75 | #define xthread_self (_x11_thr_self) | ||
| 76 | #else | ||
| 77 | #define xthread_self thr_self | ||
| 78 | #endif | ||
| 79 | #define xthread_fork(func,closure) thr_create(NULL,0,func,closure,THR_NEW_LWP|THR_DETACHED,NULL) | ||
| 80 | #define xthread_yield() thr_yield() | ||
| 81 | #define xthread_exit(v) thr_exit(v) | ||
| 82 | #define xthread_key_create(kp,d) thr_keycreate(kp,d) | ||
| 83 | #ifdef sun | ||
| 84 | #define xthread_key_delete(k) 0 | ||
| 85 | #else | ||
| 86 | #define xthread_key_delete(k) thr_keydelete(k) | ||
| 87 | #endif | ||
| 88 | #define xthread_set_specific(k,v) thr_setspecific(k,v) | ||
| 89 | #define xthread_get_specific(k,vp) thr_getspecific(k,vp) | ||
| 90 | #define xmutex_init(m) mutex_init(m,USYNC_THREAD,0) | ||
| 91 | #define xmutex_clear(m) mutex_destroy(m) | ||
| 92 | #define xmutex_lock(m) mutex_lock(m) | ||
| 93 | #define xmutex_unlock(m) mutex_unlock(m) | ||
| 94 | #define xcondition_init(cv) cond_init(cv,USYNC_THREAD,0) | ||
| 95 | #define xcondition_clear(cv) cond_destroy(cv) | ||
| 96 | #define xcondition_wait(cv,m) cond_wait(cv,m) | ||
| 97 | #define xcondition_signal(cv) cond_signal(cv) | ||
| 98 | #define xcondition_broadcast(cv) cond_broadcast(cv) | ||
| 99 | #else /* !SVR4 */ | ||
| 100 | #ifdef WIN32 | ||
| 101 | #include <X11/Xwindows.h> | ||
| 102 | typedef DWORD xthread_t; | ||
| 103 | typedef DWORD xthread_key_t; | ||
| 104 | struct _xthread_waiter { | ||
| 105 | HANDLE sem; | ||
| 106 | struct _xthread_waiter *next; | ||
| 107 | }; | ||
| 108 | typedef struct { | ||
| 109 | CRITICAL_SECTION cs; | ||
| 110 | struct _xthread_waiter *waiters; | ||
| 111 | } xcondition_rec; | ||
| 112 | typedef CRITICAL_SECTION xmutex_rec; | ||
| 113 | #define xthread_init() _Xthread_init() | ||
| 114 | #define xthread_self GetCurrentThreadId | ||
| 115 | #define xthread_fork(func,closure) { \ | ||
| 116 | DWORD _tmptid; \ | ||
| 117 | CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, (LPVOID)closure, 0, \ | ||
| 118 | &_tmptid); \ | ||
| 119 | } | ||
| 120 | #define xthread_yield() Sleep(0) | ||
| 121 | #define xthread_exit(v) ExitThread((DWORD)(v)) | ||
| 122 | #define xthread_key_create(kp,d) *(kp) = TlsAlloc() | ||
| 123 | #define xthread_key_delete(k) TlsFree(k) | ||
| 124 | #define xthread_set_specific(k,v) TlsSetValue(k,v) | ||
| 125 | #define xthread_get_specific(k,vp) TlsGetValue(k) | ||
| 126 | #define xmutex_init(m) InitializeCriticalSection(m) | ||
| 127 | #define xmutex_clear(m) DeleteCriticalSection(m) | ||
| 128 | #define _XMUTEX_NESTS | ||
| 129 | #define xmutex_lock(m) EnterCriticalSection(m) | ||
| 130 | #define xmutex_unlock(m) LeaveCriticalSection(m) | ||
| 131 | #define xcondition_init(cv) { \ | ||
| 132 | InitializeCriticalSection(&(cv)->cs); \ | ||
| 133 | (cv)->waiters = NULL; \ | ||
| 134 | } | ||
| 135 | #define xcondition_clear(cv) DeleteCriticalSection(&(cv)->cs) | ||
| 136 | extern struct _xthread_waiter *_Xthread_waiter(); | ||
| 137 | #define xcondition_wait(cv,m) { \ | ||
| 138 | struct _xthread_waiter *_tmpthr = _Xthread_waiter(); \ | ||
| 139 | EnterCriticalSection(&(cv)->cs); \ | ||
| 140 | _tmpthr->next = (cv)->waiters; \ | ||
| 141 | (cv)->waiters = _tmpthr; \ | ||
| 142 | LeaveCriticalSection(&(cv)->cs); \ | ||
| 143 | LeaveCriticalSection(m); \ | ||
| 144 | WaitForSingleObject(_tmpthr->sem, INFINITE); \ | ||
| 145 | EnterCriticalSection(m); \ | ||
| 146 | } | ||
| 147 | #define xcondition_signal(cv) { \ | ||
| 148 | EnterCriticalSection(&(cv)->cs); \ | ||
| 149 | if ((cv)->waiters) { \ | ||
| 150 | ReleaseSemaphore((cv)->waiters->sem, 1, NULL); \ | ||
| 151 | (cv)->waiters = (cv)->waiters->next; \ | ||
| 152 | } \ | ||
| 153 | LeaveCriticalSection(&(cv)->cs); \ | ||
| 154 | } | ||
| 155 | #define xcondition_broadcast(cv) { \ | ||
| 156 | struct _xthread_waiter *_tmpthr; \ | ||
| 157 | EnterCriticalSection(&(cv)->cs); \ | ||
| 158 | for (_tmpthr = (cv)->waiters; _tmpthr; _tmpthr = _tmpthr->next) \ | ||
| 159 | ReleaseSemaphore(_tmpthr->sem, 1, NULL); \ | ||
| 160 | (cv)->waiters = NULL; \ | ||
| 161 | LeaveCriticalSection(&(cv)->cs); \ | ||
| 162 | } | ||
| 163 | #else /* !WIN32 */ | ||
| 164 | #ifdef USE_TIS_SUPPORT | ||
| 165 | /* | ||
| 166 | * TIS support is intended for thread safe libraries. | ||
| 167 | * This should not be used for general client programming. | ||
| 168 | */ | ||
| 169 | #include <tis.h> | ||
| 170 | typedef pthread_t xthread_t; | ||
| 171 | typedef pthread_key_t xthread_key_t; | ||
| 172 | typedef pthread_cond_t xcondition_rec; | ||
| 173 | typedef pthread_mutex_t xmutex_rec; | ||
| 174 | #define xthread_self tis_self | ||
| 175 | #define xthread_fork(func,closure) { pthread_t _tmpxthr; \ | ||
| 176 | pthread_create(&_tmpxthr,NULL,func,closure); } | ||
| 177 | #define xthread_yield() pthread_yield_np() | ||
| 178 | #define xthread_exit(v) pthread_exit(v) | ||
| 179 | #define xthread_key_create(kp,d) tis_key_create(kp,d) | ||
| 180 | #define xthread_key_delete(k) tis_key_delete(k) | ||
| 181 | #define xthread_set_specific(k,v) tis_setspecific(k,v) | ||
| 182 | #define xthread_get_specific(k,vp) *(vp) = tis_getspecific(k) | ||
| 183 | #define XMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER | ||
| 184 | #define xmutex_init(m) tis_mutex_init(m) | ||
| 185 | #define xmutex_clear(m) tis_mutex_destroy(m) | ||
| 186 | #define xmutex_lock(m) tis_mutex_lock(m) | ||
| 187 | #define xmutex_unlock(m) tis_mutex_unlock(m) | ||
| 188 | #define xcondition_init(c) tis_cond_init(c) | ||
| 189 | #define xcondition_clear(c) tis_cond_destroy(c) | ||
| 190 | #define xcondition_wait(c,m) tis_cond_wait(c,m) | ||
| 191 | #define xcondition_signal(c) tis_cond_signal(c) | ||
| 192 | #define xcondition_broadcast(c) tis_cond_broadcast(c) | ||
| 193 | #else | ||
| 194 | #ifdef USE_NBSD_THREADLIB | ||
| 195 | /* | ||
| 196 | * NetBSD threadlib support is intended for thread safe libraries. | ||
| 197 | * This should not be used for general client programming. | ||
| 198 | */ | ||
| 199 | #include <threadlib.h> | ||
| 200 | typedef thr_t xthread_t; | ||
| 201 | typedef thread_key_t xthread_key_t; | ||
| 202 | typedef cond_t xcondition_rec; | ||
| 203 | typedef mutex_t xmutex_rec; | ||
| 204 | #define xthread_self thr_self | ||
| 205 | #define xthread_fork(func,closure) { thr_t _tmpxthr; \ | ||
| 206 | /* XXX Create it detached? --thorpej */ \ | ||
| 207 | thr_create(&_tmpxthr,NULL,func,closure); } | ||
| 208 | #define xthread_yield() thr_yield() | ||
| 209 | #define xthread_exit(v) thr_exit(v) | ||
| 210 | #define xthread_key_create(kp,d) thr_keycreate(kp,d) | ||
| 211 | #define xthread_key_delete(k) thr_keydelete(k) | ||
| 212 | #define xthread_set_specific(k,v) thr_setspecific(k,v) | ||
| 213 | #define xthread_get_specific(k,vp) *(vp) = thr_getspecific(k) | ||
| 214 | #define XMUTEX_INITIALIZER MUTEX_INITIALIZER | ||
| 215 | #define xmutex_init(m) mutex_init(m, 0) | ||
| 216 | #define xmutex_clear(m) mutex_destroy(m) | ||
| 217 | #define xmutex_lock(m) mutex_lock(m) | ||
| 218 | #define xmutex_unlock(m) mutex_unlock(m) | ||
| 219 | #define xcondition_init(c) cond_init(c, 0, 0) | ||
| 220 | #define xcondition_clear(c) cond_destroy(c) | ||
| 221 | #define xcondition_wait(c,m) cond_wait(c,m) | ||
| 222 | #define xcondition_signal(c) cond_signal(c) | ||
| 223 | #define xcondition_broadcast(c) cond_broadcast(c) | ||
| 224 | #else | ||
| 225 | #include <pthread.h> | ||
| 226 | typedef pthread_t xthread_t; | ||
| 227 | typedef pthread_key_t xthread_key_t; | ||
| 228 | typedef pthread_cond_t xcondition_rec; | ||
| 229 | typedef pthread_mutex_t xmutex_rec; | ||
| 230 | #define xthread_self pthread_self | ||
| 231 | #define xthread_yield() pthread_yield() | ||
| 232 | #define xthread_exit(v) pthread_exit(v) | ||
| 233 | #define xthread_set_specific(k,v) pthread_setspecific(k,v) | ||
| 234 | #define xmutex_clear(m) pthread_mutex_destroy(m) | ||
| 235 | #define xmutex_lock(m) pthread_mutex_lock(m) | ||
| 236 | #define xmutex_unlock(m) pthread_mutex_unlock(m) | ||
| 237 | #ifndef XPRE_STANDARD_API | ||
| 238 | #define xthread_key_create(kp,d) pthread_key_create(kp,d) | ||
| 239 | #define xthread_key_delete(k) pthread_key_delete(k) | ||
| 240 | #define xthread_get_specific(k,vp) *(vp) = pthread_getspecific(k) | ||
| 241 | #define xthread_fork(func,closure) { pthread_t _tmpxthr; \ | ||
| 242 | pthread_create(&_tmpxthr,NULL,func,closure); } | ||
| 243 | #define XMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER | ||
| 244 | #define xmutex_init(m) pthread_mutex_init(m, NULL) | ||
| 245 | #define xcondition_init(c) pthread_cond_init(c, NULL) | ||
| 246 | #else /* XPRE_STANDARD_API */ | ||
| 247 | #define xthread_key_create(kp,d) pthread_keycreate(kp,d) | ||
| 248 | #define xthread_key_delete(k) 0 | ||
| 249 | #define xthread_get_specific(k,vp) pthread_getspecific(k,vp) | ||
| 250 | #define xthread_fork(func,closure) { pthread_t _tmpxthr; \ | ||
| 251 | pthread_create(&_tmpxthr,pthread_attr_default,func,closure); } | ||
| 252 | #define xmutex_init(m) pthread_mutex_init(m, pthread_mutexattr_default) | ||
| 253 | #define xcondition_init(c) pthread_cond_init(c, pthread_condattr_default) | ||
| 254 | #endif /* XPRE_STANDARD_API */ | ||
| 255 | #define xcondition_clear(c) pthread_cond_destroy(c) | ||
| 256 | #define xcondition_wait(c,m) pthread_cond_wait(c,m) | ||
| 257 | #define xcondition_signal(c) pthread_cond_signal(c) | ||
| 258 | #define xcondition_broadcast(c) pthread_cond_broadcast(c) | ||
| 259 | #if defined(_DECTHREADS_) | ||
| 260 | static xthread_t _X_no_thread_id; | ||
| 261 | #define xthread_have_id(id) !pthread_equal(id, _X_no_thread_id) | ||
| 262 | #define xthread_clear_id(id) id = _X_no_thread_id | ||
| 263 | #define xthread_equal(id1,id2) pthread_equal(id1, id2) | ||
| 264 | #endif /* _DECTHREADS_ */ | ||
| 265 | #if defined(__linux__) | ||
| 266 | #define xthread_have_id(id) !pthread_equal(id, 0) | ||
| 267 | #define xthread_clear_id(id) id = 0 | ||
| 268 | #define xthread_equal(id1,id2) pthread_equal(id1, id2) | ||
| 269 | #endif /* linux */ | ||
| 270 | #if defined(_CMA_VENDOR_) && defined(_CMA__IBM) && (_CMA_VENDOR_ == _CMA__IBM) | ||
| 271 | #ifdef DEBUG /* too much of a hack to enable normally */ | ||
| 272 | /* see also cma__obj_set_name() */ | ||
| 273 | #define xmutex_set_name(m,str) ((char**)(m)->field1)[5] = (str) | ||
| 274 | #define xcondition_set_name(cv,str) ((char**)(cv)->field1)[5] = (str) | ||
| 275 | #endif /* DEBUG */ | ||
| 276 | #endif /* _CMA_VENDOR_ == _CMA__IBM */ | ||
| 277 | #endif /* USE_NBSD_THREADLIB */ | ||
| 278 | #endif /* USE_TIS_SUPPORT */ | ||
| 279 | #endif /* WIN32 */ | ||
| 280 | #endif /* SVR4 */ | ||
| 281 | #endif /* CTHREADS */ | ||
| 282 | typedef xcondition_rec *xcondition_t; | ||
| 283 | typedef xmutex_rec *xmutex_t; | ||
| 284 | #ifndef xcondition_malloc | ||
| 285 | #define xcondition_malloc() (xcondition_t)xmalloc(sizeof(xcondition_rec)) | ||
| 286 | #endif | ||
| 287 | #ifndef xcondition_free | ||
| 288 | #define xcondition_free(c) xfree((char *)c) | ||
| 289 | #endif | ||
| 290 | #ifndef xmutex_malloc | ||
| 291 | #define xmutex_malloc() (xmutex_t)xmalloc(sizeof(xmutex_rec)) | ||
| 292 | #endif | ||
| 293 | #ifndef xmutex_free | ||
| 294 | #define xmutex_free(m) xfree((char *)m) | ||
| 295 | #endif | ||
| 296 | #ifndef xthread_have_id | ||
| 297 | #define xthread_have_id(id) id | ||
| 298 | #endif | ||
| 299 | #ifndef xthread_clear_id | ||
| 300 | #define xthread_clear_id(id) id = 0 | ||
| 301 | #endif | ||
| 302 | #ifndef xthread_equal | ||
| 303 | #define xthread_equal(id1,id2) ((id1) == (id2)) | ||
| 304 | #endif | ||
| 305 | /* aids understood by some debuggers */ | ||
| 306 | #ifndef xthread_set_name | ||
| 307 | #define xthread_set_name(t,str) | ||
| 308 | #endif | ||
| 309 | #ifndef xmutex_set_name | ||
| 310 | #define xmutex_set_name(m,str) | ||
| 311 | #endif | ||
| 312 | #ifndef xcondition_set_name | ||
| 313 | #define xcondition_set_name(cv,str) | ||
| 314 | #endif | ||
| 315 | |||
| 316 | #endif /* _XTHREADS_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h new file mode 100644 index 0000000000..013b2416ce --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | /* | ||
| 2 | * $Xorg: Xtos.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $ | ||
| 3 | */ | ||
| 4 | |||
| 5 | /*********************************************************** | ||
| 6 | |||
| 7 | Copyright 1987, 1988, 1994, 1998 The Open Group | ||
| 8 | |||
| 9 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 10 | documentation for any purpose is hereby granted without fee, provided that | ||
| 11 | the above copyright notice appear in all copies and that both that | ||
| 12 | copyright notice and this permission notice appear in supporting | ||
| 13 | documentation. | ||
| 14 | |||
| 15 | The above copyright notice and this permission notice shall be included in | ||
| 16 | all copies or substantial portions of the Software. | ||
| 17 | |||
| 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 21 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 22 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 24 | |||
| 25 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 26 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 27 | in this Software without prior written authorization from The Open Group. | ||
| 28 | |||
| 29 | |||
| 30 | Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 31 | |||
| 32 | All Rights Reserved | ||
| 33 | |||
| 34 | Permission to use, copy, modify, and distribute this software and its | ||
| 35 | documentation for any purpose and without fee is hereby granted, | ||
| 36 | provided that the above copyright notice appear in all copies and that | ||
| 37 | both that copyright notice and this permission notice appear in | ||
| 38 | supporting documentation, and that the name of Digital not be | ||
| 39 | used in advertising or publicity pertaining to distribution of the | ||
| 40 | software without specific, written prior permission. | ||
| 41 | |||
| 42 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 43 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 44 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 45 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 46 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 47 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 48 | SOFTWARE. | ||
| 49 | |||
| 50 | ******************************************************************/ | ||
| 51 | /* $XFree86: xc/lib/Xt/Xtos.h,v 3.12tsi Exp $ */ | ||
| 52 | |||
| 53 | #ifndef _Xtos_h | ||
| 54 | #define _Xtos_h | ||
| 55 | |||
| 56 | #define ALLOCATE_LOCAL_FALLBACK(_size) XtMalloc((unsigned long)(_size)) | ||
| 57 | #define DEALLOCATE_LOCAL_FALLBACK(_ptr) XtFree((XtPointer)(_ptr)) | ||
| 58 | #include <X11/Xalloca.h> | ||
| 59 | |||
| 60 | #ifdef CRAY | ||
| 61 | #define WORD64 | ||
| 62 | #endif | ||
| 63 | |||
| 64 | #if defined (_LP64) || \ | ||
| 65 | defined(__alpha) || defined(__alpha__) || \ | ||
| 66 | defined(__ia64__) || defined(ia64) || \ | ||
| 67 | defined(__sparc64__) || \ | ||
| 68 | defined(__s390x__) || \ | ||
| 69 | (defined(__hppa__) && defined(__LP64__)) || \ | ||
| 70 | defined(__amd64__) || defined(amd64) || \ | ||
| 71 | defined(__powerpc64__) || \ | ||
| 72 | (defined(sgi) && (_MIPS_SZLONG == 64)) | ||
| 73 | #define LONG64 | ||
| 74 | #endif | ||
| 75 | |||
| 76 | #endif /* _Xtos_h */ | ||
| 77 | /* DON'T ADD STUFF AFTER THIS #endif */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xutil.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xutil.h new file mode 100644 index 0000000000..9f2ef63048 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xutil.h | |||
| @@ -0,0 +1,828 @@ | |||
| 1 | /* $Xorg: Xutil.h,v 1.8 2001/02/09 02:03:39 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/lib/X11/Xutil.h,v 3.6 2003/04/13 19:22:20 dawes Exp $ */ | ||
| 50 | |||
| 51 | #ifndef _XUTIL_H_ | ||
| 52 | #define _XUTIL_H_ | ||
| 53 | |||
| 54 | /* You must include <X11/Xlib.h> before including this file */ | ||
| 55 | #include <X11/Xlib.h> | ||
| 56 | #include <X11/keysym.h> | ||
| 57 | |||
| 58 | /* | ||
| 59 | * Bitmask returned by XParseGeometry(). Each bit tells if the corresponding | ||
| 60 | * value (x, y, width, height) was found in the parsed string. | ||
| 61 | */ | ||
| 62 | #define NoValue 0x0000 | ||
| 63 | #define XValue 0x0001 | ||
| 64 | #define YValue 0x0002 | ||
| 65 | #define WidthValue 0x0004 | ||
| 66 | #define HeightValue 0x0008 | ||
| 67 | #define AllValues 0x000F | ||
| 68 | #define XNegative 0x0010 | ||
| 69 | #define YNegative 0x0020 | ||
| 70 | |||
| 71 | /* | ||
| 72 | * new version containing base_width, base_height, and win_gravity fields; | ||
| 73 | * used with WM_NORMAL_HINTS. | ||
| 74 | */ | ||
| 75 | typedef struct { | ||
| 76 | long flags; /* marks which fields in this structure are defined */ | ||
| 77 | int x, y; /* obsolete for new window mgrs, but clients */ | ||
| 78 | int width, height; /* should set so old wm's don't mess up */ | ||
| 79 | int min_width, min_height; | ||
| 80 | int max_width, max_height; | ||
| 81 | int width_inc, height_inc; | ||
| 82 | struct { | ||
| 83 | int x; /* numerator */ | ||
| 84 | int y; /* denominator */ | ||
| 85 | } min_aspect, max_aspect; | ||
| 86 | int base_width, base_height; /* added by ICCCM version 1 */ | ||
| 87 | int win_gravity; /* added by ICCCM version 1 */ | ||
| 88 | } XSizeHints; | ||
| 89 | |||
| 90 | /* | ||
| 91 | * The next block of definitions are for window manager properties that | ||
| 92 | * clients and applications use for communication. | ||
| 93 | */ | ||
| 94 | |||
| 95 | /* flags argument in size hints */ | ||
| 96 | #define USPosition (1L << 0) /* user specified x, y */ | ||
| 97 | #define USSize (1L << 1) /* user specified width, height */ | ||
| 98 | |||
| 99 | #define PPosition (1L << 2) /* program specified position */ | ||
| 100 | #define PSize (1L << 3) /* program specified size */ | ||
| 101 | #define PMinSize (1L << 4) /* program specified minimum size */ | ||
| 102 | #define PMaxSize (1L << 5) /* program specified maximum size */ | ||
| 103 | #define PResizeInc (1L << 6) /* program specified resize increments */ | ||
| 104 | #define PAspect (1L << 7) /* program specified min and max aspect ratios */ | ||
| 105 | #define PBaseSize (1L << 8) /* program specified base for incrementing */ | ||
| 106 | #define PWinGravity (1L << 9) /* program specified window gravity */ | ||
| 107 | |||
| 108 | /* obsolete */ | ||
| 109 | #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect) | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | typedef struct { | ||
| 114 | long flags; /* marks which fields in this structure are defined */ | ||
| 115 | Bool input; /* does this application rely on the window manager to | ||
| 116 | get keyboard input? */ | ||
| 117 | int initial_state; /* see below */ | ||
| 118 | Pixmap icon_pixmap; /* pixmap to be used as icon */ | ||
| 119 | Window icon_window; /* window to be used as icon */ | ||
| 120 | int icon_x, icon_y; /* initial position of icon */ | ||
| 121 | Pixmap icon_mask; /* icon mask bitmap */ | ||
| 122 | XID window_group; /* id of related window group */ | ||
| 123 | /* this structure may be extended in the future */ | ||
| 124 | } XWMHints; | ||
| 125 | |||
| 126 | /* definition for flags of XWMHints */ | ||
| 127 | |||
| 128 | #define InputHint (1L << 0) | ||
| 129 | #define StateHint (1L << 1) | ||
| 130 | #define IconPixmapHint (1L << 2) | ||
| 131 | #define IconWindowHint (1L << 3) | ||
| 132 | #define IconPositionHint (1L << 4) | ||
| 133 | #define IconMaskHint (1L << 5) | ||
| 134 | #define WindowGroupHint (1L << 6) | ||
| 135 | #define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \ | ||
| 136 | IconPositionHint|IconMaskHint|WindowGroupHint) | ||
| 137 | #define XUrgencyHint (1L << 8) | ||
| 138 | |||
| 139 | /* definitions for initial window state */ | ||
| 140 | #define WithdrawnState 0 /* for windows that are not mapped */ | ||
| 141 | #define NormalState 1 /* most applications want to start this way */ | ||
| 142 | #define IconicState 3 /* application wants to start as an icon */ | ||
| 143 | |||
| 144 | /* | ||
| 145 | * Obsolete states no longer defined by ICCCM | ||
| 146 | */ | ||
| 147 | #define DontCareState 0 /* don't know or care */ | ||
| 148 | #define ZoomState 2 /* application wants to start zoomed */ | ||
| 149 | #define InactiveState 4 /* application believes it is seldom used; */ | ||
| 150 | /* some wm's may put it on inactive menu */ | ||
| 151 | |||
| 152 | |||
| 153 | /* | ||
| 154 | * new structure for manipulating TEXT properties; used with WM_NAME, | ||
| 155 | * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND. | ||
| 156 | */ | ||
| 157 | typedef struct { | ||
| 158 | unsigned char *value; /* same as Property routines */ | ||
| 159 | Atom encoding; /* prop type */ | ||
| 160 | int format; /* prop data format: 8, 16, or 32 */ | ||
| 161 | unsigned long nitems; /* number of data items in value */ | ||
| 162 | } XTextProperty; | ||
| 163 | |||
| 164 | #define XNoMemory -1 | ||
| 165 | #define XLocaleNotSupported -2 | ||
| 166 | #define XConverterNotFound -3 | ||
| 167 | |||
| 168 | typedef enum { | ||
| 169 | XStringStyle, /* STRING */ | ||
| 170 | XCompoundTextStyle, /* COMPOUND_TEXT */ | ||
| 171 | XTextStyle, /* text in owner's encoding (current locale)*/ | ||
| 172 | XStdICCTextStyle, /* STRING, else COMPOUND_TEXT */ | ||
| 173 | /* The following is an XFree86 extension, introduced in November 2000 */ | ||
| 174 | XUTF8StringStyle /* UTF8_STRING */ | ||
| 175 | } XICCEncodingStyle; | ||
| 176 | |||
| 177 | typedef struct { | ||
| 178 | int min_width, min_height; | ||
| 179 | int max_width, max_height; | ||
| 180 | int width_inc, height_inc; | ||
| 181 | } XIconSize; | ||
| 182 | |||
| 183 | typedef struct { | ||
| 184 | char *res_name; | ||
| 185 | char *res_class; | ||
| 186 | } XClassHint; | ||
| 187 | |||
| 188 | #ifdef XUTIL_DEFINE_FUNCTIONS | ||
| 189 | extern int XDestroyImage( | ||
| 190 | XImage *ximage); | ||
| 191 | extern unsigned long XGetPixel( | ||
| 192 | XImage *ximage, | ||
| 193 | int x, int y); | ||
| 194 | extern int XPutPixel( | ||
| 195 | XImage *ximage, | ||
| 196 | int x, int y, | ||
| 197 | unsigned long pixel); | ||
| 198 | extern XImage *XSubImage( | ||
| 199 | XImage *ximage, | ||
| 200 | int x, int y, | ||
| 201 | unsigned int width, unsigned int height); | ||
| 202 | extern int XAddPixel( | ||
| 203 | XImage *ximage, | ||
| 204 | long value); | ||
| 205 | #else | ||
| 206 | /* | ||
| 207 | * These macros are used to give some sugar to the image routines so that | ||
| 208 | * naive people are more comfortable with them. | ||
| 209 | */ | ||
| 210 | #define XDestroyImage(ximage) \ | ||
| 211 | ((*((ximage)->f.destroy_image))((ximage))) | ||
| 212 | #define XGetPixel(ximage, x, y) \ | ||
| 213 | ((*((ximage)->f.get_pixel))((ximage), (x), (y))) | ||
| 214 | #define XPutPixel(ximage, x, y, pixel) \ | ||
| 215 | ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel))) | ||
| 216 | #define XSubImage(ximage, x, y, width, height) \ | ||
| 217 | ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height))) | ||
| 218 | #define XAddPixel(ximage, value) \ | ||
| 219 | ((*((ximage)->f.add_pixel))((ximage), (value))) | ||
| 220 | #endif | ||
| 221 | |||
| 222 | /* | ||
| 223 | * Compose sequence status structure, used in calling XLookupString. | ||
| 224 | */ | ||
| 225 | typedef struct _XComposeStatus { | ||
| 226 | XPointer compose_ptr; /* state table pointer */ | ||
| 227 | int chars_matched; /* match state */ | ||
| 228 | } XComposeStatus; | ||
| 229 | |||
| 230 | /* | ||
| 231 | * Keysym macros, used on Keysyms to test for classes of symbols | ||
| 232 | */ | ||
| 233 | #define IsKeypadKey(keysym) \ | ||
| 234 | (((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal)) | ||
| 235 | |||
| 236 | #define IsPrivateKeypadKey(keysym) \ | ||
| 237 | (((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF)) | ||
| 238 | |||
| 239 | #define IsCursorKey(keysym) \ | ||
| 240 | (((KeySym)(keysym) >= XK_Home) && ((KeySym)(keysym) < XK_Select)) | ||
| 241 | |||
| 242 | #define IsPFKey(keysym) \ | ||
| 243 | (((KeySym)(keysym) >= XK_KP_F1) && ((KeySym)(keysym) <= XK_KP_F4)) | ||
| 244 | |||
| 245 | #define IsFunctionKey(keysym) \ | ||
| 246 | (((KeySym)(keysym) >= XK_F1) && ((KeySym)(keysym) <= XK_F35)) | ||
| 247 | |||
| 248 | #define IsMiscFunctionKey(keysym) \ | ||
| 249 | (((KeySym)(keysym) >= XK_Select) && ((KeySym)(keysym) <= XK_Break)) | ||
| 250 | |||
| 251 | #ifdef XK_XKB_KEYS | ||
| 252 | #define IsModifierKey(keysym) \ | ||
| 253 | ((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \ | ||
| 254 | || (((KeySym)(keysym) >= XK_ISO_Lock) && \ | ||
| 255 | ((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) \ | ||
| 256 | || ((KeySym)(keysym) == XK_Mode_switch) \ | ||
| 257 | || ((KeySym)(keysym) == XK_Num_Lock)) | ||
| 258 | #else | ||
| 259 | #define IsModifierKey(keysym) \ | ||
| 260 | ((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \ | ||
| 261 | || ((KeySym)(keysym) == XK_Mode_switch) \ | ||
| 262 | || ((KeySym)(keysym) == XK_Num_Lock)) | ||
| 263 | #endif | ||
| 264 | /* | ||
| 265 | * opaque reference to Region data type | ||
| 266 | */ | ||
| 267 | typedef struct _XRegion *Region; | ||
| 268 | |||
| 269 | /* Return values from XRectInRegion() */ | ||
| 270 | |||
| 271 | #define RectangleOut 0 | ||
| 272 | #define RectangleIn 1 | ||
| 273 | #define RectanglePart 2 | ||
| 274 | |||
| 275 | |||
| 276 | /* | ||
| 277 | * Information used by the visual utility routines to find desired visual | ||
| 278 | * type from the many visuals a display may support. | ||
| 279 | */ | ||
| 280 | |||
| 281 | typedef struct { | ||
| 282 | Visual *visual; | ||
| 283 | VisualID visualid; | ||
| 284 | int screen; | ||
| 285 | int depth; | ||
| 286 | #if defined(__cplusplus) || defined(c_plusplus) | ||
| 287 | int c_class; /* C++ */ | ||
| 288 | #else | ||
| 289 | int class; | ||
| 290 | #endif | ||
| 291 | unsigned long red_mask; | ||
| 292 | unsigned long green_mask; | ||
| 293 | unsigned long blue_mask; | ||
| 294 | int colormap_size; | ||
| 295 | int bits_per_rgb; | ||
| 296 | } XVisualInfo; | ||
| 297 | |||
| 298 | #define VisualNoMask 0x0 | ||
| 299 | #define VisualIDMask 0x1 | ||
| 300 | #define VisualScreenMask 0x2 | ||
| 301 | #define VisualDepthMask 0x4 | ||
| 302 | #define VisualClassMask 0x8 | ||
| 303 | #define VisualRedMaskMask 0x10 | ||
| 304 | #define VisualGreenMaskMask 0x20 | ||
| 305 | #define VisualBlueMaskMask 0x40 | ||
| 306 | #define VisualColormapSizeMask 0x80 | ||
| 307 | #define VisualBitsPerRGBMask 0x100 | ||
| 308 | #define VisualAllMask 0x1FF | ||
| 309 | |||
| 310 | /* | ||
| 311 | * This defines a window manager property that clients may use to | ||
| 312 | * share standard color maps of type RGB_COLOR_MAP: | ||
| 313 | */ | ||
| 314 | typedef struct { | ||
| 315 | Colormap colormap; | ||
| 316 | unsigned long red_max; | ||
| 317 | unsigned long red_mult; | ||
| 318 | unsigned long green_max; | ||
| 319 | unsigned long green_mult; | ||
| 320 | unsigned long blue_max; | ||
| 321 | unsigned long blue_mult; | ||
| 322 | unsigned long base_pixel; | ||
| 323 | VisualID visualid; /* added by ICCCM version 1 */ | ||
| 324 | XID killid; /* added by ICCCM version 1 */ | ||
| 325 | } XStandardColormap; | ||
| 326 | |||
| 327 | #define ReleaseByFreeingColormap ((XID) 1L) /* for killid field above */ | ||
| 328 | |||
| 329 | |||
| 330 | /* | ||
| 331 | * return codes for XReadBitmapFile and XWriteBitmapFile | ||
| 332 | */ | ||
| 333 | #define BitmapSuccess 0 | ||
| 334 | #define BitmapOpenFailed 1 | ||
| 335 | #define BitmapFileInvalid 2 | ||
| 336 | #define BitmapNoMemory 3 | ||
| 337 | |||
| 338 | /**************************************************************** | ||
| 339 | * | ||
| 340 | * Context Management | ||
| 341 | * | ||
| 342 | ****************************************************************/ | ||
| 343 | |||
| 344 | |||
| 345 | /* Associative lookup table return codes */ | ||
| 346 | |||
| 347 | #define XCSUCCESS 0 /* No error. */ | ||
| 348 | #define XCNOMEM 1 /* Out of memory */ | ||
| 349 | #define XCNOENT 2 /* No entry in table */ | ||
| 350 | |||
| 351 | typedef int XContext; | ||
| 352 | |||
| 353 | #define XUniqueContext() ((XContext) XrmUniqueQuark()) | ||
| 354 | #define XStringToContext(string) ((XContext) XrmStringToQuark(string)) | ||
| 355 | |||
| 356 | _XFUNCPROTOBEGIN | ||
| 357 | |||
| 358 | /* The following declarations are alphabetized. */ | ||
| 359 | |||
| 360 | extern XClassHint *XAllocClassHint ( | ||
| 361 | void | ||
| 362 | ); | ||
| 363 | |||
| 364 | extern XIconSize *XAllocIconSize ( | ||
| 365 | void | ||
| 366 | ); | ||
| 367 | |||
| 368 | extern XSizeHints *XAllocSizeHints ( | ||
| 369 | void | ||
| 370 | ); | ||
| 371 | |||
| 372 | extern XStandardColormap *XAllocStandardColormap ( | ||
| 373 | void | ||
| 374 | ); | ||
| 375 | |||
| 376 | extern XWMHints *XAllocWMHints ( | ||
| 377 | void | ||
| 378 | ); | ||
| 379 | |||
| 380 | extern int XClipBox( | ||
| 381 | Region /* r */, | ||
| 382 | XRectangle* /* rect_return */ | ||
| 383 | ); | ||
| 384 | |||
| 385 | extern Region XCreateRegion( | ||
| 386 | void | ||
| 387 | ); | ||
| 388 | |||
| 389 | extern const char *XDefaultString (void); | ||
| 390 | |||
| 391 | extern int XDeleteContext( | ||
| 392 | Display* /* display */, | ||
| 393 | XID /* rid */, | ||
| 394 | XContext /* context */ | ||
| 395 | ); | ||
| 396 | |||
| 397 | extern int XDestroyRegion( | ||
| 398 | Region /* r */ | ||
| 399 | ); | ||
| 400 | |||
| 401 | extern int XEmptyRegion( | ||
| 402 | Region /* r */ | ||
| 403 | ); | ||
| 404 | |||
| 405 | extern int XEqualRegion( | ||
| 406 | Region /* r1 */, | ||
| 407 | Region /* r2 */ | ||
| 408 | ); | ||
| 409 | |||
| 410 | extern int XFindContext( | ||
| 411 | Display* /* display */, | ||
| 412 | XID /* rid */, | ||
| 413 | XContext /* context */, | ||
| 414 | XPointer* /* data_return */ | ||
| 415 | ); | ||
| 416 | |||
| 417 | extern Status XGetClassHint( | ||
| 418 | Display* /* display */, | ||
| 419 | Window /* w */, | ||
| 420 | XClassHint* /* class_hints_return */ | ||
| 421 | ); | ||
| 422 | |||
| 423 | extern Status XGetIconSizes( | ||
| 424 | Display* /* display */, | ||
| 425 | Window /* w */, | ||
| 426 | XIconSize** /* size_list_return */, | ||
| 427 | int* /* count_return */ | ||
| 428 | ); | ||
| 429 | |||
| 430 | extern Status XGetNormalHints( | ||
| 431 | Display* /* display */, | ||
| 432 | Window /* w */, | ||
| 433 | XSizeHints* /* hints_return */ | ||
| 434 | ); | ||
| 435 | |||
| 436 | extern Status XGetRGBColormaps( | ||
| 437 | Display* /* display */, | ||
| 438 | Window /* w */, | ||
| 439 | XStandardColormap** /* stdcmap_return */, | ||
| 440 | int* /* count_return */, | ||
| 441 | Atom /* property */ | ||
| 442 | ); | ||
| 443 | |||
| 444 | extern Status XGetSizeHints( | ||
| 445 | Display* /* display */, | ||
| 446 | Window /* w */, | ||
| 447 | XSizeHints* /* hints_return */, | ||
| 448 | Atom /* property */ | ||
| 449 | ); | ||
| 450 | |||
| 451 | extern Status XGetStandardColormap( | ||
| 452 | Display* /* display */, | ||
| 453 | Window /* w */, | ||
| 454 | XStandardColormap* /* colormap_return */, | ||
| 455 | Atom /* property */ | ||
| 456 | ); | ||
| 457 | |||
| 458 | extern Status XGetTextProperty( | ||
| 459 | Display* /* display */, | ||
| 460 | Window /* window */, | ||
| 461 | XTextProperty* /* text_prop_return */, | ||
| 462 | Atom /* property */ | ||
| 463 | ); | ||
| 464 | |||
| 465 | extern XVisualInfo *XGetVisualInfo( | ||
| 466 | Display* /* display */, | ||
| 467 | long /* vinfo_mask */, | ||
| 468 | XVisualInfo* /* vinfo_template */, | ||
| 469 | int* /* nitems_return */ | ||
| 470 | ); | ||
| 471 | |||
| 472 | extern Status XGetWMClientMachine( | ||
| 473 | Display* /* display */, | ||
| 474 | Window /* w */, | ||
| 475 | XTextProperty* /* text_prop_return */ | ||
| 476 | ); | ||
| 477 | |||
| 478 | extern XWMHints *XGetWMHints( | ||
| 479 | Display* /* display */, | ||
| 480 | Window /* w */ | ||
| 481 | ); | ||
| 482 | |||
| 483 | extern Status XGetWMIconName( | ||
| 484 | Display* /* display */, | ||
| 485 | Window /* w */, | ||
| 486 | XTextProperty* /* text_prop_return */ | ||
| 487 | ); | ||
| 488 | |||
| 489 | extern Status XGetWMName( | ||
| 490 | Display* /* display */, | ||
| 491 | Window /* w */, | ||
| 492 | XTextProperty* /* text_prop_return */ | ||
| 493 | ); | ||
| 494 | |||
| 495 | extern Status XGetWMNormalHints( | ||
| 496 | Display* /* display */, | ||
| 497 | Window /* w */, | ||
| 498 | XSizeHints* /* hints_return */, | ||
| 499 | long* /* supplied_return */ | ||
| 500 | ); | ||
| 501 | |||
| 502 | extern Status XGetWMSizeHints( | ||
| 503 | Display* /* display */, | ||
| 504 | Window /* w */, | ||
| 505 | XSizeHints* /* hints_return */, | ||
| 506 | long* /* supplied_return */, | ||
| 507 | Atom /* property */ | ||
| 508 | ); | ||
| 509 | |||
| 510 | extern Status XGetZoomHints( | ||
| 511 | Display* /* display */, | ||
| 512 | Window /* w */, | ||
| 513 | XSizeHints* /* zhints_return */ | ||
| 514 | ); | ||
| 515 | |||
| 516 | extern int XIntersectRegion( | ||
| 517 | Region /* sra */, | ||
| 518 | Region /* srb */, | ||
| 519 | Region /* dr_return */ | ||
| 520 | ); | ||
| 521 | |||
| 522 | extern void XConvertCase( | ||
| 523 | KeySym /* sym */, | ||
| 524 | KeySym* /* lower */, | ||
| 525 | KeySym* /* upper */ | ||
| 526 | ); | ||
| 527 | |||
| 528 | extern int XLookupString( | ||
| 529 | XKeyEvent* /* event_struct */, | ||
| 530 | char* /* buffer_return */, | ||
| 531 | int /* bytes_buffer */, | ||
| 532 | KeySym* /* keysym_return */, | ||
| 533 | XComposeStatus* /* status_in_out */ | ||
| 534 | ); | ||
| 535 | |||
| 536 | extern Status XMatchVisualInfo( | ||
| 537 | Display* /* display */, | ||
| 538 | int /* screen */, | ||
| 539 | int /* depth */, | ||
| 540 | int /* class */, | ||
| 541 | XVisualInfo* /* vinfo_return */ | ||
| 542 | ); | ||
| 543 | |||
| 544 | extern int XOffsetRegion( | ||
| 545 | Region /* r */, | ||
| 546 | int /* dx */, | ||
| 547 | int /* dy */ | ||
| 548 | ); | ||
| 549 | |||
| 550 | extern Bool XPointInRegion( | ||
| 551 | Region /* r */, | ||
| 552 | int /* x */, | ||
| 553 | int /* y */ | ||
| 554 | ); | ||
| 555 | |||
| 556 | extern Region XPolygonRegion( | ||
| 557 | XPoint* /* points */, | ||
| 558 | int /* n */, | ||
| 559 | int /* fill_rule */ | ||
| 560 | ); | ||
| 561 | |||
| 562 | extern int XRectInRegion( | ||
| 563 | Region /* r */, | ||
| 564 | int /* x */, | ||
| 565 | int /* y */, | ||
| 566 | unsigned int /* width */, | ||
| 567 | unsigned int /* height */ | ||
| 568 | ); | ||
| 569 | |||
| 570 | extern int XSaveContext( | ||
| 571 | Display* /* display */, | ||
| 572 | XID /* rid */, | ||
| 573 | XContext /* context */, | ||
| 574 | _Xconst char* /* data */ | ||
| 575 | ); | ||
| 576 | |||
| 577 | extern int XSetClassHint( | ||
| 578 | Display* /* display */, | ||
| 579 | Window /* w */, | ||
| 580 | XClassHint* /* class_hints */ | ||
| 581 | ); | ||
| 582 | |||
| 583 | extern int XSetIconSizes( | ||
| 584 | Display* /* display */, | ||
| 585 | Window /* w */, | ||
| 586 | XIconSize* /* size_list */, | ||
| 587 | int /* count */ | ||
| 588 | ); | ||
| 589 | |||
| 590 | extern int XSetNormalHints( | ||
| 591 | Display* /* display */, | ||
| 592 | Window /* w */, | ||
| 593 | XSizeHints* /* hints */ | ||
| 594 | ); | ||
| 595 | |||
| 596 | extern void XSetRGBColormaps( | ||
| 597 | Display* /* display */, | ||
| 598 | Window /* w */, | ||
| 599 | XStandardColormap* /* stdcmaps */, | ||
| 600 | int /* count */, | ||
| 601 | Atom /* property */ | ||
| 602 | ); | ||
| 603 | |||
| 604 | extern int XSetSizeHints( | ||
| 605 | Display* /* display */, | ||
| 606 | Window /* w */, | ||
| 607 | XSizeHints* /* hints */, | ||
| 608 | Atom /* property */ | ||
| 609 | ); | ||
| 610 | |||
| 611 | extern int XSetStandardProperties( | ||
| 612 | Display* /* display */, | ||
| 613 | Window /* w */, | ||
| 614 | _Xconst char* /* window_name */, | ||
| 615 | _Xconst char* /* icon_name */, | ||
| 616 | Pixmap /* icon_pixmap */, | ||
| 617 | char** /* argv */, | ||
| 618 | int /* argc */, | ||
| 619 | XSizeHints* /* hints */ | ||
| 620 | ); | ||
| 621 | |||
| 622 | extern void XSetTextProperty( | ||
| 623 | Display* /* display */, | ||
| 624 | Window /* w */, | ||
| 625 | XTextProperty* /* text_prop */, | ||
| 626 | Atom /* property */ | ||
| 627 | ); | ||
| 628 | |||
| 629 | extern void XSetWMClientMachine( | ||
| 630 | Display* /* display */, | ||
| 631 | Window /* w */, | ||
| 632 | XTextProperty* /* text_prop */ | ||
| 633 | ); | ||
| 634 | |||
| 635 | extern int XSetWMHints( | ||
| 636 | Display* /* display */, | ||
| 637 | Window /* w */, | ||
| 638 | XWMHints* /* wm_hints */ | ||
| 639 | ); | ||
| 640 | |||
| 641 | extern void XSetWMIconName( | ||
| 642 | Display* /* display */, | ||
| 643 | Window /* w */, | ||
| 644 | XTextProperty* /* text_prop */ | ||
| 645 | ); | ||
| 646 | |||
| 647 | extern void XSetWMName( | ||
| 648 | Display* /* display */, | ||
| 649 | Window /* w */, | ||
| 650 | XTextProperty* /* text_prop */ | ||
| 651 | ); | ||
| 652 | |||
| 653 | extern void XSetWMNormalHints( | ||
| 654 | Display* /* display */, | ||
| 655 | Window /* w */, | ||
| 656 | XSizeHints* /* hints */ | ||
| 657 | ); | ||
| 658 | |||
| 659 | extern void XSetWMProperties( | ||
| 660 | Display* /* display */, | ||
| 661 | Window /* w */, | ||
| 662 | XTextProperty* /* window_name */, | ||
| 663 | XTextProperty* /* icon_name */, | ||
| 664 | char** /* argv */, | ||
| 665 | int /* argc */, | ||
| 666 | XSizeHints* /* normal_hints */, | ||
| 667 | XWMHints* /* wm_hints */, | ||
| 668 | XClassHint* /* class_hints */ | ||
| 669 | ); | ||
| 670 | |||
| 671 | extern void XmbSetWMProperties( | ||
| 672 | Display* /* display */, | ||
| 673 | Window /* w */, | ||
| 674 | _Xconst char* /* window_name */, | ||
| 675 | _Xconst char* /* icon_name */, | ||
| 676 | char** /* argv */, | ||
| 677 | int /* argc */, | ||
| 678 | XSizeHints* /* normal_hints */, | ||
| 679 | XWMHints* /* wm_hints */, | ||
| 680 | XClassHint* /* class_hints */ | ||
| 681 | ); | ||
| 682 | |||
| 683 | extern void Xutf8SetWMProperties( | ||
| 684 | Display* /* display */, | ||
| 685 | Window /* w */, | ||
| 686 | _Xconst char* /* window_name */, | ||
| 687 | _Xconst char* /* icon_name */, | ||
| 688 | char** /* argv */, | ||
| 689 | int /* argc */, | ||
| 690 | XSizeHints* /* normal_hints */, | ||
| 691 | XWMHints* /* wm_hints */, | ||
| 692 | XClassHint* /* class_hints */ | ||
| 693 | ); | ||
| 694 | |||
| 695 | extern void XSetWMSizeHints( | ||
| 696 | Display* /* display */, | ||
| 697 | Window /* w */, | ||
| 698 | XSizeHints* /* hints */, | ||
| 699 | Atom /* property */ | ||
| 700 | ); | ||
| 701 | |||
| 702 | extern int XSetRegion( | ||
| 703 | Display* /* display */, | ||
| 704 | GC /* gc */, | ||
| 705 | Region /* r */ | ||
| 706 | ); | ||
| 707 | |||
| 708 | extern void XSetStandardColormap( | ||
| 709 | Display* /* display */, | ||
| 710 | Window /* w */, | ||
| 711 | XStandardColormap* /* colormap */, | ||
| 712 | Atom /* property */ | ||
| 713 | ); | ||
| 714 | |||
| 715 | extern int XSetZoomHints( | ||
| 716 | Display* /* display */, | ||
| 717 | Window /* w */, | ||
| 718 | XSizeHints* /* zhints */ | ||
| 719 | ); | ||
| 720 | |||
| 721 | extern int XShrinkRegion( | ||
| 722 | Region /* r */, | ||
| 723 | int /* dx */, | ||
| 724 | int /* dy */ | ||
| 725 | ); | ||
| 726 | |||
| 727 | extern Status XStringListToTextProperty( | ||
| 728 | char** /* list */, | ||
| 729 | int /* count */, | ||
| 730 | XTextProperty* /* text_prop_return */ | ||
| 731 | ); | ||
| 732 | |||
| 733 | extern int XSubtractRegion( | ||
| 734 | Region /* sra */, | ||
| 735 | Region /* srb */, | ||
| 736 | Region /* dr_return */ | ||
| 737 | ); | ||
| 738 | |||
| 739 | extern int XmbTextListToTextProperty( | ||
| 740 | Display* display, | ||
| 741 | char** list, | ||
| 742 | int count, | ||
| 743 | XICCEncodingStyle style, | ||
| 744 | XTextProperty* text_prop_return | ||
| 745 | ); | ||
| 746 | |||
| 747 | extern int XwcTextListToTextProperty( | ||
| 748 | Display* display, | ||
| 749 | wchar_t** list, | ||
| 750 | int count, | ||
| 751 | XICCEncodingStyle style, | ||
| 752 | XTextProperty* text_prop_return | ||
| 753 | ); | ||
| 754 | |||
| 755 | extern int Xutf8TextListToTextProperty( | ||
| 756 | Display* display, | ||
| 757 | char** list, | ||
| 758 | int count, | ||
| 759 | XICCEncodingStyle style, | ||
| 760 | XTextProperty* text_prop_return | ||
| 761 | ); | ||
| 762 | |||
| 763 | extern void XwcFreeStringList( | ||
| 764 | wchar_t** list | ||
| 765 | ); | ||
| 766 | |||
| 767 | extern Status XTextPropertyToStringList( | ||
| 768 | XTextProperty* /* text_prop */, | ||
| 769 | char*** /* list_return */, | ||
| 770 | int* /* count_return */ | ||
| 771 | ); | ||
| 772 | |||
| 773 | extern int XmbTextPropertyToTextList( | ||
| 774 | Display* display, | ||
| 775 | const XTextProperty* text_prop, | ||
| 776 | char*** list_return, | ||
| 777 | int* count_return | ||
| 778 | ); | ||
| 779 | |||
| 780 | extern int XwcTextPropertyToTextList( | ||
| 781 | Display* display, | ||
| 782 | const XTextProperty* text_prop, | ||
| 783 | wchar_t*** list_return, | ||
| 784 | int* count_return | ||
| 785 | ); | ||
| 786 | |||
| 787 | extern int Xutf8TextPropertyToTextList( | ||
| 788 | Display* display, | ||
| 789 | const XTextProperty* text_prop, | ||
| 790 | char*** list_return, | ||
| 791 | int* count_return | ||
| 792 | ); | ||
| 793 | |||
| 794 | extern int XUnionRectWithRegion( | ||
| 795 | XRectangle* /* rectangle */, | ||
| 796 | Region /* src_region */, | ||
| 797 | Region /* dest_region_return */ | ||
| 798 | ); | ||
| 799 | |||
| 800 | extern int XUnionRegion( | ||
| 801 | Region /* sra */, | ||
| 802 | Region /* srb */, | ||
| 803 | Region /* dr_return */ | ||
| 804 | ); | ||
| 805 | |||
| 806 | extern int XWMGeometry( | ||
| 807 | Display* /* display */, | ||
| 808 | int /* screen_number */, | ||
| 809 | _Xconst char* /* user_geometry */, | ||
| 810 | _Xconst char* /* default_geometry */, | ||
| 811 | unsigned int /* border_width */, | ||
| 812 | XSizeHints* /* hints */, | ||
| 813 | int* /* x_return */, | ||
| 814 | int* /* y_return */, | ||
| 815 | int* /* width_return */, | ||
| 816 | int* /* height_return */, | ||
| 817 | int* /* gravity_return */ | ||
| 818 | ); | ||
| 819 | |||
| 820 | extern int XXorRegion( | ||
| 821 | Region /* sra */, | ||
| 822 | Region /* srb */, | ||
| 823 | Region /* dr_return */ | ||
| 824 | ); | ||
| 825 | |||
| 826 | _XFUNCPROTOEND | ||
| 827 | |||
| 828 | #endif /* _XUTIL_H_ */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xw32defs.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xw32defs.h new file mode 100644 index 0000000000..07624fef60 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xw32defs.h | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | /* $Xorg: Xw32defs.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */ | ||
| 2 | |||
| 3 | #ifndef _XW32DEFS_H | ||
| 4 | #define _XW32DEFS_H | ||
| 5 | |||
| 6 | #ifdef __GNUC__ /* mingw is more close to unix than msvc */ | ||
| 7 | #if !defined(__daddr_t_defined) | ||
| 8 | typedef char *caddr_t; | ||
| 9 | #endif | ||
| 10 | #define lstat stat | ||
| 11 | |||
| 12 | #else | ||
| 13 | typedef char *caddr_t; | ||
| 14 | |||
| 15 | #define access _access | ||
| 16 | #define alloca _alloca | ||
| 17 | #define chdir _chdir | ||
| 18 | #define chmod _chmod | ||
| 19 | #define close _close | ||
| 20 | #define creat _creat | ||
| 21 | #define dup _dup | ||
| 22 | #define dup2 _dup2 | ||
| 23 | #define environ _environ | ||
| 24 | #define execl _execl | ||
| 25 | #define execle _execle | ||
| 26 | #define execlp _execlp | ||
| 27 | #define execlpe _execlpe | ||
| 28 | #define execv _execv | ||
| 29 | #define execve _execve | ||
| 30 | #define execvp _execvp | ||
| 31 | #define execvpe _execvpe | ||
| 32 | #define fdopen _fdopen | ||
| 33 | #define fileno _fileno | ||
| 34 | #define fstat _fstat | ||
| 35 | #define getcwd _getcwd | ||
| 36 | #define getpid _getpid | ||
| 37 | #define hypot _hypot | ||
| 38 | #define isascii __isascii | ||
| 39 | #define isatty _isatty | ||
| 40 | #define lseek _lseek | ||
| 41 | #define mkdir _mkdir | ||
| 42 | #define mktemp _mktemp | ||
| 43 | #define open _open | ||
| 44 | #define putenv _putenv | ||
| 45 | #define read _read | ||
| 46 | #define rmdir _rmdir | ||
| 47 | #define sleep(x) _sleep((x) * 1000) | ||
| 48 | #define stat _stat | ||
| 49 | #define sys_errlist _sys_errlist | ||
| 50 | #define sys_nerr _sys_nerr | ||
| 51 | #define umask _umask | ||
| 52 | #define unlink _unlink | ||
| 53 | #define write _write | ||
| 54 | #define random rand | ||
| 55 | #define srandom srand | ||
| 56 | |||
| 57 | #define O_RDONLY _O_RDONLY | ||
| 58 | #define O_WRONLY _O_WRONLY | ||
| 59 | #define O_RDWR _O_RDWR | ||
| 60 | #define O_APPEND _O_APPEND | ||
| 61 | #define O_CREAT _O_CREAT | ||
| 62 | #define O_TRUNC _O_TRUNC | ||
| 63 | #define O_EXCL _O_EXCL | ||
| 64 | #define O_TEXT _O_TEXT | ||
| 65 | #define O_BINARY _O_BINARY | ||
| 66 | #define O_RAW _O_BINARY | ||
| 67 | |||
| 68 | #define S_IFMT _S_IFMT | ||
| 69 | #define S_IFDIR _S_IFDIR | ||
| 70 | #define S_IFCHR _S_IFCHR | ||
| 71 | #define S_IFREG _S_IFREG | ||
| 72 | #define S_IREAD _S_IREAD | ||
| 73 | #define S_IWRITE _S_IWRITE | ||
| 74 | #define S_IEXEC _S_IEXEC | ||
| 75 | |||
| 76 | #define F_OK 0 | ||
| 77 | #define X_OK 1 | ||
| 78 | #define W_OK 2 | ||
| 79 | #define R_OK 4 | ||
| 80 | #endif /* __GNUC__ */ | ||
| 81 | #endif | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xwindows.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xwindows.h new file mode 100644 index 0000000000..7fb9840bef --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xwindows.h | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | /* $Xorg$ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1996, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- | ||
| 17 | ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT | ||
| 18 | SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- | ||
| 19 | ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
| 21 | IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization from | ||
| 26 | The Open Group. | ||
| 27 | |||
| 28 | */ | ||
| 29 | |||
| 30 | /* | ||
| 31 | * This header file has for sole purpose to allow to include windows.h | ||
| 32 | * without getting any name conflicts with our code. | ||
| 33 | * Conflicts come from the fact that including windows.h actually pulls | ||
| 34 | * in the whole Windows API... | ||
| 35 | */ | ||
| 36 | |||
| 37 | #undef _XFree86Server | ||
| 38 | #ifdef XFree86Server | ||
| 39 | #define _XFree86Server | ||
| 40 | #undef XFree86Server | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #define BOOL wBOOL | ||
| 44 | #define INT32 wINT32 | ||
| 45 | #undef Status | ||
| 46 | #define Status wStatus | ||
| 47 | #define ATOM wATOM | ||
| 48 | #define BYTE wBYTE | ||
| 49 | #define FreeResource wFreeResource | ||
| 50 | #include <windows.h> | ||
| 51 | #undef Status | ||
| 52 | #define Status int | ||
| 53 | #undef BYTE | ||
| 54 | #undef BOOL | ||
| 55 | #undef INT32 | ||
| 56 | #undef ATOM | ||
| 57 | #undef FreeResource | ||
| 58 | #undef CreateWindowA | ||
| 59 | #undef min | ||
| 60 | #undef max | ||
| 61 | |||
| 62 | #ifdef RESOURCE_H | ||
| 63 | #undef RT_FONT | ||
| 64 | #undef RT_CURSOR | ||
| 65 | #define RT_FONT ((RESTYPE)4) | ||
| 66 | #define RT_CURSOR ((RESTYPE)5) | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #define sleep(x) Sleep(1000*x) | ||
| 70 | |||
| 71 | #if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024) | ||
| 72 | #undef PATH_MAX | ||
| 73 | #define PATH_MAX 1024 | ||
| 74 | #endif | ||
| 75 | |||
| 76 | #ifdef _XFree86Server | ||
| 77 | #define XFree86Server | ||
| 78 | #undef _XFree86Server | ||
| 79 | #endif | ||
| 80 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xwinsock.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xwinsock.h new file mode 100644 index 0000000000..0278c09b78 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xwinsock.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* $Xorg: Xwinsock.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1996, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- | ||
| 17 | ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT | ||
| 18 | SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- | ||
| 19 | ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
| 21 | IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization from | ||
| 26 | The Open Group. | ||
| 27 | |||
| 28 | */ | ||
| 29 | |||
| 30 | /* | ||
| 31 | * This header file has for sole purpose to allow to include winsock.h | ||
| 32 | * without getting any name conflicts with our code. | ||
| 33 | * Conflicts come from the fact that including winsock.h actually pulls | ||
| 34 | * in the whole Windows API... | ||
| 35 | */ | ||
| 36 | |||
| 37 | #undef _XFree86Server | ||
| 38 | #ifdef XFree86Server | ||
| 39 | #define _XFree86Server | ||
| 40 | #undef XFree86Server | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #define BOOL wBOOL | ||
| 44 | #define INT32 wINT32 | ||
| 45 | #undef Status | ||
| 46 | #define Status wStatus | ||
| 47 | #define ATOM wATOM | ||
| 48 | #define BYTE wBYTE | ||
| 49 | #define FreeResource wFreeResource | ||
| 50 | #include <winsock.h> | ||
| 51 | #undef Status | ||
| 52 | #define Status int | ||
| 53 | #undef BYTE | ||
| 54 | #undef BOOL | ||
| 55 | #undef INT32 | ||
| 56 | #undef ATOM | ||
| 57 | #undef FreeResource | ||
| 58 | #undef CreateWindowA | ||
| 59 | #undef RT_FONT | ||
| 60 | #undef RT_CURSOR | ||
| 61 | |||
| 62 | #ifdef _XFree86Server | ||
| 63 | #define XFree86Server | ||
| 64 | #undef _XFree86Server | ||
| 65 | #endif | ||
| 66 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/ap_keysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/ap_keysym.h new file mode 100644 index 0000000000..9a11971170 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/ap_keysym.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /****************************************************************** | ||
| 2 | Copyright 1987 by Apollo Computer Inc., Chelmsford, Massachusetts. | ||
| 3 | Copyright 1989 by Hewlett-Packard Company. | ||
| 4 | |||
| 5 | All Rights Reserved | ||
| 6 | |||
| 7 | Permission to use, duplicate, change, and distribute this software and | ||
| 8 | its documentation for any purpose and without fee is granted, provided | ||
| 9 | that the above copyright notice appear in such copy and that this | ||
| 10 | copyright notice appear in all supporting documentation, and that the | ||
| 11 | names of Apollo Computer Inc., the Hewlett-Packard Company, or the X | ||
| 12 | Consortium not be used in advertising or publicity pertaining to | ||
| 13 | distribution of the software without written prior permission. | ||
| 14 | |||
| 15 | HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD | ||
| 16 | TO THIS SOFWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 18 | PURPOSE. Hewlett-Packard shall not be liable for errors | ||
| 19 | contained herein or direct, indirect, special, incidental or | ||
| 20 | consequential damages in connection with the furnishing, | ||
| 21 | performance, or use of this material. | ||
| 22 | |||
| 23 | This software is not subject to any license of the American | ||
| 24 | Telephone and Telegraph Company or of the Regents of the | ||
| 25 | University of California. | ||
| 26 | ******************************************************************/ | ||
| 27 | |||
| 28 | #define apXK_LineDel 0x1000FF00 | ||
| 29 | #define apXK_CharDel 0x1000FF01 | ||
| 30 | #define apXK_Copy 0x1000FF02 | ||
| 31 | #define apXK_Cut 0x1000FF03 | ||
| 32 | #define apXK_Paste 0x1000FF04 | ||
| 33 | #define apXK_Move 0x1000FF05 | ||
| 34 | #define apXK_Grow 0x1000FF06 | ||
| 35 | #define apXK_Cmd 0x1000FF07 | ||
| 36 | #define apXK_Shell 0x1000FF08 | ||
| 37 | #define apXK_LeftBar 0x1000FF09 | ||
| 38 | #define apXK_RightBar 0x1000FF0A | ||
| 39 | #define apXK_LeftBox 0x1000FF0B | ||
| 40 | #define apXK_RightBox 0x1000FF0C | ||
| 41 | #define apXK_UpBox 0x1000FF0D | ||
| 42 | #define apXK_DownBox 0x1000FF0E | ||
| 43 | #define apXK_Pop 0x1000FF0F | ||
| 44 | #define apXK_Read 0x1000FF10 | ||
| 45 | #define apXK_Edit 0x1000FF11 | ||
| 46 | #define apXK_Save 0x1000FF12 | ||
| 47 | #define apXK_Exit 0x1000FF13 | ||
| 48 | #define apXK_Repeat 0x1000FF14 | ||
| 49 | |||
| 50 | #define apXK_KP_parenleft 0x1000FFA8 | ||
| 51 | #define apXK_KP_parenright 0x1000FFA9 | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/cursorfont.h b/meta/packages/xorg-lib/xorg-headers-native/X11/cursorfont.h new file mode 100644 index 0000000000..c6204f1c54 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/cursorfont.h | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | /* $Xorg: cursorfont.h,v 1.4 2001/02/09 02:03:39 xorgcvs Exp $ */ | ||
| 2 | /* | ||
| 3 | |||
| 4 | Copyright 1987, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 21 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization | ||
| 26 | from The Open Group. | ||
| 27 | |||
| 28 | */ | ||
| 29 | |||
| 30 | #define XC_num_glyphs 154 | ||
| 31 | #define XC_X_cursor 0 | ||
| 32 | #define XC_arrow 2 | ||
| 33 | #define XC_based_arrow_down 4 | ||
| 34 | #define XC_based_arrow_up 6 | ||
| 35 | #define XC_boat 8 | ||
| 36 | #define XC_bogosity 10 | ||
| 37 | #define XC_bottom_left_corner 12 | ||
| 38 | #define XC_bottom_right_corner 14 | ||
| 39 | #define XC_bottom_side 16 | ||
| 40 | #define XC_bottom_tee 18 | ||
| 41 | #define XC_box_spiral 20 | ||
| 42 | #define XC_center_ptr 22 | ||
| 43 | #define XC_circle 24 | ||
| 44 | #define XC_clock 26 | ||
| 45 | #define XC_coffee_mug 28 | ||
| 46 | #define XC_cross 30 | ||
| 47 | #define XC_cross_reverse 32 | ||
| 48 | #define XC_crosshair 34 | ||
| 49 | #define XC_diamond_cross 36 | ||
| 50 | #define XC_dot 38 | ||
| 51 | #define XC_dotbox 40 | ||
| 52 | #define XC_double_arrow 42 | ||
| 53 | #define XC_draft_large 44 | ||
| 54 | #define XC_draft_small 46 | ||
| 55 | #define XC_draped_box 48 | ||
| 56 | #define XC_exchange 50 | ||
| 57 | #define XC_fleur 52 | ||
| 58 | #define XC_gobbler 54 | ||
| 59 | #define XC_gumby 56 | ||
| 60 | #define XC_hand1 58 | ||
| 61 | #define XC_hand2 60 | ||
| 62 | #define XC_heart 62 | ||
| 63 | #define XC_icon 64 | ||
| 64 | #define XC_iron_cross 66 | ||
| 65 | #define XC_left_ptr 68 | ||
| 66 | #define XC_left_side 70 | ||
| 67 | #define XC_left_tee 72 | ||
| 68 | #define XC_leftbutton 74 | ||
| 69 | #define XC_ll_angle 76 | ||
| 70 | #define XC_lr_angle 78 | ||
| 71 | #define XC_man 80 | ||
| 72 | #define XC_middlebutton 82 | ||
| 73 | #define XC_mouse 84 | ||
| 74 | #define XC_pencil 86 | ||
| 75 | #define XC_pirate 88 | ||
| 76 | #define XC_plus 90 | ||
| 77 | #define XC_question_arrow 92 | ||
| 78 | #define XC_right_ptr 94 | ||
| 79 | #define XC_right_side 96 | ||
| 80 | #define XC_right_tee 98 | ||
| 81 | #define XC_rightbutton 100 | ||
| 82 | #define XC_rtl_logo 102 | ||
| 83 | #define XC_sailboat 104 | ||
| 84 | #define XC_sb_down_arrow 106 | ||
| 85 | #define XC_sb_h_double_arrow 108 | ||
| 86 | #define XC_sb_left_arrow 110 | ||
| 87 | #define XC_sb_right_arrow 112 | ||
| 88 | #define XC_sb_up_arrow 114 | ||
| 89 | #define XC_sb_v_double_arrow 116 | ||
| 90 | #define XC_shuttle 118 | ||
| 91 | #define XC_sizing 120 | ||
| 92 | #define XC_spider 122 | ||
| 93 | #define XC_spraycan 124 | ||
| 94 | #define XC_star 126 | ||
| 95 | #define XC_target 128 | ||
| 96 | #define XC_tcross 130 | ||
| 97 | #define XC_top_left_arrow 132 | ||
| 98 | #define XC_top_left_corner 134 | ||
| 99 | #define XC_top_right_corner 136 | ||
| 100 | #define XC_top_side 138 | ||
| 101 | #define XC_top_tee 140 | ||
| 102 | #define XC_trek 142 | ||
| 103 | #define XC_ul_angle 144 | ||
| 104 | #define XC_umbrella 146 | ||
| 105 | #define XC_ur_angle 148 | ||
| 106 | #define XC_watch 150 | ||
| 107 | #define XC_xterm 152 | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/keysym.h b/meta/packages/xorg-lib/xorg-headers-native/X11/keysym.h new file mode 100644 index 0000000000..04e2956a70 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/keysym.h | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | /* $Xorg: keysym.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | |||
| 5 | Copyright 1987, 1998 The Open Group | ||
| 6 | |||
| 7 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 8 | documentation for any purpose is hereby granted without fee, provided that | ||
| 9 | the above copyright notice appear in all copies and that both that | ||
| 10 | copyright notice and this permission notice appear in supporting | ||
| 11 | documentation. | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in | ||
| 14 | all copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall not be | ||
| 24 | used in advertising or otherwise to promote the sale, use or other dealings | ||
| 25 | in this Software without prior written authorization from The Open Group. | ||
| 26 | |||
| 27 | |||
| 28 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. | ||
| 29 | |||
| 30 | All Rights Reserved | ||
| 31 | |||
| 32 | Permission to use, copy, modify, and distribute this software and its | ||
| 33 | documentation for any purpose and without fee is hereby granted, | ||
| 34 | provided that the above copyright notice appear in all copies and that | ||
| 35 | both that copyright notice and this permission notice appear in | ||
| 36 | supporting documentation, and that the name of Digital not be | ||
| 37 | used in advertising or publicity pertaining to distribution of the | ||
| 38 | software without specific, written prior permission. | ||
| 39 | |||
| 40 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 41 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 42 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 43 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 44 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 45 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 46 | SOFTWARE. | ||
| 47 | |||
| 48 | ******************************************************************/ | ||
| 49 | /* $XFree86: xc/include/keysym.h,v 1.3 2001/01/17 17:53:12 dawes Exp $ */ | ||
| 50 | |||
| 51 | /* default keysyms */ | ||
| 52 | #define XK_MISCELLANY | ||
| 53 | #define XK_XKB_KEYS | ||
| 54 | #define XK_LATIN1 | ||
| 55 | #define XK_LATIN2 | ||
| 56 | #define XK_LATIN3 | ||
| 57 | #define XK_LATIN4 | ||
| 58 | #define XK_LATIN8 | ||
| 59 | #define XK_LATIN9 | ||
| 60 | #define XK_CAUCASUS | ||
| 61 | #define XK_GREEK | ||
| 62 | #define XK_KATAKANA | ||
| 63 | #define XK_ARABIC | ||
| 64 | #define XK_CYRILLIC | ||
| 65 | #define XK_HEBREW | ||
| 66 | #define XK_THAI | ||
| 67 | #define XK_KOREAN | ||
| 68 | #define XK_ARMENIAN | ||
| 69 | #define XK_GEORGIAN | ||
| 70 | #define XK_VIETNAMESE | ||
| 71 | #define XK_CURRENCY | ||
| 72 | #define XK_MATHEMATICAL | ||
| 73 | #define XK_BRAILLE | ||
| 74 | |||
| 75 | #include <X11/keysymdef.h> | ||
| 76 | |||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/keysymdef.h b/meta/packages/xorg-lib/xorg-headers-native/X11/keysymdef.h new file mode 100644 index 0000000000..dd9fbd98a4 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/keysymdef.h | |||
| @@ -0,0 +1,2343 @@ | |||
| 1 | /* $Xorg: keysymdef.h,v 1.4 2001/02/09 02:03:23 $ */ | ||
| 2 | |||
| 3 | /*********************************************************** | ||
| 4 | Copyright 1987, 1994, 1998 The Open Group | ||
| 5 | |||
| 6 | Permission to use, copy, modify, distribute, and sell this software and its | ||
| 7 | documentation for any purpose is hereby granted without fee, provided that | ||
| 8 | the above copyright notice appear in all copies and that both that | ||
| 9 | copyright notice and this permission notice appear in supporting | ||
| 10 | documentation. | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included | ||
| 13 | in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
| 16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
| 18 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
| 19 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
| 20 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 21 | OTHER DEALINGS IN THE SOFTWARE. | ||
| 22 | |||
| 23 | Except as contained in this notice, the name of The Open Group shall | ||
| 24 | not be used in advertising or otherwise to promote the sale, use or | ||
| 25 | other dealings in this Software without prior written authorization | ||
| 26 | from The Open Group. | ||
| 27 | |||
| 28 | |||
| 29 | Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts | ||
| 30 | |||
| 31 | All Rights Reserved | ||
| 32 | |||
| 33 | Permission to use, copy, modify, and distribute this software and its | ||
| 34 | documentation for any purpose and without fee is hereby granted, | ||
| 35 | provided that the above copyright notice appear in all copies and that | ||
| 36 | both that copyright notice and this permission notice appear in | ||
| 37 | supporting documentation, and that the name of Digital not be | ||
| 38 | used in advertising or publicity pertaining to distribution of the | ||
| 39 | software without specific, written prior permission. | ||
| 40 | |||
| 41 | DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | ||
| 42 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | ||
| 43 | DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | ||
| 44 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
| 45 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
| 46 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | ||
| 47 | SOFTWARE. | ||
| 48 | |||
| 49 | ******************************************************************/ | ||
| 50 | /* $XFree86: $ */ | ||
| 51 | |||
| 52 | /* | ||
| 53 | * The "X11 Window System Protocol" standard defines in Appendix A the | ||
| 54 | * keysym codes. These 29-bit integer values identify characters or | ||
| 55 | * functions associated with each key (e.g., via the visible | ||
| 56 | * engraving) of a keyboard layout. This file assigns mnemonic macro | ||
| 57 | * names for these keysyms. | ||
| 58 | * | ||
| 59 | * This file is also compiled (by xc/lib/X11/util/makekeys.c) into | ||
| 60 | * hash tables that can be accessed with X11 library functions such as | ||
| 61 | * XStringToKeysym() and XKeysymToString(). | ||
| 62 | * | ||
| 63 | * Where a keysym corresponds one-to-one to an ISO 10646 / Unicode | ||
| 64 | * character, this is noted in a comment that provides both the U+xxxx | ||
| 65 | * Unicode position, as well as the official Unicode name of the | ||
| 66 | * character. | ||
| 67 | * | ||
| 68 | * Where the correspondence is either not one-to-one or semantically | ||
| 69 | * unclear, the Unicode position and name are enclosed in | ||
| 70 | * parentheses. Such legacy keysyms should be considered deprecated | ||
| 71 | * and are not recommended for use in future keyboard mappings. | ||
| 72 | * | ||
| 73 | * For any future extension of the keysyms with characters already | ||
| 74 | * found in ISO 10646 / Unicode, the following algorithm shall be | ||
| 75 | * used. The new keysym code position will simply be the character's | ||
| 76 | * Unicode number plus 0x01000000. The keysym values in the range | ||
| 77 | * 0x01000100 to 0x0110ffff are reserved to represent Unicode | ||
| 78 | * characters in the range U+0100 to U+10FFFF. | ||
| 79 | * | ||
| 80 | * While most newer Unicode-based X11 clients do already accept | ||
| 81 | * Unicode-mapped keysyms in the range 0x01000100 to 0x0110ffff, it | ||
| 82 | * will remain necessary for clients -- in the interest of | ||
| 83 | * compatibility with existing servers -- to also understand the | ||
| 84 | * existing legacy keysym values in the range 0x0100 to 0x20ff. | ||
| 85 | * | ||
| 86 | * Where several mnemonic names are defined for the same keysym in this | ||
| 87 | * file, all but the first one listed should be considered deprecated. | ||
| 88 | * | ||
| 89 | * Mnemonic names for keysyms are defined in this file with lines | ||
| 90 | * that match one of these Perl regular expressions: | ||
| 91 | * | ||
| 92 | * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\* U+([0-9A-F]{4,6}) (.*) \*\/\s*$/ | ||
| 93 | * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\*\(U+([0-9A-F]{4,6}) (.*)\)\*\/\s*$/ | ||
| 94 | * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*(\/\*\s*(.*)\s*\*\/)?\s*$/ | ||
| 95 | * | ||
| 96 | * When adding new keysyms to this file, do not forget to also update the | ||
| 97 | * mappings in xc/lib/X11/KeyBind.c and the protocol specification in | ||
| 98 | * xc/doc/specs/XProtocol/X11.keysyms. | ||
| 99 | */ | ||
| 100 | |||
| 101 | #define XK_VoidSymbol 0xffffff /* Void symbol */ | ||
| 102 | |||
| 103 | #ifdef XK_MISCELLANY | ||
| 104 | /* | ||
| 105 | * TTY function keys, cleverly chosen to map to ASCII, for convenience of | ||
| 106 | * programming, but could have been arbitrary (at the cost of lookup | ||
| 107 | * tables in client code). | ||
| 108 | */ | ||
| 109 | |||
| 110 | #define XK_BackSpace 0xff08 /* Back space, back char */ | ||
| 111 | #define XK_Tab 0xff09 | ||
| 112 | #define XK_Linefeed 0xff0a /* Linefeed, LF */ | ||
| 113 | #define XK_Clear 0xff0b | ||
| 114 | #define XK_Return 0xff0d /* Return, enter */ | ||
| 115 | #define XK_Pause 0xff13 /* Pause, hold */ | ||
| 116 | #define XK_Scroll_Lock 0xff14 | ||
| 117 | #define XK_Sys_Req 0xff15 | ||
| 118 | #define XK_Escape 0xff1b | ||
| 119 | #define XK_Delete 0xffff /* Delete, rubout */ | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | /* International & multi-key character composition */ | ||
| 124 | |||
| 125 | #define XK_Multi_key 0xff20 /* Multi-key character compose */ | ||
| 126 | #define XK_Codeinput 0xff37 | ||
| 127 | #define XK_SingleCandidate 0xff3c | ||
| 128 | #define XK_MultipleCandidate 0xff3d | ||
| 129 | #define XK_PreviousCandidate 0xff3e | ||
| 130 | |||
| 131 | /* Japanese keyboard support */ | ||
| 132 | |||
| 133 | #define XK_Kanji 0xff21 /* Kanji, Kanji convert */ | ||
| 134 | #define XK_Muhenkan 0xff22 /* Cancel Conversion */ | ||
| 135 | #define XK_Henkan_Mode 0xff23 /* Start/Stop Conversion */ | ||
| 136 | #define XK_Henkan 0xff23 /* Alias for Henkan_Mode */ | ||
| 137 | #define XK_Romaji 0xff24 /* to Romaji */ | ||
| 138 | #define XK_Hiragana 0xff25 /* to Hiragana */ | ||
| 139 | #define XK_Katakana 0xff26 /* to Katakana */ | ||
| 140 | #define XK_Hiragana_Katakana 0xff27 /* Hiragana/Katakana toggle */ | ||
| 141 | #define XK_Zenkaku 0xff28 /* to Zenkaku */ | ||
| 142 | #define XK_Hankaku 0xff29 /* to Hankaku */ | ||
| 143 | #define XK_Zenkaku_Hankaku 0xff2a /* Zenkaku/Hankaku toggle */ | ||
| 144 | #define XK_Touroku 0xff2b /* Add to Dictionary */ | ||
| 145 | #define XK_Massyo 0xff2c /* Delete from Dictionary */ | ||
| 146 | #define XK_Kana_Lock 0xff2d /* Kana Lock */ | ||
| 147 | #define XK_Kana_Shift 0xff2e /* Kana Shift */ | ||
| 148 | #define XK_Eisu_Shift 0xff2f /* Alphanumeric Shift */ | ||
| 149 | #define XK_Eisu_toggle 0xff30 /* Alphanumeric toggle */ | ||
| 150 | #define XK_Kanji_Bangou 0xff37 /* Codeinput */ | ||
| 151 | #define XK_Zen_Koho 0xff3d /* Multiple/All Candidate(s) */ | ||
| 152 | #define XK_Mae_Koho 0xff3e /* Previous Candidate */ | ||
| 153 | |||
| 154 | /* 0xff31 thru 0xff3f are under XK_KOREAN */ | ||
| 155 | |||
| 156 | /* Cursor control & motion */ | ||
| 157 | |||
| 158 | #define XK_Home 0xff50 | ||
| 159 | #define XK_Left 0xff51 /* Move left, left arrow */ | ||
| 160 | #define XK_Up 0xff52 /* Move up, up arrow */ | ||
| 161 | #define XK_Right 0xff53 /* Move right, right arrow */ | ||
| 162 | #define XK_Down 0xff54 /* Move down, down arrow */ | ||
| 163 | #define XK_Prior 0xff55 /* Prior, previous */ | ||
| 164 | #define XK_Page_Up 0xff55 | ||
| 165 | #define XK_Next 0xff56 /* Next */ | ||
| 166 | #define XK_Page_Down 0xff56 | ||
| 167 | #define XK_End 0xff57 /* EOL */ | ||
| 168 | #define XK_Begin 0xff58 /* BOL */ | ||
| 169 | |||
| 170 | |||
| 171 | /* Misc functions */ | ||
| 172 | |||
| 173 | #define XK_Select 0xff60 /* Select, mark */ | ||
| 174 | #define XK_Print 0xff61 | ||
| 175 | #define XK_Execute 0xff62 /* Execute, run, do */ | ||
| 176 | #define XK_Insert 0xff63 /* Insert, insert here */ | ||
| 177 | #define XK_Undo 0xff65 | ||
| 178 | #define XK_Redo 0xff66 /* Redo, again */ | ||
| 179 | #define XK_Menu 0xff67 | ||
| 180 | #define XK_Find 0xff68 /* Find, search */ | ||
| 181 | #define XK_Cancel 0xff69 /* Cancel, stop, abort, exit */ | ||
| 182 | #define XK_Help 0xff6a /* Help */ | ||
| 183 | #define XK_Break 0xff6b | ||
| 184 | #define XK_Mode_switch 0xff7e /* Character set switch */ | ||
| 185 | #define XK_script_switch 0xff7e /* Alias for mode_switch */ | ||
| 186 | #define XK_Num_Lock 0xff7f | ||
| 187 | |||
| 188 | /* Keypad functions, keypad numbers cleverly chosen to map to ASCII */ | ||
| 189 | |||
| 190 | #define XK_KP_Space 0xff80 /* Space */ | ||
| 191 | #define XK_KP_Tab 0xff89 | ||
| 192 | #define XK_KP_Enter 0xff8d /* Enter */ | ||
| 193 | #define XK_KP_F1 0xff91 /* PF1, KP_A, ... */ | ||
| 194 | #define XK_KP_F2 0xff92 | ||
| 195 | #define XK_KP_F3 0xff93 | ||
| 196 | #define XK_KP_F4 0xff94 | ||
| 197 | #define XK_KP_Home 0xff95 | ||
| 198 | #define XK_KP_Left 0xff96 | ||
| 199 | #define XK_KP_Up 0xff97 | ||
| 200 | #define XK_KP_Right 0xff98 | ||
| 201 | #define XK_KP_Down 0xff99 | ||
| 202 | #define XK_KP_Prior 0xff9a | ||
| 203 | #define XK_KP_Page_Up 0xff9a | ||
| 204 | #define XK_KP_Next 0xff9b | ||
| 205 | #define XK_KP_Page_Down 0xff9b | ||
| 206 | #define XK_KP_End 0xff9c | ||
| 207 | #define XK_KP_Begin 0xff9d | ||
| 208 | #define XK_KP_Insert 0xff9e | ||
| 209 | #define XK_KP_Delete 0xff9f | ||
| 210 | #define XK_KP_Equal 0xffbd /* Equals */ | ||
| 211 | #define XK_KP_Multiply 0xffaa | ||
| 212 | #define XK_KP_Add 0xffab | ||
| 213 | #define XK_KP_Separator 0xffac /* Separator, often comma */ | ||
| 214 | #define XK_KP_Subtract 0xffad | ||
| 215 | #define XK_KP_Decimal 0xffae | ||
| 216 | #define XK_KP_Divide 0xffaf | ||
| 217 | |||
| 218 | #define XK_KP_0 0xffb0 | ||
| 219 | #define XK_KP_1 0xffb1 | ||
| 220 | #define XK_KP_2 0xffb2 | ||
| 221 | #define XK_KP_3 0xffb3 | ||
| 222 | #define XK_KP_4 0xffb4 | ||
| 223 | #define XK_KP_5 0xffb5 | ||
| 224 | #define XK_KP_6 0xffb6 | ||
| 225 | #define XK_KP_7 0xffb7 | ||
| 226 | #define XK_KP_8 0xffb8 | ||
| 227 | #define XK_KP_9 0xffb9 | ||
| 228 | |||
| 229 | |||
| 230 | |||
| 231 | /* | ||
| 232 | * Auxiliary functions; note the duplicate definitions for left and right | ||
| 233 | * function keys; Sun keyboards and a few other manufacturers have such | ||
| 234 | * function key groups on the left and/or right sides of the keyboard. | ||
| 235 | * We've not found a keyboard with more than 35 function keys total. | ||
| 236 | */ | ||
| 237 | |||
| 238 | #define XK_F1 0xffbe | ||
| 239 | #define XK_F2 0xffbf | ||
| 240 | #define XK_F3 0xffc0 | ||
| 241 | #define XK_F4 0xffc1 | ||
| 242 | #define XK_F5 0xffc2 | ||
| 243 | #define XK_F6 0xffc3 | ||
| 244 | #define XK_F7 0xffc4 | ||
| 245 | #define XK_F8 0xffc5 | ||
| 246 | #define XK_F9 0xffc6 | ||
| 247 | #define XK_F10 0xffc7 | ||
| 248 | #define XK_F11 0xffc8 | ||
| 249 | #define XK_L1 0xffc8 | ||
| 250 | #define XK_F12 0xffc9 | ||
| 251 | #define XK_L2 0xffc9 | ||
| 252 | #define XK_F13 0xffca | ||
| 253 | #define XK_L3 0xffca | ||
| 254 | #define XK_F14 0xffcb | ||
| 255 | #define XK_L4 0xffcb | ||
| 256 | #define XK_F15 0xffcc | ||
| 257 | #define XK_L5 0xffcc | ||
| 258 | #define XK_F16 0xffcd | ||
| 259 | #define XK_L6 0xffcd | ||
| 260 | #define XK_F17 0xffce | ||
| 261 | #define XK_L7 0xffce | ||
| 262 | #define XK_F18 0xffcf | ||
| 263 | #define XK_L8 0xffcf | ||
| 264 | #define XK_F19 0xffd0 | ||
| 265 | #define XK_L9 0xffd0 | ||
| 266 | #define XK_F20 0xffd1 | ||
| 267 | #define XK_L10 0xffd1 | ||
| 268 | #define XK_F21 0xffd2 | ||
| 269 | #define XK_R1 0xffd2 | ||
| 270 | #define XK_F22 0xffd3 | ||
| 271 | #define XK_R2 0xffd3 | ||
| 272 | #define XK_F23 0xffd4 | ||
| 273 | #define XK_R3 0xffd4 | ||
| 274 | #define XK_F24 0xffd5 | ||
| 275 | #define XK_R4 0xffd5 | ||
| 276 | #define XK_F25 0xffd6 | ||
| 277 | #define XK_R5 0xffd6 | ||
| 278 | #define XK_F26 0xffd7 | ||
| 279 | #define XK_R6 0xffd7 | ||
| 280 | #define XK_F27 0xffd8 | ||
| 281 | #define XK_R7 0xffd8 | ||
| 282 | #define XK_F28 0xffd9 | ||
| 283 | #define XK_R8 0xffd9 | ||
| 284 | #define XK_F29 0xffda | ||
| 285 | #define XK_R9 0xffda | ||
| 286 | #define XK_F30 0xffdb | ||
| 287 | #define XK_R10 0xffdb | ||
| 288 | #define XK_F31 0xffdc | ||
| 289 | #define XK_R11 0xffdc | ||
| 290 | #define XK_F32 0xffdd | ||
| 291 | #define XK_R12 0xffdd | ||
| 292 | #define XK_F33 0xffde | ||
| 293 | #define XK_R13 0xffde | ||
| 294 | #define XK_F34 0xffdf | ||
| 295 | #define XK_R14 0xffdf | ||
| 296 | #define XK_F35 0xffe0 | ||
| 297 | #define XK_R15 0xffe0 | ||
| 298 | |||
| 299 | /* Modifiers */ | ||
| 300 | |||
| 301 | #define XK_Shift_L 0xffe1 /* Left shift */ | ||
| 302 | #define XK_Shift_R 0xffe2 /* Right shift */ | ||
| 303 | #define XK_Control_L 0xffe3 /* Left control */ | ||
| 304 | #define XK_Control_R 0xffe4 /* Right control */ | ||
| 305 | #define XK_Caps_Lock 0xffe5 /* Caps lock */ | ||
| 306 | #define XK_Shift_Lock 0xffe6 /* Shift lock */ | ||
| 307 | |||
| 308 | #define XK_Meta_L 0xffe7 /* Left meta */ | ||
| 309 | #define XK_Meta_R 0xffe8 /* Right meta */ | ||
| 310 | #define XK_Alt_L 0xffe9 /* Left alt */ | ||
| 311 | #define XK_Alt_R 0xffea /* Right alt */ | ||
| 312 | #define XK_Super_L 0xffeb /* Left super */ | ||
| 313 | #define XK_Super_R 0xffec /* Right super */ | ||
| 314 | #define XK_Hyper_L 0xffed /* Left hyper */ | ||
| 315 | #define XK_Hyper_R 0xffee /* Right hyper */ | ||
| 316 | #endif /* XK_MISCELLANY */ | ||
| 317 | |||
| 318 | /* | ||
| 319 | * Keyboard (XKB) Extension function and modifier keys | ||
| 320 | * (from Appendix C of "The X Keyboard Extension: Protocol Specification") | ||
| 321 | * Byte 3 = 0xfe | ||
| 322 | */ | ||
| 323 | |||
| 324 | #ifdef XK_XKB_KEYS | ||
| 325 | #define XK_ISO_Lock 0xfe01 | ||
| 326 | #define XK_ISO_Level2_Latch 0xfe02 | ||
| 327 | #define XK_ISO_Level3_Shift 0xfe03 | ||
| 328 | #define XK_ISO_Level3_Latch 0xfe04 | ||
| 329 | #define XK_ISO_Level3_Lock 0xfe05 | ||
| 330 | #define XK_ISO_Group_Shift 0xff7e /* Alias for mode_switch */ | ||
| 331 | #define XK_ISO_Group_Latch 0xfe06 | ||
| 332 | #define XK_ISO_Group_Lock 0xfe07 | ||
| 333 | #define XK_ISO_Next_Group 0xfe08 | ||
| 334 | #define XK_ISO_Next_Group_Lock 0xfe09 | ||
| 335 | #define XK_ISO_Prev_Group 0xfe0a | ||
| 336 | #define XK_ISO_Prev_Group_Lock 0xfe0b | ||
| 337 | #define XK_ISO_First_Group 0xfe0c | ||
| 338 | #define XK_ISO_First_Group_Lock 0xfe0d | ||
| 339 | #define XK_ISO_Last_Group 0xfe0e | ||
| 340 | #define XK_ISO_Last_Group_Lock 0xfe0f | ||
| 341 | |||
| 342 | #define XK_ISO_Left_Tab 0xfe20 | ||
| 343 | #define XK_ISO_Move_Line_Up 0xfe21 | ||
| 344 | #define XK_ISO_Move_Line_Down 0xfe22 | ||
| 345 | #define XK_ISO_Partial_Line_Up 0xfe23 | ||
| 346 | #define XK_ISO_Partial_Line_Down 0xfe24 | ||
| 347 | #define XK_ISO_Partial_Space_Left 0xfe25 | ||
| 348 | #define XK_ISO_Partial_Space_Right 0xfe26 | ||
| 349 | #define XK_ISO_Set_Margin_Left 0xfe27 | ||
| 350 | #define XK_ISO_Set_Margin_Right 0xfe28 | ||
| 351 | #define XK_ISO_Release_Margin_Left 0xfe29 | ||
| 352 | #define XK_ISO_Release_Margin_Right 0xfe2a | ||
| 353 | #define XK_ISO_Release_Both_Margins 0xfe2b | ||
| 354 | #define XK_ISO_Fast_Cursor_Left 0xfe2c | ||
| 355 | #define XK_ISO_Fast_Cursor_Right 0xfe2d | ||
| 356 | #define XK_ISO_Fast_Cursor_Up 0xfe2e | ||
| 357 | #define XK_ISO_Fast_Cursor_Down 0xfe2f | ||
| 358 | #define XK_ISO_Continuous_Underline 0xfe30 | ||
| 359 | #define XK_ISO_Discontinuous_Underline 0xfe31 | ||
| 360 | #define XK_ISO_Emphasize 0xfe32 | ||
| 361 | #define XK_ISO_Center_Object 0xfe33 | ||
| 362 | #define XK_ISO_Enter 0xfe34 | ||
| 363 | |||
| 364 | #define XK_dead_grave 0xfe50 | ||
| 365 | #define XK_dead_acute 0xfe51 | ||
| 366 | #define XK_dead_circumflex 0xfe52 | ||
| 367 | #define XK_dead_tilde 0xfe53 | ||
| 368 | #define XK_dead_macron 0xfe54 | ||
| 369 | #define XK_dead_breve 0xfe55 | ||
| 370 | #define XK_dead_abovedot 0xfe56 | ||
| 371 | #define XK_dead_diaeresis 0xfe57 | ||
| 372 | #define XK_dead_abovering 0xfe58 | ||
| 373 | #define XK_dead_doubleacute 0xfe59 | ||
| 374 | #define XK_dead_caron 0xfe5a | ||
| 375 | #define XK_dead_cedilla 0xfe5b | ||
| 376 | #define XK_dead_ogonek 0xfe5c | ||
| 377 | #define XK_dead_iota 0xfe5d | ||
| 378 | #define XK_dead_voiced_sound 0xfe5e | ||
| 379 | #define XK_dead_semivoiced_sound 0xfe5f | ||
| 380 | #define XK_dead_belowdot 0xfe60 | ||
| 381 | #define XK_dead_hook 0xfe61 | ||
| 382 | #define XK_dead_horn 0xfe62 | ||
| 383 | #define XK_dead_stroke 0xfe63 | ||
| 384 | |||
| 385 | #define XK_First_Virtual_Screen 0xfed0 | ||
| 386 | #define XK_Prev_Virtual_Screen 0xfed1 | ||
| 387 | #define XK_Next_Virtual_Screen 0xfed2 | ||
| 388 | #define XK_Last_Virtual_Screen 0xfed4 | ||
| 389 | #define XK_Terminate_Server 0xfed5 | ||
| 390 | |||
| 391 | #define XK_AccessX_Enable 0xfe70 | ||
| 392 | #define XK_AccessX_Feedback_Enable 0xfe71 | ||
| 393 | #define XK_RepeatKeys_Enable 0xfe72 | ||
| 394 | #define XK_SlowKeys_Enable 0xfe73 | ||
| 395 | #define XK_BounceKeys_Enable 0xfe74 | ||
| 396 | #define XK_StickyKeys_Enable 0xfe75 | ||
| 397 | #define XK_MouseKeys_Enable 0xfe76 | ||
| 398 | #define XK_MouseKeys_Accel_Enable 0xfe77 | ||
| 399 | #define XK_Overlay1_Enable 0xfe78 | ||
| 400 | #define XK_Overlay2_Enable 0xfe79 | ||
| 401 | #define XK_AudibleBell_Enable 0xfe7a | ||
| 402 | |||
| 403 | #define XK_Pointer_Left 0xfee0 | ||
| 404 | #define XK_Pointer_Right 0xfee1 | ||
| 405 | #define XK_Pointer_Up 0xfee2 | ||
| 406 | #define XK_Pointer_Down 0xfee3 | ||
| 407 | #define XK_Pointer_UpLeft 0xfee4 | ||
| 408 | #define XK_Pointer_UpRight 0xfee5 | ||
| 409 | #define XK_Pointer_DownLeft 0xfee6 | ||
| 410 | #define XK_Pointer_DownRight 0xfee7 | ||
| 411 | #define XK_Pointer_Button_Dflt 0xfee8 | ||
| 412 | #define XK_Pointer_Button1 0xfee9 | ||
| 413 | #define XK_Pointer_Button2 0xfeea | ||
| 414 | #define XK_Pointer_Button3 0xfeeb | ||
| 415 | #define XK_Pointer_Button4 0xfeec | ||
| 416 | #define XK_Pointer_Button5 0xfeed | ||
| 417 | #define XK_Pointer_DblClick_Dflt 0xfeee | ||
| 418 | #define XK_Pointer_DblClick1 0xfeef | ||
| 419 | #define XK_Pointer_DblClick2 0xfef0 | ||
| 420 | #define XK_Pointer_DblClick3 0xfef1 | ||
| 421 | #define XK_Pointer_DblClick4 0xfef2 | ||
| 422 | #define XK_Pointer_DblClick5 0xfef3 | ||
| 423 | #define XK_Pointer_Drag_Dflt 0xfef4 | ||
| 424 | #define XK_Pointer_Drag1 0xfef5 | ||
| 425 | #define XK_Pointer_Drag2 0xfef6 | ||
| 426 | #define XK_Pointer_Drag3 0xfef7 | ||
| 427 | #define XK_Pointer_Drag4 0xfef8 | ||
| 428 | #define XK_Pointer_Drag5 0xfefd | ||
| 429 | |||
| 430 | #define XK_Pointer_EnableKeys 0xfef9 | ||
| 431 | #define XK_Pointer_Accelerate 0xfefa | ||
| 432 | #define XK_Pointer_DfltBtnNext 0xfefb | ||
| 433 | #define XK_Pointer_DfltBtnPrev 0xfefc | ||
| 434 | |||
| 435 | #endif /* XK_XKB_KEYS */ | ||
| 436 | |||
| 437 | /* | ||
| 438 | * 3270 Terminal Keys | ||
| 439 | * Byte 3 = 0xfd | ||
| 440 | */ | ||
| 441 | |||
| 442 | #ifdef XK_3270 | ||
| 443 | #define XK_3270_Duplicate 0xfd01 | ||
| 444 | #define XK_3270_FieldMark 0xfd02 | ||
| 445 | #define XK_3270_Right2 0xfd03 | ||
| 446 | #define XK_3270_Left2 0xfd04 | ||
| 447 | #define XK_3270_BackTab 0xfd05 | ||
| 448 | #define XK_3270_EraseEOF 0xfd06 | ||
| 449 | #define XK_3270_EraseInput 0xfd07 | ||
| 450 | #define XK_3270_Reset 0xfd08 | ||
| 451 | #define XK_3270_Quit 0xfd09 | ||
| 452 | #define XK_3270_PA1 0xfd0a | ||
| 453 | #define XK_3270_PA2 0xfd0b | ||
| 454 | #define XK_3270_PA3 0xfd0c | ||
| 455 | #define XK_3270_Test 0xfd0d | ||
| 456 | #define XK_3270_Attn 0xfd0e | ||
| 457 | #define XK_3270_CursorBlink 0xfd0f | ||
| 458 | #define XK_3270_AltCursor 0xfd10 | ||
| 459 | #define XK_3270_KeyClick 0xfd11 | ||
| 460 | #define XK_3270_Jump 0xfd12 | ||
| 461 | #define XK_3270_Ident 0xfd13 | ||
| 462 | #define XK_3270_Rule 0xfd14 | ||
| 463 | #define XK_3270_Copy 0xfd15 | ||
| 464 | #define XK_3270_Play 0xfd16 | ||
| 465 | #define XK_3270_Setup 0xfd17 | ||
| 466 | #define XK_3270_Record 0xfd18 | ||
| 467 | #define XK_3270_ChangeScreen 0xfd19 | ||
| 468 | #define XK_3270_DeleteWord 0xfd1a | ||
| 469 | #define XK_3270_ExSelect 0xfd1b | ||
| 470 | #define XK_3270_CursorSelect 0xfd1c | ||
| 471 | #define XK_3270_PrintScreen 0xfd1d | ||
| 472 | #define XK_3270_Enter 0xfd1e | ||
| 473 | #endif /* XK_3270 */ | ||
| 474 | |||
| 475 | /* | ||
| 476 | * Latin 1 | ||
| 477 | * (ISO/IEC 8859-1 = Unicode U+0020..U+00FF) | ||
| 478 | * Byte 3 = 0 | ||
| 479 | */ | ||
| 480 | #ifdef XK_LATIN1 | ||
| 481 | #define XK_space 0x0020 /* U+0020 SPACE */ | ||
| 482 | #define XK_exclam 0x0021 /* U+0021 EXCLAMATION MARK */ | ||
| 483 | #define XK_quotedbl 0x0022 /* U+0022 QUOTATION MARK */ | ||
| 484 | #define XK_numbersign 0x0023 /* U+0023 NUMBER SIGN */ | ||
| 485 | #define XK_dollar 0x0024 /* U+0024 DOLLAR SIGN */ | ||
| 486 | #define XK_percent 0x0025 /* U+0025 PERCENT SIGN */ | ||
| 487 | #define XK_ampersand 0x0026 /* U+0026 AMPERSAND */ | ||
| 488 | #define XK_apostrophe 0x0027 /* U+0027 APOSTROPHE */ | ||
| 489 | #define XK_quoteright 0x0027 /* deprecated */ | ||
| 490 | #define XK_parenleft 0x0028 /* U+0028 LEFT PARENTHESIS */ | ||
| 491 | #define XK_parenright 0x0029 /* U+0029 RIGHT PARENTHESIS */ | ||
| 492 | #define XK_asterisk 0x002a /* U+002A ASTERISK */ | ||
| 493 | #define XK_plus 0x002b /* U+002B PLUS SIGN */ | ||
| 494 | #define XK_comma 0x002c /* U+002C COMMA */ | ||
| 495 | #define XK_minus 0x002d /* U+002D HYPHEN-MINUS */ | ||
| 496 | #define XK_period 0x002e /* U+002E FULL STOP */ | ||
| 497 | #define XK_slash 0x002f /* U+002F SOLIDUS */ | ||
| 498 | #define XK_0 0x0030 /* U+0030 DIGIT ZERO */ | ||
| 499 | #define XK_1 0x0031 /* U+0031 DIGIT ONE */ | ||
| 500 | #define XK_2 0x0032 /* U+0032 DIGIT TWO */ | ||
| 501 | #define XK_3 0x0033 /* U+0033 DIGIT THREE */ | ||
| 502 | #define XK_4 0x0034 /* U+0034 DIGIT FOUR */ | ||
| 503 | #define XK_5 0x0035 /* U+0035 DIGIT FIVE */ | ||
| 504 | #define XK_6 0x0036 /* U+0036 DIGIT SIX */ | ||
| 505 | #define XK_7 0x0037 /* U+0037 DIGIT SEVEN */ | ||
| 506 | #define XK_8 0x0038 /* U+0038 DIGIT EIGHT */ | ||
| 507 | #define XK_9 0x0039 /* U+0039 DIGIT NINE */ | ||
| 508 | #define XK_colon 0x003a /* U+003A COLON */ | ||
| 509 | #define XK_semicolon 0x003b /* U+003B SEMICOLON */ | ||
| 510 | #define XK_less 0x003c /* U+003C LESS-THAN SIGN */ | ||
| 511 | #define XK_equal 0x003d /* U+003D EQUALS SIGN */ | ||
| 512 | #define XK_greater 0x003e /* U+003E GREATER-THAN SIGN */ | ||
| 513 | #define XK_question 0x003f /* U+003F QUESTION MARK */ | ||
| 514 | #define XK_at 0x0040 /* U+0040 COMMERCIAL AT */ | ||
| 515 | #define XK_A 0x0041 /* U+0041 LATIN CAPITAL LETTER A */ | ||
| 516 | #define XK_B 0x0042 /* U+0042 LATIN CAPITAL LETTER B */ | ||
| 517 | #define XK_C 0x0043 /* U+0043 LATIN CAPITAL LETTER C */ | ||
| 518 | #define XK_D 0x0044 /* U+0044 LATIN CAPITAL LETTER D */ | ||
| 519 | #define XK_E 0x0045 /* U+0045 LATIN CAPITAL LETTER E */ | ||
| 520 | #define XK_F 0x0046 /* U+0046 LATIN CAPITAL LETTER F */ | ||
| 521 | #define XK_G 0x0047 /* U+0047 LATIN CAPITAL LETTER G */ | ||
| 522 | #define XK_H 0x0048 /* U+0048 LATIN CAPITAL LETTER H */ | ||
| 523 | #define XK_I 0x0049 /* U+0049 LATIN CAPITAL LETTER I */ | ||
| 524 | #define XK_J 0x004a /* U+004A LATIN CAPITAL LETTER J */ | ||
| 525 | #define XK_K 0x004b /* U+004B LATIN CAPITAL LETTER K */ | ||
| 526 | #define XK_L 0x004c /* U+004C LATIN CAPITAL LETTER L */ | ||
| 527 | #define XK_M 0x004d /* U+004D LATIN CAPITAL LETTER M */ | ||
| 528 | #define XK_N 0x004e /* U+004E LATIN CAPITAL LETTER N */ | ||
| 529 | #define XK_O 0x004f /* U+004F LATIN CAPITAL LETTER O */ | ||
| 530 | #define XK_P 0x0050 /* U+0050 LATIN CAPITAL LETTER P */ | ||
| 531 | #define XK_Q 0x0051 /* U+0051 LATIN CAPITAL LETTER Q */ | ||
| 532 | #define XK_R 0x0052 /* U+0052 LATIN CAPITAL LETTER R */ | ||
| 533 | #define XK_S 0x0053 /* U+0053 LATIN CAPITAL LETTER S */ | ||
| 534 | #define XK_T 0x0054 /* U+0054 LATIN CAPITAL LETTER T */ | ||
| 535 | #define XK_U 0x0055 /* U+0055 LATIN CAPITAL LETTER U */ | ||
| 536 | #define XK_V 0x0056 /* U+0056 LATIN CAPITAL LETTER V */ | ||
| 537 | #define XK_W 0x0057 /* U+0057 LATIN CAPITAL LETTER W */ | ||
| 538 | #define XK_X 0x0058 /* U+0058 LATIN CAPITAL LETTER X */ | ||
| 539 | #define XK_Y 0x0059 /* U+0059 LATIN CAPITAL LETTER Y */ | ||
| 540 | #define XK_Z 0x005a /* U+005A LATIN CAPITAL LETTER Z */ | ||
| 541 | #define XK_bracketleft 0x005b /* U+005B LEFT SQUARE BRACKET */ | ||
| 542 | #define XK_backslash 0x005c /* U+005C REVERSE SOLIDUS */ | ||
| 543 | #define XK_bracketright 0x005d /* U+005D RIGHT SQUARE BRACKET */ | ||
| 544 | #define XK_asciicircum 0x005e /* U+005E CIRCUMFLEX ACCENT */ | ||
| 545 | #define XK_underscore 0x005f /* U+005F LOW LINE */ | ||
| 546 | #define XK_grave 0x0060 /* U+0060 GRAVE ACCENT */ | ||
| 547 | #define XK_quoteleft 0x0060 /* deprecated */ | ||
| 548 | #define XK_a 0x0061 /* U+0061 LATIN SMALL LETTER A */ | ||
| 549 | #define XK_b 0x0062 /* U+0062 LATIN SMALL LETTER B */ | ||
| 550 | #define XK_c 0x0063 /* U+0063 LATIN SMALL LETTER C */ | ||
| 551 | #define XK_d 0x0064 /* U+0064 LATIN SMALL LETTER D */ | ||
| 552 | #define XK_e 0x0065 /* U+0065 LATIN SMALL LETTER E */ | ||
| 553 | #define XK_f 0x0066 /* U+0066 LATIN SMALL LETTER F */ | ||
| 554 | #define XK_g 0x0067 /* U+0067 LATIN SMALL LETTER G */ | ||
| 555 | #define XK_h 0x0068 /* U+0068 LATIN SMALL LETTER H */ | ||
| 556 | #define XK_i 0x0069 /* U+0069 LATIN SMALL LETTER I */ | ||
| 557 | #define XK_j 0x006a /* U+006A LATIN SMALL LETTER J */ | ||
| 558 | #define XK_k 0x006b /* U+006B LATIN SMALL LETTER K */ | ||
| 559 | #define XK_l 0x006c /* U+006C LATIN SMALL LETTER L */ | ||
| 560 | #define XK_m 0x006d /* U+006D LATIN SMALL LETTER M */ | ||
| 561 | #define XK_n 0x006e /* U+006E LATIN SMALL LETTER N */ | ||
| 562 | #define XK_o 0x006f /* U+006F LATIN SMALL LETTER O */ | ||
| 563 | #define XK_p 0x0070 /* U+0070 LATIN SMALL LETTER P */ | ||
| 564 | #define XK_q 0x0071 /* U+0071 LATIN SMALL LETTER Q */ | ||
| 565 | #define XK_r 0x0072 /* U+0072 LATIN SMALL LETTER R */ | ||
| 566 | #define XK_s 0x0073 /* U+0073 LATIN SMALL LETTER S */ | ||
| 567 | #define XK_t 0x0074 /* U+0074 LATIN SMALL LETTER T */ | ||
| 568 | #define XK_u 0x0075 /* U+0075 LATIN SMALL LETTER U */ | ||
| 569 | #define XK_v 0x0076 /* U+0076 LATIN SMALL LETTER V */ | ||
| 570 | #define XK_w 0x0077 /* U+0077 LATIN SMALL LETTER W */ | ||
| 571 | #define XK_x 0x0078 /* U+0078 LATIN SMALL LETTER X */ | ||
| 572 | #define XK_y 0x0079 /* U+0079 LATIN SMALL LETTER Y */ | ||
| 573 | #define XK_z 0x007a /* U+007A LATIN SMALL LETTER Z */ | ||
| 574 | #define XK_braceleft 0x007b /* U+007B LEFT CURLY BRACKET */ | ||
| 575 | #define XK_bar 0x007c /* U+007C VERTICAL LINE */ | ||
| 576 | #define XK_braceright 0x007d /* U+007D RIGHT CURLY BRACKET */ | ||
| 577 | #define XK_asciitilde 0x007e /* U+007E TILDE */ | ||
| 578 | |||
| 579 | #define XK_nobreakspace 0x00a0 /* U+00A0 NO-BREAK SPACE */ | ||
| 580 | #define XK_exclamdown 0x00a1 /* U+00A1 INVERTED EXCLAMATION MARK */ | ||
| 581 | #define XK_cent 0x00a2 /* U+00A2 CENT SIGN */ | ||
| 582 | #define XK_sterling 0x00a3 /* U+00A3 POUND SIGN */ | ||
| 583 | #define XK_currency 0x00a4 /* U+00A4 CURRENCY SIGN */ | ||
| 584 | #define XK_yen 0x00a5 /* U+00A5 YEN SIGN */ | ||
| 585 | #define XK_brokenbar 0x00a6 /* U+00A6 BROKEN BAR */ | ||
| 586 | #define XK_section 0x00a7 /* U+00A7 SECTION SIGN */ | ||
| 587 | #define XK_diaeresis 0x00a8 /* U+00A8 DIAERESIS */ | ||
| 588 | #define XK_copyright 0x00a9 /* U+00A9 COPYRIGHT SIGN */ | ||
| 589 | #define XK_ordfeminine 0x00aa /* U+00AA FEMININE ORDINAL INDICATOR */ | ||
| 590 | #define XK_guillemotleft 0x00ab /* U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK */ | ||
| 591 | #define XK_notsign 0x00ac /* U+00AC NOT SIGN */ | ||
| 592 | #define XK_hyphen 0x00ad /* U+00AD SOFT HYPHEN */ | ||
| 593 | #define XK_registered 0x00ae /* U+00AE REGISTERED SIGN */ | ||
| 594 | #define XK_macron 0x00af /* U+00AF MACRON */ | ||
| 595 | #define XK_degree 0x00b0 /* U+00B0 DEGREE SIGN */ | ||
| 596 | #define XK_plusminus 0x00b1 /* U+00B1 PLUS-MINUS SIGN */ | ||
| 597 | #define XK_twosuperior 0x00b2 /* U+00B2 SUPERSCRIPT TWO */ | ||
| 598 | #define XK_threesuperior 0x00b3 /* U+00B3 SUPERSCRIPT THREE */ | ||
| 599 | #define XK_acute 0x00b4 /* U+00B4 ACUTE ACCENT */ | ||
| 600 | #define XK_mu 0x00b5 /* U+00B5 MICRO SIGN */ | ||
| 601 | #define XK_paragraph 0x00b6 /* U+00B6 PILCROW SIGN */ | ||
| 602 | #define XK_periodcentered 0x00b7 /* U+00B7 MIDDLE DOT */ | ||
| 603 | #define XK_cedilla 0x00b8 /* U+00B8 CEDILLA */ | ||
| 604 | #define XK_onesuperior 0x00b9 /* U+00B9 SUPERSCRIPT ONE */ | ||
| 605 | #define XK_masculine 0x00ba /* U+00BA MASCULINE ORDINAL INDICATOR */ | ||
| 606 | #define XK_guillemotright 0x00bb /* U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK */ | ||
| 607 | #define XK_onequarter 0x00bc /* U+00BC VULGAR FRACTION ONE QUARTER */ | ||
| 608 | #define XK_onehalf 0x00bd /* U+00BD VULGAR FRACTION ONE HALF */ | ||
| 609 | #define XK_threequarters 0x00be /* U+00BE VULGAR FRACTION THREE QUARTERS */ | ||
| 610 | #define XK_questiondown 0x00bf /* U+00BF INVERTED QUESTION MARK */ | ||
| 611 | #define XK_Agrave 0x00c0 /* U+00C0 LATIN CAPITAL LETTER A WITH GRAVE */ | ||
| 612 | #define XK_Aacute 0x00c1 /* U+00C1 LATIN CAPITAL LETTER A WITH ACUTE */ | ||
| 613 | #define XK_Acircumflex 0x00c2 /* U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX */ | ||
| 614 | #define XK_Atilde 0x00c3 /* U+00C3 LATIN CAPITAL LETTER A WITH TILDE */ | ||
| 615 | #define XK_Adiaeresis 0x00c4 /* U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS */ | ||
| 616 | #define XK_Aring 0x00c5 /* U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE */ | ||
| 617 | #define XK_AE 0x00c6 /* U+00C6 LATIN CAPITAL LETTER AE */ | ||
| 618 | #define XK_Ccedilla 0x00c7 /* U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA */ | ||
| 619 | #define XK_Egrave 0x00c8 /* U+00C8 LATIN CAPITAL LETTER E WITH GRAVE */ | ||
| 620 | #define XK_Eacute 0x00c9 /* U+00C9 LATIN CAPITAL LETTER E WITH ACUTE */ | ||
| 621 | #define XK_Ecircumflex 0x00ca /* U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX */ | ||
| 622 | #define XK_Ediaeresis 0x00cb /* U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS */ | ||
| 623 | #define XK_Igrave 0x00cc /* U+00CC LATIN CAPITAL LETTER I WITH GRAVE */ | ||
| 624 | #define XK_Iacute 0x00cd /* U+00CD LATIN CAPITAL LETTER I WITH ACUTE */ | ||
| 625 | #define XK_Icircumflex 0x00ce /* U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX */ | ||
| 626 | #define XK_Idiaeresis 0x00cf /* U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS */ | ||
| 627 | #define XK_ETH 0x00d0 /* U+00D0 LATIN CAPITAL LETTER ETH */ | ||
| 628 | #define XK_Eth 0x00d0 /* deprecated */ | ||
| 629 | #define XK_Ntilde 0x00d1 /* U+00D1 LATIN CAPITAL LETTER N WITH TILDE */ | ||
| 630 | #define XK_Ograve 0x00d2 /* U+00D2 LATIN CAPITAL LETTER O WITH GRAVE */ | ||
| 631 | #define XK_Oacute 0x00d3 /* U+00D3 LATIN CAPITAL LETTER O WITH ACUTE */ | ||
| 632 | #define XK_Ocircumflex 0x00d4 /* U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX */ | ||
| 633 | #define XK_Otilde 0x00d5 /* U+00D5 LATIN CAPITAL LETTER O WITH TILDE */ | ||
| 634 | #define XK_Odiaeresis 0x00d6 /* U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS */ | ||
| 635 | #define XK_multiply 0x00d7 /* U+00D7 MULTIPLICATION SIGN */ | ||
| 636 | #define XK_Oslash 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */ | ||
| 637 | #define XK_Ooblique 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */ | ||
| 638 | #define XK_Ugrave 0x00d9 /* U+00D9 LATIN CAPITAL LETTER U WITH GRAVE */ | ||
| 639 | #define XK_Uacute 0x00da /* U+00DA LATIN CAPITAL LETTER U WITH ACUTE */ | ||
| 640 | #define XK_Ucircumflex 0x00db /* U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX */ | ||
| 641 | #define XK_Udiaeresis 0x00dc /* U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS */ | ||
| 642 | #define XK_Yacute 0x00dd /* U+00DD LATIN CAPITAL LETTER Y WITH ACUTE */ | ||
| 643 | #define XK_THORN 0x00de /* U+00DE LATIN CAPITAL LETTER THORN */ | ||
| 644 | #define XK_Thorn 0x00de /* deprecated */ | ||
| 645 | #define XK_ssharp 0x00df /* U+00DF LATIN SMALL LETTER SHARP S */ | ||
| 646 | #define XK_agrave 0x00e0 /* U+00E0 LATIN SMALL LETTER A WITH GRAVE */ | ||
| 647 | #define XK_aacute 0x00e1 /* U+00E1 LATIN SMALL LETTER A WITH ACUTE */ | ||
| 648 | #define XK_acircumflex 0x00e2 /* U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX */ | ||
| 649 | #define XK_atilde 0x00e3 /* U+00E3 LATIN SMALL LETTER A WITH TILDE */ | ||
| 650 | #define XK_adiaeresis 0x00e4 /* U+00E4 LATIN SMALL LETTER A WITH DIAERESIS */ | ||
| 651 | #define XK_aring 0x00e5 /* U+00E5 LATIN SMALL LETTER A WITH RING ABOVE */ | ||
| 652 | #define XK_ae 0x00e6 /* U+00E6 LATIN SMALL LETTER AE */ | ||
| 653 | #define XK_ccedilla 0x00e7 /* U+00E7 LATIN SMALL LETTER C WITH CEDILLA */ | ||
| 654 | #define XK_egrave 0x00e8 /* U+00E8 LATIN SMALL LETTER E WITH GRAVE */ | ||
| 655 | #define XK_eacute 0x00e9 /* U+00E9 LATIN SMALL LETTER E WITH ACUTE */ | ||
| 656 | #define XK_ecircumflex 0x00ea /* U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX */ | ||
| 657 | #define XK_ediaeresis 0x00eb /* U+00EB LATIN SMALL LETTER E WITH DIAERESIS */ | ||
| 658 | #define XK_igrave 0x00ec /* U+00EC LATIN SMALL LETTER I WITH GRAVE */ | ||
| 659 | #define XK_iacute 0x00ed /* U+00ED LATIN SMALL LETTER I WITH ACUTE */ | ||
| 660 | #define XK_icircumflex 0x00ee /* U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX */ | ||
| 661 | #define XK_idiaeresis 0x00ef /* U+00EF LATIN SMALL LETTER I WITH DIAERESIS */ | ||
| 662 | #define XK_eth 0x00f0 /* U+00F0 LATIN SMALL LETTER ETH */ | ||
| 663 | #define XK_ntilde 0x00f1 /* U+00F1 LATIN SMALL LETTER N WITH TILDE */ | ||
| 664 | #define XK_ograve 0x00f2 /* U+00F2 LATIN SMALL LETTER O WITH GRAVE */ | ||
| 665 | #define XK_oacute 0x00f3 /* U+00F3 LATIN SMALL LETTER O WITH ACUTE */ | ||
| 666 | #define XK_ocircumflex 0x00f4 /* U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX */ | ||
| 667 | #define XK_otilde 0x00f5 /* U+00F5 LATIN SMALL LETTER O WITH TILDE */ | ||
| 668 | #define XK_odiaeresis 0x00f6 /* U+00F6 LATIN SMALL LETTER O WITH DIAERESIS */ | ||
| 669 | #define XK_division 0x00f7 /* U+00F7 DIVISION SIGN */ | ||
| 670 | #define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ | ||
| 671 | #define XK_ooblique 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ | ||
| 672 | #define XK_ugrave 0x00f9 /* U+00F9 LATIN SMALL LETTER U WITH GRAVE */ | ||
| 673 | #define XK_uacute 0x00fa /* U+00FA LATIN SMALL LETTER U WITH ACUTE */ | ||
| 674 | #define XK_ucircumflex 0x00fb /* U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX */ | ||
| 675 | #define XK_udiaeresis 0x00fc /* U+00FC LATIN SMALL LETTER U WITH DIAERESIS */ | ||
| 676 | #define XK_yacute 0x00fd /* U+00FD LATIN SMALL LETTER Y WITH ACUTE */ | ||
| 677 | #define XK_thorn 0x00fe /* U+00FE LATIN SMALL LETTER THORN */ | ||
| 678 | #define XK_ydiaeresis 0x00ff /* U+00FF LATIN SMALL LETTER Y WITH DIAERESIS */ | ||
| 679 | #endif /* XK_LATIN1 */ | ||
| 680 | |||
| 681 | /* | ||
| 682 | * Latin 2 | ||
| 683 | * Byte 3 = 1 | ||
| 684 | */ | ||
| 685 | |||
| 686 | #ifdef XK_LATIN2 | ||
| 687 | #define XK_Aogonek 0x01a1 /* U+0104 LATIN CAPITAL LETTER A WITH OGONEK */ | ||
| 688 | #define XK_breve 0x01a2 /* U+02D8 BREVE */ | ||
| 689 | #define XK_Lstroke 0x01a3 /* U+0141 LATIN CAPITAL LETTER L WITH STROKE */ | ||
| 690 | #define XK_Lcaron 0x01a5 /* U+013D LATIN CAPITAL LETTER L WITH CARON */ | ||
| 691 | #define XK_Sacute 0x01a6 /* U+015A LATIN CAPITAL LETTER S WITH ACUTE */ | ||
| 692 | #define XK_Scaron 0x01a9 /* U+0160 LATIN CAPITAL LETTER S WITH CARON */ | ||
| 693 | #define XK_Scedilla 0x01aa /* U+015E LATIN CAPITAL LETTER S WITH CEDILLA */ | ||
| 694 | #define XK_Tcaron 0x01ab /* U+0164 LATIN CAPITAL LETTER T WITH CARON */ | ||
| 695 | #define XK_Zacute 0x01ac /* U+0179 LATIN CAPITAL LETTER Z WITH ACUTE */ | ||
| 696 | #define XK_Zcaron 0x01ae /* U+017D LATIN CAPITAL LETTER Z WITH CARON */ | ||
| 697 | #define XK_Zabovedot 0x01af /* U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE */ | ||
| 698 | #define XK_aogonek 0x01b1 /* U+0105 LATIN SMALL LETTER A WITH OGONEK */ | ||
| 699 | #define XK_ogonek 0x01b2 /* U+02DB OGONEK */ | ||
| 700 | #define XK_lstroke 0x01b3 /* U+0142 LATIN SMALL LETTER L WITH STROKE */ | ||
| 701 | #define XK_lcaron 0x01b5 /* U+013E LATIN SMALL LETTER L WITH CARON */ | ||
| 702 | #define XK_sacute 0x01b6 /* U+015B LATIN SMALL LETTER S WITH ACUTE */ | ||
| 703 | #define XK_caron 0x01b7 /* U+02C7 CARON */ | ||
| 704 | #define XK_scaron 0x01b9 /* U+0161 LATIN SMALL LETTER S WITH CARON */ | ||
| 705 | #define XK_scedilla 0x01ba /* U+015F LATIN SMALL LETTER S WITH CEDILLA */ | ||
| 706 | #define XK_tcaron 0x01bb /* U+0165 LATIN SMALL LETTER T WITH CARON */ | ||
| 707 | #define XK_zacute 0x01bc /* U+017A LATIN SMALL LETTER Z WITH ACUTE */ | ||
| 708 | #define XK_doubleacute 0x01bd /* U+02DD DOUBLE ACUTE ACCENT */ | ||
| 709 | #define XK_zcaron 0x01be /* U+017E LATIN SMALL LETTER Z WITH CARON */ | ||
| 710 | #define XK_zabovedot 0x01bf /* U+017C LATIN SMALL LETTER Z WITH DOT ABOVE */ | ||
| 711 | #define XK_Racute 0x01c0 /* U+0154 LATIN CAPITAL LETTER R WITH ACUTE */ | ||
| 712 | #define XK_Abreve 0x01c3 /* U+0102 LATIN CAPITAL LETTER A WITH BREVE */ | ||
| 713 | #define XK_Lacute 0x01c5 /* U+0139 LATIN CAPITAL LETTER L WITH ACUTE */ | ||
| 714 | #define XK_Cacute 0x01c6 /* U+0106 LATIN CAPITAL LETTER C WITH ACUTE */ | ||
| 715 | #define XK_Ccaron 0x01c8 /* U+010C LATIN CAPITAL LETTER C WITH CARON */ | ||
| 716 | #define XK_Eogonek 0x01ca /* U+0118 LATIN CAPITAL LETTER E WITH OGONEK */ | ||
| 717 | #define XK_Ecaron 0x01cc /* U+011A LATIN CAPITAL LETTER E WITH CARON */ | ||
| 718 | #define XK_Dcaron 0x01cf /* U+010E LATIN CAPITAL LETTER D WITH CARON */ | ||
| 719 | #define XK_Dstroke 0x01d0 /* U+0110 LATIN CAPITAL LETTER D WITH STROKE */ | ||
| 720 | #define XK_Nacute 0x01d1 /* U+0143 LATIN CAPITAL LETTER N WITH ACUTE */ | ||
| 721 | #define XK_Ncaron 0x01d2 /* U+0147 LATIN CAPITAL LETTER N WITH CARON */ | ||
| 722 | #define XK_Odoubleacute 0x01d5 /* U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE */ | ||
| 723 | #define XK_Rcaron 0x01d8 /* U+0158 LATIN CAPITAL LETTER R WITH CARON */ | ||
| 724 | #define XK_Uring 0x01d9 /* U+016E LATIN CAPITAL LETTER U WITH RING ABOVE */ | ||
| 725 | #define XK_Udoubleacute 0x01db /* U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE */ | ||
| 726 | #define XK_Tcedilla 0x01de /* U+0162 LATIN CAPITAL LETTER T WITH CEDILLA */ | ||
| 727 | #define XK_racute 0x01e0 /* U+0155 LATIN SMALL LETTER R WITH ACUTE */ | ||
| 728 | #define XK_abreve 0x01e3 /* U+0103 LATIN SMALL LETTER A WITH BREVE */ | ||
| 729 | #define XK_lacute 0x01e5 /* U+013A LATIN SMALL LETTER L WITH ACUTE */ | ||
| 730 | #define XK_cacute 0x01e6 /* U+0107 LATIN SMALL LETTER C WITH ACUTE */ | ||
| 731 | #define XK_ccaron 0x01e8 /* U+010D LATIN SMALL LETTER C WITH CARON */ | ||
| 732 | #define XK_eogonek 0x01ea /* U+0119 LATIN SMALL LETTER E WITH OGONEK */ | ||
| 733 | #define XK_ecaron 0x01ec /* U+011B LATIN SMALL LETTER E WITH CARON */ | ||
| 734 | #define XK_dcaron 0x01ef /* U+010F LATIN SMALL LETTER D WITH CARON */ | ||
| 735 | #define XK_dstroke 0x01f0 /* U+0111 LATIN SMALL LETTER D WITH STROKE */ | ||
| 736 | #define XK_nacute 0x01f1 /* U+0144 LATIN SMALL LETTER N WITH ACUTE */ | ||
| 737 | #define XK_ncaron 0x01f2 /* U+0148 LATIN SMALL LETTER N WITH CARON */ | ||
| 738 | #define XK_odoubleacute 0x01f5 /* U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE */ | ||
| 739 | #define XK_udoubleacute 0x01fb /* U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE */ | ||
| 740 | #define XK_rcaron 0x01f8 /* U+0159 LATIN SMALL LETTER R WITH CARON */ | ||
| 741 | #define XK_uring 0x01f9 /* U+016F LATIN SMALL LETTER U WITH RING ABOVE */ | ||
| 742 | #define XK_tcedilla 0x01fe /* U+0163 LATIN SMALL LETTER T WITH CEDILLA */ | ||
| 743 | #define XK_abovedot 0x01ff /* U+02D9 DOT ABOVE */ | ||
| 744 | #endif /* XK_LATIN2 */ | ||
| 745 | |||
| 746 | /* | ||
| 747 | * Latin 3 | ||
| 748 | * Byte 3 = 2 | ||
| 749 | */ | ||
| 750 | |||
| 751 | #ifdef XK_LATIN3 | ||
| 752 | #define XK_Hstroke 0x02a1 /* U+0126 LATIN CAPITAL LETTER H WITH STROKE */ | ||
| 753 | #define XK_Hcircumflex 0x02a6 /* U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX */ | ||
| 754 | #define XK_Iabovedot 0x02a9 /* U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE */ | ||
| 755 | #define XK_Gbreve 0x02ab /* U+011E LATIN CAPITAL LETTER G WITH BREVE */ | ||
| 756 | #define XK_Jcircumflex 0x02ac /* U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX */ | ||
| 757 | #define XK_hstroke 0x02b1 /* U+0127 LATIN SMALL LETTER H WITH STROKE */ | ||
| 758 | #define XK_hcircumflex 0x02b6 /* U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX */ | ||
| 759 | #define XK_idotless 0x02b9 /* U+0131 LATIN SMALL LETTER DOTLESS I */ | ||
| 760 | #define XK_gbreve 0x02bb /* U+011F LATIN SMALL LETTER G WITH BREVE */ | ||
| 761 | #define XK_jcircumflex 0x02bc /* U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX */ | ||
| 762 | #define XK_Cabovedot 0x02c5 /* U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE */ | ||
| 763 | #define XK_Ccircumflex 0x02c6 /* U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX */ | ||
| 764 | #define XK_Gabovedot 0x02d5 /* U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE */ | ||
| 765 | #define XK_Gcircumflex 0x02d8 /* U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX */ | ||
| 766 | #define XK_Ubreve 0x02dd /* U+016C LATIN CAPITAL LETTER U WITH BREVE */ | ||
| 767 | #define XK_Scircumflex 0x02de /* U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX */ | ||
| 768 | #define XK_cabovedot 0x02e5 /* U+010B LATIN SMALL LETTER C WITH DOT ABOVE */ | ||
| 769 | #define XK_ccircumflex 0x02e6 /* U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX */ | ||
| 770 | #define XK_gabovedot 0x02f5 /* U+0121 LATIN SMALL LETTER G WITH DOT ABOVE */ | ||
| 771 | #define XK_gcircumflex 0x02f8 /* U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX */ | ||
| 772 | #define XK_ubreve 0x02fd /* U+016D LATIN SMALL LETTER U WITH BREVE */ | ||
| 773 | #define XK_scircumflex 0x02fe /* U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX */ | ||
| 774 | #endif /* XK_LATIN3 */ | ||
| 775 | |||
| 776 | |||
| 777 | /* | ||
| 778 | * Latin 4 | ||
| 779 | * Byte 3 = 3 | ||
| 780 | */ | ||
| 781 | |||
| 782 | #ifdef XK_LATIN4 | ||
| 783 | #define XK_kra 0x03a2 /* U+0138 LATIN SMALL LETTER KRA */ | ||
| 784 | #define XK_kappa 0x03a2 /* deprecated */ | ||
| 785 | #define XK_Rcedilla 0x03a3 /* U+0156 LATIN CAPITAL LETTER R WITH CEDILLA */ | ||
| 786 | #define XK_Itilde 0x03a5 /* U+0128 LATIN CAPITAL LETTER I WITH TILDE */ | ||
| 787 | #define XK_Lcedilla 0x03a6 /* U+013B LATIN CAPITAL LETTER L WITH CEDILLA */ | ||
| 788 | #define XK_Emacron 0x03aa /* U+0112 LATIN CAPITAL LETTER E WITH MACRON */ | ||
| 789 | #define XK_Gcedilla 0x03ab /* U+0122 LATIN CAPITAL LETTER G WITH CEDILLA */ | ||
| 790 | #define XK_Tslash 0x03ac /* U+0166 LATIN CAPITAL LETTER T WITH STROKE */ | ||
| 791 | #define XK_rcedilla 0x03b3 /* U+0157 LATIN SMALL LETTER R WITH CEDILLA */ | ||
| 792 | #define XK_itilde 0x03b5 /* U+0129 LATIN SMALL LETTER I WITH TILDE */ | ||
| 793 | #define XK_lcedilla 0x03b6 /* U+013C LATIN SMALL LETTER L WITH CEDILLA */ | ||
| 794 | #define XK_emacron 0x03ba /* U+0113 LATIN SMALL LETTER E WITH MACRON */ | ||
| 795 | #define XK_gcedilla 0x03bb /* U+0123 LATIN SMALL LETTER G WITH CEDILLA */ | ||
| 796 | #define XK_tslash 0x03bc /* U+0167 LATIN SMALL LETTER T WITH STROKE */ | ||
| 797 | #define XK_ENG 0x03bd /* U+014A LATIN CAPITAL LETTER ENG */ | ||
| 798 | #define XK_eng 0x03bf /* U+014B LATIN SMALL LETTER ENG */ | ||
| 799 | #define XK_Amacron 0x03c0 /* U+0100 LATIN CAPITAL LETTER A WITH MACRON */ | ||
| 800 | #define XK_Iogonek 0x03c7 /* U+012E LATIN CAPITAL LETTER I WITH OGONEK */ | ||
| 801 | #define XK_Eabovedot 0x03cc /* U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE */ | ||
| 802 | #define XK_Imacron 0x03cf /* U+012A LATIN CAPITAL LETTER I WITH MACRON */ | ||
| 803 | #define XK_Ncedilla 0x03d1 /* U+0145 LATIN CAPITAL LETTER N WITH CEDILLA */ | ||
| 804 | #define XK_Omacron 0x03d2 /* U+014C LATIN CAPITAL LETTER O WITH MACRON */ | ||
| 805 | #define XK_Kcedilla 0x03d3 /* U+0136 LATIN CAPITAL LETTER K WITH CEDILLA */ | ||
| 806 | #define XK_Uogonek 0x03d9 /* U+0172 LATIN CAPITAL LETTER U WITH OGONEK */ | ||
| 807 | #define XK_Utilde 0x03dd /* U+0168 LATIN CAPITAL LETTER U WITH TILDE */ | ||
| 808 | #define XK_Umacron 0x03de /* U+016A LATIN CAPITAL LETTER U WITH MACRON */ | ||
| 809 | #define XK_amacron 0x03e0 /* U+0101 LATIN SMALL LETTER A WITH MACRON */ | ||
| 810 | #define XK_iogonek 0x03e7 /* U+012F LATIN SMALL LETTER I WITH OGONEK */ | ||
| 811 | #define XK_eabovedot 0x03ec /* U+0117 LATIN SMALL LETTER E WITH DOT ABOVE */ | ||
| 812 | #define XK_imacron 0x03ef /* U+012B LATIN SMALL LETTER I WITH MACRON */ | ||
| 813 | #define XK_ncedilla 0x03f1 /* U+0146 LATIN SMALL LETTER N WITH CEDILLA */ | ||
| 814 | #define XK_omacron 0x03f2 /* U+014D LATIN SMALL LETTER O WITH MACRON */ | ||
| 815 | #define XK_kcedilla 0x03f3 /* U+0137 LATIN SMALL LETTER K WITH CEDILLA */ | ||
| 816 | #define XK_uogonek 0x03f9 /* U+0173 LATIN SMALL LETTER U WITH OGONEK */ | ||
| 817 | #define XK_utilde 0x03fd /* U+0169 LATIN SMALL LETTER U WITH TILDE */ | ||
| 818 | #define XK_umacron 0x03fe /* U+016B LATIN SMALL LETTER U WITH MACRON */ | ||
| 819 | #endif /* XK_LATIN4 */ | ||
| 820 | |||
| 821 | /* | ||
| 822 | * Latin 8 | ||
| 823 | */ | ||
| 824 | #ifdef XK_LATIN8 | ||
| 825 | #define XK_Babovedot 0x1001e02 /* U+1E02 LATIN CAPITAL LETTER B WITH DOT ABOVE */ | ||
| 826 | #define XK_babovedot 0x1001e03 /* U+1E03 LATIN SMALL LETTER B WITH DOT ABOVE */ | ||
| 827 | #define XK_Dabovedot 0x1001e0a /* U+1E0A LATIN CAPITAL LETTER D WITH DOT ABOVE */ | ||
| 828 | #define XK_Wgrave 0x1001e80 /* U+1E80 LATIN CAPITAL LETTER W WITH GRAVE */ | ||
| 829 | #define XK_Wacute 0x1001e82 /* U+1E82 LATIN CAPITAL LETTER W WITH ACUTE */ | ||
| 830 | #define XK_dabovedot 0x1001e0b /* U+1E0B LATIN SMALL LETTER D WITH DOT ABOVE */ | ||
| 831 | #define XK_Ygrave 0x1001ef2 /* U+1EF2 LATIN CAPITAL LETTER Y WITH GRAVE */ | ||
| 832 | #define XK_Fabovedot 0x1001e1e /* U+1E1E LATIN CAPITAL LETTER F WITH DOT ABOVE */ | ||
| 833 | #define XK_fabovedot 0x1001e1f /* U+1E1F LATIN SMALL LETTER F WITH DOT ABOVE */ | ||
| 834 | #define XK_Mabovedot 0x1001e40 /* U+1E40 LATIN CAPITAL LETTER M WITH DOT ABOVE */ | ||
| 835 | #define XK_mabovedot 0x1001e41 /* U+1E41 LATIN SMALL LETTER M WITH DOT ABOVE */ | ||
| 836 | #define XK_Pabovedot 0x1001e56 /* U+1E56 LATIN CAPITAL LETTER P WITH DOT ABOVE */ | ||
| 837 | #define XK_wgrave 0x1001e81 /* U+1E81 LATIN SMALL LETTER W WITH GRAVE */ | ||
| 838 | #define XK_pabovedot 0x1001e57 /* U+1E57 LATIN SMALL LETTER P WITH DOT ABOVE */ | ||
| 839 | #define XK_wacute 0x1001e83 /* U+1E83 LATIN SMALL LETTER W WITH ACUTE */ | ||
| 840 | #define XK_Sabovedot 0x1001e60 /* U+1E60 LATIN CAPITAL LETTER S WITH DOT ABOVE */ | ||
| 841 | #define XK_ygrave 0x1001ef3 /* U+1EF3 LATIN SMALL LETTER Y WITH GRAVE */ | ||
| 842 | #define XK_Wdiaeresis 0x1001e84 /* U+1E84 LATIN CAPITAL LETTER W WITH DIAERESIS */ | ||
| 843 | #define XK_wdiaeresis 0x1001e85 /* U+1E85 LATIN SMALL LETTER W WITH DIAERESIS */ | ||
| 844 | #define XK_sabovedot 0x1001e61 /* U+1E61 LATIN SMALL LETTER S WITH DOT ABOVE */ | ||
| 845 | #define XK_Wcircumflex 0x1000174 /* U+0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX */ | ||
| 846 | #define XK_Tabovedot 0x1001e6a /* U+1E6A LATIN CAPITAL LETTER T WITH DOT ABOVE */ | ||
| 847 | #define XK_Ycircumflex 0x1000176 /* U+0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX */ | ||
| 848 | #define XK_wcircumflex 0x1000175 /* U+0175 LATIN SMALL LETTER W WITH CIRCUMFLEX */ | ||
| 849 | #define XK_tabovedot 0x1001e6b /* U+1E6B LATIN SMALL LETTER T WITH DOT ABOVE */ | ||
| 850 | #define XK_ycircumflex 0x1000177 /* U+0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX */ | ||
| 851 | #endif /* XK_LATIN8 */ | ||
| 852 | |||
| 853 | /* | ||
| 854 | * Latin 9 | ||
| 855 | * Byte 3 = 0x13 | ||
| 856 | */ | ||
| 857 | |||
| 858 | #ifdef XK_LATIN9 | ||
| 859 | #define XK_OE 0x13bc /* U+0152 LATIN CAPITAL LIGATURE OE */ | ||
| 860 | #define XK_oe 0x13bd /* U+0153 LATIN SMALL LIGATURE OE */ | ||
| 861 | #define XK_Ydiaeresis 0x13be /* U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS */ | ||
| 862 | #endif /* XK_LATIN9 */ | ||
| 863 | |||
| 864 | /* | ||
| 865 | * Katakana | ||
| 866 | * Byte 3 = 4 | ||
| 867 | */ | ||
| 868 | |||
| 869 | #ifdef XK_KATAKANA | ||
| 870 | #define XK_overline 0x047e /* U+203E OVERLINE */ | ||
| 871 | #define XK_kana_fullstop 0x04a1 /* U+3002 IDEOGRAPHIC FULL STOP */ | ||
| 872 | #define XK_kana_openingbracket 0x04a2 /* U+300C LEFT CORNER BRACKET */ | ||
| 873 | #define XK_kana_closingbracket 0x04a3 /* U+300D RIGHT CORNER BRACKET */ | ||
| 874 | #define XK_kana_comma 0x04a4 /* U+3001 IDEOGRAPHIC COMMA */ | ||
| 875 | #define XK_kana_conjunctive 0x04a5 /* U+30FB KATAKANA MIDDLE DOT */ | ||
| 876 | #define XK_kana_middledot 0x04a5 /* deprecated */ | ||
| 877 | #define XK_kana_WO 0x04a6 /* U+30F2 KATAKANA LETTER WO */ | ||
| 878 | #define XK_kana_a 0x04a7 /* U+30A1 KATAKANA LETTER SMALL A */ | ||
| 879 | #define XK_kana_i 0x04a8 /* U+30A3 KATAKANA LETTER SMALL I */ | ||
| 880 | #define XK_kana_u 0x04a9 /* U+30A5 KATAKANA LETTER SMALL U */ | ||
| 881 | #define XK_kana_e 0x04aa /* U+30A7 KATAKANA LETTER SMALL E */ | ||
| 882 | #define XK_kana_o 0x04ab /* U+30A9 KATAKANA LETTER SMALL O */ | ||
| 883 | #define XK_kana_ya 0x04ac /* U+30E3 KATAKANA LETTER SMALL YA */ | ||
| 884 | #define XK_kana_yu 0x04ad /* U+30E5 KATAKANA LETTER SMALL YU */ | ||
| 885 | #define XK_kana_yo 0x04ae /* U+30E7 KATAKANA LETTER SMALL YO */ | ||
| 886 | #define XK_kana_tsu 0x04af /* U+30C3 KATAKANA LETTER SMALL TU */ | ||
| 887 | #define XK_kana_tu 0x04af /* deprecated */ | ||
| 888 | #define XK_prolongedsound 0x04b0 /* U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK */ | ||
| 889 | #define XK_kana_A 0x04b1 /* U+30A2 KATAKANA LETTER A */ | ||
| 890 | #define XK_kana_I 0x04b2 /* U+30A4 KATAKANA LETTER I */ | ||
| 891 | #define XK_kana_U 0x04b3 /* U+30A6 KATAKANA LETTER U */ | ||
| 892 | #define XK_kana_E 0x04b4 /* U+30A8 KATAKANA LETTER E */ | ||
| 893 | #define XK_kana_O 0x04b5 /* U+30AA KATAKANA LETTER O */ | ||
| 894 | #define XK_kana_KA 0x04b6 /* U+30AB KATAKANA LETTER KA */ | ||
| 895 | #define XK_kana_KI 0x04b7 /* U+30AD KATAKANA LETTER KI */ | ||
| 896 | #define XK_kana_KU 0x04b8 /* U+30AF KATAKANA LETTER KU */ | ||
| 897 | #define XK_kana_KE 0x04b9 /* U+30B1 KATAKANA LETTER KE */ | ||
| 898 | #define XK_kana_KO 0x04ba /* U+30B3 KATAKANA LETTER KO */ | ||
| 899 | #define XK_kana_SA 0x04bb /* U+30B5 KATAKANA LETTER SA */ | ||
| 900 | #define XK_kana_SHI 0x04bc /* U+30B7 KATAKANA LETTER SI */ | ||
| 901 | #define XK_kana_SU 0x04bd /* U+30B9 KATAKANA LETTER SU */ | ||
| 902 | #define XK_kana_SE 0x04be /* U+30BB KATAKANA LETTER SE */ | ||
| 903 | #define XK_kana_SO 0x04bf /* U+30BD KATAKANA LETTER SO */ | ||
| 904 | #define XK_kana_TA 0x04c0 /* U+30BF KATAKANA LETTER TA */ | ||
| 905 | #define XK_kana_CHI 0x04c1 /* U+30C1 KATAKANA LETTER TI */ | ||
| 906 | #define XK_kana_TI 0x04c1 /* deprecated */ | ||
| 907 | #define XK_kana_TSU 0x04c2 /* U+30C4 KATAKANA LETTER TU */ | ||
| 908 | #define XK_kana_TU 0x04c2 /* deprecated */ | ||
| 909 | #define XK_kana_TE 0x04c3 /* U+30C6 KATAKANA LETTER TE */ | ||
| 910 | #define XK_kana_TO 0x04c4 /* U+30C8 KATAKANA LETTER TO */ | ||
| 911 | #define XK_kana_NA 0x04c5 /* U+30CA KATAKANA LETTER NA */ | ||
| 912 | #define XK_kana_NI 0x04c6 /* U+30CB KATAKANA LETTER NI */ | ||
| 913 | #define XK_kana_NU 0x04c7 /* U+30CC KATAKANA LETTER NU */ | ||
| 914 | #define XK_kana_NE 0x04c8 /* U+30CD KATAKANA LETTER NE */ | ||
| 915 | #define XK_kana_NO 0x04c9 /* U+30CE KATAKANA LETTER NO */ | ||
| 916 | #define XK_kana_HA 0x04ca /* U+30CF KATAKANA LETTER HA */ | ||
| 917 | #define XK_kana_HI 0x04cb /* U+30D2 KATAKANA LETTER HI */ | ||
| 918 | #define XK_kana_FU 0x04cc /* U+30D5 KATAKANA LETTER HU */ | ||
| 919 | #define XK_kana_HU 0x04cc /* deprecated */ | ||
| 920 | #define XK_kana_HE 0x04cd /* U+30D8 KATAKANA LETTER HE */ | ||
| 921 | #define XK_kana_HO 0x04ce /* U+30DB KATAKANA LETTER HO */ | ||
| 922 | #define XK_kana_MA 0x04cf /* U+30DE KATAKANA LETTER MA */ | ||
| 923 | #define XK_kana_MI 0x04d0 /* U+30DF KATAKANA LETTER MI */ | ||
| 924 | #define XK_kana_MU 0x04d1 /* U+30E0 KATAKANA LETTER MU */ | ||
| 925 | #define XK_kana_ME 0x04d2 /* U+30E1 KATAKANA LETTER ME */ | ||
| 926 | #define XK_kana_MO 0x04d3 /* U+30E2 KATAKANA LETTER MO */ | ||
| 927 | #define XK_kana_YA 0x04d4 /* U+30E4 KATAKANA LETTER YA */ | ||
| 928 | #define XK_kana_YU 0x04d5 /* U+30E6 KATAKANA LETTER YU */ | ||
| 929 | #define XK_kana_YO 0x04d6 /* U+30E8 KATAKANA LETTER YO */ | ||
| 930 | #define XK_kana_RA 0x04d7 /* U+30E9 KATAKANA LETTER RA */ | ||
| 931 | #define XK_kana_RI 0x04d8 /* U+30EA KATAKANA LETTER RI */ | ||
| 932 | #define XK_kana_RU 0x04d9 /* U+30EB KATAKANA LETTER RU */ | ||
| 933 | #define XK_kana_RE 0x04da /* U+30EC KATAKANA LETTER RE */ | ||
| 934 | #define XK_kana_RO 0x04db /* U+30ED KATAKANA LETTER RO */ | ||
| 935 | #define XK_kana_WA 0x04dc /* U+30EF KATAKANA LETTER WA */ | ||
| 936 | #define XK_kana_N 0x04dd /* U+30F3 KATAKANA LETTER N */ | ||
| 937 | #define XK_voicedsound 0x04de /* U+309B KATAKANA-HIRAGANA VOICED SOUND MARK */ | ||
| 938 | #define XK_semivoicedsound 0x04df /* U+309C KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK */ | ||
| 939 | #define XK_kana_switch 0xff7e /* Alias for mode_switch */ | ||
| 940 | #endif /* XK_KATAKANA */ | ||
| 941 | |||
| 942 | /* | ||
| 943 | * Arabic | ||
| 944 | * Byte 3 = 5 | ||
| 945 | */ | ||
| 946 | |||
| 947 | #ifdef XK_ARABIC | ||
| 948 | #define XK_Farsi_0 0x10006f0 /* U+06F0 EXTENDED ARABIC-INDIC DIGIT ZERO */ | ||
| 949 | #define XK_Farsi_1 0x10006f1 /* U+06F1 EXTENDED ARABIC-INDIC DIGIT ONE */ | ||
| 950 | #define XK_Farsi_2 0x10006f2 /* U+06F2 EXTENDED ARABIC-INDIC DIGIT TWO */ | ||
| 951 | #define XK_Farsi_3 0x10006f3 /* U+06F3 EXTENDED ARABIC-INDIC DIGIT THREE */ | ||
| 952 | #define XK_Farsi_4 0x10006f4 /* U+06F4 EXTENDED ARABIC-INDIC DIGIT FOUR */ | ||
| 953 | #define XK_Farsi_5 0x10006f5 /* U+06F5 EXTENDED ARABIC-INDIC DIGIT FIVE */ | ||
| 954 | #define XK_Farsi_6 0x10006f6 /* U+06F6 EXTENDED ARABIC-INDIC DIGIT SIX */ | ||
| 955 | #define XK_Farsi_7 0x10006f7 /* U+06F7 EXTENDED ARABIC-INDIC DIGIT SEVEN */ | ||
| 956 | #define XK_Farsi_8 0x10006f8 /* U+06F8 EXTENDED ARABIC-INDIC DIGIT EIGHT */ | ||
| 957 | #define XK_Farsi_9 0x10006f9 /* U+06F9 EXTENDED ARABIC-INDIC DIGIT NINE */ | ||
| 958 | #define XK_Arabic_percent 0x100066a /* U+066A ARABIC PERCENT SIGN */ | ||
| 959 | #define XK_Arabic_superscript_alef 0x1000670 /* U+0670 ARABIC LETTER SUPERSCRIPT ALEF */ | ||
| 960 | #define XK_Arabic_tteh 0x1000679 /* U+0679 ARABIC LETTER TTEH */ | ||
| 961 | #define XK_Arabic_peh 0x100067e /* U+067E ARABIC LETTER PEH */ | ||
| 962 | #define XK_Arabic_tcheh 0x1000686 /* U+0686 ARABIC LETTER TCHEH */ | ||
| 963 | #define XK_Arabic_ddal 0x1000688 /* U+0688 ARABIC LETTER DDAL */ | ||
| 964 | #define XK_Arabic_rreh 0x1000691 /* U+0691 ARABIC LETTER RREH */ | ||
| 965 | #define XK_Arabic_comma 0x05ac /* U+060C ARABIC COMMA */ | ||
| 966 | #define XK_Arabic_fullstop 0x10006d4 /* U+06D4 ARABIC FULL STOP */ | ||
| 967 | #define XK_Arabic_0 0x1000660 /* U+0660 ARABIC-INDIC DIGIT ZERO */ | ||
| 968 | #define XK_Arabic_1 0x1000661 /* U+0661 ARABIC-INDIC DIGIT ONE */ | ||
| 969 | #define XK_Arabic_2 0x1000662 /* U+0662 ARABIC-INDIC DIGIT TWO */ | ||
| 970 | #define XK_Arabic_3 0x1000663 /* U+0663 ARABIC-INDIC DIGIT THREE */ | ||
| 971 | #define XK_Arabic_4 0x1000664 /* U+0664 ARABIC-INDIC DIGIT FOUR */ | ||
| 972 | #define XK_Arabic_5 0x1000665 /* U+0665 ARABIC-INDIC DIGIT FIVE */ | ||
| 973 | #define XK_Arabic_6 0x1000666 /* U+0666 ARABIC-INDIC DIGIT SIX */ | ||
| 974 | #define XK_Arabic_7 0x1000667 /* U+0667 ARABIC-INDIC DIGIT SEVEN */ | ||
| 975 | #define XK_Arabic_8 0x1000668 /* U+0668 ARABIC-INDIC DIGIT EIGHT */ | ||
| 976 | #define XK_Arabic_9 0x1000669 /* U+0669 ARABIC-INDIC DIGIT NINE */ | ||
| 977 | #define XK_Arabic_semicolon 0x05bb /* U+061B ARABIC SEMICOLON */ | ||
| 978 | #define XK_Arabic_question_mark 0x05bf /* U+061F ARABIC QUESTION MARK */ | ||
| 979 | #define XK_Arabic_hamza 0x05c1 /* U+0621 ARABIC LETTER HAMZA */ | ||
| 980 | #define XK_Arabic_maddaonalef 0x05c2 /* U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE */ | ||
| 981 | #define XK_Arabic_hamzaonalef 0x05c3 /* U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE */ | ||
| 982 | #define XK_Arabic_hamzaonwaw 0x05c4 /* U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE */ | ||
| 983 | #define XK_Arabic_hamzaunderalef 0x05c5 /* U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW */ | ||
| 984 | #define XK_Arabic_hamzaonyeh 0x05c6 /* U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE */ | ||
| 985 | #define XK_Arabic_alef 0x05c7 /* U+0627 ARABIC LETTER ALEF */ | ||
| 986 | #define XK_Arabic_beh 0x05c8 /* U+0628 ARABIC LETTER BEH */ | ||
| 987 | #define XK_Arabic_tehmarbuta 0x05c9 /* U+0629 ARABIC LETTER TEH MARBUTA */ | ||
| 988 | #define XK_Arabic_teh 0x05ca /* U+062A ARABIC LETTER TEH */ | ||
| 989 | #define XK_Arabic_theh 0x05cb /* U+062B ARABIC LETTER THEH */ | ||
| 990 | #define XK_Arabic_jeem 0x05cc /* U+062C ARABIC LETTER JEEM */ | ||
| 991 | #define XK_Arabic_hah 0x05cd /* U+062D ARABIC LETTER HAH */ | ||
| 992 | #define XK_Arabic_khah 0x05ce /* U+062E ARABIC LETTER KHAH */ | ||
| 993 | #define XK_Arabic_dal 0x05cf /* U+062F ARABIC LETTER DAL */ | ||
| 994 | #define XK_Arabic_thal 0x05d0 /* U+0630 ARABIC LETTER THAL */ | ||
| 995 | #define XK_Arabic_ra 0x05d1 /* U+0631 ARABIC LETTER REH */ | ||
| 996 | #define XK_Arabic_zain 0x05d2 /* U+0632 ARABIC LETTER ZAIN */ | ||
| 997 | #define XK_Arabic_seen 0x05d3 /* U+0633 ARABIC LETTER SEEN */ | ||
| 998 | #define XK_Arabic_sheen 0x05d4 /* U+0634 ARABIC LETTER SHEEN */ | ||
| 999 | #define XK_Arabic_sad 0x05d5 /* U+0635 ARABIC LETTER SAD */ | ||
| 1000 | #define XK_Arabic_dad 0x05d6 /* U+0636 ARABIC LETTER DAD */ | ||
| 1001 | #define XK_Arabic_tah 0x05d7 /* U+0637 ARABIC LETTER TAH */ | ||
| 1002 | #define XK_Arabic_zah 0x05d8 /* U+0638 ARABIC LETTER ZAH */ | ||
| 1003 | #define XK_Arabic_ain 0x05d9 /* U+0639 ARABIC LETTER AIN */ | ||
| 1004 | #define XK_Arabic_ghain 0x05da /* U+063A ARABIC LETTER GHAIN */ | ||
| 1005 | #define XK_Arabic_tatweel 0x05e0 /* U+0640 ARABIC TATWEEL */ | ||
| 1006 | #define XK_Arabic_feh 0x05e1 /* U+0641 ARABIC LETTER FEH */ | ||
| 1007 | #define XK_Arabic_qaf 0x05e2 /* U+0642 ARABIC LETTER QAF */ | ||
| 1008 | #define XK_Arabic_kaf 0x05e3 /* U+0643 ARABIC LETTER KAF */ | ||
| 1009 | #define XK_Arabic_lam 0x05e4 /* U+0644 ARABIC LETTER LAM */ | ||
| 1010 | #define XK_Arabic_meem 0x05e5 /* U+0645 ARABIC LETTER MEEM */ | ||
| 1011 | #define XK_Arabic_noon 0x05e6 /* U+0646 ARABIC LETTER NOON */ | ||
| 1012 | #define XK_Arabic_ha 0x05e7 /* U+0647 ARABIC LETTER HEH */ | ||
| 1013 | #define XK_Arabic_heh 0x05e7 /* deprecated */ | ||
| 1014 | #define XK_Arabic_waw 0x05e8 /* U+0648 ARABIC LETTER WAW */ | ||
| 1015 | #define XK_Arabic_alefmaksura 0x05e9 /* U+0649 ARABIC LETTER ALEF MAKSURA */ | ||
| 1016 | #define XK_Arabic_yeh 0x05ea /* U+064A ARABIC LETTER YEH */ | ||
| 1017 | #define XK_Arabic_fathatan 0x05eb /* U+064B ARABIC FATHATAN */ | ||
| 1018 | #define XK_Arabic_dammatan 0x05ec /* U+064C ARABIC DAMMATAN */ | ||
| 1019 | #define XK_Arabic_kasratan 0x05ed /* U+064D ARABIC KASRATAN */ | ||
| 1020 | #define XK_Arabic_fatha 0x05ee /* U+064E ARABIC FATHA */ | ||
| 1021 | #define XK_Arabic_damma 0x05ef /* U+064F ARABIC DAMMA */ | ||
| 1022 | #define XK_Arabic_kasra 0x05f0 /* U+0650 ARABIC KASRA */ | ||
| 1023 | #define XK_Arabic_shadda 0x05f1 /* U+0651 ARABIC SHADDA */ | ||
| 1024 | #define XK_Arabic_sukun 0x05f2 /* U+0652 ARABIC SUKUN */ | ||
| 1025 | #define XK_Arabic_madda_above 0x1000653 /* U+0653 ARABIC MADDAH ABOVE */ | ||
| 1026 | #define XK_Arabic_hamza_above 0x1000654 /* U+0654 ARABIC HAMZA ABOVE */ | ||
| 1027 | #define XK_Arabic_hamza_below 0x1000655 /* U+0655 ARABIC HAMZA BELOW */ | ||
| 1028 | #define XK_Arabic_jeh 0x1000698 /* U+0698 ARABIC LETTER JEH */ | ||
| 1029 | #define XK_Arabic_veh 0x10006a4 /* U+06A4 ARABIC LETTER VEH */ | ||
| 1030 | #define XK_Arabic_keheh 0x10006a9 /* U+06A9 ARABIC LETTER KEHEH */ | ||
| 1031 | #define XK_Arabic_gaf 0x10006af /* U+06AF ARABIC LETTER GAF */ | ||
| 1032 | #define XK_Arabic_noon_ghunna 0x10006ba /* U+06BA ARABIC LETTER NOON GHUNNA */ | ||
| 1033 | #define XK_Arabic_heh_doachashmee 0x10006be /* U+06BE ARABIC LETTER HEH DOACHASHMEE */ | ||
| 1034 | #define XK_Farsi_yeh 0x10006cc /* U+06CC ARABIC LETTER FARSI YEH */ | ||
| 1035 | #define XK_Arabic_farsi_yeh 0x10006cc /* U+06CC ARABIC LETTER FARSI YEH */ | ||
| 1036 | #define XK_Arabic_yeh_baree 0x10006d2 /* U+06D2 ARABIC LETTER YEH BARREE */ | ||
| 1037 | #define XK_Arabic_heh_goal 0x10006c1 /* U+06C1 ARABIC LETTER HEH GOAL */ | ||
| 1038 | #define XK_Arabic_switch 0xff7e /* Alias for mode_switch */ | ||
| 1039 | #endif /* XK_ARABIC */ | ||
| 1040 | |||
| 1041 | /* | ||
| 1042 | * Cyrillic | ||
| 1043 | * Byte 3 = 6 | ||
| 1044 | */ | ||
| 1045 | #ifdef XK_CYRILLIC | ||
| 1046 | #define XK_Cyrillic_GHE_bar 0x1000492 /* U+0492 CYRILLIC CAPITAL LETTER GHE WITH STROKE */ | ||
| 1047 | #define XK_Cyrillic_ghe_bar 0x1000493 /* U+0493 CYRILLIC SMALL LETTER GHE WITH STROKE */ | ||
| 1048 | #define XK_Cyrillic_ZHE_descender 0x1000496 /* U+0496 CYRILLIC CAPITAL LETTER ZHE WITH DESCENDER */ | ||
| 1049 | #define XK_Cyrillic_zhe_descender 0x1000497 /* U+0497 CYRILLIC SMALL LETTER ZHE WITH DESCENDER */ | ||
| 1050 | #define XK_Cyrillic_KA_descender 0x100049a /* U+049A CYRILLIC CAPITAL LETTER KA WITH DESCENDER */ | ||
| 1051 | #define XK_Cyrillic_ka_descender 0x100049b /* U+049B CYRILLIC SMALL LETTER KA WITH DESCENDER */ | ||
| 1052 | #define XK_Cyrillic_KA_vertstroke 0x100049c /* U+049C CYRILLIC CAPITAL LETTER KA WITH VERTICAL STROKE */ | ||
| 1053 | #define XK_Cyrillic_ka_vertstroke 0x100049d /* U+049D CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE */ | ||
| 1054 | #define XK_Cyrillic_EN_descender 0x10004a2 /* U+04A2 CYRILLIC CAPITAL LETTER EN WITH DESCENDER */ | ||
| 1055 | #define XK_Cyrillic_en_descender 0x10004a3 /* U+04A3 CYRILLIC SMALL LETTER EN WITH DESCENDER */ | ||
| 1056 | #define XK_Cyrillic_U_straight 0x10004ae /* U+04AE CYRILLIC CAPITAL LETTER STRAIGHT U */ | ||
| 1057 | #define XK_Cyrillic_u_straight 0x10004af /* U+04AF CYRILLIC SMALL LETTER STRAIGHT U */ | ||
| 1058 | #define XK_Cyrillic_U_straight_bar 0x10004b0 /* U+04B0 CYRILLIC CAPITAL LETTER STRAIGHT U WITH STROKE */ | ||
| 1059 | #define XK_Cyrillic_u_straight_bar 0x10004b1 /* U+04B1 CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE */ | ||
| 1060 | #define XK_Cyrillic_HA_descender 0x10004b2 /* U+04B2 CYRILLIC CAPITAL LETTER HA WITH DESCENDER */ | ||
| 1061 | #define XK_Cyrillic_ha_descender 0x10004b3 /* U+04B3 CYRILLIC SMALL LETTER HA WITH DESCENDER */ | ||
| 1062 | #define XK_Cyrillic_CHE_descender 0x10004b6 /* U+04B6 CYRILLIC CAPITAL LETTER CHE WITH DESCENDER */ | ||
| 1063 | #define XK_Cyrillic_che_descender 0x10004b7 /* U+04B7 CYRILLIC SMALL LETTER CHE WITH DESCENDER */ | ||
| 1064 | #define XK_Cyrillic_CHE_vertstroke 0x10004b8 /* U+04B8 CYRILLIC CAPITAL LETTER CHE WITH VERTICAL STROKE */ | ||
| 1065 | #define XK_Cyrillic_che_vertstroke 0x10004b9 /* U+04B9 CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE */ | ||
| 1066 | #define XK_Cyrillic_SHHA 0x10004ba /* U+04BA CYRILLIC CAPITAL LETTER SHHA */ | ||
| 1067 | #define XK_Cyrillic_shha 0x10004bb /* U+04BB CYRILLIC SMALL LETTER SHHA */ | ||
| 1068 | |||
| 1069 | #define XK_Cyrillic_SCHWA 0x10004d8 /* U+04D8 CYRILLIC CAPITAL LETTER SCHWA */ | ||
| 1070 | #define XK_Cyrillic_schwa 0x10004d9 /* U+04D9 CYRILLIC SMALL LETTER SCHWA */ | ||
| 1071 | #define XK_Cyrillic_I_macron 0x10004e2 /* U+04E2 CYRILLIC CAPITAL LETTER I WITH MACRON */ | ||
| 1072 | #define XK_Cyrillic_i_macron 0x10004e3 /* U+04E3 CYRILLIC SMALL LETTER I WITH MACRON */ | ||
| 1073 | #define XK_Cyrillic_O_bar 0x10004e8 /* U+04E8 CYRILLIC CAPITAL LETTER BARRED O */ | ||
| 1074 | #define XK_Cyrillic_o_bar 0x10004e9 /* U+04E9 CYRILLIC SMALL LETTER BARRED O */ | ||
| 1075 | #define XK_Cyrillic_U_macron 0x10004ee /* U+04EE CYRILLIC CAPITAL LETTER U WITH MACRON */ | ||
| 1076 | #define XK_Cyrillic_u_macron 0x10004ef /* U+04EF CYRILLIC SMALL LETTER U WITH MACRON */ | ||
| 1077 | |||
| 1078 | #define XK_Serbian_dje 0x06a1 /* U+0452 CYRILLIC SMALL LETTER DJE */ | ||
| 1079 | #define XK_Macedonia_gje 0x06a2 /* U+0453 CYRILLIC SMALL LETTER GJE */ | ||
| 1080 | #define XK_Cyrillic_io 0x06a3 /* U+0451 CYRILLIC SMALL LETTER IO */ | ||
| 1081 | #define XK_Ukrainian_ie 0x06a4 /* U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE */ | ||
| 1082 | #define XK_Ukranian_je 0x06a4 /* deprecated */ | ||
| 1083 | #define XK_Macedonia_dse 0x06a5 /* U+0455 CYRILLIC SMALL LETTER DZE */ | ||
| 1084 | #define XK_Ukrainian_i 0x06a6 /* U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I */ | ||
| 1085 | #define XK_Ukranian_i 0x06a6 /* deprecated */ | ||
| 1086 | #define XK_Ukrainian_yi 0x06a7 /* U+0457 CYRILLIC SMALL LETTER YI */ | ||
| 1087 | #define XK_Ukranian_yi 0x06a7 /* deprecated */ | ||
| 1088 | #define XK_Cyrillic_je 0x06a8 /* U+0458 CYRILLIC SMALL LETTER JE */ | ||
| 1089 | #define XK_Serbian_je 0x06a8 /* deprecated */ | ||
| 1090 | #define XK_Cyrillic_lje 0x06a9 /* U+0459 CYRILLIC SMALL LETTER LJE */ | ||
| 1091 | #define XK_Serbian_lje 0x06a9 /* deprecated */ | ||
| 1092 | #define XK_Cyrillic_nje 0x06aa /* U+045A CYRILLIC SMALL LETTER NJE */ | ||
| 1093 | #define XK_Serbian_nje 0x06aa /* deprecated */ | ||
| 1094 | #define XK_Serbian_tshe 0x06ab /* U+045B CYRILLIC SMALL LETTER TSHE */ | ||
| 1095 | #define XK_Macedonia_kje 0x06ac /* U+045C CYRILLIC SMALL LETTER KJE */ | ||
| 1096 | #define XK_Ukrainian_ghe_with_upturn 0x06ad /* U+0491 CYRILLIC SMALL LETTER GHE WITH UPTURN */ | ||
| 1097 | #define XK_Byelorussian_shortu 0x06ae /* U+045E CYRILLIC SMALL LETTER SHORT U */ | ||
| 1098 | #define XK_Cyrillic_dzhe 0x06af /* U+045F CYRILLIC SMALL LETTER DZHE */ | ||
| 1099 | #define XK_Serbian_dze 0x06af /* deprecated */ | ||
| 1100 | #define XK_numerosign 0x06b0 /* U+2116 NUMERO SIGN */ | ||
| 1101 | #define XK_Serbian_DJE 0x06b1 /* U+0402 CYRILLIC CAPITAL LETTER DJE */ | ||
| 1102 | #define XK_Macedonia_GJE 0x06b2 /* U+0403 CYRILLIC CAPITAL LETTER GJE */ | ||
| 1103 | #define XK_Cyrillic_IO 0x06b3 /* U+0401 CYRILLIC CAPITAL LETTER IO */ | ||
| 1104 | #define XK_Ukrainian_IE 0x06b4 /* U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE */ | ||
| 1105 | #define XK_Ukranian_JE 0x06b4 /* deprecated */ | ||
| 1106 | #define XK_Macedonia_DSE 0x06b5 /* U+0405 CYRILLIC CAPITAL LETTER DZE */ | ||
| 1107 | #define XK_Ukrainian_I 0x06b6 /* U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I */ | ||
| 1108 | #define XK_Ukranian_I 0x06b6 /* deprecated */ | ||
| 1109 | #define XK_Ukrainian_YI 0x06b7 /* U+0407 CYRILLIC CAPITAL LETTER YI */ | ||
| 1110 | #define XK_Ukranian_YI 0x06b7 /* deprecated */ | ||
| 1111 | #define XK_Cyrillic_JE 0x06b8 /* U+0408 CYRILLIC CAPITAL LETTER JE */ | ||
| 1112 | #define XK_Serbian_JE 0x06b8 /* deprecated */ | ||
| 1113 | #define XK_Cyrillic_LJE 0x06b9 /* U+0409 CYRILLIC CAPITAL LETTER LJE */ | ||
| 1114 | #define XK_Serbian_LJE 0x06b9 /* deprecated */ | ||
| 1115 | #define XK_Cyrillic_NJE 0x06ba /* U+040A CYRILLIC CAPITAL LETTER NJE */ | ||
| 1116 | #define XK_Serbian_NJE 0x06ba /* deprecated */ | ||
| 1117 | #define XK_Serbian_TSHE 0x06bb /* U+040B CYRILLIC CAPITAL LETTER TSHE */ | ||
| 1118 | #define XK_Macedonia_KJE 0x06bc /* U+040C CYRILLIC CAPITAL LETTER KJE */ | ||
| 1119 | #define XK_Ukrainian_GHE_WITH_UPTURN 0x06bd /* U+0490 CYRILLIC CAPITAL LETTER GHE WITH UPTURN */ | ||
| 1120 | #define XK_Byelorussian_SHORTU 0x06be /* U+040E CYRILLIC CAPITAL LETTER SHORT U */ | ||
| 1121 | #define XK_Cyrillic_DZHE 0x06bf /* U+040F CYRILLIC CAPITAL LETTER DZHE */ | ||
| 1122 | #define XK_Serbian_DZE 0x06bf /* deprecated */ | ||
| 1123 | #define XK_Cyrillic_yu 0x06c0 /* U+044E CYRILLIC SMALL LETTER YU */ | ||
| 1124 | #define XK_Cyrillic_a 0x06c1 /* U+0430 CYRILLIC SMALL LETTER A */ | ||
| 1125 | #define XK_Cyrillic_be 0x06c2 /* U+0431 CYRILLIC SMALL LETTER BE */ | ||
| 1126 | #define XK_Cyrillic_tse 0x06c3 /* U+0446 CYRILLIC SMALL LETTER TSE */ | ||
| 1127 | #define XK_Cyrillic_de 0x06c4 /* U+0434 CYRILLIC SMALL LETTER DE */ | ||
| 1128 | #define XK_Cyrillic_ie 0x06c5 /* U+0435 CYRILLIC SMALL LETTER IE */ | ||
| 1129 | #define XK_Cyrillic_ef 0x06c6 /* U+0444 CYRILLIC SMALL LETTER EF */ | ||
| 1130 | #define XK_Cyrillic_ghe 0x06c7 /* U+0433 CYRILLIC SMALL LETTER GHE */ | ||
| 1131 | #define XK_Cyrillic_ha 0x06c8 /* U+0445 CYRILLIC SMALL LETTER HA */ | ||
| 1132 | #define XK_Cyrillic_i 0x06c9 /* U+0438 CYRILLIC SMALL LETTER I */ | ||
| 1133 | #define XK_Cyrillic_shorti 0x06ca /* U+0439 CYRILLIC SMALL LETTER SHORT I */ | ||
| 1134 | #define XK_Cyrillic_ka 0x06cb /* U+043A CYRILLIC SMALL LETTER KA */ | ||
| 1135 | #define XK_Cyrillic_el 0x06cc /* U+043B CYRILLIC SMALL LETTER EL */ | ||
| 1136 | #define XK_Cyrillic_em 0x06cd /* U+043C CYRILLIC SMALL LETTER EM */ | ||
| 1137 | #define XK_Cyrillic_en 0x06ce /* U+043D CYRILLIC SMALL LETTER EN */ | ||
| 1138 | #define XK_Cyrillic_o 0x06cf /* U+043E CYRILLIC SMALL LETTER O */ | ||
| 1139 | #define XK_Cyrillic_pe 0x06d0 /* U+043F CYRILLIC SMALL LETTER PE */ | ||
| 1140 | #define XK_Cyrillic_ya 0x06d1 /* U+044F CYRILLIC SMALL LETTER YA */ | ||
| 1141 | #define XK_Cyrillic_er 0x06d2 /* U+0440 CYRILLIC SMALL LETTER ER */ | ||
| 1142 | #define XK_Cyrillic_es 0x06d3 /* U+0441 CYRILLIC SMALL LETTER ES */ | ||
| 1143 | #define XK_Cyrillic_te 0x06d4 /* U+0442 CYRILLIC SMALL LETTER TE */ | ||
| 1144 | #define XK_Cyrillic_u 0x06d5 /* U+0443 CYRILLIC SMALL LETTER U */ | ||
| 1145 | #define XK_Cyrillic_zhe 0x06d6 /* U+0436 CYRILLIC SMALL LETTER ZHE */ | ||
| 1146 | #define XK_Cyrillic_ve 0x06d7 /* U+0432 CYRILLIC SMALL LETTER VE */ | ||
| 1147 | #define XK_Cyrillic_softsign 0x06d8 /* U+044C CYRILLIC SMALL LETTER SOFT SIGN */ | ||
| 1148 | #define XK_Cyrillic_yeru 0x06d9 /* U+044B CYRILLIC SMALL LETTER YERU */ | ||
| 1149 | #define XK_Cyrillic_ze 0x06da /* U+0437 CYRILLIC SMALL LETTER ZE */ | ||
| 1150 | #define XK_Cyrillic_sha 0x06db /* U+0448 CYRILLIC SMALL LETTER SHA */ | ||
| 1151 | #define XK_Cyrillic_e 0x06dc /* U+044D CYRILLIC SMALL LETTER E */ | ||
| 1152 | #define XK_Cyrillic_shcha 0x06dd /* U+0449 CYRILLIC SMALL LETTER SHCHA */ | ||
| 1153 | #define XK_Cyrillic_che 0x06de /* U+0447 CYRILLIC SMALL LETTER CHE */ | ||
| 1154 | #define XK_Cyrillic_hardsign 0x06df /* U+044A CYRILLIC SMALL LETTER HARD SIGN */ | ||
| 1155 | #define XK_Cyrillic_YU 0x06e0 /* U+042E CYRILLIC CAPITAL LETTER YU */ | ||
| 1156 | #define XK_Cyrillic_A 0x06e1 /* U+0410 CYRILLIC CAPITAL LETTER A */ | ||
| 1157 | #define XK_Cyrillic_BE 0x06e2 /* U+0411 CYRILLIC CAPITAL LETTER BE */ | ||
| 1158 | #define XK_Cyrillic_TSE 0x06e3 /* U+0426 CYRILLIC CAPITAL LETTER TSE */ | ||
| 1159 | #define XK_Cyrillic_DE 0x06e4 /* U+0414 CYRILLIC CAPITAL LETTER DE */ | ||
| 1160 | #define XK_Cyrillic_IE 0x06e5 /* U+0415 CYRILLIC CAPITAL LETTER IE */ | ||
| 1161 | #define XK_Cyrillic_EF 0x06e6 /* U+0424 CYRILLIC CAPITAL LETTER EF */ | ||
| 1162 | #define XK_Cyrillic_GHE 0x06e7 /* U+0413 CYRILLIC CAPITAL LETTER GHE */ | ||
| 1163 | #define XK_Cyrillic_HA 0x06e8 /* U+0425 CYRILLIC CAPITAL LETTER HA */ | ||
| 1164 | #define XK_Cyrillic_I 0x06e9 /* U+0418 CYRILLIC CAPITAL LETTER I */ | ||
| 1165 | #define XK_Cyrillic_SHORTI 0x06ea /* U+0419 CYRILLIC CAPITAL LETTER SHORT I */ | ||
| 1166 | #define XK_Cyrillic_KA 0x06eb /* U+041A CYRILLIC CAPITAL LETTER KA */ | ||
| 1167 | #define XK_Cyrillic_EL 0x06ec /* U+041B CYRILLIC CAPITAL LETTER EL */ | ||
| 1168 | #define XK_Cyrillic_EM 0x06ed /* U+041C CYRILLIC CAPITAL LETTER EM */ | ||
| 1169 | #define XK_Cyrillic_EN 0x06ee /* U+041D CYRILLIC CAPITAL LETTER EN */ | ||
| 1170 | #define XK_Cyrillic_O 0x06ef /* U+041E CYRILLIC CAPITAL LETTER O */ | ||
| 1171 | #define XK_Cyrillic_PE 0x06f0 /* U+041F CYRILLIC CAPITAL LETTER PE */ | ||
| 1172 | #define XK_Cyrillic_YA 0x06f1 /* U+042F CYRILLIC CAPITAL LETTER YA */ | ||
| 1173 | #define XK_Cyrillic_ER 0x06f2 /* U+0420 CYRILLIC CAPITAL LETTER ER */ | ||
| 1174 | #define XK_Cyrillic_ES 0x06f3 /* U+0421 CYRILLIC CAPITAL LETTER ES */ | ||
| 1175 | #define XK_Cyrillic_TE 0x06f4 /* U+0422 CYRILLIC CAPITAL LETTER TE */ | ||
| 1176 | #define XK_Cyrillic_U 0x06f5 /* U+0423 CYRILLIC CAPITAL LETTER U */ | ||
| 1177 | #define XK_Cyrillic_ZHE 0x06f6 /* U+0416 CYRILLIC CAPITAL LETTER ZHE */ | ||
| 1178 | #define XK_Cyrillic_VE 0x06f7 /* U+0412 CYRILLIC CAPITAL LETTER VE */ | ||
| 1179 | #define XK_Cyrillic_SOFTSIGN 0x06f8 /* U+042C CYRILLIC CAPITAL LETTER SOFT SIGN */ | ||
| 1180 | #define XK_Cyrillic_YERU 0x06f9 /* U+042B CYRILLIC CAPITAL LETTER YERU */ | ||
| 1181 | #define XK_Cyrillic_ZE 0x06fa /* U+0417 CYRILLIC CAPITAL LETTER ZE */ | ||
| 1182 | #define XK_Cyrillic_SHA 0x06fb /* U+0428 CYRILLIC CAPITAL LETTER SHA */ | ||
| 1183 | #define XK_Cyrillic_E 0x06fc /* U+042D CYRILLIC CAPITAL LETTER E */ | ||
| 1184 | #define XK_Cyrillic_SHCHA 0x06fd /* U+0429 CYRILLIC CAPITAL LETTER SHCHA */ | ||
| 1185 | #define XK_Cyrillic_CHE 0x06fe /* U+0427 CYRILLIC CAPITAL LETTER CHE */ | ||
| 1186 | #define XK_Cyrillic_HARDSIGN 0x06ff /* U+042A CYRILLIC CAPITAL LETTER HARD SIGN */ | ||
| 1187 | #endif /* XK_CYRILLIC */ | ||
| 1188 | |||
| 1189 | /* | ||
| 1190 | * Greek | ||
| 1191 | * (based on an early draft of, and not quite identical to, ISO/IEC 8859-7) | ||
| 1192 | * Byte 3 = 7 | ||
| 1193 | */ | ||
| 1194 | |||
| 1195 | #ifdef XK_GREEK | ||
| 1196 | #define XK_Greek_ALPHAaccent 0x07a1 /* U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS */ | ||
| 1197 | #define XK_Greek_EPSILONaccent 0x07a2 /* U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS */ | ||
| 1198 | #define XK_Greek_ETAaccent 0x07a3 /* U+0389 GREEK CAPITAL LETTER ETA WITH TONOS */ | ||
| 1199 | #define XK_Greek_IOTAaccent 0x07a4 /* U+038A GREEK CAPITAL LETTER IOTA WITH TONOS */ | ||
| 1200 | #define XK_Greek_IOTAdieresis 0x07a5 /* U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA */ | ||
| 1201 | #define XK_Greek_IOTAdiaeresis 0x07a5 /* old typo */ | ||
| 1202 | #define XK_Greek_OMICRONaccent 0x07a7 /* U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS */ | ||
| 1203 | #define XK_Greek_UPSILONaccent 0x07a8 /* U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS */ | ||
| 1204 | #define XK_Greek_UPSILONdieresis 0x07a9 /* U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA */ | ||
| 1205 | #define XK_Greek_OMEGAaccent 0x07ab /* U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS */ | ||
| 1206 | #define XK_Greek_accentdieresis 0x07ae /* U+0385 GREEK DIALYTIKA TONOS */ | ||
| 1207 | #define XK_Greek_horizbar 0x07af /* U+2015 HORIZONTAL BAR */ | ||
| 1208 | #define XK_Greek_alphaaccent 0x07b1 /* U+03AC GREEK SMALL LETTER ALPHA WITH TONOS */ | ||
| 1209 | #define XK_Greek_epsilonaccent 0x07b2 /* U+03AD GREEK SMALL LETTER EPSILON WITH TONOS */ | ||
| 1210 | #define XK_Greek_etaaccent 0x07b3 /* U+03AE GREEK SMALL LETTER ETA WITH TONOS */ | ||
| 1211 | #define XK_Greek_iotaaccent 0x07b4 /* U+03AF GREEK SMALL LETTER IOTA WITH TONOS */ | ||
| 1212 | #define XK_Greek_iotadieresis 0x07b5 /* U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA */ | ||
| 1213 | #define XK_Greek_iotaaccentdieresis 0x07b6 /* U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS */ | ||
| 1214 | #define XK_Greek_omicronaccent 0x07b7 /* U+03CC GREEK SMALL LETTER OMICRON WITH TONOS */ | ||
| 1215 | #define XK_Greek_upsilonaccent 0x07b8 /* U+03CD GREEK SMALL LETTER UPSILON WITH TONOS */ | ||
| 1216 | #define XK_Greek_upsilondieresis 0x07b9 /* U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA */ | ||
| 1217 | #define XK_Greek_upsilonaccentdieresis 0x07ba /* U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS */ | ||
| 1218 | #define XK_Greek_omegaaccent 0x07bb /* U+03CE GREEK SMALL LETTER OMEGA WITH TONOS */ | ||
| 1219 | #define XK_Greek_ALPHA 0x07c1 /* U+0391 GREEK CAPITAL LETTER ALPHA */ | ||
| 1220 | #define XK_Greek_BETA 0x07c2 /* U+0392 GREEK CAPITAL LETTER BETA */ | ||
| 1221 | #define XK_Greek_GAMMA 0x07c3 /* U+0393 GREEK CAPITAL LETTER GAMMA */ | ||
| 1222 | #define XK_Greek_DELTA 0x07c4 /* U+0394 GREEK CAPITAL LETTER DELTA */ | ||
| 1223 | #define XK_Greek_EPSILON 0x07c5 /* U+0395 GREEK CAPITAL LETTER EPSILON */ | ||
| 1224 | #define XK_Greek_ZETA 0x07c6 /* U+0396 GREEK CAPITAL LETTER ZETA */ | ||
| 1225 | #define XK_Greek_ETA 0x07c7 /* U+0397 GREEK CAPITAL LETTER ETA */ | ||
| 1226 | #define XK_Greek_THETA 0x07c8 /* U+0398 GREEK CAPITAL LETTER THETA */ | ||
| 1227 | #define XK_Greek_IOTA 0x07c9 /* U+0399 GREEK CAPITAL LETTER IOTA */ | ||
| 1228 | #define XK_Greek_KAPPA 0x07ca /* U+039A GREEK CAPITAL LETTER KAPPA */ | ||
| 1229 | #define XK_Greek_LAMDA 0x07cb /* U+039B GREEK CAPITAL LETTER LAMDA */ | ||
| 1230 | #define XK_Greek_LAMBDA 0x07cb /* U+039B GREEK CAPITAL LETTER LAMDA */ | ||
| 1231 | #define XK_Greek_MU 0x07cc /* U+039C GREEK CAPITAL LETTER MU */ | ||
| 1232 | #define XK_Greek_NU 0x07cd /* U+039D GREEK CAPITAL LETTER NU */ | ||
| 1233 | #define XK_Greek_XI 0x07ce /* U+039E GREEK CAPITAL LETTER XI */ | ||
| 1234 | #define XK_Greek_OMICRON 0x07cf /* U+039F GREEK CAPITAL LETTER OMICRON */ | ||
| 1235 | #define XK_Greek_PI 0x07d0 /* U+03A0 GREEK CAPITAL LETTER PI */ | ||
| 1236 | #define XK_Greek_RHO 0x07d1 /* U+03A1 GREEK CAPITAL LETTER RHO */ | ||
| 1237 | #define XK_Greek_SIGMA 0x07d2 /* U+03A3 GREEK CAPITAL LETTER SIGMA */ | ||
| 1238 | #define XK_Greek_TAU 0x07d4 /* U+03A4 GREEK CAPITAL LETTER TAU */ | ||
| 1239 | #define XK_Greek_UPSILON 0x07d5 /* U+03A5 GREEK CAPITAL LETTER UPSILON */ | ||
| 1240 | #define XK_Greek_PHI 0x07d6 /* U+03A6 GREEK CAPITAL LETTER PHI */ | ||
| 1241 | #define XK_Greek_CHI 0x07d7 /* U+03A7 GREEK CAPITAL LETTER CHI */ | ||
| 1242 | #define XK_Greek_PSI 0x07d8 /* U+03A8 GREEK CAPITAL LETTER PSI */ | ||
| 1243 | #define XK_Greek_OMEGA 0x07d9 /* U+03A9 GREEK CAPITAL LETTER OMEGA */ | ||
| 1244 | #define XK_Greek_alpha 0x07e1 /* U+03B1 GREEK SMALL LETTER ALPHA */ | ||
| 1245 | #define XK_Greek_beta 0x07e2 /* U+03B2 GREEK SMALL LETTER BETA */ | ||
| 1246 | #define XK_Greek_gamma 0x07e3 /* U+03B3 GREEK SMALL LETTER GAMMA */ | ||
| 1247 | #define XK_Greek_delta 0x07e4 /* U+03B4 GREEK SMALL LETTER DELTA */ | ||
| 1248 | #define XK_Greek_epsilon 0x07e5 /* U+03B5 GREEK SMALL LETTER EPSILON */ | ||
| 1249 | #define XK_Greek_zeta 0x07e6 /* U+03B6 GREEK SMALL LETTER ZETA */ | ||
| 1250 | #define XK_Greek_eta 0x07e7 /* U+03B7 GREEK SMALL LETTER ETA */ | ||
| 1251 | #define XK_Greek_theta 0x07e8 /* U+03B8 GREEK SMALL LETTER THETA */ | ||
| 1252 | #define XK_Greek_iota 0x07e9 /* U+03B9 GREEK SMALL LETTER IOTA */ | ||
| 1253 | #define XK_Greek_kappa 0x07ea /* U+03BA GREEK SMALL LETTER KAPPA */ | ||
| 1254 | #define XK_Greek_lamda 0x07eb /* U+03BB GREEK SMALL LETTER LAMDA */ | ||
| 1255 | #define XK_Greek_lambda 0x07eb /* U+03BB GREEK SMALL LETTER LAMDA */ | ||
| 1256 | #define XK_Greek_mu 0x07ec /* U+03BC GREEK SMALL LETTER MU */ | ||
| 1257 | #define XK_Greek_nu 0x07ed /* U+03BD GREEK SMALL LETTER NU */ | ||
| 1258 | #define XK_Greek_xi 0x07ee /* U+03BE GREEK SMALL LETTER XI */ | ||
| 1259 | #define XK_Greek_omicron 0x07ef /* U+03BF GREEK SMALL LETTER OMICRON */ | ||
| 1260 | #define XK_Greek_pi 0x07f0 /* U+03C0 GREEK SMALL LETTER PI */ | ||
| 1261 | #define XK_Greek_rho 0x07f1 /* U+03C1 GREEK SMALL LETTER RHO */ | ||
| 1262 | #define XK_Greek_sigma 0x07f2 /* U+03C3 GREEK SMALL LETTER SIGMA */ | ||
| 1263 | #define XK_Greek_finalsmallsigma 0x07f3 /* U+03C2 GREEK SMALL LETTER FINAL SIGMA */ | ||
| 1264 | #define XK_Greek_tau 0x07f4 /* U+03C4 GREEK SMALL LETTER TAU */ | ||
| 1265 | #define XK_Greek_upsilon 0x07f5 /* U+03C5 GREEK SMALL LETTER UPSILON */ | ||
| 1266 | #define XK_Greek_phi 0x07f6 /* U+03C6 GREEK SMALL LETTER PHI */ | ||
| 1267 | #define XK_Greek_chi 0x07f7 /* U+03C7 GREEK SMALL LETTER CHI */ | ||
| 1268 | #define XK_Greek_psi 0x07f8 /* U+03C8 GREEK SMALL LETTER PSI */ | ||
| 1269 | #define XK_Greek_omega 0x07f9 /* U+03C9 GREEK SMALL LETTER OMEGA */ | ||
| 1270 | #define XK_Greek_switch 0xff7e /* Alias for mode_switch */ | ||
| 1271 | #endif /* XK_GREEK */ | ||
| 1272 | |||
| 1273 | /* | ||
| 1274 | * Technical | ||
| 1275 | * (from the DEC VT330/VT420 Technical Character Set, http://vt100.net/charsets/technical.html) | ||
| 1276 | * Byte 3 = 8 | ||
| 1277 | */ | ||
| 1278 | |||
| 1279 | #ifdef XK_TECHNICAL | ||
| 1280 | #define XK_leftradical 0x08a1 /* U+23B7 RADICAL SYMBOL BOTTOM */ | ||
| 1281 | #define XK_topleftradical 0x08a2 /*(U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT)*/ | ||
| 1282 | #define XK_horizconnector 0x08a3 /*(U+2500 BOX DRAWINGS LIGHT HORIZONTAL)*/ | ||
| 1283 | #define XK_topintegral 0x08a4 /* U+2320 TOP HALF INTEGRAL */ | ||
| 1284 | #define XK_botintegral 0x08a5 /* U+2321 BOTTOM HALF INTEGRAL */ | ||
| 1285 | #define XK_vertconnector 0x08a6 /*(U+2502 BOX DRAWINGS LIGHT VERTICAL)*/ | ||
| 1286 | #define XK_topleftsqbracket 0x08a7 /* U+23A1 LEFT SQUARE BRACKET UPPER CORNER */ | ||
| 1287 | #define XK_botleftsqbracket 0x08a8 /* U+23A3 LEFT SQUARE BRACKET LOWER CORNER */ | ||
| 1288 | #define XK_toprightsqbracket 0x08a9 /* U+23A4 RIGHT SQUARE BRACKET UPPER CORNER */ | ||
| 1289 | #define XK_botrightsqbracket 0x08aa /* U+23A6 RIGHT SQUARE BRACKET LOWER CORNER */ | ||
| 1290 | #define XK_topleftparens 0x08ab /* U+239B LEFT PARENTHESIS UPPER HOOK */ | ||
| 1291 | #define XK_botleftparens 0x08ac /* U+239D LEFT PARENTHESIS LOWER HOOK */ | ||
| 1292 | #define XK_toprightparens 0x08ad /* U+239E RIGHT PARENTHESIS UPPER HOOK */ | ||
| 1293 | #define XK_botrightparens 0x08ae /* U+23A0 RIGHT PARENTHESIS LOWER HOOK */ | ||
| 1294 | #define XK_leftmiddlecurlybrace 0x08af /* U+23A8 LEFT CURLY BRACKET MIDDLE PIECE */ | ||
| 1295 | #define XK_rightmiddlecurlybrace 0x08b0 /* U+23AC RIGHT CURLY BRACKET MIDDLE PIECE */ | ||
| 1296 | #define XK_topleftsummation 0x08b1 | ||
| 1297 | #define XK_botleftsummation 0x08b2 | ||
| 1298 | #define XK_topvertsummationconnector 0x08b3 | ||
| 1299 | #define XK_botvertsummationconnector 0x08b4 | ||
| 1300 | #define XK_toprightsummation 0x08b5 | ||
| 1301 | #define XK_botrightsummation 0x08b6 | ||
| 1302 | #define XK_rightmiddlesummation 0x08b7 | ||
| 1303 | #define XK_lessthanequal 0x08bc /* U+2264 LESS-THAN OR EQUAL TO */ | ||
| 1304 | #define XK_notequal 0x08bd /* U+2260 NOT EQUAL TO */ | ||
| 1305 | #define XK_greaterthanequal 0x08be /* U+2265 GREATER-THAN OR EQUAL TO */ | ||
| 1306 | #define XK_integral 0x08bf /* U+222B INTEGRAL */ | ||
| 1307 | #define XK_therefore 0x08c0 /* U+2234 THEREFORE */ | ||
| 1308 | #define XK_variation 0x08c1 /* U+221D PROPORTIONAL TO */ | ||
| 1309 | #define XK_infinity 0x08c2 /* U+221E INFINITY */ | ||
| 1310 | #define XK_nabla 0x08c5 /* U+2207 NABLA */ | ||
| 1311 | #define XK_approximate 0x08c8 /* U+223C TILDE OPERATOR */ | ||
| 1312 | #define XK_similarequal 0x08c9 /* U+2243 ASYMPTOTICALLY EQUAL TO */ | ||
| 1313 | #define XK_ifonlyif 0x08cd /* U+21D4 LEFT RIGHT DOUBLE ARROW */ | ||
| 1314 | #define XK_implies 0x08ce /* U+21D2 RIGHTWARDS DOUBLE ARROW */ | ||
| 1315 | #define XK_identical 0x08cf /* U+2261 IDENTICAL TO */ | ||
| 1316 | #define XK_radical 0x08d6 /* U+221A SQUARE ROOT */ | ||
| 1317 | #define XK_includedin 0x08da /* U+2282 SUBSET OF */ | ||
| 1318 | #define XK_includes 0x08db /* U+2283 SUPERSET OF */ | ||
| 1319 | #define XK_intersection 0x08dc /* U+2229 INTERSECTION */ | ||
| 1320 | #define XK_union 0x08dd /* U+222A UNION */ | ||
| 1321 | #define XK_logicaland 0x08de /* U+2227 LOGICAL AND */ | ||
| 1322 | #define XK_logicalor 0x08df /* U+2228 LOGICAL OR */ | ||
| 1323 | #define XK_partialderivative 0x08ef /* U+2202 PARTIAL DIFFERENTIAL */ | ||
| 1324 | #define XK_function 0x08f6 /* U+0192 LATIN SMALL LETTER F WITH HOOK */ | ||
| 1325 | #define XK_leftarrow 0x08fb /* U+2190 LEFTWARDS ARROW */ | ||
| 1326 | #define XK_uparrow 0x08fc /* U+2191 UPWARDS ARROW */ | ||
| 1327 | #define XK_rightarrow 0x08fd /* U+2192 RIGHTWARDS ARROW */ | ||
| 1328 | #define XK_downarrow 0x08fe /* U+2193 DOWNWARDS ARROW */ | ||
| 1329 | #endif /* XK_TECHNICAL */ | ||
| 1330 | |||
| 1331 | /* | ||
| 1332 | * Special | ||
| 1333 | * (from the DEC VT100 Special Graphics Character Set) | ||
| 1334 | * Byte 3 = 9 | ||
| 1335 | */ | ||
| 1336 | |||
| 1337 | #ifdef XK_SPECIAL | ||
| 1338 | #define XK_blank 0x09df | ||
| 1339 | #define XK_soliddiamond 0x09e0 /* U+25C6 BLACK DIAMOND */ | ||
| 1340 | #define XK_checkerboard 0x09e1 /* U+2592 MEDIUM SHADE */ | ||
| 1341 | #define XK_ht 0x09e2 /* U+2409 SYMBOL FOR HORIZONTAL TABULATION */ | ||
| 1342 | #define XK_ff 0x09e3 /* U+240C SYMBOL FOR FORM FEED */ | ||
| 1343 | #define XK_cr 0x09e4 /* U+240D SYMBOL FOR CARRIAGE RETURN */ | ||
| 1344 | #define XK_lf 0x09e5 /* U+240A SYMBOL FOR LINE FEED */ | ||
| 1345 | #define XK_nl 0x09e8 /* U+2424 SYMBOL FOR NEWLINE */ | ||
| 1346 | #define XK_vt 0x09e9 /* U+240B SYMBOL FOR VERTICAL TABULATION */ | ||
| 1347 | #define XK_lowrightcorner 0x09ea /* U+2518 BOX DRAWINGS LIGHT UP AND LEFT */ | ||
| 1348 | #define XK_uprightcorner 0x09eb /* U+2510 BOX DRAWINGS LIGHT DOWN AND LEFT */ | ||
| 1349 | #define XK_upleftcorner 0x09ec /* U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT */ | ||
| 1350 | #define XK_lowleftcorner 0x09ed /* U+2514 BOX DRAWINGS LIGHT UP AND RIGHT */ | ||
| 1351 | #define XK_crossinglines 0x09ee /* U+253C BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL */ | ||
| 1352 | #define XK_horizlinescan1 0x09ef /* U+23BA HORIZONTAL SCAN LINE-1 */ | ||
| 1353 | #define XK_horizlinescan3 0x09f0 /* U+23BB HORIZONTAL SCAN LINE-3 */ | ||
| 1354 | #define XK_horizlinescan5 0x09f1 /* U+2500 BOX DRAWINGS LIGHT HORIZONTAL */ | ||
| 1355 | #define XK_horizlinescan7 0x09f2 /* U+23BC HORIZONTAL SCAN LINE-7 */ | ||
| 1356 | #define XK_horizlinescan9 0x09f3 /* U+23BD HORIZONTAL SCAN LINE-9 */ | ||
| 1357 | #define XK_leftt 0x09f4 /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */ | ||
| 1358 | #define XK_rightt 0x09f5 /* U+2524 BOX DRAWINGS LIGHT VERTICAL AND LEFT */ | ||
| 1359 | #define XK_bott 0x09f6 /* U+2534 BOX DRAWINGS LIGHT UP AND HORIZONTAL */ | ||
| 1360 | #define XK_topt 0x09f7 /* U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL */ | ||
| 1361 | #define XK_vertbar 0x09f8 /* U+2502 BOX DRAWINGS LIGHT VERTICAL */ | ||
| 1362 | #endif /* XK_SPECIAL */ | ||
| 1363 | |||
| 1364 | /* | ||
| 1365 | * Publishing | ||
| 1366 | * (these are probably from a long forgotten DEC Publishing | ||
| 1367 | * font that once shipped with DECwrite) | ||
| 1368 | * Byte 3 = 0x0a | ||
| 1369 | */ | ||
| 1370 | |||
| 1371 | #ifdef XK_PUBLISHING | ||
| 1372 | #define XK_emspace 0x0aa1 /* U+2003 EM SPACE */ | ||
| 1373 | #define XK_enspace 0x0aa2 /* U+2002 EN SPACE */ | ||
| 1374 | #define XK_em3space 0x0aa3 /* U+2004 THREE-PER-EM SPACE */ | ||
| 1375 | #define XK_em4space 0x0aa4 /* U+2005 FOUR-PER-EM SPACE */ | ||
| 1376 | #define XK_digitspace 0x0aa5 /* U+2007 FIGURE SPACE */ | ||
| 1377 | #define XK_punctspace 0x0aa6 /* U+2008 PUNCTUATION SPACE */ | ||
| 1378 | #define XK_thinspace 0x0aa7 /* U+2009 THIN SPACE */ | ||
| 1379 | #define XK_hairspace 0x0aa8 /* U+200A HAIR SPACE */ | ||
| 1380 | #define XK_emdash 0x0aa9 /* U+2014 EM DASH */ | ||
| 1381 | #define XK_endash 0x0aaa /* U+2013 EN DASH */ | ||
| 1382 | #define XK_signifblank 0x0aac /*(U+2423 OPEN BOX)*/ | ||
| 1383 | #define XK_ellipsis 0x0aae /* U+2026 HORIZONTAL ELLIPSIS */ | ||
| 1384 | #define XK_doubbaselinedot 0x0aaf /* U+2025 TWO DOT LEADER */ | ||
| 1385 | #define XK_onethird 0x0ab0 /* U+2153 VULGAR FRACTION ONE THIRD */ | ||
| 1386 | #define XK_twothirds 0x0ab1 /* U+2154 VULGAR FRACTION TWO THIRDS */ | ||
| 1387 | #define XK_onefifth 0x0ab2 /* U+2155 VULGAR FRACTION ONE FIFTH */ | ||
| 1388 | #define XK_twofifths 0x0ab3 /* U+2156 VULGAR FRACTION TWO FIFTHS */ | ||
| 1389 | #define XK_threefifths 0x0ab4 /* U+2157 VULGAR FRACTION THREE FIFTHS */ | ||
| 1390 | #define XK_fourfifths 0x0ab5 /* U+2158 VULGAR FRACTION FOUR FIFTHS */ | ||
| 1391 | #define XK_onesixth 0x0ab6 /* U+2159 VULGAR FRACTION ONE SIXTH */ | ||
| 1392 | #define XK_fivesixths 0x0ab7 /* U+215A VULGAR FRACTION FIVE SIXTHS */ | ||
| 1393 | #define XK_careof 0x0ab8 /* U+2105 CARE OF */ | ||
| 1394 | #define XK_figdash 0x0abb /* U+2012 FIGURE DASH */ | ||
| 1395 | #define XK_leftanglebracket 0x0abc /*(U+27E8 MATHEMATICAL LEFT ANGLE BRACKET)*/ | ||
| 1396 | #define XK_decimalpoint 0x0abd /*(U+002E FULL STOP)*/ | ||
| 1397 | #define XK_rightanglebracket 0x0abe /*(U+27E9 MATHEMATICAL RIGHT ANGLE BRACKET)*/ | ||
| 1398 | #define XK_marker 0x0abf | ||
| 1399 | #define XK_oneeighth 0x0ac3 /* U+215B VULGAR FRACTION ONE EIGHTH */ | ||
| 1400 | #define XK_threeeighths 0x0ac4 /* U+215C VULGAR FRACTION THREE EIGHTHS */ | ||
| 1401 | #define XK_fiveeighths 0x0ac5 /* U+215D VULGAR FRACTION FIVE EIGHTHS */ | ||
| 1402 | #define XK_seveneighths 0x0ac6 /* U+215E VULGAR FRACTION SEVEN EIGHTHS */ | ||
| 1403 | #define XK_trademark 0x0ac9 /* U+2122 TRADE MARK SIGN */ | ||
| 1404 | #define XK_signaturemark 0x0aca /*(U+2613 SALTIRE)*/ | ||
| 1405 | #define XK_trademarkincircle 0x0acb | ||
| 1406 | #define XK_leftopentriangle 0x0acc /*(U+25C1 WHITE LEFT-POINTING TRIANGLE)*/ | ||
| 1407 | #define XK_rightopentriangle 0x0acd /*(U+25B7 WHITE RIGHT-POINTING TRIANGLE)*/ | ||
| 1408 | #define XK_emopencircle 0x0ace /*(U+25CB WHITE CIRCLE)*/ | ||
| 1409 | #define XK_emopenrectangle 0x0acf /*(U+25AF WHITE VERTICAL RECTANGLE)*/ | ||
| 1410 | #define XK_leftsinglequotemark 0x0ad0 /* U+2018 LEFT SINGLE QUOTATION MARK */ | ||
| 1411 | #define XK_rightsinglequotemark 0x0ad1 /* U+2019 RIGHT SINGLE QUOTATION MARK */ | ||
| 1412 | #define XK_leftdoublequotemark 0x0ad2 /* U+201C LEFT DOUBLE QUOTATION MARK */ | ||
| 1413 | #define XK_rightdoublequotemark 0x0ad3 /* U+201D RIGHT DOUBLE QUOTATION MARK */ | ||
| 1414 | #define XK_prescription 0x0ad4 /* U+211E PRESCRIPTION TAKE */ | ||
| 1415 | #define XK_minutes 0x0ad6 /* U+2032 PRIME */ | ||
| 1416 | #define XK_seconds 0x0ad7 /* U+2033 DOUBLE PRIME */ | ||
| 1417 | #define XK_latincross 0x0ad9 /* U+271D LATIN CROSS */ | ||
| 1418 | #define XK_hexagram 0x0ada | ||
| 1419 | #define XK_filledrectbullet 0x0adb /*(U+25AC BLACK RECTANGLE)*/ | ||
| 1420 | #define XK_filledlefttribullet 0x0adc /*(U+25C0 BLACK LEFT-POINTING TRIANGLE)*/ | ||
| 1421 | #define XK_filledrighttribullet 0x0add /*(U+25B6 BLACK RIGHT-POINTING TRIANGLE)*/ | ||
| 1422 | #define XK_emfilledcircle 0x0ade /*(U+25CF BLACK CIRCLE)*/ | ||
| 1423 | #define XK_emfilledrect 0x0adf /*(U+25AE BLACK VERTICAL RECTANGLE)*/ | ||
| 1424 | #define XK_enopencircbullet 0x0ae0 /*(U+25E6 WHITE BULLET)*/ | ||
| 1425 | #define XK_enopensquarebullet 0x0ae1 /*(U+25AB WHITE SMALL SQUARE)*/ | ||
| 1426 | #define XK_openrectbullet 0x0ae2 /*(U+25AD WHITE RECTANGLE)*/ | ||
| 1427 | #define XK_opentribulletup 0x0ae3 /*(U+25B3 WHITE UP-POINTING TRIANGLE)*/ | ||
| 1428 | #define XK_opentribulletdown 0x0ae4 /*(U+25BD WHITE DOWN-POINTING TRIANGLE)*/ | ||
| 1429 | #define XK_openstar 0x0ae5 /*(U+2606 WHITE STAR)*/ | ||
| 1430 | #define XK_enfilledcircbullet 0x0ae6 /*(U+2022 BULLET)*/ | ||
| 1431 | #define XK_enfilledsqbullet 0x0ae7 /*(U+25AA BLACK SMALL SQUARE)*/ | ||
| 1432 | #define XK_filledtribulletup 0x0ae8 /*(U+25B2 BLACK UP-POINTING TRIANGLE)*/ | ||
| 1433 | #define XK_filledtribulletdown 0x0ae9 /*(U+25BC BLACK DOWN-POINTING TRIANGLE)*/ | ||
| 1434 | #define XK_leftpointer 0x0aea /*(U+261C WHITE LEFT POINTING INDEX)*/ | ||
| 1435 | #define XK_rightpointer 0x0aeb /*(U+261E WHITE RIGHT POINTING INDEX)*/ | ||
| 1436 | #define XK_club 0x0aec /* U+2663 BLACK CLUB SUIT */ | ||
| 1437 | #define XK_diamond 0x0aed /* U+2666 BLACK DIAMOND SUIT */ | ||
| 1438 | #define XK_heart 0x0aee /* U+2665 BLACK HEART SUIT */ | ||
| 1439 | #define XK_maltesecross 0x0af0 /* U+2720 MALTESE CROSS */ | ||
| 1440 | #define XK_dagger 0x0af1 /* U+2020 DAGGER */ | ||
| 1441 | #define XK_doubledagger 0x0af2 /* U+2021 DOUBLE DAGGER */ | ||
| 1442 | #define XK_checkmark 0x0af3 /* U+2713 CHECK MARK */ | ||
| 1443 | #define XK_ballotcross 0x0af4 /* U+2717 BALLOT X */ | ||
| 1444 | #define XK_musicalsharp 0x0af5 /* U+266F MUSIC SHARP SIGN */ | ||
| 1445 | #define XK_musicalflat 0x0af6 /* U+266D MUSIC FLAT SIGN */ | ||
| 1446 | #define XK_malesymbol 0x0af7 /* U+2642 MALE SIGN */ | ||
| 1447 | #define XK_femalesymbol 0x0af8 /* U+2640 FEMALE SIGN */ | ||
| 1448 | #define XK_telephone 0x0af9 /* U+260E BLACK TELEPHONE */ | ||
| 1449 | #define XK_telephonerecorder 0x0afa /* U+2315 TELEPHONE RECORDER */ | ||
| 1450 | #define XK_phonographcopyright 0x0afb /* U+2117 SOUND RECORDING COPYRIGHT */ | ||
| 1451 | #define XK_caret 0x0afc /* U+2038 CARET */ | ||
| 1452 | #define XK_singlelowquotemark 0x0afd /* U+201A SINGLE LOW-9 QUOTATION MARK */ | ||
| 1453 | #define XK_doublelowquotemark 0x0afe /* U+201E DOUBLE LOW-9 QUOTATION MARK */ | ||
| 1454 | #define XK_cursor 0x0aff | ||
| 1455 | #endif /* XK_PUBLISHING */ | ||
| 1456 | |||
| 1457 | /* | ||
| 1458 | * APL | ||
| 1459 | * Byte 3 = 0x0b | ||
| 1460 | */ | ||
| 1461 | |||
| 1462 | #ifdef XK_APL | ||
| 1463 | #define XK_leftcaret 0x0ba3 /*(U+003C LESS-THAN SIGN)*/ | ||
| 1464 | #define XK_rightcaret 0x0ba6 /*(U+003E GREATER-THAN SIGN)*/ | ||
| 1465 | #define XK_downcaret 0x0ba8 /*(U+2228 LOGICAL OR)*/ | ||
| 1466 | #define XK_upcaret 0x0ba9 /*(U+2227 LOGICAL AND)*/ | ||
| 1467 | #define XK_overbar 0x0bc0 /*(U+00AF MACRON)*/ | ||
| 1468 | #define XK_downtack 0x0bc2 /* U+22A5 UP TACK */ | ||
| 1469 | #define XK_upshoe 0x0bc3 /*(U+2229 INTERSECTION)*/ | ||
| 1470 | #define XK_downstile 0x0bc4 /* U+230A LEFT FLOOR */ | ||
| 1471 | #define XK_underbar 0x0bc6 /*(U+005F LOW LINE)*/ | ||
| 1472 | #define XK_jot 0x0bca /* U+2218 RING OPERATOR */ | ||
| 1473 | #define XK_quad 0x0bcc /* U+2395 APL FUNCTIONAL SYMBOL QUAD */ | ||
| 1474 | #define XK_uptack 0x0bce /* U+22A4 DOWN TACK */ | ||
| 1475 | #define XK_circle 0x0bcf /* U+25CB WHITE CIRCLE */ | ||
| 1476 | #define XK_upstile 0x0bd3 /* U+2308 LEFT CEILING */ | ||
| 1477 | #define XK_downshoe 0x0bd6 /*(U+222A UNION)*/ | ||
| 1478 | #define XK_rightshoe 0x0bd8 /*(U+2283 SUPERSET OF)*/ | ||
| 1479 | #define XK_leftshoe 0x0bda /*(U+2282 SUBSET OF)*/ | ||
| 1480 | #define XK_lefttack 0x0bdc /* U+22A2 RIGHT TACK */ | ||
| 1481 | #define XK_righttack 0x0bfc /* U+22A3 LEFT TACK */ | ||
| 1482 | #endif /* XK_APL */ | ||
| 1483 | |||
| 1484 | /* | ||
| 1485 | * Hebrew | ||
| 1486 | * Byte 3 = 0x0c | ||
| 1487 | */ | ||
| 1488 | |||
| 1489 | #ifdef XK_HEBREW | ||
| 1490 | #define XK_hebrew_doublelowline 0x0cdf /* U+2017 DOUBLE LOW LINE */ | ||
| 1491 | #define XK_hebrew_aleph 0x0ce0 /* U+05D0 HEBREW LETTER ALEF */ | ||
| 1492 | #define XK_hebrew_bet 0x0ce1 /* U+05D1 HEBREW LETTER BET */ | ||
| 1493 | #define XK_hebrew_beth 0x0ce1 /* deprecated */ | ||
| 1494 | #define XK_hebrew_gimel 0x0ce2 /* U+05D2 HEBREW LETTER GIMEL */ | ||
| 1495 | #define XK_hebrew_gimmel 0x0ce2 /* deprecated */ | ||
| 1496 | #define XK_hebrew_dalet 0x0ce3 /* U+05D3 HEBREW LETTER DALET */ | ||
| 1497 | #define XK_hebrew_daleth 0x0ce3 /* deprecated */ | ||
| 1498 | #define XK_hebrew_he 0x0ce4 /* U+05D4 HEBREW LETTER HE */ | ||
| 1499 | #define XK_hebrew_waw 0x0ce5 /* U+05D5 HEBREW LETTER VAV */ | ||
| 1500 | #define XK_hebrew_zain 0x0ce6 /* U+05D6 HEBREW LETTER ZAYIN */ | ||
| 1501 | #define XK_hebrew_zayin 0x0ce6 /* deprecated */ | ||
| 1502 | #define XK_hebrew_chet 0x0ce7 /* U+05D7 HEBREW LETTER HET */ | ||
| 1503 | #define XK_hebrew_het 0x0ce7 /* deprecated */ | ||
| 1504 | #define XK_hebrew_tet 0x0ce8 /* U+05D8 HEBREW LETTER TET */ | ||
| 1505 | #define XK_hebrew_teth 0x0ce8 /* deprecated */ | ||
| 1506 | #define XK_hebrew_yod 0x0ce9 /* U+05D9 HEBREW LETTER YOD */ | ||
| 1507 | #define XK_hebrew_finalkaph 0x0cea /* U+05DA HEBREW LETTER FINAL KAF */ | ||
| 1508 | #define XK_hebrew_kaph 0x0ceb /* U+05DB HEBREW LETTER KAF */ | ||
| 1509 | #define XK_hebrew_lamed 0x0cec /* U+05DC HEBREW LETTER LAMED */ | ||
| 1510 | #define XK_hebrew_finalmem 0x0ced /* U+05DD HEBREW LETTER FINAL MEM */ | ||
| 1511 | #define XK_hebrew_mem 0x0cee /* U+05DE HEBREW LETTER MEM */ | ||
| 1512 | #define XK_hebrew_finalnun 0x0cef /* U+05DF HEBREW LETTER FINAL NUN */ | ||
| 1513 | #define XK_hebrew_nun 0x0cf0 /* U+05E0 HEBREW LETTER NUN */ | ||
| 1514 | #define XK_hebrew_samech 0x0cf1 /* U+05E1 HEBREW LETTER SAMEKH */ | ||
| 1515 | #define XK_hebrew_samekh 0x0cf1 /* deprecated */ | ||
| 1516 | #define XK_hebrew_ayin 0x0cf2 /* U+05E2 HEBREW LETTER AYIN */ | ||
| 1517 | #define XK_hebrew_finalpe 0x0cf3 /* U+05E3 HEBREW LETTER FINAL PE */ | ||
| 1518 | #define XK_hebrew_pe 0x0cf4 /* U+05E4 HEBREW LETTER PE */ | ||
| 1519 | #define XK_hebrew_finalzade 0x0cf5 /* U+05E5 HEBREW LETTER FINAL TSADI */ | ||
| 1520 | #define XK_hebrew_finalzadi 0x0cf5 /* deprecated */ | ||
| 1521 | #define XK_hebrew_zade 0x0cf6 /* U+05E6 HEBREW LETTER TSADI */ | ||
| 1522 | #define XK_hebrew_zadi 0x0cf6 /* deprecated */ | ||
| 1523 | #define XK_hebrew_qoph 0x0cf7 /* U+05E7 HEBREW LETTER QOF */ | ||
| 1524 | #define XK_hebrew_kuf 0x0cf7 /* deprecated */ | ||
| 1525 | #define XK_hebrew_resh 0x0cf8 /* U+05E8 HEBREW LETTER RESH */ | ||
| 1526 | #define XK_hebrew_shin 0x0cf9 /* U+05E9 HEBREW LETTER SHIN */ | ||
| 1527 | #define XK_hebrew_taw 0x0cfa /* U+05EA HEBREW LETTER TAV */ | ||
| 1528 | #define XK_hebrew_taf 0x0cfa /* deprecated */ | ||
| 1529 | #define XK_Hebrew_switch 0xff7e /* Alias for mode_switch */ | ||
| 1530 | #endif /* XK_HEBREW */ | ||
| 1531 | |||
| 1532 | /* | ||
| 1533 | * Thai | ||
| 1534 | * Byte 3 = 0x0d | ||
| 1535 | */ | ||
| 1536 | |||
| 1537 | #ifdef XK_THAI | ||
| 1538 | #define XK_Thai_kokai 0x0da1 /* U+0E01 THAI CHARACTER KO KAI */ | ||
| 1539 | #define XK_Thai_khokhai 0x0da2 /* U+0E02 THAI CHARACTER KHO KHAI */ | ||
| 1540 | #define XK_Thai_khokhuat 0x0da3 /* U+0E03 THAI CHARACTER KHO KHUAT */ | ||
| 1541 | #define XK_Thai_khokhwai 0x0da4 /* U+0E04 THAI CHARACTER KHO KHWAI */ | ||
| 1542 | #define XK_Thai_khokhon 0x0da5 /* U+0E05 THAI CHARACTER KHO KHON */ | ||
| 1543 | #define XK_Thai_khorakhang 0x0da6 /* U+0E06 THAI CHARACTER KHO RAKHANG */ | ||
| 1544 | #define XK_Thai_ngongu 0x0da7 /* U+0E07 THAI CHARACTER NGO NGU */ | ||
| 1545 | #define XK_Thai_chochan 0x0da8 /* U+0E08 THAI CHARACTER CHO CHAN */ | ||
| 1546 | #define XK_Thai_choching 0x0da9 /* U+0E09 THAI CHARACTER CHO CHING */ | ||
| 1547 | #define XK_Thai_chochang 0x0daa /* U+0E0A THAI CHARACTER CHO CHANG */ | ||
| 1548 | #define XK_Thai_soso 0x0dab /* U+0E0B THAI CHARACTER SO SO */ | ||
| 1549 | #define XK_Thai_chochoe 0x0dac /* U+0E0C THAI CHARACTER CHO CHOE */ | ||
| 1550 | #define XK_Thai_yoying 0x0dad /* U+0E0D THAI CHARACTER YO YING */ | ||
| 1551 | #define XK_Thai_dochada 0x0dae /* U+0E0E THAI CHARACTER DO CHADA */ | ||
| 1552 | #define XK_Thai_topatak 0x0daf /* U+0E0F THAI CHARACTER TO PATAK */ | ||
| 1553 | #define XK_Thai_thothan 0x0db0 /* U+0E10 THAI CHARACTER THO THAN */ | ||
| 1554 | #define XK_Thai_thonangmontho 0x0db1 /* U+0E11 THAI CHARACTER THO NANGMONTHO */ | ||
| 1555 | #define XK_Thai_thophuthao 0x0db2 /* U+0E12 THAI CHARACTER THO PHUTHAO */ | ||
| 1556 | #define XK_Thai_nonen 0x0db3 /* U+0E13 THAI CHARACTER NO NEN */ | ||
| 1557 | #define XK_Thai_dodek 0x0db4 /* U+0E14 THAI CHARACTER DO DEK */ | ||
| 1558 | #define XK_Thai_totao 0x0db5 /* U+0E15 THAI CHARACTER TO TAO */ | ||
| 1559 | #define XK_Thai_thothung 0x0db6 /* U+0E16 THAI CHARACTER THO THUNG */ | ||
| 1560 | #define XK_Thai_thothahan 0x0db7 /* U+0E17 THAI CHARACTER THO THAHAN */ | ||
| 1561 | #define XK_Thai_thothong 0x0db8 /* U+0E18 THAI CHARACTER THO THONG */ | ||
| 1562 | #define XK_Thai_nonu 0x0db9 /* U+0E19 THAI CHARACTER NO NU */ | ||
| 1563 | #define XK_Thai_bobaimai 0x0dba /* U+0E1A THAI CHARACTER BO BAIMAI */ | ||
| 1564 | #define XK_Thai_popla 0x0dbb /* U+0E1B THAI CHARACTER PO PLA */ | ||
| 1565 | #define XK_Thai_phophung 0x0dbc /* U+0E1C THAI CHARACTER PHO PHUNG */ | ||
| 1566 | #define XK_Thai_fofa 0x0dbd /* U+0E1D THAI CHARACTER FO FA */ | ||
| 1567 | #define XK_Thai_phophan 0x0dbe /* U+0E1E THAI CHARACTER PHO PHAN */ | ||
| 1568 | #define XK_Thai_fofan 0x0dbf /* U+0E1F THAI CHARACTER FO FAN */ | ||
| 1569 | #define XK_Thai_phosamphao 0x0dc0 /* U+0E20 THAI CHARACTER PHO SAMPHAO */ | ||
| 1570 | #define XK_Thai_moma 0x0dc1 /* U+0E21 THAI CHARACTER MO MA */ | ||
| 1571 | #define XK_Thai_yoyak 0x0dc2 /* U+0E22 THAI CHARACTER YO YAK */ | ||
| 1572 | #define XK_Thai_rorua 0x0dc3 /* U+0E23 THAI CHARACTER RO RUA */ | ||
| 1573 | #define XK_Thai_ru 0x0dc4 /* U+0E24 THAI CHARACTER RU */ | ||
| 1574 | #define XK_Thai_loling 0x0dc5 /* U+0E25 THAI CHARACTER LO LING */ | ||
| 1575 | #define XK_Thai_lu 0x0dc6 /* U+0E26 THAI CHARACTER LU */ | ||
| 1576 | #define XK_Thai_wowaen 0x0dc7 /* U+0E27 THAI CHARACTER WO WAEN */ | ||
| 1577 | #define XK_Thai_sosala 0x0dc8 /* U+0E28 THAI CHARACTER SO SALA */ | ||
| 1578 | #define XK_Thai_sorusi 0x0dc9 /* U+0E29 THAI CHARACTER SO RUSI */ | ||
| 1579 | #define XK_Thai_sosua 0x0dca /* U+0E2A THAI CHARACTER SO SUA */ | ||
| 1580 | #define XK_Thai_hohip 0x0dcb /* U+0E2B THAI CHARACTER HO HIP */ | ||
| 1581 | #define XK_Thai_lochula 0x0dcc /* U+0E2C THAI CHARACTER LO CHULA */ | ||
| 1582 | #define XK_Thai_oang 0x0dcd /* U+0E2D THAI CHARACTER O ANG */ | ||
| 1583 | #define XK_Thai_honokhuk 0x0dce /* U+0E2E THAI CHARACTER HO NOKHUK */ | ||
| 1584 | #define XK_Thai_paiyannoi 0x0dcf /* U+0E2F THAI CHARACTER PAIYANNOI */ | ||
| 1585 | #define XK_Thai_saraa 0x0dd0 /* U+0E30 THAI CHARACTER SARA A */ | ||
| 1586 | #define XK_Thai_maihanakat 0x0dd1 /* U+0E31 THAI CHARACTER MAI HAN-AKAT */ | ||
| 1587 | #define XK_Thai_saraaa 0x0dd2 /* U+0E32 THAI CHARACTER SARA AA */ | ||
| 1588 | #define XK_Thai_saraam 0x0dd3 /* U+0E33 THAI CHARACTER SARA AM */ | ||
| 1589 | #define XK_Thai_sarai 0x0dd4 /* U+0E34 THAI CHARACTER SARA I */ | ||
| 1590 | #define XK_Thai_saraii 0x0dd5 /* U+0E35 THAI CHARACTER SARA II */ | ||
| 1591 | #define XK_Thai_saraue 0x0dd6 /* U+0E36 THAI CHARACTER SARA UE */ | ||
| 1592 | #define XK_Thai_sarauee 0x0dd7 /* U+0E37 THAI CHARACTER SARA UEE */ | ||
| 1593 | #define XK_Thai_sarau 0x0dd8 /* U+0E38 THAI CHARACTER SARA U */ | ||
| 1594 | #define XK_Thai_sarauu 0x0dd9 /* U+0E39 THAI CHARACTER SARA UU */ | ||
| 1595 | #define XK_Thai_phinthu 0x0dda /* U+0E3A THAI CHARACTER PHINTHU */ | ||
| 1596 | #define XK_Thai_maihanakat_maitho 0x0dde | ||
| 1597 | #define XK_Thai_baht 0x0ddf /* U+0E3F THAI CURRENCY SYMBOL BAHT */ | ||
| 1598 | #define XK_Thai_sarae 0x0de0 /* U+0E40 THAI CHARACTER SARA E */ | ||
| 1599 | #define XK_Thai_saraae 0x0de1 /* U+0E41 THAI CHARACTER SARA AE */ | ||
| 1600 | #define XK_Thai_sarao 0x0de2 /* U+0E42 THAI CHARACTER SARA O */ | ||
| 1601 | #define XK_Thai_saraaimaimuan 0x0de3 /* U+0E43 THAI CHARACTER SARA AI MAIMUAN */ | ||
| 1602 | #define XK_Thai_saraaimaimalai 0x0de4 /* U+0E44 THAI CHARACTER SARA AI MAIMALAI */ | ||
| 1603 | #define XK_Thai_lakkhangyao 0x0de5 /* U+0E45 THAI CHARACTER LAKKHANGYAO */ | ||
| 1604 | #define XK_Thai_maiyamok 0x0de6 /* U+0E46 THAI CHARACTER MAIYAMOK */ | ||
| 1605 | #define XK_Thai_maitaikhu 0x0de7 /* U+0E47 THAI CHARACTER MAITAIKHU */ | ||
| 1606 | #define XK_Thai_maiek 0x0de8 /* U+0E48 THAI CHARACTER MAI EK */ | ||
| 1607 | #define XK_Thai_maitho 0x0de9 /* U+0E49 THAI CHARACTER MAI THO */ | ||
| 1608 | #define XK_Thai_maitri 0x0dea /* U+0E4A THAI CHARACTER MAI TRI */ | ||
| 1609 | #define XK_Thai_maichattawa 0x0deb /* U+0E4B THAI CHARACTER MAI CHATTAWA */ | ||
| 1610 | #define XK_Thai_thanthakhat 0x0dec /* U+0E4C THAI CHARACTER THANTHAKHAT */ | ||
| 1611 | #define XK_Thai_nikhahit 0x0ded /* U+0E4D THAI CHARACTER NIKHAHIT */ | ||
| 1612 | #define XK_Thai_leksun 0x0df0 /* U+0E50 THAI DIGIT ZERO */ | ||
| 1613 | #define XK_Thai_leknung 0x0df1 /* U+0E51 THAI DIGIT ONE */ | ||
| 1614 | #define XK_Thai_leksong 0x0df2 /* U+0E52 THAI DIGIT TWO */ | ||
| 1615 | #define XK_Thai_leksam 0x0df3 /* U+0E53 THAI DIGIT THREE */ | ||
| 1616 | #define XK_Thai_leksi 0x0df4 /* U+0E54 THAI DIGIT FOUR */ | ||
| 1617 | #define XK_Thai_lekha 0x0df5 /* U+0E55 THAI DIGIT FIVE */ | ||
| 1618 | #define XK_Thai_lekhok 0x0df6 /* U+0E56 THAI DIGIT SIX */ | ||
| 1619 | #define XK_Thai_lekchet 0x0df7 /* U+0E57 THAI DIGIT SEVEN */ | ||
| 1620 | #define XK_Thai_lekpaet 0x0df8 /* U+0E58 THAI DIGIT EIGHT */ | ||
| 1621 | #define XK_Thai_lekkao 0x0df9 /* U+0E59 THAI DIGIT NINE */ | ||
| 1622 | #endif /* XK_THAI */ | ||
| 1623 | |||
| 1624 | /* | ||
| 1625 | * Korean | ||
| 1626 | * Byte 3 = 0x0e | ||
| 1627 | */ | ||
| 1628 | |||
| 1629 | #ifdef XK_KOREAN | ||
| 1630 | |||
| 1631 | #define XK_Hangul 0xff31 /* Hangul start/stop(toggle) */ | ||
| 1632 | #define XK_Hangul_Start 0xff32 /* Hangul start */ | ||
| 1633 | #define XK_Hangul_End 0xff33 /* Hangul end, English start */ | ||
| 1634 | #define XK_Hangul_Hanja 0xff34 /* Start Hangul->Hanja Conversion */ | ||
| 1635 | #define XK_Hangul_Jamo 0xff35 /* Hangul Jamo mode */ | ||
| 1636 | #define XK_Hangul_Romaja 0xff36 /* Hangul Romaja mode */ | ||
| 1637 | #define XK_Hangul_Codeinput 0xff37 /* Hangul code input mode */ | ||
| 1638 | #define XK_Hangul_Jeonja 0xff38 /* Jeonja mode */ | ||
| 1639 | #define XK_Hangul_Banja 0xff39 /* Banja mode */ | ||
| 1640 | #define XK_Hangul_PreHanja 0xff3a /* Pre Hanja conversion */ | ||
| 1641 | #define XK_Hangul_PostHanja 0xff3b /* Post Hanja conversion */ | ||
| 1642 | #define XK_Hangul_SingleCandidate 0xff3c /* Single candidate */ | ||
| 1643 | #define XK_Hangul_MultipleCandidate 0xff3d /* Multiple candidate */ | ||
| 1644 | #define XK_Hangul_PreviousCandidate 0xff3e /* Previous candidate */ | ||
| 1645 | #define XK_Hangul_Special 0xff3f /* Special symbols */ | ||
| 1646 | #define XK_Hangul_switch 0xff7e /* Alias for mode_switch */ | ||
| 1647 | |||
| 1648 | /* Hangul Consonant Characters */ | ||
| 1649 | #define XK_Hangul_Kiyeog 0x0ea1 | ||
| 1650 | #define XK_Hangul_SsangKiyeog 0x0ea2 | ||
| 1651 | #define XK_Hangul_KiyeogSios 0x0ea3 | ||
| 1652 | #define XK_Hangul_Nieun 0x0ea4 | ||
| 1653 | #define XK_Hangul_NieunJieuj 0x0ea5 | ||
| 1654 | #define XK_Hangul_NieunHieuh 0x0ea6 | ||
| 1655 | #define XK_Hangul_Dikeud 0x0ea7 | ||
| 1656 | #define XK_Hangul_SsangDikeud 0x0ea8 | ||
| 1657 | #define XK_Hangul_Rieul 0x0ea9 | ||
| 1658 | #define XK_Hangul_RieulKiyeog 0x0eaa | ||
| 1659 | #define XK_Hangul_RieulMieum 0x0eab | ||
| 1660 | #define XK_Hangul_RieulPieub 0x0eac | ||
| 1661 | #define XK_Hangul_RieulSios 0x0ead | ||
| 1662 | #define XK_Hangul_RieulTieut 0x0eae | ||
| 1663 | #define XK_Hangul_RieulPhieuf 0x0eaf | ||
| 1664 | #define XK_Hangul_RieulHieuh 0x0eb0 | ||
| 1665 | #define XK_Hangul_Mieum 0x0eb1 | ||
| 1666 | #define XK_Hangul_Pieub 0x0eb2 | ||
| 1667 | #define XK_Hangul_SsangPieub 0x0eb3 | ||
| 1668 | #define XK_Hangul_PieubSios 0x0eb4 | ||
| 1669 | #define XK_Hangul_Sios 0x0eb5 | ||
| 1670 | #define XK_Hangul_SsangSios 0x0eb6 | ||
| 1671 | #define XK_Hangul_Ieung 0x0eb7 | ||
| 1672 | #define XK_Hangul_Jieuj 0x0eb8 | ||
| 1673 | #define XK_Hangul_SsangJieuj 0x0eb9 | ||
| 1674 | #define XK_Hangul_Cieuc 0x0eba | ||
| 1675 | #define XK_Hangul_Khieuq 0x0ebb | ||
| 1676 | #define XK_Hangul_Tieut 0x0ebc | ||
| 1677 | #define XK_Hangul_Phieuf 0x0ebd | ||
| 1678 | #define XK_Hangul_Hieuh 0x0ebe | ||
| 1679 | |||
| 1680 | /* Hangul Vowel Characters */ | ||
| 1681 | #define XK_Hangul_A 0x0ebf | ||
| 1682 | #define XK_Hangul_AE 0x0ec0 | ||
| 1683 | #define XK_Hangul_YA 0x0ec1 | ||
| 1684 | #define XK_Hangul_YAE 0x0ec2 | ||
| 1685 | #define XK_Hangul_EO 0x0ec3 | ||
| 1686 | #define XK_Hangul_E 0x0ec4 | ||
| 1687 | #define XK_Hangul_YEO 0x0ec5 | ||
| 1688 | #define XK_Hangul_YE 0x0ec6 | ||
| 1689 | #define XK_Hangul_O 0x0ec7 | ||
| 1690 | #define XK_Hangul_WA 0x0ec8 | ||
| 1691 | #define XK_Hangul_WAE 0x0ec9 | ||
| 1692 | #define XK_Hangul_OE 0x0eca | ||
| 1693 | #define XK_Hangul_YO 0x0ecb | ||
| 1694 | #define XK_Hangul_U 0x0ecc | ||
| 1695 | #define XK_Hangul_WEO 0x0ecd | ||
| 1696 | #define XK_Hangul_WE 0x0ece | ||
| 1697 | #define XK_Hangul_WI 0x0ecf | ||
| 1698 | #define XK_Hangul_YU 0x0ed0 | ||
| 1699 | #define XK_Hangul_EU 0x0ed1 | ||
| 1700 | #define XK_Hangul_YI 0x0ed2 | ||
| 1701 | #define XK_Hangul_I 0x0ed3 | ||
| 1702 | |||
| 1703 | /* Hangul syllable-final (JongSeong) Characters */ | ||
| 1704 | #define XK_Hangul_J_Kiyeog 0x0ed4 | ||
| 1705 | #define XK_Hangul_J_SsangKiyeog 0x0ed5 | ||
| 1706 | #define XK_Hangul_J_KiyeogSios 0x0ed6 | ||
| 1707 | #define XK_Hangul_J_Nieun 0x0ed7 | ||
| 1708 | #define XK_Hangul_J_NieunJieuj 0x0ed8 | ||
| 1709 | #define XK_Hangul_J_NieunHieuh 0x0ed9 | ||
| 1710 | #define XK_Hangul_J_Dikeud 0x0eda | ||
| 1711 | #define XK_Hangul_J_Rieul 0x0edb | ||
| 1712 | #define XK_Hangul_J_RieulKiyeog 0x0edc | ||
| 1713 | #define XK_Hangul_J_RieulMieum 0x0edd | ||
| 1714 | #define XK_Hangul_J_RieulPieub 0x0ede | ||
| 1715 | #define XK_Hangul_J_RieulSios 0x0edf | ||
| 1716 | #define XK_Hangul_J_RieulTieut 0x0ee0 | ||
| 1717 | #define XK_Hangul_J_RieulPhieuf 0x0ee1 | ||
| 1718 | #define XK_Hangul_J_RieulHieuh 0x0ee2 | ||
| 1719 | #define XK_Hangul_J_Mieum 0x0ee3 | ||
| 1720 | #define XK_Hangul_J_Pieub 0x0ee4 | ||
| 1721 | #define XK_Hangul_J_PieubSios 0x0ee5 | ||
| 1722 | #define XK_Hangul_J_Sios 0x0ee6 | ||
| 1723 | #define XK_Hangul_J_SsangSios 0x0ee7 | ||
| 1724 | #define XK_Hangul_J_Ieung 0x0ee8 | ||
| 1725 | #define XK_Hangul_J_Jieuj 0x0ee9 | ||
| 1726 | #define XK_Hangul_J_Cieuc 0x0eea | ||
| 1727 | #define XK_Hangul_J_Khieuq 0x0eeb | ||
| 1728 | #define XK_Hangul_J_Tieut 0x0eec | ||
| 1729 | #define XK_Hangul_J_Phieuf 0x0eed | ||
| 1730 | #define XK_Hangul_J_Hieuh 0x0eee | ||
| 1731 | |||
| 1732 | /* Ancient Hangul Consonant Characters */ | ||
| 1733 | #define XK_Hangul_RieulYeorinHieuh 0x0eef | ||
| 1734 | #define XK_Hangul_SunkyeongeumMieum 0x0ef0 | ||
| 1735 | #define XK_Hangul_SunkyeongeumPieub 0x0ef1 | ||
| 1736 | #define XK_Hangul_PanSios 0x0ef2 | ||
| 1737 | #define XK_Hangul_KkogjiDalrinIeung 0x0ef3 | ||
| 1738 | #define XK_Hangul_SunkyeongeumPhieuf 0x0ef4 | ||
| 1739 | #define XK_Hangul_YeorinHieuh 0x0ef5 | ||
| 1740 | |||
| 1741 | /* Ancient Hangul Vowel Characters */ | ||
| 1742 | #define XK_Hangul_AraeA 0x0ef6 | ||
| 1743 | #define XK_Hangul_AraeAE 0x0ef7 | ||
| 1744 | |||
| 1745 | /* Ancient Hangul syllable-final (JongSeong) Characters */ | ||
| 1746 | #define XK_Hangul_J_PanSios 0x0ef8 | ||
| 1747 | #define XK_Hangul_J_KkogjiDalrinIeung 0x0ef9 | ||
| 1748 | #define XK_Hangul_J_YeorinHieuh 0x0efa | ||
| 1749 | |||
| 1750 | /* Korean currency symbol */ | ||
| 1751 | #define XK_Korean_Won 0x0eff /*(U+20A9 WON SIGN)*/ | ||
| 1752 | |||
| 1753 | #endif /* XK_KOREAN */ | ||
| 1754 | |||
| 1755 | /* | ||
| 1756 | * Armenian | ||
| 1757 | */ | ||
| 1758 | |||
| 1759 | #ifdef XK_ARMENIAN | ||
| 1760 | #define XK_Armenian_ligature_ew 0x1000587 /* U+0587 ARMENIAN SMALL LIGATURE ECH YIWN */ | ||
| 1761 | #define XK_Armenian_full_stop 0x1000589 /* U+0589 ARMENIAN FULL STOP */ | ||
| 1762 | #define XK_Armenian_verjaket 0x1000589 /* U+0589 ARMENIAN FULL STOP */ | ||
| 1763 | #define XK_Armenian_separation_mark 0x100055d /* U+055D ARMENIAN COMMA */ | ||
| 1764 | #define XK_Armenian_but 0x100055d /* U+055D ARMENIAN COMMA */ | ||
| 1765 | #define XK_Armenian_hyphen 0x100058a /* U+058A ARMENIAN HYPHEN */ | ||
| 1766 | #define XK_Armenian_yentamna 0x100058a /* U+058A ARMENIAN HYPHEN */ | ||
| 1767 | #define XK_Armenian_exclam 0x100055c /* U+055C ARMENIAN EXCLAMATION MARK */ | ||
| 1768 | #define XK_Armenian_amanak 0x100055c /* U+055C ARMENIAN EXCLAMATION MARK */ | ||
| 1769 | #define XK_Armenian_accent 0x100055b /* U+055B ARMENIAN EMPHASIS MARK */ | ||
| 1770 | #define XK_Armenian_shesht 0x100055b /* U+055B ARMENIAN EMPHASIS MARK */ | ||
| 1771 | #define XK_Armenian_question 0x100055e /* U+055E ARMENIAN QUESTION MARK */ | ||
| 1772 | #define XK_Armenian_paruyk 0x100055e /* U+055E ARMENIAN QUESTION MARK */ | ||
| 1773 | #define XK_Armenian_AYB 0x1000531 /* U+0531 ARMENIAN CAPITAL LETTER AYB */ | ||
| 1774 | #define XK_Armenian_ayb 0x1000561 /* U+0561 ARMENIAN SMALL LETTER AYB */ | ||
| 1775 | #define XK_Armenian_BEN 0x1000532 /* U+0532 ARMENIAN CAPITAL LETTER BEN */ | ||
| 1776 | #define XK_Armenian_ben 0x1000562 /* U+0562 ARMENIAN SMALL LETTER BEN */ | ||
| 1777 | #define XK_Armenian_GIM 0x1000533 /* U+0533 ARMENIAN CAPITAL LETTER GIM */ | ||
| 1778 | #define XK_Armenian_gim 0x1000563 /* U+0563 ARMENIAN SMALL LETTER GIM */ | ||
| 1779 | #define XK_Armenian_DA 0x1000534 /* U+0534 ARMENIAN CAPITAL LETTER DA */ | ||
| 1780 | #define XK_Armenian_da 0x1000564 /* U+0564 ARMENIAN SMALL LETTER DA */ | ||
| 1781 | #define XK_Armenian_YECH 0x1000535 /* U+0535 ARMENIAN CAPITAL LETTER ECH */ | ||
| 1782 | #define XK_Armenian_yech 0x1000565 /* U+0565 ARMENIAN SMALL LETTER ECH */ | ||
| 1783 | #define XK_Armenian_ZA 0x1000536 /* U+0536 ARMENIAN CAPITAL LETTER ZA */ | ||
| 1784 | #define XK_Armenian_za 0x1000566 /* U+0566 ARMENIAN SMALL LETTER ZA */ | ||
| 1785 | #define XK_Armenian_E 0x1000537 /* U+0537 ARMENIAN CAPITAL LETTER EH */ | ||
| 1786 | #define XK_Armenian_e 0x1000567 /* U+0567 ARMENIAN SMALL LETTER EH */ | ||
| 1787 | #define XK_Armenian_AT 0x1000538 /* U+0538 ARMENIAN CAPITAL LETTER ET */ | ||
| 1788 | #define XK_Armenian_at 0x1000568 /* U+0568 ARMENIAN SMALL LETTER ET */ | ||
| 1789 | #define XK_Armenian_TO 0x1000539 /* U+0539 ARMENIAN CAPITAL LETTER TO */ | ||
| 1790 | #define XK_Armenian_to 0x1000569 /* U+0569 ARMENIAN SMALL LETTER TO */ | ||
| 1791 | #define XK_Armenian_ZHE 0x100053a /* U+053A ARMENIAN CAPITAL LETTER ZHE */ | ||
| 1792 | #define XK_Armenian_zhe 0x100056a /* U+056A ARMENIAN SMALL LETTER ZHE */ | ||
| 1793 | #define XK_Armenian_INI 0x100053b /* U+053B ARMENIAN CAPITAL LETTER INI */ | ||
| 1794 | #define XK_Armenian_ini 0x100056b /* U+056B ARMENIAN SMALL LETTER INI */ | ||
| 1795 | #define XK_Armenian_LYUN 0x100053c /* U+053C ARMENIAN CAPITAL LETTER LIWN */ | ||
| 1796 | #define XK_Armenian_lyun 0x100056c /* U+056C ARMENIAN SMALL LETTER LIWN */ | ||
| 1797 | #define XK_Armenian_KHE 0x100053d /* U+053D ARMENIAN CAPITAL LETTER XEH */ | ||
| 1798 | #define XK_Armenian_khe 0x100056d /* U+056D ARMENIAN SMALL LETTER XEH */ | ||
| 1799 | #define XK_Armenian_TSA 0x100053e /* U+053E ARMENIAN CAPITAL LETTER CA */ | ||
| 1800 | #define XK_Armenian_tsa 0x100056e /* U+056E ARMENIAN SMALL LETTER CA */ | ||
| 1801 | #define XK_Armenian_KEN 0x100053f /* U+053F ARMENIAN CAPITAL LETTER KEN */ | ||
| 1802 | #define XK_Armenian_ken 0x100056f /* U+056F ARMENIAN SMALL LETTER KEN */ | ||
| 1803 | #define XK_Armenian_HO 0x1000540 /* U+0540 ARMENIAN CAPITAL LETTER HO */ | ||
| 1804 | #define XK_Armenian_ho 0x1000570 /* U+0570 ARMENIAN SMALL LETTER HO */ | ||
| 1805 | #define XK_Armenian_DZA 0x1000541 /* U+0541 ARMENIAN CAPITAL LETTER JA */ | ||
| 1806 | #define XK_Armenian_dza 0x1000571 /* U+0571 ARMENIAN SMALL LETTER JA */ | ||
| 1807 | #define XK_Armenian_GHAT 0x1000542 /* U+0542 ARMENIAN CAPITAL LETTER GHAD */ | ||
| 1808 | #define XK_Armenian_ghat 0x1000572 /* U+0572 ARMENIAN SMALL LETTER GHAD */ | ||
| 1809 | #define XK_Armenian_TCHE 0x1000543 /* U+0543 ARMENIAN CAPITAL LETTER CHEH */ | ||
| 1810 | #define XK_Armenian_tche 0x1000573 /* U+0573 ARMENIAN SMALL LETTER CHEH */ | ||
| 1811 | #define XK_Armenian_MEN 0x1000544 /* U+0544 ARMENIAN CAPITAL LETTER MEN */ | ||
| 1812 | #define XK_Armenian_men 0x1000574 /* U+0574 ARMENIAN SMALL LETTER MEN */ | ||
| 1813 | #define XK_Armenian_HI 0x1000545 /* U+0545 ARMENIAN CAPITAL LETTER YI */ | ||
| 1814 | #define XK_Armenian_hi 0x1000575 /* U+0575 ARMENIAN SMALL LETTER YI */ | ||
| 1815 | #define XK_Armenian_NU 0x1000546 /* U+0546 ARMENIAN CAPITAL LETTER NOW */ | ||
| 1816 | #define XK_Armenian_nu 0x1000576 /* U+0576 ARMENIAN SMALL LETTER NOW */ | ||
| 1817 | #define XK_Armenian_SHA 0x1000547 /* U+0547 ARMENIAN CAPITAL LETTER SHA */ | ||
| 1818 | #define XK_Armenian_sha 0x1000577 /* U+0577 ARMENIAN SMALL LETTER SHA */ | ||
| 1819 | #define XK_Armenian_VO 0x1000548 /* U+0548 ARMENIAN CAPITAL LETTER VO */ | ||
| 1820 | #define XK_Armenian_vo 0x1000578 /* U+0578 ARMENIAN SMALL LETTER VO */ | ||
| 1821 | #define XK_Armenian_CHA 0x1000549 /* U+0549 ARMENIAN CAPITAL LETTER CHA */ | ||
| 1822 | #define XK_Armenian_cha 0x1000579 /* U+0579 ARMENIAN SMALL LETTER CHA */ | ||
| 1823 | #define XK_Armenian_PE 0x100054a /* U+054A ARMENIAN CAPITAL LETTER PEH */ | ||
| 1824 | #define XK_Armenian_pe 0x100057a /* U+057A ARMENIAN SMALL LETTER PEH */ | ||
| 1825 | #define XK_Armenian_JE 0x100054b /* U+054B ARMENIAN CAPITAL LETTER JHEH */ | ||
| 1826 | #define XK_Armenian_je 0x100057b /* U+057B ARMENIAN SMALL LETTER JHEH */ | ||
| 1827 | #define XK_Armenian_RA 0x100054c /* U+054C ARMENIAN CAPITAL LETTER RA */ | ||
| 1828 | #define XK_Armenian_ra 0x100057c /* U+057C ARMENIAN SMALL LETTER RA */ | ||
| 1829 | #define XK_Armenian_SE 0x100054d /* U+054D ARMENIAN CAPITAL LETTER SEH */ | ||
| 1830 | #define XK_Armenian_se 0x100057d /* U+057D ARMENIAN SMALL LETTER SEH */ | ||
| 1831 | #define XK_Armenian_VEV 0x100054e /* U+054E ARMENIAN CAPITAL LETTER VEW */ | ||
| 1832 | #define XK_Armenian_vev 0x100057e /* U+057E ARMENIAN SMALL LETTER VEW */ | ||
| 1833 | #define XK_Armenian_TYUN 0x100054f /* U+054F ARMENIAN CAPITAL LETTER TIWN */ | ||
| 1834 | #define XK_Armenian_tyun 0x100057f /* U+057F ARMENIAN SMALL LETTER TIWN */ | ||
| 1835 | #define XK_Armenian_RE 0x1000550 /* U+0550 ARMENIAN CAPITAL LETTER REH */ | ||
| 1836 | #define XK_Armenian_re 0x1000580 /* U+0580 ARMENIAN SMALL LETTER REH */ | ||
| 1837 | #define XK_Armenian_TSO 0x1000551 /* U+0551 ARMENIAN CAPITAL LETTER CO */ | ||
| 1838 | #define XK_Armenian_tso 0x1000581 /* U+0581 ARMENIAN SMALL LETTER CO */ | ||
| 1839 | #define XK_Armenian_VYUN 0x1000552 /* U+0552 ARMENIAN CAPITAL LETTER YIWN */ | ||
| 1840 | #define XK_Armenian_vyun 0x1000582 /* U+0582 ARMENIAN SMALL LETTER YIWN */ | ||
| 1841 | #define XK_Armenian_PYUR 0x1000553 /* U+0553 ARMENIAN CAPITAL LETTER PIWR */ | ||
| 1842 | #define XK_Armenian_pyur 0x1000583 /* U+0583 ARMENIAN SMALL LETTER PIWR */ | ||
| 1843 | #define XK_Armenian_KE 0x1000554 /* U+0554 ARMENIAN CAPITAL LETTER KEH */ | ||
| 1844 | #define XK_Armenian_ke 0x1000584 /* U+0584 ARMENIAN SMALL LETTER KEH */ | ||
| 1845 | #define XK_Armenian_O 0x1000555 /* U+0555 ARMENIAN CAPITAL LETTER OH */ | ||
| 1846 | #define XK_Armenian_o 0x1000585 /* U+0585 ARMENIAN SMALL LETTER OH */ | ||
| 1847 | #define XK_Armenian_FE 0x1000556 /* U+0556 ARMENIAN CAPITAL LETTER FEH */ | ||
| 1848 | #define XK_Armenian_fe 0x1000586 /* U+0586 ARMENIAN SMALL LETTER FEH */ | ||
| 1849 | #define XK_Armenian_apostrophe 0x100055a /* U+055A ARMENIAN APOSTROPHE */ | ||
| 1850 | #endif /* XK_ARMENIAN */ | ||
| 1851 | |||
| 1852 | /* | ||
| 1853 | * Georgian | ||
| 1854 | */ | ||
| 1855 | |||
| 1856 | #ifdef XK_GEORGIAN | ||
| 1857 | #define XK_Georgian_an 0x10010d0 /* U+10D0 GEORGIAN LETTER AN */ | ||
| 1858 | #define XK_Georgian_ban 0x10010d1 /* U+10D1 GEORGIAN LETTER BAN */ | ||
| 1859 | #define XK_Georgian_gan 0x10010d2 /* U+10D2 GEORGIAN LETTER GAN */ | ||
| 1860 | #define XK_Georgian_don 0x10010d3 /* U+10D3 GEORGIAN LETTER DON */ | ||
| 1861 | #define XK_Georgian_en 0x10010d4 /* U+10D4 GEORGIAN LETTER EN */ | ||
| 1862 | #define XK_Georgian_vin 0x10010d5 /* U+10D5 GEORGIAN LETTER VIN */ | ||
| 1863 | #define XK_Georgian_zen 0x10010d6 /* U+10D6 GEORGIAN LETTER ZEN */ | ||
| 1864 | #define XK_Georgian_tan 0x10010d7 /* U+10D7 GEORGIAN LETTER TAN */ | ||
| 1865 | #define XK_Georgian_in 0x10010d8 /* U+10D8 GEORGIAN LETTER IN */ | ||
| 1866 | #define XK_Georgian_kan 0x10010d9 /* U+10D9 GEORGIAN LETTER KAN */ | ||
| 1867 | #define XK_Georgian_las 0x10010da /* U+10DA GEORGIAN LETTER LAS */ | ||
| 1868 | #define XK_Georgian_man 0x10010db /* U+10DB GEORGIAN LETTER MAN */ | ||
| 1869 | #define XK_Georgian_nar 0x10010dc /* U+10DC GEORGIAN LETTER NAR */ | ||
| 1870 | #define XK_Georgian_on 0x10010dd /* U+10DD GEORGIAN LETTER ON */ | ||
| 1871 | #define XK_Georgian_par 0x10010de /* U+10DE GEORGIAN LETTER PAR */ | ||
| 1872 | #define XK_Georgian_zhar 0x10010df /* U+10DF GEORGIAN LETTER ZHAR */ | ||
| 1873 | #define XK_Georgian_rae 0x10010e0 /* U+10E0 GEORGIAN LETTER RAE */ | ||
| 1874 | #define XK_Georgian_san 0x10010e1 /* U+10E1 GEORGIAN LETTER SAN */ | ||
| 1875 | #define XK_Georgian_tar 0x10010e2 /* U+10E2 GEORGIAN LETTER TAR */ | ||
| 1876 | #define XK_Georgian_un 0x10010e3 /* U+10E3 GEORGIAN LETTER UN */ | ||
| 1877 | #define XK_Georgian_phar 0x10010e4 /* U+10E4 GEORGIAN LETTER PHAR */ | ||
| 1878 | #define XK_Georgian_khar 0x10010e5 /* U+10E5 GEORGIAN LETTER KHAR */ | ||
| 1879 | #define XK_Georgian_ghan 0x10010e6 /* U+10E6 GEORGIAN LETTER GHAN */ | ||
| 1880 | #define XK_Georgian_qar 0x10010e7 /* U+10E7 GEORGIAN LETTER QAR */ | ||
| 1881 | #define XK_Georgian_shin 0x10010e8 /* U+10E8 GEORGIAN LETTER SHIN */ | ||
| 1882 | #define XK_Georgian_chin 0x10010e9 /* U+10E9 GEORGIAN LETTER CHIN */ | ||
| 1883 | #define XK_Georgian_can 0x10010ea /* U+10EA GEORGIAN LETTER CAN */ | ||
| 1884 | #define XK_Georgian_jil 0x10010eb /* U+10EB GEORGIAN LETTER JIL */ | ||
| 1885 | #define XK_Georgian_cil 0x10010ec /* U+10EC GEORGIAN LETTER CIL */ | ||
| 1886 | #define XK_Georgian_char 0x10010ed /* U+10ED GEORGIAN LETTER CHAR */ | ||
| 1887 | #define XK_Georgian_xan 0x10010ee /* U+10EE GEORGIAN LETTER XAN */ | ||
| 1888 | #define XK_Georgian_jhan 0x10010ef /* U+10EF GEORGIAN LETTER JHAN */ | ||
| 1889 | #define XK_Georgian_hae 0x10010f0 /* U+10F0 GEORGIAN LETTER HAE */ | ||
| 1890 | #define XK_Georgian_he 0x10010f1 /* U+10F1 GEORGIAN LETTER HE */ | ||
| 1891 | #define XK_Georgian_hie 0x10010f2 /* U+10F2 GEORGIAN LETTER HIE */ | ||
| 1892 | #define XK_Georgian_we 0x10010f3 /* U+10F3 GEORGIAN LETTER WE */ | ||
| 1893 | #define XK_Georgian_har 0x10010f4 /* U+10F4 GEORGIAN LETTER HAR */ | ||
| 1894 | #define XK_Georgian_hoe 0x10010f5 /* U+10F5 GEORGIAN LETTER HOE */ | ||
| 1895 | #define XK_Georgian_fi 0x10010f6 /* U+10F6 GEORGIAN LETTER FI */ | ||
| 1896 | #endif /* XK_GEORGIAN */ | ||
| 1897 | |||
| 1898 | /* | ||
| 1899 | * Azeri (and other Turkic or Caucasian languages) | ||
| 1900 | */ | ||
| 1901 | |||
| 1902 | #ifdef XK_CAUCASUS | ||
| 1903 | /* latin */ | ||
| 1904 | #define XK_Xabovedot 0x1001e8a /* U+1E8A LATIN CAPITAL LETTER X WITH DOT ABOVE */ | ||
| 1905 | #define XK_Ibreve 0x100012c /* U+012C LATIN CAPITAL LETTER I WITH BREVE */ | ||
| 1906 | #define XK_Zstroke 0x10001b5 /* U+01B5 LATIN CAPITAL LETTER Z WITH STROKE */ | ||
| 1907 | #define XK_Gcaron 0x10001e6 /* U+01E6 LATIN CAPITAL LETTER G WITH CARON */ | ||
| 1908 | #define XK_Ocaron 0x10001d1 /* U+01D2 LATIN CAPITAL LETTER O WITH CARON */ | ||
| 1909 | #define XK_Obarred 0x100019f /* U+019F LATIN CAPITAL LETTER O WITH MIDDLE TILDE */ | ||
| 1910 | #define XK_xabovedot 0x1001e8b /* U+1E8B LATIN SMALL LETTER X WITH DOT ABOVE */ | ||
| 1911 | #define XK_ibreve 0x100012d /* U+012D LATIN SMALL LETTER I WITH BREVE */ | ||
| 1912 | #define XK_zstroke 0x10001b6 /* U+01B6 LATIN SMALL LETTER Z WITH STROKE */ | ||
| 1913 | #define XK_gcaron 0x10001e7 /* U+01E7 LATIN SMALL LETTER G WITH CARON */ | ||
| 1914 | #define XK_ocaron 0x10001d2 /* U+01D2 LATIN SMALL LETTER O WITH CARON */ | ||
| 1915 | #define XK_obarred 0x1000275 /* U+0275 LATIN SMALL LETTER BARRED O */ | ||
| 1916 | #define XK_SCHWA 0x100018f /* U+018F LATIN CAPITAL LETTER SCHWA */ | ||
| 1917 | #define XK_schwa 0x1000259 /* U+0259 LATIN SMALL LETTER SCHWA */ | ||
| 1918 | /* those are not really Caucasus */ | ||
| 1919 | /* For Inupiak */ | ||
| 1920 | #define XK_Lbelowdot 0x1001e36 /* U+1E36 LATIN CAPITAL LETTER L WITH DOT BELOW */ | ||
| 1921 | #define XK_lbelowdot 0x1001e37 /* U+1E37 LATIN SMALL LETTER L WITH DOT BELOW */ | ||
| 1922 | #endif /* XK_CAUCASUS */ | ||
| 1923 | |||
| 1924 | /* | ||
| 1925 | * Vietnamese | ||
| 1926 | */ | ||
| 1927 | |||
| 1928 | #ifdef XK_VIETNAMESE | ||
| 1929 | #define XK_Abelowdot 0x1001ea0 /* U+1EA0 LATIN CAPITAL LETTER A WITH DOT BELOW */ | ||
| 1930 | #define XK_abelowdot 0x1001ea1 /* U+1EA1 LATIN SMALL LETTER A WITH DOT BELOW */ | ||
| 1931 | #define XK_Ahook 0x1001ea2 /* U+1EA2 LATIN CAPITAL LETTER A WITH HOOK ABOVE */ | ||
| 1932 | #define XK_ahook 0x1001ea3 /* U+1EA3 LATIN SMALL LETTER A WITH HOOK ABOVE */ | ||
| 1933 | #define XK_Acircumflexacute 0x1001ea4 /* U+1EA4 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND ACUTE */ | ||
| 1934 | #define XK_acircumflexacute 0x1001ea5 /* U+1EA5 LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE */ | ||
| 1935 | #define XK_Acircumflexgrave 0x1001ea6 /* U+1EA6 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND GRAVE */ | ||
| 1936 | #define XK_acircumflexgrave 0x1001ea7 /* U+1EA7 LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE */ | ||
| 1937 | #define XK_Acircumflexhook 0x1001ea8 /* U+1EA8 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1938 | #define XK_acircumflexhook 0x1001ea9 /* U+1EA9 LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1939 | #define XK_Acircumflextilde 0x1001eaa /* U+1EAA LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND TILDE */ | ||
| 1940 | #define XK_acircumflextilde 0x1001eab /* U+1EAB LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE */ | ||
| 1941 | #define XK_Acircumflexbelowdot 0x1001eac /* U+1EAC LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1942 | #define XK_acircumflexbelowdot 0x1001ead /* U+1EAD LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1943 | #define XK_Abreveacute 0x1001eae /* U+1EAE LATIN CAPITAL LETTER A WITH BREVE AND ACUTE */ | ||
| 1944 | #define XK_abreveacute 0x1001eaf /* U+1EAF LATIN SMALL LETTER A WITH BREVE AND ACUTE */ | ||
| 1945 | #define XK_Abrevegrave 0x1001eb0 /* U+1EB0 LATIN CAPITAL LETTER A WITH BREVE AND GRAVE */ | ||
| 1946 | #define XK_abrevegrave 0x1001eb1 /* U+1EB1 LATIN SMALL LETTER A WITH BREVE AND GRAVE */ | ||
| 1947 | #define XK_Abrevehook 0x1001eb2 /* U+1EB2 LATIN CAPITAL LETTER A WITH BREVE AND HOOK ABOVE */ | ||
| 1948 | #define XK_abrevehook 0x1001eb3 /* U+1EB3 LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE */ | ||
| 1949 | #define XK_Abrevetilde 0x1001eb4 /* U+1EB4 LATIN CAPITAL LETTER A WITH BREVE AND TILDE */ | ||
| 1950 | #define XK_abrevetilde 0x1001eb5 /* U+1EB5 LATIN SMALL LETTER A WITH BREVE AND TILDE */ | ||
| 1951 | #define XK_Abrevebelowdot 0x1001eb6 /* U+1EB6 LATIN CAPITAL LETTER A WITH BREVE AND DOT BELOW */ | ||
| 1952 | #define XK_abrevebelowdot 0x1001eb7 /* U+1EB7 LATIN SMALL LETTER A WITH BREVE AND DOT BELOW */ | ||
| 1953 | #define XK_Ebelowdot 0x1001eb8 /* U+1EB8 LATIN CAPITAL LETTER E WITH DOT BELOW */ | ||
| 1954 | #define XK_ebelowdot 0x1001eb9 /* U+1EB9 LATIN SMALL LETTER E WITH DOT BELOW */ | ||
| 1955 | #define XK_Ehook 0x1001eba /* U+1EBA LATIN CAPITAL LETTER E WITH HOOK ABOVE */ | ||
| 1956 | #define XK_ehook 0x1001ebb /* U+1EBB LATIN SMALL LETTER E WITH HOOK ABOVE */ | ||
| 1957 | #define XK_Etilde 0x1001ebc /* U+1EBC LATIN CAPITAL LETTER E WITH TILDE */ | ||
| 1958 | #define XK_etilde 0x1001ebd /* U+1EBD LATIN SMALL LETTER E WITH TILDE */ | ||
| 1959 | #define XK_Ecircumflexacute 0x1001ebe /* U+1EBE LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND ACUTE */ | ||
| 1960 | #define XK_ecircumflexacute 0x1001ebf /* U+1EBF LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE */ | ||
| 1961 | #define XK_Ecircumflexgrave 0x1001ec0 /* U+1EC0 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND GRAVE */ | ||
| 1962 | #define XK_ecircumflexgrave 0x1001ec1 /* U+1EC1 LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE */ | ||
| 1963 | #define XK_Ecircumflexhook 0x1001ec2 /* U+1EC2 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1964 | #define XK_ecircumflexhook 0x1001ec3 /* U+1EC3 LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1965 | #define XK_Ecircumflextilde 0x1001ec4 /* U+1EC4 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND TILDE */ | ||
| 1966 | #define XK_ecircumflextilde 0x1001ec5 /* U+1EC5 LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE */ | ||
| 1967 | #define XK_Ecircumflexbelowdot 0x1001ec6 /* U+1EC6 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1968 | #define XK_ecircumflexbelowdot 0x1001ec7 /* U+1EC7 LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1969 | #define XK_Ihook 0x1001ec8 /* U+1EC8 LATIN CAPITAL LETTER I WITH HOOK ABOVE */ | ||
| 1970 | #define XK_ihook 0x1001ec9 /* U+1EC9 LATIN SMALL LETTER I WITH HOOK ABOVE */ | ||
| 1971 | #define XK_Ibelowdot 0x1001eca /* U+1ECA LATIN CAPITAL LETTER I WITH DOT BELOW */ | ||
| 1972 | #define XK_ibelowdot 0x1001ecb /* U+1ECB LATIN SMALL LETTER I WITH DOT BELOW */ | ||
| 1973 | #define XK_Obelowdot 0x1001ecc /* U+1ECC LATIN CAPITAL LETTER O WITH DOT BELOW */ | ||
| 1974 | #define XK_obelowdot 0x1001ecd /* U+1ECD LATIN SMALL LETTER O WITH DOT BELOW */ | ||
| 1975 | #define XK_Ohook 0x1001ece /* U+1ECE LATIN CAPITAL LETTER O WITH HOOK ABOVE */ | ||
| 1976 | #define XK_ohook 0x1001ecf /* U+1ECF LATIN SMALL LETTER O WITH HOOK ABOVE */ | ||
| 1977 | #define XK_Ocircumflexacute 0x1001ed0 /* U+1ED0 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND ACUTE */ | ||
| 1978 | #define XK_ocircumflexacute 0x1001ed1 /* U+1ED1 LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE */ | ||
| 1979 | #define XK_Ocircumflexgrave 0x1001ed2 /* U+1ED2 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND GRAVE */ | ||
| 1980 | #define XK_ocircumflexgrave 0x1001ed3 /* U+1ED3 LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE */ | ||
| 1981 | #define XK_Ocircumflexhook 0x1001ed4 /* U+1ED4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1982 | #define XK_ocircumflexhook 0x1001ed5 /* U+1ED5 LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE */ | ||
| 1983 | #define XK_Ocircumflextilde 0x1001ed6 /* U+1ED6 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND TILDE */ | ||
| 1984 | #define XK_ocircumflextilde 0x1001ed7 /* U+1ED7 LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE */ | ||
| 1985 | #define XK_Ocircumflexbelowdot 0x1001ed8 /* U+1ED8 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1986 | #define XK_ocircumflexbelowdot 0x1001ed9 /* U+1ED9 LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW */ | ||
| 1987 | #define XK_Ohornacute 0x1001eda /* U+1EDA LATIN CAPITAL LETTER O WITH HORN AND ACUTE */ | ||
| 1988 | #define XK_ohornacute 0x1001edb /* U+1EDB LATIN SMALL LETTER O WITH HORN AND ACUTE */ | ||
| 1989 | #define XK_Ohorngrave 0x1001edc /* U+1EDC LATIN CAPITAL LETTER O WITH HORN AND GRAVE */ | ||
| 1990 | #define XK_ohorngrave 0x1001edd /* U+1EDD LATIN SMALL LETTER O WITH HORN AND GRAVE */ | ||
| 1991 | #define XK_Ohornhook 0x1001ede /* U+1EDE LATIN CAPITAL LETTER O WITH HORN AND HOOK ABOVE */ | ||
| 1992 | #define XK_ohornhook 0x1001edf /* U+1EDF LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE */ | ||
| 1993 | #define XK_Ohorntilde 0x1001ee0 /* U+1EE0 LATIN CAPITAL LETTER O WITH HORN AND TILDE */ | ||
| 1994 | #define XK_ohorntilde 0x1001ee1 /* U+1EE1 LATIN SMALL LETTER O WITH HORN AND TILDE */ | ||
| 1995 | #define XK_Ohornbelowdot 0x1001ee2 /* U+1EE2 LATIN CAPITAL LETTER O WITH HORN AND DOT BELOW */ | ||
| 1996 | #define XK_ohornbelowdot 0x1001ee3 /* U+1EE3 LATIN SMALL LETTER O WITH HORN AND DOT BELOW */ | ||
| 1997 | #define XK_Ubelowdot 0x1001ee4 /* U+1EE4 LATIN CAPITAL LETTER U WITH DOT BELOW */ | ||
| 1998 | #define XK_ubelowdot 0x1001ee5 /* U+1EE5 LATIN SMALL LETTER U WITH DOT BELOW */ | ||
| 1999 | #define XK_Uhook 0x1001ee6 /* U+1EE6 LATIN CAPITAL LETTER U WITH HOOK ABOVE */ | ||
| 2000 | #define XK_uhook 0x1001ee7 /* U+1EE7 LATIN SMALL LETTER U WITH HOOK ABOVE */ | ||
| 2001 | #define XK_Uhornacute 0x1001ee8 /* U+1EE8 LATIN CAPITAL LETTER U WITH HORN AND ACUTE */ | ||
| 2002 | #define XK_uhornacute 0x1001ee9 /* U+1EE9 LATIN SMALL LETTER U WITH HORN AND ACUTE */ | ||
| 2003 | #define XK_Uhorngrave 0x1001eea /* U+1EEA LATIN CAPITAL LETTER U WITH HORN AND GRAVE */ | ||
| 2004 | #define XK_uhorngrave 0x1001eeb /* U+1EEB LATIN SMALL LETTER U WITH HORN AND GRAVE */ | ||
| 2005 | #define XK_Uhornhook 0x1001eec /* U+1EEC LATIN CAPITAL LETTER U WITH HORN AND HOOK ABOVE */ | ||
| 2006 | #define XK_uhornhook 0x1001eed /* U+1EED LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE */ | ||
| 2007 | #define XK_Uhorntilde 0x1001eee /* U+1EEE LATIN CAPITAL LETTER U WITH HORN AND TILDE */ | ||
| 2008 | #define XK_uhorntilde 0x1001eef /* U+1EEF LATIN SMALL LETTER U WITH HORN AND TILDE */ | ||
| 2009 | #define XK_Uhornbelowdot 0x1001ef0 /* U+1EF0 LATIN CAPITAL LETTER U WITH HORN AND DOT BELOW */ | ||
| 2010 | #define XK_uhornbelowdot 0x1001ef1 /* U+1EF1 LATIN SMALL LETTER U WITH HORN AND DOT BELOW */ | ||
| 2011 | #define XK_Ybelowdot 0x1001ef4 /* U+1EF4 LATIN CAPITAL LETTER Y WITH DOT BELOW */ | ||
| 2012 | #define XK_ybelowdot 0x1001ef5 /* U+1EF5 LATIN SMALL LETTER Y WITH DOT BELOW */ | ||
| 2013 | #define XK_Yhook 0x1001ef6 /* U+1EF6 LATIN CAPITAL LETTER Y WITH HOOK ABOVE */ | ||
| 2014 | #define XK_yhook 0x1001ef7 /* U+1EF7 LATIN SMALL LETTER Y WITH HOOK ABOVE */ | ||
| 2015 | #define XK_Ytilde 0x1001ef8 /* U+1EF8 LATIN CAPITAL LETTER Y WITH TILDE */ | ||
| 2016 | #define XK_ytilde 0x1001ef9 /* U+1EF9 LATIN SMALL LETTER Y WITH TILDE */ | ||
| 2017 | #define XK_Ohorn 0x10001a0 /* U+01A0 LATIN CAPITAL LETTER O WITH HORN */ | ||
| 2018 | #define XK_ohorn 0x10001a1 /* U+01A1 LATIN SMALL LETTER O WITH HORN */ | ||
| 2019 | #define XK_Uhorn 0x10001af /* U+01AF LATIN CAPITAL LETTER U WITH HORN */ | ||
| 2020 | #define XK_uhorn 0x10001b0 /* U+01B0 LATIN SMALL LETTER U WITH HORN */ | ||
| 2021 | |||
| 2022 | #endif /* XK_VIETNAMESE */ | ||
| 2023 | |||
| 2024 | #ifdef XK_CURRENCY | ||
| 2025 | #define XK_EcuSign 0x10020a0 /* U+20A0 EURO-CURRENCY SIGN */ | ||
| 2026 | #define XK_ColonSign 0x10020a1 /* U+20A1 COLON SIGN */ | ||
| 2027 | #define XK_CruzeiroSign 0x10020a2 /* U+20A2 CRUZEIRO SIGN */ | ||
| 2028 | #define XK_FFrancSign 0x10020a3 /* U+20A3 FRENCH FRANC SIGN */ | ||
| 2029 | #define XK_LiraSign 0x10020a4 /* U+20A4 LIRA SIGN */ | ||
| 2030 | #define XK_MillSign 0x10020a5 /* U+20A5 MILL SIGN */ | ||
| 2031 | #define XK_NairaSign 0x10020a6 /* U+20A6 NAIRA SIGN */ | ||
| 2032 | #define XK_PesetaSign 0x10020a7 /* U+20A7 PESETA SIGN */ | ||
| 2033 | #define XK_RupeeSign 0x10020a8 /* U+20A8 RUPEE SIGN */ | ||
| 2034 | #define XK_WonSign 0x10020a9 /* U+20A9 WON SIGN */ | ||
| 2035 | #define XK_NewSheqelSign 0x10020aa /* U+20AA NEW SHEQEL SIGN */ | ||
| 2036 | #define XK_DongSign 0x10020ab /* U+20AB DONG SIGN */ | ||
| 2037 | #define XK_EuroSign 0x20ac /* U+20AC EURO SIGN */ | ||
| 2038 | #endif /* XK_CURRENCY */ | ||
| 2039 | |||
| 2040 | #ifdef XK_MATHEMATICAL | ||
| 2041 | /* one, two and three are defined above. */ | ||
| 2042 | #define XK_zerosuperior 0x1002070 /* U+2070 SUPERSCRIPT ZERO */ | ||
| 2043 | #define XK_foursuperior 0x1002074 /* U+2074 SUPERSCRIPT FOUR */ | ||
| 2044 | #define XK_fivesuperior 0x1002075 /* U+2075 SUPERSCRIPT FIVE */ | ||
| 2045 | #define XK_sixsuperior 0x1002076 /* U+2076 SUPERSCRIPT SIX */ | ||
| 2046 | #define XK_sevensuperior 0x1002077 /* U+2077 SUPERSCRIPT SEVEN */ | ||
| 2047 | #define XK_eightsuperior 0x1002078 /* U+2078 SUPERSCRIPT EIGHT */ | ||
| 2048 | #define XK_ninesuperior 0x1002079 /* U+2079 SUPERSCRIPT NINE */ | ||
| 2049 | #define XK_zerosubscript 0x1002080 /* U+2080 SUBSCRIPT ZERO */ | ||
| 2050 | #define XK_onesubscript 0x1002081 /* U+2081 SUBSCRIPT ONE */ | ||
| 2051 | #define XK_twosubscript 0x1002082 /* U+2082 SUBSCRIPT TWO */ | ||
| 2052 | #define XK_threesubscript 0x1002083 /* U+2083 SUBSCRIPT THREE */ | ||
| 2053 | #define XK_foursubscript 0x1002084 /* U+2084 SUBSCRIPT FOUR */ | ||
| 2054 | #define XK_fivesubscript 0x1002085 /* U+2085 SUBSCRIPT FIVE */ | ||
| 2055 | #define XK_sixsubscript 0x1002086 /* U+2086 SUBSCRIPT SIX */ | ||
| 2056 | #define XK_sevensubscript 0x1002087 /* U+2087 SUBSCRIPT SEVEN */ | ||
| 2057 | #define XK_eightsubscript 0x1002088 /* U+2088 SUBSCRIPT EIGHT */ | ||
| 2058 | #define XK_ninesubscript 0x1002089 /* U+2089 SUBSCRIPT NINE */ | ||
| 2059 | #define XK_partdifferential 0x1002202 /* U+2202 PARTIAL DIFFERENTIAL */ | ||
| 2060 | #define XK_emptyset 0x1002205 /* U+2205 NULL SET */ | ||
| 2061 | #define XK_elementof 0x1002208 /* U+2208 ELEMENT OF */ | ||
| 2062 | #define XK_notelementof 0x1002209 /* U+2209 NOT AN ELEMENT OF */ | ||
| 2063 | #define XK_containsas 0x100220B /* U+220B CONTAINS AS MEMBER */ | ||
| 2064 | #define XK_squareroot 0x100221A /* U+221A SQUARE ROOT */ | ||
| 2065 | #define XK_cuberoot 0x100221B /* U+221B CUBE ROOT */ | ||
| 2066 | #define XK_fourthroot 0x100221C /* U+221C FOURTH ROOT */ | ||
| 2067 | #define XK_dintegral 0x100222C /* U+222C DOUBLE INTEGRAL */ | ||
| 2068 | #define XK_tintegral 0x100222D /* U+222D TRIPLE INTEGRAL */ | ||
| 2069 | #define XK_because 0x1002235 /* U+2235 BECAUSE */ | ||
| 2070 | #define XK_approxeq 0x1002248 /* U+2245 ALMOST EQUAL TO */ | ||
| 2071 | #define XK_notapproxeq 0x1002247 /* U+2247 NOT ALMOST EQUAL TO */ | ||
| 2072 | #define XK_notidentical 0x1002262 /* U+2262 NOT IDENTICAL TO */ | ||
| 2073 | #define XK_stricteq 0x1002263 /* U+2263 STRICTLY EQUIVALENT TO */ | ||
| 2074 | #endif /* XK_MATHEMATICAL */ | ||
| 2075 | |||
| 2076 | #ifdef XK_BRAILLE | ||
| 2077 | #define XK_braille_dot_1 0xfff1 | ||
| 2078 | #define XK_braille_dot_2 0xfff2 | ||
| 2079 | #define XK_braille_dot_3 0xfff3 | ||
| 2080 | #define XK_braille_dot_4 0xfff4 | ||
| 2081 | #define XK_braille_dot_5 0xfff5 | ||
| 2082 | #define XK_braille_dot_6 0xfff6 | ||
| 2083 | #define XK_braille_dot_7 0xfff7 | ||
| 2084 | #define XK_braille_dot_8 0xfff8 | ||
| 2085 | #define XK_braille_dot_9 0xfff9 | ||
| 2086 | #define XK_braille_dot_10 0xfffa | ||
| 2087 | #define XK_braille_blank 0x1002800 /* U+2800 BRAILLE PATTERN BLANK */ | ||
| 2088 | #define XK_braille_dots_1 0x1002801 /* U+2801 BRAILLE PATTERN DOTS-1 */ | ||
| 2089 | #define XK_braille_dots_2 0x1002802 /* U+2802 BRAILLE PATTERN DOTS-2 */ | ||
| 2090 | #define XK_braille_dots_12 0x1002803 /* U+2803 BRAILLE PATTERN DOTS-12 */ | ||
| 2091 | #define XK_braille_dots_3 0x1002804 /* U+2804 BRAILLE PATTERN DOTS-3 */ | ||
| 2092 | #define XK_braille_dots_13 0x1002805 /* U+2805 BRAILLE PATTERN DOTS-13 */ | ||
| 2093 | #define XK_braille_dots_23 0x1002806 /* U+2806 BRAILLE PATTERN DOTS-23 */ | ||
| 2094 | #define XK_braille_dots_123 0x1002807 /* U+2807 BRAILLE PATTERN DOTS-123 */ | ||
| 2095 | #define XK_braille_dots_4 0x1002808 /* U+2808 BRAILLE PATTERN DOTS-4 */ | ||
| 2096 | #define XK_braille_dots_14 0x1002809 /* U+2809 BRAILLE PATTERN DOTS-14 */ | ||
| 2097 | #define XK_braille_dots_24 0x100280a /* U+280a BRAILLE PATTERN DOTS-24 */ | ||
| 2098 | #define XK_braille_dots_124 0x100280b /* U+280b BRAILLE PATTERN DOTS-124 */ | ||
| 2099 | #define XK_braille_dots_34 0x100280c /* U+280c BRAILLE PATTERN DOTS-34 */ | ||
| 2100 | #define XK_braille_dots_134 0x100280d /* U+280d BRAILLE PATTERN DOTS-134 */ | ||
| 2101 | #define XK_braille_dots_234 0x100280e /* U+280e BRAILLE PATTERN DOTS-234 */ | ||
| 2102 | #define XK_braille_dots_1234 0x100280f /* U+280f BRAILLE PATTERN DOTS-1234 */ | ||
| 2103 | #define XK_braille_dots_5 0x1002810 /* U+2810 BRAILLE PATTERN DOTS-5 */ | ||
| 2104 | #define XK_braille_dots_15 0x1002811 /* U+2811 BRAILLE PATTERN DOTS-15 */ | ||
| 2105 | #define XK_braille_dots_25 0x1002812 /* U+2812 BRAILLE PATTERN DOTS-25 */ | ||
| 2106 | #define XK_braille_dots_125 0x1002813 /* U+2813 BRAILLE PATTERN DOTS-125 */ | ||
| 2107 | #define XK_braille_dots_35 0x1002814 /* U+2814 BRAILLE PATTERN DOTS-35 */ | ||
| 2108 | #define XK_braille_dots_135 0x1002815 /* U+2815 BRAILLE PATTERN DOTS-135 */ | ||
| 2109 | #define XK_braille_dots_235 0x1002816 /* U+2816 BRAILLE PATTERN DOTS-235 */ | ||
| 2110 | #define XK_braille_dots_1235 0x1002817 /* U+2817 BRAILLE PATTERN DOTS-1235 */ | ||
| 2111 | #define XK_braille_dots_45 0x1002818 /* U+2818 BRAILLE PATTERN DOTS-45 */ | ||
| 2112 | #define XK_braille_dots_145 0x1002819 /* U+2819 BRAILLE PATTERN DOTS-145 */ | ||
| 2113 | #define XK_braille_dots_245 0x100281a /* U+281a BRAILLE PATTERN DOTS-245 */ | ||
| 2114 | #define XK_braille_dots_1245 0x100281b /* U+281b BRAILLE PATTERN DOTS-1245 */ | ||
| 2115 | #define XK_braille_dots_345 0x100281c /* U+281c BRAILLE PATTERN DOTS-345 */ | ||
| 2116 | #define XK_braille_dots_1345 0x100281d /* U+281d BRAILLE PATTERN DOTS-1345 */ | ||
| 2117 | #define XK_braille_dots_2345 0x100281e /* U+281e BRAILLE PATTERN DOTS-2345 */ | ||
| 2118 | #define XK_braille_dots_12345 0x100281f /* U+281f BRAILLE PATTERN DOTS-12345 */ | ||
| 2119 | #define XK_braille_dots_6 0x1002820 /* U+2820 BRAILLE PATTERN DOTS-6 */ | ||
| 2120 | #define XK_braille_dots_16 0x1002821 /* U+2821 BRAILLE PATTERN DOTS-16 */ | ||
| 2121 | #define XK_braille_dots_26 0x1002822 /* U+2822 BRAILLE PATTERN DOTS-26 */ | ||
| 2122 | #define XK_braille_dots_126 0x1002823 /* U+2823 BRAILLE PATTERN DOTS-126 */ | ||
| 2123 | #define XK_braille_dots_36 0x1002824 /* U+2824 BRAILLE PATTERN DOTS-36 */ | ||
| 2124 | #define XK_braille_dots_136 0x1002825 /* U+2825 BRAILLE PATTERN DOTS-136 */ | ||
| 2125 | #define XK_braille_dots_236 0x1002826 /* U+2826 BRAILLE PATTERN DOTS-236 */ | ||
| 2126 | #define XK_braille_dots_1236 0x1002827 /* U+2827 BRAILLE PATTERN DOTS-1236 */ | ||
| 2127 | #define XK_braille_dots_46 0x1002828 /* U+2828 BRAILLE PATTERN DOTS-46 */ | ||
| 2128 | #define XK_braille_dots_146 0x1002829 /* U+2829 BRAILLE PATTERN DOTS-146 */ | ||
| 2129 | #define XK_braille_dots_246 0x100282a /* U+282a BRAILLE PATTERN DOTS-246 */ | ||
| 2130 | #define XK_braille_dots_1246 0x100282b /* U+282b BRAILLE PATTERN DOTS-1246 */ | ||
| 2131 | #define XK_braille_dots_346 0x100282c /* U+282c BRAILLE PATTERN DOTS-346 */ | ||
| 2132 | #define XK_braille_dots_1346 0x100282d /* U+282d BRAILLE PATTERN DOTS-1346 */ | ||
| 2133 | #define XK_braille_dots_2346 0x100282e /* U+282e BRAILLE PATTERN DOTS-2346 */ | ||
| 2134 | #define XK_braille_dots_12346 0x100282f /* U+282f BRAILLE PATTERN DOTS-12346 */ | ||
| 2135 | #define XK_braille_dots_56 0x1002830 /* U+2830 BRAILLE PATTERN DOTS-56 */ | ||
| 2136 | #define XK_braille_dots_156 0x1002831 /* U+2831 BRAILLE PATTERN DOTS-156 */ | ||
| 2137 | #define XK_braille_dots_256 0x1002832 /* U+2832 BRAILLE PATTERN DOTS-256 */ | ||
| 2138 | #define XK_braille_dots_1256 0x1002833 /* U+2833 BRAILLE PATTERN DOTS-1256 */ | ||
| 2139 | #define XK_braille_dots_356 0x1002834 /* U+2834 BRAILLE PATTERN DOTS-356 */ | ||
| 2140 | #define XK_braille_dots_1356 0x1002835 /* U+2835 BRAILLE PATTERN DOTS-1356 */ | ||
| 2141 | #define XK_braille_dots_2356 0x1002836 /* U+2836 BRAILLE PATTERN DOTS-2356 */ | ||
| 2142 | #define XK_braille_dots_12356 0x1002837 /* U+2837 BRAILLE PATTERN DOTS-12356 */ | ||
| 2143 | #define XK_braille_dots_456 0x1002838 /* U+2838 BRAILLE PATTERN DOTS-456 */ | ||
| 2144 | #define XK_braille_dots_1456 0x1002839 /* U+2839 BRAILLE PATTERN DOTS-1456 */ | ||
| 2145 | #define XK_braille_dots_2456 0x100283a /* U+283a BRAILLE PATTERN DOTS-2456 */ | ||
| 2146 | #define XK_braille_dots_12456 0x100283b /* U+283b BRAILLE PATTERN DOTS-12456 */ | ||
| 2147 | #define XK_braille_dots_3456 0x100283c /* U+283c BRAILLE PATTERN DOTS-3456 */ | ||
| 2148 | #define XK_braille_dots_13456 0x100283d /* U+283d BRAILLE PATTERN DOTS-13456 */ | ||
| 2149 | #define XK_braille_dots_23456 0x100283e /* U+283e BRAILLE PATTERN DOTS-23456 */ | ||
| 2150 | #define XK_braille_dots_123456 0x100283f /* U+283f BRAILLE PATTERN DOTS-123456 */ | ||
| 2151 | #define XK_braille_dots_7 0x1002840 /* U+2840 BRAILLE PATTERN DOTS-7 */ | ||
| 2152 | #define XK_braille_dots_17 0x1002841 /* U+2841 BRAILLE PATTERN DOTS-17 */ | ||
| 2153 | #define XK_braille_dots_27 0x1002842 /* U+2842 BRAILLE PATTERN DOTS-27 */ | ||
| 2154 | #define XK_braille_dots_127 0x1002843 /* U+2843 BRAILLE PATTERN DOTS-127 */ | ||
| 2155 | #define XK_braille_dots_37 0x1002844 /* U+2844 BRAILLE PATTERN DOTS-37 */ | ||
| 2156 | #define XK_braille_dots_137 0x1002845 /* U+2845 BRAILLE PATTERN DOTS-137 */ | ||
| 2157 | #define XK_braille_dots_237 0x1002846 /* U+2846 BRAILLE PATTERN DOTS-237 */ | ||
| 2158 | #define XK_braille_dots_1237 0x1002847 /* U+2847 BRAILLE PATTERN DOTS-1237 */ | ||
| 2159 | #define XK_braille_dots_47 0x1002848 /* U+2848 BRAILLE PATTERN DOTS-47 */ | ||
| 2160 | #define XK_braille_dots_147 0x1002849 /* U+2849 BRAILLE PATTERN DOTS-147 */ | ||
| 2161 | #define XK_braille_dots_247 0x100284a /* U+284a BRAILLE PATTERN DOTS-247 */ | ||
| 2162 | #define XK_braille_dots_1247 0x100284b /* U+284b BRAILLE PATTERN DOTS-1247 */ | ||
| 2163 | #define XK_braille_dots_347 0x100284c /* U+284c BRAILLE PATTERN DOTS-347 */ | ||
| 2164 | #define XK_braille_dots_1347 0x100284d /* U+284d BRAILLE PATTERN DOTS-1347 */ | ||
| 2165 | #define XK_braille_dots_2347 0x100284e /* U+284e BRAILLE PATTERN DOTS-2347 */ | ||
| 2166 | #define XK_braille_dots_12347 0x100284f /* U+284f BRAILLE PATTERN DOTS-12347 */ | ||
| 2167 | #define XK_braille_dots_57 0x1002850 /* U+2850 BRAILLE PATTERN DOTS-57 */ | ||
| 2168 | #define XK_braille_dots_157 0x1002851 /* U+2851 BRAILLE PATTERN DOTS-157 */ | ||
| 2169 | #define XK_braille_dots_257 0x1002852 /* U+2852 BRAILLE PATTERN DOTS-257 */ | ||
| 2170 | #define XK_braille_dots_1257 0x1002853 /* U+2853 BRAILLE PATTERN DOTS-1257 */ | ||
| 2171 | #define XK_braille_dots_357 0x1002854 /* U+2854 BRAILLE PATTERN DOTS-357 */ | ||
| 2172 | #define XK_braille_dots_1357 0x1002855 /* U+2855 BRAILLE PATTERN DOTS-1357 */ | ||
| 2173 | #define XK_braille_dots_2357 0x1002856 /* U+2856 BRAILLE PATTERN DOTS-2357 */ | ||
| 2174 | #define XK_braille_dots_12357 0x1002857 /* U+2857 BRAILLE PATTERN DOTS-12357 */ | ||
| 2175 | #define XK_braille_dots_457 0x1002858 /* U+2858 BRAILLE PATTERN DOTS-457 */ | ||
| 2176 | #define XK_braille_dots_1457 0x1002859 /* U+2859 BRAILLE PATTERN DOTS-1457 */ | ||
| 2177 | #define XK_braille_dots_2457 0x100285a /* U+285a BRAILLE PATTERN DOTS-2457 */ | ||
| 2178 | #define XK_braille_dots_12457 0x100285b /* U+285b BRAILLE PATTERN DOTS-12457 */ | ||
| 2179 | #define XK_braille_dots_3457 0x100285c /* U+285c BRAILLE PATTERN DOTS-3457 */ | ||
| 2180 | #define XK_braille_dots_13457 0x100285d /* U+285d BRAILLE PATTERN DOTS-13457 */ | ||
| 2181 | #define XK_braille_dots_23457 0x100285e /* U+285e BRAILLE PATTERN DOTS-23457 */ | ||
| 2182 | #define XK_braille_dots_123457 0x100285f /* U+285f BRAILLE PATTERN DOTS-123457 */ | ||
| 2183 | #define XK_braille_dots_67 0x1002860 /* U+2860 BRAILLE PATTERN DOTS-67 */ | ||
| 2184 | #define XK_braille_dots_167 0x1002861 /* U+2861 BRAILLE PATTERN DOTS-167 */ | ||
| 2185 | #define XK_braille_dots_267 0x1002862 /* U+2862 BRAILLE PATTERN DOTS-267 */ | ||
| 2186 | #define XK_braille_dots_1267 0x1002863 /* U+2863 BRAILLE PATTERN DOTS-1267 */ | ||
| 2187 | #define XK_braille_dots_367 0x1002864 /* U+2864 BRAILLE PATTERN DOTS-367 */ | ||
| 2188 | #define XK_braille_dots_1367 0x1002865 /* U+2865 BRAILLE PATTERN DOTS-1367 */ | ||
| 2189 | #define XK_braille_dots_2367 0x1002866 /* U+2866 BRAILLE PATTERN DOTS-2367 */ | ||
| 2190 | #define XK_braille_dots_12367 0x1002867 /* U+2867 BRAILLE PATTERN DOTS-12367 */ | ||
| 2191 | #define XK_braille_dots_467 0x1002868 /* U+2868 BRAILLE PATTERN DOTS-467 */ | ||
| 2192 | #define XK_braille_dots_1467 0x1002869 /* U+2869 BRAILLE PATTERN DOTS-1467 */ | ||
| 2193 | #define XK_braille_dots_2467 0x100286a /* U+286a BRAILLE PATTERN DOTS-2467 */ | ||
| 2194 | #define XK_braille_dots_12467 0x100286b /* U+286b BRAILLE PATTERN DOTS-12467 */ | ||
| 2195 | #define XK_braille_dots_3467 0x100286c /* U+286c BRAILLE PATTERN DOTS-3467 */ | ||
| 2196 | #define XK_braille_dots_13467 0x100286d /* U+286d BRAILLE PATTERN DOTS-13467 */ | ||
| 2197 | #define XK_braille_dots_23467 0x100286e /* U+286e BRAILLE PATTERN DOTS-23467 */ | ||
| 2198 | #define XK_braille_dots_123467 0x100286f /* U+286f BRAILLE PATTERN DOTS-123467 */ | ||
| 2199 | #define XK_braille_dots_567 0x1002870 /* U+2870 BRAILLE PATTERN DOTS-567 */ | ||
| 2200 | #define XK_braille_dots_1567 0x1002871 /* U+2871 BRAILLE PATTERN DOTS-1567 */ | ||
| 2201 | #define XK_braille_dots_2567 0x1002872 /* U+2872 BRAILLE PATTERN DOTS-2567 */ | ||
| 2202 | #define XK_braille_dots_12567 0x1002873 /* U+2873 BRAILLE PATTERN DOTS-12567 */ | ||
| 2203 | #define XK_braille_dots_3567 0x1002874 /* U+2874 BRAILLE PATTERN DOTS-3567 */ | ||
| 2204 | #define XK_braille_dots_13567 0x1002875 /* U+2875 BRAILLE PATTERN DOTS-13567 */ | ||
| 2205 | #define XK_braille_dots_23567 0x1002876 /* U+2876 BRAILLE PATTERN DOTS-23567 */ | ||
| 2206 | #define XK_braille_dots_123567 0x1002877 /* U+2877 BRAILLE PATTERN DOTS-123567 */ | ||
| 2207 | #define XK_braille_dots_4567 0x1002878 /* U+2878 BRAILLE PATTERN DOTS-4567 */ | ||
| 2208 | #define XK_braille_dots_14567 0x1002879 /* U+2879 BRAILLE PATTERN DOTS-14567 */ | ||
| 2209 | #define XK_braille_dots_24567 0x100287a /* U+287a BRAILLE PATTERN DOTS-24567 */ | ||
| 2210 | #define XK_braille_dots_124567 0x100287b /* U+287b BRAILLE PATTERN DOTS-124567 */ | ||
| 2211 | #define XK_braille_dots_34567 0x100287c /* U+287c BRAILLE PATTERN DOTS-34567 */ | ||
| 2212 | #define XK_braille_dots_134567 0x100287d /* U+287d BRAILLE PATTERN DOTS-134567 */ | ||
| 2213 | #define XK_braille_dots_234567 0x100287e /* U+287e BRAILLE PATTERN DOTS-234567 */ | ||
| 2214 | #define XK_braille_dots_1234567 0x100287f /* U+287f BRAILLE PATTERN DOTS-1234567 */ | ||
| 2215 | #define XK_braille_dots_8 0x1002880 /* U+2880 BRAILLE PATTERN DOTS-8 */ | ||
| 2216 | #define XK_braille_dots_18 0x1002881 /* U+2881 BRAILLE PATTERN DOTS-18 */ | ||
| 2217 | #define XK_braille_dots_28 0x1002882 /* U+2882 BRAILLE PATTERN DOTS-28 */ | ||
| 2218 | #define XK_braille_dots_128 0x1002883 /* U+2883 BRAILLE PATTERN DOTS-128 */ | ||
| 2219 | #define XK_braille_dots_38 0x1002884 /* U+2884 BRAILLE PATTERN DOTS-38 */ | ||
| 2220 | #define XK_braille_dots_138 0x1002885 /* U+2885 BRAILLE PATTERN DOTS-138 */ | ||
| 2221 | #define XK_braille_dots_238 0x1002886 /* U+2886 BRAILLE PATTERN DOTS-238 */ | ||
| 2222 | #define XK_braille_dots_1238 0x1002887 /* U+2887 BRAILLE PATTERN DOTS-1238 */ | ||
| 2223 | #define XK_braille_dots_48 0x1002888 /* U+2888 BRAILLE PATTERN DOTS-48 */ | ||
| 2224 | #define XK_braille_dots_148 0x1002889 /* U+2889 BRAILLE PATTERN DOTS-148 */ | ||
| 2225 | #define XK_braille_dots_248 0x100288a /* U+288a BRAILLE PATTERN DOTS-248 */ | ||
| 2226 | #define XK_braille_dots_1248 0x100288b /* U+288b BRAILLE PATTERN DOTS-1248 */ | ||
| 2227 | #define XK_braille_dots_348 0x100288c /* U+288c BRAILLE PATTERN DOTS-348 */ | ||
| 2228 | #define XK_braille_dots_1348 0x100288d /* U+288d BRAILLE PATTERN DOTS-1348 */ | ||
| 2229 | #define XK_braille_dots_2348 0x100288e /* U+288e BRAILLE PATTERN DOTS-2348 */ | ||
| 2230 | #define XK_braille_dots_12348 0x100288f /* U+288f BRAILLE PATTERN DOTS-12348 */ | ||
| 2231 | #define XK_braille_dots_58 0x1002890 /* U+2890 BRAILLE PATTERN DOTS-58 */ | ||
| 2232 | #define XK_braille_dots_158 0x1002891 /* U+2891 BRAILLE PATTERN DOTS-158 */ | ||
| 2233 | #define XK_braille_dots_258 0x1002892 /* U+2892 BRAILLE PATTERN DOTS-258 */ | ||
| 2234 | #define XK_braille_dots_1258 0x1002893 /* U+2893 BRAILLE PATTERN DOTS-1258 */ | ||
| 2235 | #define XK_braille_dots_358 0x1002894 /* U+2894 BRAILLE PATTERN DOTS-358 */ | ||
| 2236 | #define XK_braille_dots_1358 0x1002895 /* U+2895 BRAILLE PATTERN DOTS-1358 */ | ||
| 2237 | #define XK_braille_dots_2358 0x1002896 /* U+2896 BRAILLE PATTERN DOTS-2358 */ | ||
| 2238 | #define XK_braille_dots_12358 0x1002897 /* U+2897 BRAILLE PATTERN DOTS-12358 */ | ||
| 2239 | #define XK_braille_dots_458 0x1002898 /* U+2898 BRAILLE PATTERN DOTS-458 */ | ||
| 2240 | #define XK_braille_dots_1458 0x1002899 /* U+2899 BRAILLE PATTERN DOTS-1458 */ | ||
| 2241 | #define XK_braille_dots_2458 0x100289a /* U+289a BRAILLE PATTERN DOTS-2458 */ | ||
| 2242 | #define XK_braille_dots_12458 0x100289b /* U+289b BRAILLE PATTERN DOTS-12458 */ | ||
| 2243 | #define XK_braille_dots_3458 0x100289c /* U+289c BRAILLE PATTERN DOTS-3458 */ | ||
| 2244 | #define XK_braille_dots_13458 0x100289d /* U+289d BRAILLE PATTERN DOTS-13458 */ | ||
| 2245 | #define XK_braille_dots_23458 0x100289e /* U+289e BRAILLE PATTERN DOTS-23458 */ | ||
| 2246 | #define XK_braille_dots_123458 0x100289f /* U+289f BRAILLE PATTERN DOTS-123458 */ | ||
| 2247 | #define XK_braille_dots_68 0x10028a0 /* U+28a0 BRAILLE PATTERN DOTS-68 */ | ||
| 2248 | #define XK_braille_dots_168 0x10028a1 /* U+28a1 BRAILLE PATTERN DOTS-168 */ | ||
| 2249 | #define XK_braille_dots_268 0x10028a2 /* U+28a2 BRAILLE PATTERN DOTS-268 */ | ||
| 2250 | #define XK_braille_dots_1268 0x10028a3 /* U+28a3 BRAILLE PATTERN DOTS-1268 */ | ||
| 2251 | #define XK_braille_dots_368 0x10028a4 /* U+28a4 BRAILLE PATTERN DOTS-368 */ | ||
| 2252 | #define XK_braille_dots_1368 0x10028a5 /* U+28a5 BRAILLE PATTERN DOTS-1368 */ | ||
| 2253 | #define XK_braille_dots_2368 0x10028a6 /* U+28a6 BRAILLE PATTERN DOTS-2368 */ | ||
| 2254 | #define XK_braille_dots_12368 0x10028a7 /* U+28a7 BRAILLE PATTERN DOTS-12368 */ | ||
| 2255 | #define XK_braille_dots_468 0x10028a8 /* U+28a8 BRAILLE PATTERN DOTS-468 */ | ||
| 2256 | #define XK_braille_dots_1468 0x10028a9 /* U+28a9 BRAILLE PATTERN DOTS-1468 */ | ||
| 2257 | #define XK_braille_dots_2468 0x10028aa /* U+28aa BRAILLE PATTERN DOTS-2468 */ | ||
| 2258 | #define XK_braille_dots_12468 0x10028ab /* U+28ab BRAILLE PATTERN DOTS-12468 */ | ||
| 2259 | #define XK_braille_dots_3468 0x10028ac /* U+28ac BRAILLE PATTERN DOTS-3468 */ | ||
| 2260 | #define XK_braille_dots_13468 0x10028ad /* U+28ad BRAILLE PATTERN DOTS-13468 */ | ||
| 2261 | #define XK_braille_dots_23468 0x10028ae /* U+28ae BRAILLE PATTERN DOTS-23468 */ | ||
| 2262 | #define XK_braille_dots_123468 0x10028af /* U+28af BRAILLE PATTERN DOTS-123468 */ | ||
| 2263 | #define XK_braille_dots_568 0x10028b0 /* U+28b0 BRAILLE PATTERN DOTS-568 */ | ||
| 2264 | #define XK_braille_dots_1568 0x10028b1 /* U+28b1 BRAILLE PATTERN DOTS-1568 */ | ||
| 2265 | #define XK_braille_dots_2568 0x10028b2 /* U+28b2 BRAILLE PATTERN DOTS-2568 */ | ||
| 2266 | #define XK_braille_dots_12568 0x10028b3 /* U+28b3 BRAILLE PATTERN DOTS-12568 */ | ||
| 2267 | #define XK_braille_dots_3568 0x10028b4 /* U+28b4 BRAILLE PATTERN DOTS-3568 */ | ||
| 2268 | #define XK_braille_dots_13568 0x10028b5 /* U+28b5 BRAILLE PATTERN DOTS-13568 */ | ||
| 2269 | #define XK_braille_dots_23568 0x10028b6 /* U+28b6 BRAILLE PATTERN DOTS-23568 */ | ||
| 2270 | #define XK_braille_dots_123568 0x10028b7 /* U+28b7 BRAILLE PATTERN DOTS-123568 */ | ||
| 2271 | #define XK_braille_dots_4568 0x10028b8 /* U+28b8 BRAILLE PATTERN DOTS-4568 */ | ||
| 2272 | #define XK_braille_dots_14568 0x10028b9 /* U+28b9 BRAILLE PATTERN DOTS-14568 */ | ||
| 2273 | #define XK_braille_dots_24568 0x10028ba /* U+28ba BRAILLE PATTERN DOTS-24568 */ | ||
| 2274 | #define XK_braille_dots_124568 0x10028bb /* U+28bb BRAILLE PATTERN DOTS-124568 */ | ||
| 2275 | #define XK_braille_dots_34568 0x10028bc /* U+28bc BRAILLE PATTERN DOTS-34568 */ | ||
| 2276 | #define XK_braille_dots_134568 0x10028bd /* U+28bd BRAILLE PATTERN DOTS-134568 */ | ||
| 2277 | #define XK_braille_dots_234568 0x10028be /* U+28be BRAILLE PATTERN DOTS-234568 */ | ||
| 2278 | #define XK_braille_dots_1234568 0x10028bf /* U+28bf BRAILLE PATTERN DOTS-1234568 */ | ||
| 2279 | #define XK_braille_dots_78 0x10028c0 /* U+28c0 BRAILLE PATTERN DOTS-78 */ | ||
| 2280 | #define XK_braille_dots_178 0x10028c1 /* U+28c1 BRAILLE PATTERN DOTS-178 */ | ||
| 2281 | #define XK_braille_dots_278 0x10028c2 /* U+28c2 BRAILLE PATTERN DOTS-278 */ | ||
| 2282 | #define XK_braille_dots_1278 0x10028c3 /* U+28c3 BRAILLE PATTERN DOTS-1278 */ | ||
| 2283 | #define XK_braille_dots_378 0x10028c4 /* U+28c4 BRAILLE PATTERN DOTS-378 */ | ||
| 2284 | #define XK_braille_dots_1378 0x10028c5 /* U+28c5 BRAILLE PATTERN DOTS-1378 */ | ||
| 2285 | #define XK_braille_dots_2378 0x10028c6 /* U+28c6 BRAILLE PATTERN DOTS-2378 */ | ||
| 2286 | #define XK_braille_dots_12378 0x10028c7 /* U+28c7 BRAILLE PATTERN DOTS-12378 */ | ||
| 2287 | #define XK_braille_dots_478 0x10028c8 /* U+28c8 BRAILLE PATTERN DOTS-478 */ | ||
| 2288 | #define XK_braille_dots_1478 0x10028c9 /* U+28c9 BRAILLE PATTERN DOTS-1478 */ | ||
| 2289 | #define XK_braille_dots_2478 0x10028ca /* U+28ca BRAILLE PATTERN DOTS-2478 */ | ||
| 2290 | #define XK_braille_dots_12478 0x10028cb /* U+28cb BRAILLE PATTERN DOTS-12478 */ | ||
| 2291 | #define XK_braille_dots_3478 0x10028cc /* U+28cc BRAILLE PATTERN DOTS-3478 */ | ||
| 2292 | #define XK_braille_dots_13478 0x10028cd /* U+28cd BRAILLE PATTERN DOTS-13478 */ | ||
| 2293 | #define XK_braille_dots_23478 0x10028ce /* U+28ce BRAILLE PATTERN DOTS-23478 */ | ||
| 2294 | #define XK_braille_dots_123478 0x10028cf /* U+28cf BRAILLE PATTERN DOTS-123478 */ | ||
| 2295 | #define XK_braille_dots_578 0x10028d0 /* U+28d0 BRAILLE PATTERN DOTS-578 */ | ||
| 2296 | #define XK_braille_dots_1578 0x10028d1 /* U+28d1 BRAILLE PATTERN DOTS-1578 */ | ||
| 2297 | #define XK_braille_dots_2578 0x10028d2 /* U+28d2 BRAILLE PATTERN DOTS-2578 */ | ||
| 2298 | #define XK_braille_dots_12578 0x10028d3 /* U+28d3 BRAILLE PATTERN DOTS-12578 */ | ||
| 2299 | #define XK_braille_dots_3578 0x10028d4 /* U+28d4 BRAILLE PATTERN DOTS-3578 */ | ||
| 2300 | #define XK_braille_dots_13578 0x10028d5 /* U+28d5 BRAILLE PATTERN DOTS-13578 */ | ||
| 2301 | #define XK_braille_dots_23578 0x10028d6 /* U+28d6 BRAILLE PATTERN DOTS-23578 */ | ||
| 2302 | #define XK_braille_dots_123578 0x10028d7 /* U+28d7 BRAILLE PATTERN DOTS-123578 */ | ||
| 2303 | #define XK_braille_dots_4578 0x10028d8 /* U+28d8 BRAILLE PATTERN DOTS-4578 */ | ||
| 2304 | #define XK_braille_dots_14578 0x10028d9 /* U+28d9 BRAILLE PATTERN DOTS-14578 */ | ||
| 2305 | #define XK_braille_dots_24578 0x10028da /* U+28da BRAILLE PATTERN DOTS-24578 */ | ||
| 2306 | #define XK_braille_dots_124578 0x10028db /* U+28db BRAILLE PATTERN DOTS-124578 */ | ||
| 2307 | #define XK_braille_dots_34578 0x10028dc /* U+28dc BRAILLE PATTERN DOTS-34578 */ | ||
| 2308 | #define XK_braille_dots_134578 0x10028dd /* U+28dd BRAILLE PATTERN DOTS-134578 */ | ||
| 2309 | #define XK_braille_dots_234578 0x10028de /* U+28de BRAILLE PATTERN DOTS-234578 */ | ||
| 2310 | #define XK_braille_dots_1234578 0x10028df /* U+28df BRAILLE PATTERN DOTS-1234578 */ | ||
| 2311 | #define XK_braille_dots_678 0x10028e0 /* U+28e0 BRAILLE PATTERN DOTS-678 */ | ||
| 2312 | #define XK_braille_dots_1678 0x10028e1 /* U+28e1 BRAILLE PATTERN DOTS-1678 */ | ||
| 2313 | #define XK_braille_dots_2678 0x10028e2 /* U+28e2 BRAILLE PATTERN DOTS-2678 */ | ||
| 2314 | #define XK_braille_dots_12678 0x10028e3 /* U+28e3 BRAILLE PATTERN DOTS-12678 */ | ||
| 2315 | #define XK_braille_dots_3678 0x10028e4 /* U+28e4 BRAILLE PATTERN DOTS-3678 */ | ||
| 2316 | #define XK_braille_dots_13678 0x10028e5 /* U+28e5 BRAILLE PATTERN DOTS-13678 */ | ||
| 2317 | #define XK_braille_dots_23678 0x10028e6 /* U+28e6 BRAILLE PATTERN DOTS-23678 */ | ||
| 2318 | #define XK_braille_dots_123678 0x10028e7 /* U+28e7 BRAILLE PATTERN DOTS-123678 */ | ||
| 2319 | #define XK_braille_dots_4678 0x10028e8 /* U+28e8 BRAILLE PATTERN DOTS-4678 */ | ||
| 2320 | #define XK_braille_dots_14678 0x10028e9 /* U+28e9 BRAILLE PATTERN DOTS-14678 */ | ||
| 2321 | #define XK_braille_dots_24678 0x10028ea /* U+28ea BRAILLE PATTERN DOTS-24678 */ | ||
| 2322 | #define XK_braille_dots_124678 0x10028eb /* U+28eb BRAILLE PATTERN DOTS-124678 */ | ||
| 2323 | #define XK_braille_dots_34678 0x10028ec /* U+28ec BRAILLE PATTERN DOTS-34678 */ | ||
| 2324 | #define XK_braille_dots_134678 0x10028ed /* U+28ed BRAILLE PATTERN DOTS-134678 */ | ||
| 2325 | #define XK_braille_dots_234678 0x10028ee /* U+28ee BRAILLE PATTERN DOTS-234678 */ | ||
| 2326 | #define XK_braille_dots_1234678 0x10028ef /* U+28ef BRAILLE PATTERN DOTS-1234678 */ | ||
| 2327 | #define XK_braille_dots_5678 0x10028f0 /* U+28f0 BRAILLE PATTERN DOTS-5678 */ | ||
| 2328 | #define XK_braille_dots_15678 0x10028f1 /* U+28f1 BRAILLE PATTERN DOTS-15678 */ | ||
| 2329 | #define XK_braille_dots_25678 0x10028f2 /* U+28f2 BRAILLE PATTERN DOTS-25678 */ | ||
| 2330 | #define XK_braille_dots_125678 0x10028f3 /* U+28f3 BRAILLE PATTERN DOTS-125678 */ | ||
| 2331 | #define XK_braille_dots_35678 0x10028f4 /* U+28f4 BRAILLE PATTERN DOTS-35678 */ | ||
| 2332 | #define XK_braille_dots_135678 0x10028f5 /* U+28f5 BRAILLE PATTERN DOTS-135678 */ | ||
| 2333 | #define XK_braille_dots_235678 0x10028f6 /* U+28f6 BRAILLE PATTERN DOTS-235678 */ | ||
| 2334 | #define XK_braille_dots_1235678 0x10028f7 /* U+28f7 BRAILLE PATTERN DOTS-1235678 */ | ||
| 2335 | #define XK_braille_dots_45678 0x10028f8 /* U+28f8 BRAILLE PATTERN DOTS-45678 */ | ||
| 2336 | #define XK_braille_dots_145678 0x10028f9 /* U+28f9 BRAILLE PATTERN DOTS-145678 */ | ||
| 2337 | #define XK_braille_dots_245678 0x10028fa /* U+28fa BRAILLE PATTERN DOTS-245678 */ | ||
| 2338 | #define XK_braille_dots_1245678 0x10028fb /* U+28fb BRAILLE PATTERN DOTS-1245678 */ | ||
| 2339 | #define XK_braille_dots_345678 0x10028fc /* U+28fc BRAILLE PATTERN DOTS-345678 */ | ||
| 2340 | #define XK_braille_dots_1345678 0x10028fd /* U+28fd BRAILLE PATTERN DOTS-1345678 */ | ||
| 2341 | #define XK_braille_dots_2345678 0x10028fe /* U+28fe BRAILLE PATTERN DOTS-2345678 */ | ||
| 2342 | #define XK_braille_dots_12345678 0x10028ff /* U+28ff BRAILLE PATTERN DOTS-12345678 */ | ||
| 2343 | #endif /* XK_BRAILLE */ | ||
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/xpm.h b/meta/packages/xorg-lib/xorg-headers-native/X11/xpm.h new file mode 100644 index 0000000000..ed46133158 --- /dev/null +++ b/meta/packages/xorg-lib/xorg-headers-native/X11/xpm.h | |||
| @@ -0,0 +1,478 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 1989-95 GROUPE BULL | ||
| 3 | * | ||
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 5 | * of this software and associated documentation files (the "Software"), to | ||
| 6 | * deal in the Software without restriction, including without limitation the | ||
| 7 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
| 8 | * sell copies of the Software, and to permit persons to whom the Software is | ||
| 9 | * furnished to do so, subject to the following conditions: | ||
| 10 | * | ||
| 11 | * The above copyright notice and this permission notice shall be included in | ||
| 12 | * all copies or substantial portions of the Software. | ||
| 13 | * | ||
| 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
| 17 | * GROUPE BULL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
| 18 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| 19 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 20 | * | ||
| 21 | * Except as contained in this notice, the name of GROUPE BULL shall not be | ||
| 22 | * used in advertising or otherwise to promote the sale, use or other dealings | ||
| 23 | * in this Software without prior written authorization from GROUPE BULL. | ||
| 24 | */ | ||
| 25 | /* $XFree86: xc/extras/Xpm/lib/xpm.h,v 1.2 2001/08/22 23:36:44 dawes Exp $ */ | ||
| 26 | |||
| 27 | /*****************************************************************************\ | ||
| 28 | * xpm.h: * | ||
| 29 | * * | ||
| 30 | * XPM library * | ||
| 31 | * Include file * | ||
| 32 | * * | ||
| 33 | * Developed by Arnaud Le Hors * | ||
| 34 | \*****************************************************************************/ | ||
| 35 | |||
| 36 | /* | ||
| 37 | * The code related to FOR_MSW has been added by | ||
| 38 | * HeDu (hedu@cul-ipn.uni-kiel.de) 4/94 | ||
| 39 | */ | ||
| 40 | |||
| 41 | /* | ||
| 42 | * The code related to AMIGA has been added by | ||
| 43 | * Lorens Younes (d93-hyo@nada.kth.se) 4/96 | ||
| 44 | */ | ||
| 45 | |||
| 46 | #ifndef XPM_h | ||
| 47 | #define XPM_h | ||
| 48 | |||
| 49 | /* | ||
| 50 | * first some identification numbers: | ||
| 51 | * the version and revision numbers are determined with the following rule: | ||
| 52 | * SO Major number = LIB minor version number. | ||
| 53 | * SO Minor number = LIB sub-minor version number. | ||
| 54 | * e.g: Xpm version 3.2f | ||
| 55 | * we forget the 3 which is the format number, 2 gives 2, and f gives 6. | ||
| 56 | * thus we have XpmVersion = 2 and XpmRevision = 6 | ||
| 57 | * which gives SOXPMLIBREV = 2.6 | ||
| 58 | * | ||
| 59 | * Then the XpmIncludeVersion number is built from these numbers. | ||
| 60 | */ | ||
| 61 | #define XpmFormat 3 | ||
| 62 | #define XpmVersion 4 | ||
| 63 | #define XpmRevision 11 | ||
| 64 | #define XpmIncludeVersion ((XpmFormat * 100 + XpmVersion) * 100 + XpmRevision) | ||
| 65 | |||
| 66 | #ifndef XPM_NUMBERS | ||
| 67 | |||
| 68 | #ifdef FOR_MSW | ||
| 69 | # define SYSV /* uses memcpy string.h etc. */ | ||
| 70 | # include <malloc.h> | ||
| 71 | # include "simx.h" /* defines some X stuff using MSW types */ | ||
| 72 | #define NEED_STRCASECMP /* at least for MSVC++ */ | ||
| 73 | #else /* FOR_MSW */ | ||
| 74 | # ifdef AMIGA | ||
| 75 | # include "amigax.h" | ||
| 76 | # else /* not AMIGA */ | ||
| 77 | # include <X11/Xlib.h> | ||
| 78 | # include <X11/Xutil.h> | ||
| 79 | # endif /* not AMIGA */ | ||
| 80 | #endif /* FOR_MSW */ | ||
| 81 | |||
| 82 | /* let's define Pixel if it is not done yet */ | ||
| 83 | #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED) | ||
| 84 | typedef unsigned long Pixel; /* Index into colormap */ | ||
| 85 | # define PIXEL_ALREADY_TYPEDEFED | ||
| 86 | #endif | ||
| 87 | |||
| 88 | /* Return ErrorStatus codes: | ||
| 89 | * null if full success | ||
| 90 | * positive if partial success | ||
| 91 | * negative if failure | ||
| 92 | */ | ||
| 93 | |||
| 94 | #define XpmColorError 1 | ||
| 95 | #define XpmSuccess 0 | ||
| 96 | #define XpmOpenFailed -1 | ||
| 97 | #define XpmFileInvalid -2 | ||
| 98 | #define XpmNoMemory -3 | ||
| 99 | #define XpmColorFailed -4 | ||
| 100 | |||
| 101 | typedef struct { | ||
| 102 | char *name; /* Symbolic color name */ | ||
| 103 | char *value; /* Color value */ | ||
| 104 | Pixel pixel; /* Color pixel */ | ||
| 105 | } XpmColorSymbol; | ||
| 106 | |||
| 107 | typedef struct { | ||
| 108 | char *name; /* name of the extension */ | ||
| 109 | unsigned int nlines; /* number of lines in this extension */ | ||
| 110 | char **lines; /* pointer to the extension array of strings */ | ||
| 111 | } XpmExtension; | ||
| 112 | |||
| 113 | typedef struct { | ||
| 114 | char *string; /* characters string */ | ||
| 115 | char *symbolic; /* symbolic name */ | ||
| 116 | char *m_color; /* monochrom default */ | ||
| 117 | char *g4_color; /* 4 level grayscale default */ | ||
| 118 | char *g_color; /* other level grayscale default */ | ||
| 119 | char *c_color; /* color default */ | ||
| 120 | } XpmColor; | ||
| 121 | |||
| 122 | typedef struct { | ||
| 123 | unsigned int width; /* image width */ | ||
| 124 | unsigned int height; /* image height */ | ||
| 125 | unsigned int cpp; /* number of characters per pixel */ | ||
| 126 | unsigned int ncolors; /* number of colors */ | ||
| 127 | XpmColor *colorTable; /* list of related colors */ | ||
| 128 | unsigned int *data; /* image data */ | ||
| 129 | } XpmImage; | ||
| 130 | |||
| 131 | typedef struct { | ||
| 132 | unsigned long valuemask; /* Specifies which attributes are defined */ | ||
| 133 | char *hints_cmt; /* Comment of the hints section */ | ||
| 134 | char *colors_cmt; /* Comment of the colors section */ | ||
| 135 | char *pixels_cmt; /* Comment of the pixels section */ | ||
| 136 | unsigned int x_hotspot; /* Returns the x hotspot's coordinate */ | ||
| 137 | unsigned int y_hotspot; /* Returns the y hotspot's coordinate */ | ||
| 138 | unsigned int nextensions; /* number of extensions */ | ||
| 139 | XpmExtension *extensions; /* pointer to array of extensions */ | ||
| 140 | } XpmInfo; | ||
| 141 | |||
| 142 | typedef int (*XpmAllocColorFunc)( | ||
| 143 | Display* /* display */, | ||
| 144 | Colormap /* colormap */, | ||
| 145 | char* /* colorname */, | ||
| 146 | XColor* /* xcolor */, | ||
| 147 | void* /* closure */ | ||
| 148 | ); | ||
| 149 | |||
| 150 | typedef int (*XpmFreeColorsFunc)( | ||
| 151 | Display* /* display */, | ||
| 152 | Colormap /* colormap */, | ||
| 153 | Pixel* /* pixels */, | ||
| 154 | int /* npixels */, | ||
| 155 | void* /* closure */ | ||
| 156 | ); | ||
| 157 | |||
| 158 | typedef struct { | ||
| 159 | unsigned long valuemask; /* Specifies which attributes are | ||
| 160 | defined */ | ||
| 161 | |||
| 162 | Visual *visual; /* Specifies the visual to use */ | ||
| 163 | Colormap colormap; /* Specifies the colormap to use */ | ||
| 164 | unsigned int depth; /* Specifies the depth */ | ||
| 165 | unsigned int width; /* Returns the width of the created | ||
| 166 | pixmap */ | ||
| 167 | unsigned int height; /* Returns the height of the created | ||
| 168 | pixmap */ | ||
| 169 | unsigned int x_hotspot; /* Returns the x hotspot's | ||
| 170 | coordinate */ | ||
| 171 | unsigned int y_hotspot; /* Returns the y hotspot's | ||
| 172 | coordinate */ | ||
| 173 | unsigned int cpp; /* Specifies the number of char per | ||
| 174 | pixel */ | ||
| 175 | Pixel *pixels; /* List of used color pixels */ | ||
| 176 | unsigned int npixels; /* Number of used pixels */ | ||
| 177 | XpmColorSymbol *colorsymbols; /* List of color symbols to override */ | ||
| 178 | unsigned int numsymbols; /* Number of symbols */ | ||
| 179 | char *rgb_fname; /* RGB text file name */ | ||
| 180 | unsigned int nextensions; /* Number of extensions */ | ||
| 181 | XpmExtension *extensions; /* List of extensions */ | ||
| 182 | |||
| 183 | unsigned int ncolors; /* Number of colors */ | ||
| 184 | XpmColor *colorTable; /* List of colors */ | ||
| 185 | /* 3.2 backward compatibility code */ | ||
| 186 | char *hints_cmt; /* Comment of the hints section */ | ||
| 187 | char *colors_cmt; /* Comment of the colors section */ | ||
| 188 | char *pixels_cmt; /* Comment of the pixels section */ | ||
| 189 | /* end 3.2 bc */ | ||
| 190 | unsigned int mask_pixel; /* Color table index of transparent | ||
| 191 | color */ | ||
| 192 | |||
| 193 | /* Color Allocation Directives */ | ||
| 194 | Bool exactColors; /* Only use exact colors for visual */ | ||
| 195 | unsigned int closeness; /* Allowable RGB deviation */ | ||
| 196 | unsigned int red_closeness; /* Allowable red deviation */ | ||
| 197 | unsigned int green_closeness; /* Allowable green deviation */ | ||
| 198 | unsigned int blue_closeness; /* Allowable blue deviation */ | ||
| 199 | int color_key; /* Use colors from this color set */ | ||
| 200 | |||
| 201 | Pixel *alloc_pixels; /* Returns the list of alloc'ed color | ||
| 202 | pixels */ | ||
| 203 | int nalloc_pixels; /* Returns the number of alloc'ed | ||
| 204 | color pixels */ | ||
| 205 | |||
| 206 | Bool alloc_close_colors; /* Specify whether close colors should | ||
| 207 | be allocated using XAllocColor | ||
| 208 | or not */ | ||
| 209 | int bitmap_format; /* Specify the format of 1bit depth | ||
| 210 | images: ZPixmap or XYBitmap */ | ||
| 211 | |||
| 212 | /* Color functions */ | ||
| 213 | XpmAllocColorFunc alloc_color; /* Application color allocator */ | ||
| 214 | XpmFreeColorsFunc free_colors; /* Application color de-allocator */ | ||
| 215 | void *color_closure; /* Application private data to pass to | ||
| 216 | alloc_color and free_colors */ | ||
| 217 | |||
| 218 | } XpmAttributes; | ||
| 219 | |||
| 220 | /* XpmAttributes value masks bits */ | ||
| 221 | #define XpmVisual (1L<<0) | ||
| 222 | #define XpmColormap (1L<<1) | ||
| 223 | #define XpmDepth (1L<<2) | ||
| 224 | #define XpmSize (1L<<3) /* width & height */ | ||
| 225 | #define XpmHotspot (1L<<4) /* x_hotspot & y_hotspot */ | ||
| 226 | #define XpmCharsPerPixel (1L<<5) | ||
| 227 | #define XpmColorSymbols (1L<<6) | ||
| 228 | #define XpmRgbFilename (1L<<7) | ||
| 229 | /* 3.2 backward compatibility code */ | ||
| 230 | #define XpmInfos (1L<<8) | ||
| 231 | #define XpmReturnInfos XpmInfos | ||
| 232 | /* end 3.2 bc */ | ||
| 233 | #define XpmReturnPixels (1L<<9) | ||
| 234 | #define XpmExtensions (1L<<10) | ||
| 235 | #define XpmReturnExtensions XpmExtensions | ||
| 236 | |||
| 237 | #define XpmExactColors (1L<<11) | ||
| 238 | #define XpmCloseness (1L<<12) | ||
| 239 | #define XpmRGBCloseness (1L<<13) | ||
| 240 | #define XpmColorKey (1L<<14) | ||
| 241 | |||
| 242 | #define XpmColorTable (1L<<15) | ||
| 243 | #define XpmReturnColorTable XpmColorTable | ||
| 244 | |||
| 245 | #define XpmReturnAllocPixels (1L<<16) | ||
| 246 | #define XpmAllocCloseColors (1L<<17) | ||
| 247 | #define XpmBitmapFormat (1L<<18) | ||
| 248 | |||
| 249 | #define XpmAllocColor (1L<<19) | ||
| 250 | #define XpmFreeColors (1L<<20) | ||
| 251 | #define XpmColorClosure (1L<<21) | ||
| 252 | |||
| 253 | |||
| 254 | /* XpmInfo value masks bits */ | ||
| 255 | #define XpmComments XpmInfos | ||
| 256 | #define XpmReturnComments XpmComments | ||
| 257 | |||
| 258 | /* XpmAttributes mask_pixel value when there is no mask */ | ||
| 259 | #ifndef FOR_MSW | ||
| 260 | #define XpmUndefPixel 0x80000000 | ||
| 261 | #else | ||
| 262 | /* int is only 16 bit for MSW */ | ||
| 263 | #define XpmUndefPixel 0x8000 | ||
| 264 | #endif | ||
| 265 | |||
| 266 | /* | ||
| 267 | * color keys for visual type, they must fit along with the number key of | ||
| 268 | * each related element in xpmColorKeys[] defined in XpmI.h | ||
| 269 | */ | ||
| 270 | #define XPM_MONO 2 | ||
| 271 | #define XPM_GREY4 3 | ||
| 272 | #define XPM_GRAY4 3 | ||
| 273 | #define XPM_GREY 4 | ||
| 274 | #define XPM_GRAY 4 | ||
| 275 | #define XPM_COLOR 5 | ||
| 276 | |||
| 277 | |||
| 278 | /* macros for forward declarations of functions with prototypes */ | ||
| 279 | #define FUNC(f, t, p) extern t f p | ||
| 280 | #define LFUNC(f, t, p) static t f p | ||
| 281 | |||
| 282 | |||
| 283 | /* | ||
| 284 | * functions declarations | ||
| 285 | */ | ||
| 286 | |||
| 287 | _XFUNCPROTOBEGIN | ||
| 288 | |||
| 289 | /* FOR_MSW, all ..Pixmap.. are excluded, only the ..XImage.. are used */ | ||
| 290 | /* Same for Amiga! */ | ||
| 291 | |||
| 292 | #if !defined(FOR_MSW) && !defined(AMIGA) | ||
| 293 | FUNC(XpmCreatePixmapFromData, int, (Display *display, | ||
| 294 | Drawable d, | ||
| 295 | char **data, | ||
| 296 | Pixmap *pixmap_return, | ||
| 297 | Pixmap *shapemask_return, | ||
| 298 | XpmAttributes *attributes)); | ||
| 299 | |||
| 300 | FUNC(XpmCreateDataFromPixmap, int, (Display *display, | ||
| 301 | char ***data_return, | ||
| 302 | Pixmap pixmap, | ||
| 303 | Pixmap shapemask, | ||
| 304 | XpmAttributes *attributes)); | ||
| 305 | |||
| 306 | FUNC(XpmReadFileToPixmap, int, (Display *display, | ||
| 307 | Drawable d, | ||
| 308 | char *filename, | ||
| 309 | Pixmap *pixmap_return, | ||
| 310 | Pixmap *shapemask_return, | ||
| 311 | XpmAttributes *attributes)); | ||
| 312 | |||
| 313 | FUNC(XpmWriteFileFromPixmap, int, (Display *display, | ||
| 314 | char *filename, | ||
| 315 | Pixmap pixmap, | ||
| 316 | Pixmap shapemask, | ||
| 317 | XpmAttributes *attributes)); | ||
| 318 | #endif | ||
| 319 | |||
| 320 | FUNC(XpmCreateImageFromData, int, (Display *display, | ||
| 321 | char **data, | ||
| 322 | XImage **image_return, | ||
| 323 | XImage **shapemask_return, | ||
| 324 | XpmAttributes *attributes)); | ||
| 325 | |||
| 326 | FUNC(XpmCreateDataFromImage, int, (Display *display, | ||
| 327 | char ***data_return, | ||
| 328 | XImage *image, | ||
| 329 | XImage *shapeimage, | ||
| 330 | XpmAttributes *attributes)); | ||
| 331 | |||
| 332 | FUNC(XpmReadFileToImage, int, (Display *display, | ||
| 333 | char *filename, | ||
| 334 | XImage **image_return, | ||
| 335 | XImage **shapeimage_return, | ||
| 336 | XpmAttributes *attributes)); | ||
| 337 | |||
| 338 | FUNC(XpmWriteFileFromImage, int, (Display *display, | ||
| 339 | char *filename, | ||
| 340 | XImage *image, | ||
| 341 | XImage *shapeimage, | ||
| 342 | XpmAttributes *attributes)); | ||
| 343 | |||
| 344 | FUNC(XpmCreateImageFromBuffer, int, (Display *display, | ||
| 345 | char *buffer, | ||
| 346 | XImage **image_return, | ||
| 347 | XImage **shapemask_return, | ||
| 348 | XpmAttributes *attributes)); | ||
| 349 | #if !defined(FOR_MSW) && !defined(AMIGA) | ||
| 350 | FUNC(XpmCreatePixmapFromBuffer, int, (Display *display, | ||
| 351 | Drawable d, | ||
| 352 | char *buffer, | ||
| 353 | Pixmap *pixmap_return, | ||
| 354 | Pixmap *shapemask_return, | ||
| 355 | XpmAttributes *attributes)); | ||
| 356 | |||
| 357 | FUNC(XpmCreateBufferFromImage, int, (Display *display, | ||
| 358 | char **buffer_return, | ||
| 359 | XImage *image, | ||
| 360 | XImage *shapeimage, | ||
| 361 | XpmAttributes *attributes)); | ||
| 362 | |||
| 363 | FUNC(XpmCreateBufferFromPixmap, int, (Display *display, | ||
| 364 | char **buffer_return, | ||
| 365 | Pixmap pixmap, | ||
| 366 | Pixmap shapemask, | ||
| 367 | XpmAttributes *attributes)); | ||
| 368 | #endif | ||
| 369 | FUNC(XpmReadFileToBuffer, int, (char *filename, char **buffer_return)); | ||
| 370 | FUNC(XpmWriteFileFromBuffer, int, (char *filename, char *buffer)); | ||
| 371 | |||
| 372 | FUNC(XpmReadFileToData, int, (char *filename, char ***data_return)); | ||
| 373 | FUNC(XpmWriteFileFromData, int, (char *filename, char **data)); | ||
| 374 | |||
| 375 | FUNC(XpmAttributesSize, int, (void)); | ||
| 376 | FUNC(XpmFreeAttributes, void, (XpmAttributes *attributes)); | ||
| 377 | FUNC(XpmFreeExtensions, void, (XpmExtension *extensions, | ||
| 378 | int nextensions)); | ||
| 379 | |||
| 380 | FUNC(XpmFreeXpmImage, void, (XpmImage *image)); | ||
| 381 | FUNC(XpmFreeXpmInfo, void, (XpmInfo *info)); | ||
| 382 | FUNC(XpmGetErrorString, char *, (int errcode)); | ||
| 383 | FUNC(XpmLibraryVersion, int, (void)); | ||
| 384 | |||
| 385 | /* XpmImage functions */ | ||
| 386 | FUNC(XpmReadFileToXpmImage, int, (char *filename, | ||
| 387 | XpmImage *image, | ||
| 388 | XpmInfo *info)); | ||
| 389 | |||
| 390 | FUNC(XpmWriteFileFromXpmImage, int, (char *filename, | ||
| 391 | XpmImage *image, | ||
| 392 | XpmInfo *info)); | ||
| 393 | #if !defined(FOR_MSW) && !defined(AMIGA) | ||
| 394 | FUNC(XpmCreatePixmapFromXpmImage, int, (Display *display, | ||
| 395 | Drawable d, | ||
| 396 | XpmImage *image, | ||
| 397 | Pixmap *pixmap_return, | ||
| 398 | Pixmap *shapemask_return, | ||
| 399 | XpmAttributes *attributes)); | ||
| 400 | #endif | ||
| 401 | FUNC(XpmCreateImageFromXpmImage, int, (Display *display, | ||
| 402 | XpmImage *image, | ||
| 403 | XImage **image_return, | ||
| 404 | XImage **shapeimage_return, | ||
| 405 | XpmAttributes *attributes)); | ||
| 406 | |||
| 407 | FUNC(XpmCreateXpmImageFromImage, int, (Display *display, | ||
| 408 | XImage *image, | ||
| 409 | XImage *shapeimage, | ||
| 410 | XpmImage *xpmimage, | ||
| 411 | XpmAttributes *attributes)); | ||
| 412 | #if !defined(FOR_MSW) && !defined(AMIGA) | ||
| 413 | FUNC(XpmCreateXpmImageFromPixmap, int, (Display *display, | ||
| 414 | Pixmap pixmap, | ||
| 415 | Pixmap shapemask, | ||
| 416 | XpmImage *xpmimage, | ||
| 417 | XpmAttributes *attributes)); | ||
| 418 | #endif | ||
| 419 | FUNC(XpmCreateDataFromXpmImage, int, (char ***data_return, | ||
| 420 | XpmImage *image, | ||
| 421 | XpmInfo *info)); | ||
| 422 | |||
| 423 | FUNC(XpmCreateXpmImageFromData, int, (char **data, | ||
| 424 | XpmImage *image, | ||
| 425 | XpmInfo *info)); | ||
| 426 | |||
| 427 | FUNC(XpmCreateXpmImageFromBuffer, int, (char *buffer, | ||
| 428 | XpmImage *image, | ||
| 429 | XpmInfo *info)); | ||
| 430 | |||
| 431 | FUNC(XpmCreateBufferFromXpmImage, int, (char **buffer_return, | ||
| 432 | XpmImage *image, | ||
| 433 | XpmInfo *info)); | ||
| 434 | |||
| 435 | FUNC(XpmGetParseError, int, (char *filename, | ||
| 436 | int *linenum_return, | ||
| 437 | int *charnum_return)); | ||
| 438 | |||
| 439 | FUNC(XpmFree, void, (void *ptr)); | ||
| 440 | |||
| 441 | _XFUNCPROTOEND | ||
| 442 | |||
| 443 | /* backward compatibility */ | ||
| 444 | |||
| 445 | /* for version 3.0c */ | ||
| 446 | #define XpmPixmapColorError XpmColorError | ||
| 447 | #define XpmPixmapSuccess XpmSuccess | ||
| 448 | #define XpmPixmapOpenFailed XpmOpenFailed | ||
| 449 | #define XpmPixmapFileInvalid XpmFileInvalid | ||
| 450 | #define XpmPixmapNoMemory XpmNoMemory | ||
| 451 | #define XpmPixmapColorFailed XpmColorFailed | ||
| 452 | |||
| 453 | #define XpmReadPixmapFile(dpy, d, file, pix, mask, att) \ | ||
| 454 | XpmReadFileToPixmap(dpy, d, file, pix, mask, att) | ||
| 455 | #define XpmWritePixmapFile(dpy, file, pix, mask, att) \ | ||
| 456 | XpmWriteFileFromPixmap(dpy, file, pix, mask, att) | ||
| 457 | |||
| 458 | /* for version 3.0b */ | ||
| 459 | #define PixmapColorError XpmColorError | ||
| 460 | #define PixmapSuccess XpmSuccess | ||
| 461 | #define PixmapOpenFailed XpmOpenFailed | ||
| 462 | #define PixmapFileInvalid XpmFileInvalid | ||
| 463 | #define PixmapNoMemory XpmNoMemory | ||
| 464 | #define PixmapColorFailed XpmColorFailed | ||
| 465 | |||
| 466 | #define ColorSymbol XpmColorSymbol | ||
| 467 | |||
| 468 | #define XReadPixmapFile(dpy, d, file, pix, mask, att) \ | ||
| 469 | XpmReadFileToPixmap(dpy, d, file, pix, mask, att) | ||
| 470 | #define XWritePixmapFile(dpy, file, pix, mask, att) \ | ||
| 471 | XpmWriteFileFromPixmap(dpy, file, pix, mask, att) | ||
| 472 | #define XCreatePixmapFromData(dpy, d, data, pix, mask, att) \ | ||
| 473 | XpmCreatePixmapFromData(dpy, d, data, pix, mask, att) | ||
| 474 | #define XCreateDataFromPixmap(dpy, data, pix, mask, att) \ | ||
| 475 | XpmCreateDataFromPixmap(dpy, data, pix, mask, att) | ||
| 476 | |||
| 477 | #endif /* XPM_NUMBERS */ | ||
| 478 | #endif | ||
