4 /************************************************************
5 Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
7 Permission to use, copy, modify, and distribute this
8 software and its documentation for any purpose and without
9 fee is hereby granted, provided that the above copyright
10 notice appear in all copies and that both that copyright
11 notice and this permission notice appear in supporting
12 documentation, and that the name of Silicon Graphics not be
13 used in advertising or publicity pertaining to distribution
14 of the software without specific prior written permission.
15 Silicon Graphics makes no representation about the suitability
16 of this software for any purpose. It is provided "as is"
17 without any express or implied warranty.
19 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
20 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
22 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
23 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
24 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
25 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
26 THE USE OR PERFORMANCE OF THIS SOFTWARE.
28 ********************************************************/
30 /***====================================================================***/
32 typedef struct _XkbRMLVOSet
{
40 typedef struct _XkbRF_VarDefs
{
45 } XkbRF_VarDefsRec
, *XkbRF_VarDefsPtr
;
47 typedef struct _XkbRF_Rule
{
62 } XkbRF_RuleRec
, *XkbRF_RulePtr
;
64 typedef struct _XkbRF_Group
{
68 } XkbRF_GroupRec
, *XkbRF_GroupPtr
;
70 #define XkbRF_PendingMatch (1L<<1)
71 #define XkbRF_Option (1L<<2)
72 #define XkbRF_Append (1L<<3)
73 #define XkbRF_Normal (1L<<4)
74 #define XkbRF_Invalid (1L<<5)
76 typedef struct _XkbRF_Rules
{
77 unsigned short sz_rules
;
78 unsigned short num_rules
;
80 unsigned short sz_groups
;
81 unsigned short num_groups
;
82 XkbRF_GroupPtr groups
;
83 } XkbRF_RulesRec
, *XkbRF_RulesPtr
;
85 /***====================================================================***/
89 /* Seems preferable to dragging xkbstr.h in. */
90 struct _XkbComponentNames
;
92 extern _X_EXPORT Bool
XkbRF_GetComponents(XkbRF_RulesPtr
/* rules */ ,
93 XkbRF_VarDefsPtr
/* var_defs */ ,
94 struct _XkbComponentNames
* /* names */
97 extern _X_EXPORT Bool
XkbRF_LoadRules(FILE * /* file */ ,
98 XkbRF_RulesPtr
/* rules */
101 extern _X_EXPORT Bool
XkbRF_LoadRulesByName(char * /* base */ ,
102 char * /* locale */ ,
103 XkbRF_RulesPtr
/* rules */
106 /***====================================================================***/
108 extern _X_EXPORT XkbRF_RulesPtr
XkbRF_Create(void);
110 extern _X_EXPORT
void XkbRF_Free(XkbRF_RulesPtr
/* rules */ ,
114 /***====================================================================***/
116 #define _XKB_RF_NAMES_PROP_ATOM "_XKB_RULES_NAMES"
117 #define _XKB_RF_NAMES_PROP_MAXLEN 1024
120 #endif /* _XKBRULES_H_ */