libxkbcomp: s/XkbDescPtr/XkbcDescPtr/
We need to use the keyboard description structure from XKBcommon.h since it doesn't have the Display field.master
parent
dd25bbc9ac
commit
37769b5a10
|
@ -333,7 +333,7 @@ ReportNotFound(unsigned action, unsigned field, const char *what, char *bad)
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleNoAction(XkbDescPtr xkb,
|
||||
HandleNoAction(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -363,7 +363,7 @@ CheckLatchLockFlags(unsigned action,
|
|||
}
|
||||
|
||||
static Bool
|
||||
CheckModifierField(XkbDescPtr xkb,
|
||||
CheckModifierField(XkbcDescPtr xkb,
|
||||
unsigned action,
|
||||
ExprDef * value,
|
||||
unsigned *flags_inout, unsigned *mods_rtrn)
|
||||
|
@ -391,7 +391,7 @@ CheckModifierField(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleSetLatchMods(XkbDescPtr xkb,
|
||||
HandleSetLatchMods(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -437,7 +437,7 @@ HandleSetLatchMods(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleLockMods(XkbDescPtr xkb,
|
||||
HandleLockMods(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ CheckGroupField(unsigned action,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleSetLatchGroup(XkbDescPtr xkb,
|
||||
HandleSetLatchGroup(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -559,7 +559,7 @@ HandleSetLatchGroup(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleLockGroup(XkbDescPtr xkb,
|
||||
HandleLockGroup(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -585,7 +585,7 @@ HandleLockGroup(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleMovePtr(XkbDescPtr xkb,
|
||||
HandleMovePtr(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ static LookupEntry lockWhich[] = {
|
|||
};
|
||||
|
||||
static Bool
|
||||
HandlePtrBtn(XkbDescPtr xkb,
|
||||
HandlePtrBtn(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -712,7 +712,7 @@ static LookupEntry ptrDflts[] = {
|
|||
};
|
||||
|
||||
static Bool
|
||||
HandleSetPtrDflt(XkbDescPtr xkb,
|
||||
HandleSetPtrDflt(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -785,7 +785,7 @@ static LookupEntry isoNames[] = {
|
|||
};
|
||||
|
||||
static Bool
|
||||
HandleISOLock(XkbDescPtr xkb,
|
||||
HandleISOLock(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -833,7 +833,7 @@ HandleISOLock(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleSwitchScreen(XkbDescPtr xkb,
|
||||
HandleSwitchScreen(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -925,7 +925,7 @@ LookupEntry ctrlNames[] = {
|
|||
};
|
||||
|
||||
static Bool
|
||||
HandleSetLockControls(XkbDescPtr xkb,
|
||||
HandleSetLockControls(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -957,7 +957,7 @@ static LookupEntry evNames[] = {
|
|||
};
|
||||
|
||||
static Bool
|
||||
HandleActionMessage(XkbDescPtr xkb,
|
||||
HandleActionMessage(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -1035,7 +1035,7 @@ HandleActionMessage(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleRedirectKey(XkbDescPtr xkb,
|
||||
HandleRedirectKey(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -1091,7 +1091,7 @@ HandleRedirectKey(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleDeviceBtn(XkbDescPtr xkb,
|
||||
HandleDeviceBtn(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -1161,7 +1161,7 @@ HandleDeviceBtn(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleDeviceValuator(XkbDescPtr xkb,
|
||||
HandleDeviceValuator(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -1176,7 +1176,7 @@ HandleDeviceValuator(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandlePrivate(XkbDescPtr xkb,
|
||||
HandlePrivate(XkbcDescPtr xkb,
|
||||
XkbAnyAction * action,
|
||||
unsigned field, ExprDef * array_ndx, ExprDef * value)
|
||||
{
|
||||
|
@ -1244,7 +1244,7 @@ HandlePrivate(XkbDescPtr xkb,
|
|||
return ReportIllegal(PrivateAction, field);
|
||||
}
|
||||
|
||||
typedef Bool(*actionHandler) (XkbDescPtr /* xkb */ ,
|
||||
typedef Bool(*actionHandler) (XkbcDescPtr /* xkb */ ,
|
||||
XkbAnyAction * /* action */ ,
|
||||
unsigned /* field */ ,
|
||||
ExprDef * /* array_ndx */ ,
|
||||
|
@ -1297,7 +1297,7 @@ ApplyActionFactoryDefaults(XkbAction * action)
|
|||
|
||||
int
|
||||
HandleActionDef(ExprDef * def,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
XkbAnyAction * action, unsigned mergeMode, ActionInfo * info)
|
||||
{
|
||||
ExprDef *arg;
|
||||
|
@ -1396,7 +1396,7 @@ HandleActionDef(ExprDef * def,
|
|||
/***====================================================================***/
|
||||
|
||||
int
|
||||
SetActionField(XkbDescPtr xkb,
|
||||
SetActionField(XkbcDescPtr xkb,
|
||||
char *elem,
|
||||
char *field,
|
||||
ExprDef * array_ndx, ExprDef * value, ActionInfo ** info_rtrn)
|
||||
|
|
|
@ -65,13 +65,13 @@ typedef struct _ActionInfo
|
|||
} ActionInfo;
|
||||
|
||||
extern int HandleActionDef(ExprDef * /* def */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
XkbAnyAction * /* action */ ,
|
||||
unsigned /* mergeMode */ ,
|
||||
ActionInfo * /* info */
|
||||
);
|
||||
|
||||
extern int SetActionField(XkbDescPtr /* xkb */ ,
|
||||
extern int SetActionField(XkbcDescPtr /* xkb */ ,
|
||||
char * /* elem */ ,
|
||||
char * /* field */ ,
|
||||
ExprDef * /* index */ ,
|
||||
|
|
|
@ -156,7 +156,7 @@ MergeAliases(AliasInfo ** into, AliasInfo ** merge, unsigned how_merge)
|
|||
}
|
||||
|
||||
int
|
||||
ApplyAliases(XkbDescPtr xkb, Bool toGeom, AliasInfo ** info_in)
|
||||
ApplyAliases(XkbcDescPtr xkb, Bool toGeom, AliasInfo ** info_in)
|
||||
{
|
||||
register int i;
|
||||
XkbKeyAliasPtr old, a;
|
||||
|
|
|
@ -48,7 +48,7 @@ extern Bool MergeAliases(AliasInfo ** /* into */ ,
|
|||
unsigned /* how_merge */
|
||||
);
|
||||
|
||||
extern int ApplyAliases(XkbDescPtr /* xkb */ ,
|
||||
extern int ApplyAliases(XkbcDescPtr /* xkb */ ,
|
||||
Bool /* toGeom */ ,
|
||||
AliasInfo ** /* info */
|
||||
);
|
||||
|
|
|
@ -67,7 +67,7 @@ typedef struct _CompatInfo
|
|||
LEDInfo *leds;
|
||||
VModInfo vmods;
|
||||
ActionInfo *act;
|
||||
XkbDescPtr xkb;
|
||||
XkbcDescPtr xkb;
|
||||
} CompatInfo;
|
||||
|
||||
/***====================================================================***/
|
||||
|
@ -99,7 +99,7 @@ siText(SymInterpInfo * si, CompatInfo * info)
|
|||
}
|
||||
|
||||
static void
|
||||
InitCompatInfo(CompatInfo * info, XkbDescPtr xkb)
|
||||
InitCompatInfo(CompatInfo * info, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
@ -132,7 +132,7 @@ InitCompatInfo(CompatInfo * info, XkbDescPtr xkb)
|
|||
}
|
||||
|
||||
static void
|
||||
ClearCompatInfo(CompatInfo * info, XkbDescPtr xkb)
|
||||
ClearCompatInfo(CompatInfo * info, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
@ -392,14 +392,14 @@ MergeIncludedCompatMaps(CompatInfo * into, CompatInfo * from, unsigned merge)
|
|||
}
|
||||
|
||||
typedef void (*FileHandler) (XkbFile * /* rtrn */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
unsigned /* merge */ ,
|
||||
CompatInfo * /* info */
|
||||
);
|
||||
|
||||
static Bool
|
||||
HandleIncludeCompatMap(IncludeStmt * stmt,
|
||||
XkbDescPtr xkb, CompatInfo * info, FileHandler hndlr)
|
||||
XkbcDescPtr xkb, CompatInfo * info, FileHandler hndlr)
|
||||
{
|
||||
unsigned newMerge;
|
||||
XkbFile *rtrn;
|
||||
|
@ -492,7 +492,7 @@ static LookupEntry useModMapValues[] = {
|
|||
|
||||
static int
|
||||
SetInterpField(SymInterpInfo * si,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field,
|
||||
ExprDef * arrayNdx, ExprDef * value, CompatInfo * info)
|
||||
{
|
||||
|
@ -603,7 +603,7 @@ LookupEntry groupNames[] = {
|
|||
};
|
||||
|
||||
static int
|
||||
HandleInterpVar(VarDef * stmt, XkbDescPtr xkb, CompatInfo * info)
|
||||
HandleInterpVar(VarDef * stmt, XkbcDescPtr xkb, CompatInfo * info)
|
||||
{
|
||||
ExprResult elem, field;
|
||||
ExprDef *ndx;
|
||||
|
@ -623,7 +623,7 @@ HandleInterpVar(VarDef * stmt, XkbDescPtr xkb, CompatInfo * info)
|
|||
}
|
||||
|
||||
static int
|
||||
HandleInterpBody(VarDef * def, XkbDescPtr xkb, SymInterpInfo * si,
|
||||
HandleInterpBody(VarDef * def, XkbcDescPtr xkb, SymInterpInfo * si,
|
||||
CompatInfo * info)
|
||||
{
|
||||
int ok = 1;
|
||||
|
@ -646,7 +646,7 @@ HandleInterpBody(VarDef * def, XkbDescPtr xkb, SymInterpInfo * si,
|
|||
}
|
||||
|
||||
static int
|
||||
HandleInterpDef(InterpDef * def, XkbDescPtr xkb, unsigned merge,
|
||||
HandleInterpDef(InterpDef * def, XkbcDescPtr xkb, unsigned merge,
|
||||
CompatInfo * info)
|
||||
{
|
||||
unsigned pred, mods;
|
||||
|
@ -682,7 +682,7 @@ HandleInterpDef(InterpDef * def, XkbDescPtr xkb, unsigned merge,
|
|||
|
||||
static int
|
||||
HandleGroupCompatDef(GroupCompatDef * def,
|
||||
XkbDescPtr xkb, unsigned merge, CompatInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, CompatInfo * info)
|
||||
{
|
||||
ExprResult val;
|
||||
GroupCompatInfo tmp;
|
||||
|
@ -713,7 +713,7 @@ HandleGroupCompatDef(GroupCompatDef * def,
|
|||
|
||||
static void
|
||||
HandleCompatMapFile(XkbFile * file,
|
||||
XkbDescPtr xkb, unsigned merge, CompatInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, CompatInfo * info)
|
||||
{
|
||||
ParseCommon *stmt;
|
||||
|
||||
|
|
|
@ -1324,13 +1324,13 @@ MergeIncludedGeometry(GeometryInfo * into, GeometryInfo * from,
|
|||
}
|
||||
|
||||
typedef void (*FileHandler) (XkbFile * /* file */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
unsigned /* merge */ ,
|
||||
GeometryInfo * /* info */
|
||||
);
|
||||
|
||||
static Bool
|
||||
HandleIncludeGeometry(IncludeStmt * stmt, XkbDescPtr xkb, GeometryInfo * info,
|
||||
HandleIncludeGeometry(IncludeStmt * stmt, XkbcDescPtr xkb, GeometryInfo * info,
|
||||
FileHandler hndlr)
|
||||
{
|
||||
unsigned newMerge;
|
||||
|
@ -2140,7 +2140,7 @@ SetGeometryProperty(GeometryInfo * info, char *property, ExprDef * value)
|
|||
}
|
||||
|
||||
static int
|
||||
HandleGeometryVar(VarDef * stmt, XkbDescPtr xkb, GeometryInfo * info)
|
||||
HandleGeometryVar(VarDef * stmt, XkbcDescPtr xkb, GeometryInfo * info)
|
||||
{
|
||||
ExprResult elem, field, tmp;
|
||||
ExprDef *ndx;
|
||||
|
@ -2488,7 +2488,7 @@ HandleShapeBody(ShapeDef * def, ShapeInfo * si, unsigned merge,
|
|||
}
|
||||
|
||||
static int
|
||||
HandleShapeDef(ShapeDef * def, XkbDescPtr xkb, unsigned merge,
|
||||
HandleShapeDef(ShapeDef * def, XkbcDescPtr xkb, unsigned merge,
|
||||
GeometryInfo * info)
|
||||
{
|
||||
ShapeInfo si;
|
||||
|
@ -2809,7 +2809,7 @@ HandleSectionBody(SectionDef * def,
|
|||
|
||||
static int
|
||||
HandleSectionDef(SectionDef * def,
|
||||
XkbDescPtr xkb, unsigned merge, GeometryInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, GeometryInfo * info)
|
||||
{
|
||||
SectionInfo si;
|
||||
char *str;
|
||||
|
@ -2838,7 +2838,7 @@ HandleSectionDef(SectionDef * def,
|
|||
|
||||
static void
|
||||
HandleGeometryFile(XkbFile * file,
|
||||
XkbDescPtr xkb, unsigned merge, GeometryInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, GeometryInfo * info)
|
||||
{
|
||||
ParseCommon *stmt;
|
||||
char *failWhat;
|
||||
|
|
|
@ -199,7 +199,7 @@ static LookupEntry groupComponentNames[] = {
|
|||
|
||||
int
|
||||
SetIndicatorMapField(LEDInfo * led,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field, ExprDef * arrayNdx, ExprDef * value)
|
||||
{
|
||||
ExprResult rtrn;
|
||||
|
@ -324,7 +324,7 @@ SetIndicatorMapField(LEDInfo * led,
|
|||
|
||||
LEDInfo *
|
||||
HandleIndicatorMapDef(IndicatorMapDef * def,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
LEDInfo * dflt, LEDInfo * oldLEDs, unsigned merge)
|
||||
{
|
||||
LEDInfo led, *rtrn;
|
||||
|
|
|
@ -61,14 +61,14 @@ extern LEDInfo *AddIndicatorMap(LEDInfo * /* oldLEDs */ ,
|
|||
);
|
||||
|
||||
extern int SetIndicatorMapField(LEDInfo * /* led */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
char * /* field */ ,
|
||||
ExprDef * /* arrayNdx */ ,
|
||||
ExprDef * /* value */
|
||||
);
|
||||
|
||||
extern LEDInfo *HandleIndicatorMapDef(IndicatorMapDef * /* stmt */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
LEDInfo * /* dflt */ ,
|
||||
LEDInfo * /* oldLEDs */ ,
|
||||
unsigned /* mergeMode */
|
||||
|
|
|
@ -82,7 +82,7 @@ typedef struct _KeyNamesInfo
|
|||
} KeyNamesInfo;
|
||||
|
||||
static void HandleKeycodesFile(XkbFile * file,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
unsigned merge,
|
||||
KeyNamesInfo * info);
|
||||
|
||||
|
@ -496,7 +496,7 @@ MergeIncludedKeycodes(KeyNamesInfo * into, KeyNamesInfo * from,
|
|||
* @param info Struct to store the key info in.
|
||||
*/
|
||||
static Bool
|
||||
HandleIncludeKeycodes(IncludeStmt * stmt, XkbDescPtr xkb, KeyNamesInfo * info)
|
||||
HandleIncludeKeycodes(IncludeStmt * stmt, XkbcDescPtr xkb, KeyNamesInfo * info)
|
||||
{
|
||||
unsigned newMerge;
|
||||
XkbFile *rtrn;
|
||||
|
@ -750,7 +750,7 @@ HandleIndicatorNameDef(IndicatorNameDef * def,
|
|||
*/
|
||||
static void
|
||||
HandleKeycodesFile(XkbFile * file,
|
||||
XkbDescPtr xkb, unsigned merge, KeyNamesInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, KeyNamesInfo * info)
|
||||
{
|
||||
ParseCommon *stmt;
|
||||
|
||||
|
|
|
@ -92,14 +92,14 @@ Atom tok_KEYPAD;
|
|||
|
||||
/***====================================================================***/
|
||||
|
||||
extern Bool AddMapEntry(XkbDescPtr /* xkb */ ,
|
||||
extern Bool AddMapEntry(XkbcDescPtr /* xkb */ ,
|
||||
KeyTypeInfo * /* type */ ,
|
||||
XkbKTMapEntryPtr /* new */ ,
|
||||
Bool /* clobber */ ,
|
||||
Bool /* report */
|
||||
);
|
||||
|
||||
extern Bool AddPreserve(XkbDescPtr /* xkb */ ,
|
||||
extern Bool AddPreserve(XkbcDescPtr /* xkb */ ,
|
||||
KeyTypeInfo * /* type */ ,
|
||||
PreserveInfo * /* new */ ,
|
||||
Bool /* clobber */ ,
|
||||
|
@ -126,7 +126,7 @@ extern Bool AddLevelName(KeyTypeInfo * /* type */ ,
|
|||
/***====================================================================***/
|
||||
|
||||
static void
|
||||
InitKeyTypesInfo(KeyTypesInfo * info, XkbDescPtr xkb, KeyTypesInfo * from)
|
||||
InitKeyTypesInfo(KeyTypesInfo * info, XkbcDescPtr xkb, KeyTypesInfo * from)
|
||||
{
|
||||
tok_ONE_LEVEL = XkbInternAtom(NULL, "ONE_LEVEL", False);
|
||||
tok_TWO_LEVEL = XkbInternAtom(NULL, "TWO_LEVEL", False);
|
||||
|
@ -280,7 +280,7 @@ ReportTypeBadWidth(const char *type, int has, int needs)
|
|||
}
|
||||
|
||||
static Bool
|
||||
AddKeyType(XkbDescPtr xkb, KeyTypesInfo * info, KeyTypeInfo * new)
|
||||
AddKeyType(XkbcDescPtr xkb, KeyTypesInfo * info, KeyTypeInfo * new)
|
||||
{
|
||||
KeyTypeInfo *old;
|
||||
|
||||
|
@ -366,7 +366,7 @@ AddKeyType(XkbDescPtr xkb, KeyTypesInfo * info, KeyTypeInfo * new)
|
|||
|
||||
static void
|
||||
MergeIncludedKeyTypes(KeyTypesInfo * into,
|
||||
KeyTypesInfo * from, unsigned merge, XkbDescPtr xkb)
|
||||
KeyTypesInfo * from, unsigned merge, XkbcDescPtr xkb)
|
||||
{
|
||||
KeyTypeInfo *type;
|
||||
|
||||
|
@ -392,14 +392,14 @@ MergeIncludedKeyTypes(KeyTypesInfo * into,
|
|||
}
|
||||
|
||||
typedef void (*FileHandler) (XkbFile * /* file */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
unsigned /* merge */ ,
|
||||
KeyTypesInfo * /* included */
|
||||
);
|
||||
|
||||
static Bool
|
||||
HandleIncludeKeyTypes(IncludeStmt * stmt,
|
||||
XkbDescPtr xkb, KeyTypesInfo * info, FileHandler hndlr)
|
||||
XkbcDescPtr xkb, KeyTypesInfo * info, FileHandler hndlr)
|
||||
{
|
||||
unsigned newMerge;
|
||||
XkbFile *rtrn;
|
||||
|
@ -544,7 +544,7 @@ NextMapEntry(KeyTypeInfo * type)
|
|||
}
|
||||
|
||||
Bool
|
||||
AddPreserve(XkbDescPtr xkb,
|
||||
AddPreserve(XkbcDescPtr xkb,
|
||||
KeyTypeInfo * type, PreserveInfo * new, Bool clobber, Bool report)
|
||||
{
|
||||
PreserveInfo *old;
|
||||
|
@ -616,7 +616,7 @@ AddPreserve(XkbDescPtr xkb,
|
|||
* @param report True if a warning is to be printed on.
|
||||
*/
|
||||
Bool
|
||||
AddMapEntry(XkbDescPtr xkb,
|
||||
AddMapEntry(XkbcDescPtr xkb,
|
||||
KeyTypeInfo * type,
|
||||
XkbKTMapEntryPtr new, Bool clobber, Bool report)
|
||||
{
|
||||
|
@ -682,7 +682,7 @@ static LookupEntry lnames[] = {
|
|||
|
||||
static Bool
|
||||
SetMapEntry(KeyTypeInfo * type,
|
||||
XkbDescPtr xkb, ExprDef * arrayNdx, ExprDef * value)
|
||||
XkbcDescPtr xkb, ExprDef * arrayNdx, ExprDef * value)
|
||||
{
|
||||
ExprResult rtrn;
|
||||
XkbKTMapEntryRec entry;
|
||||
|
@ -729,7 +729,7 @@ SetMapEntry(KeyTypeInfo * type,
|
|||
|
||||
static Bool
|
||||
SetPreserve(KeyTypeInfo * type,
|
||||
XkbDescPtr xkb, ExprDef * arrayNdx, ExprDef * value)
|
||||
XkbcDescPtr xkb, ExprDef * arrayNdx, ExprDef * value)
|
||||
{
|
||||
ExprResult rtrn;
|
||||
PreserveInfo new;
|
||||
|
@ -878,7 +878,7 @@ SetLevelName(KeyTypeInfo * type, ExprDef * arrayNdx, ExprDef * value)
|
|||
*/
|
||||
static Bool
|
||||
SetKeyTypeField(KeyTypeInfo * type,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field,
|
||||
ExprDef * arrayNdx, ExprDef * value, KeyTypesInfo * info)
|
||||
{
|
||||
|
@ -937,7 +937,7 @@ SetKeyTypeField(KeyTypeInfo * type,
|
|||
}
|
||||
|
||||
static Bool
|
||||
HandleKeyTypeVar(VarDef * stmt, XkbDescPtr xkb, KeyTypesInfo * info)
|
||||
HandleKeyTypeVar(VarDef * stmt, XkbcDescPtr xkb, KeyTypesInfo * info)
|
||||
{
|
||||
ExprResult elem, field;
|
||||
ExprDef *arrayNdx;
|
||||
|
@ -963,7 +963,7 @@ HandleKeyTypeVar(VarDef * stmt, XkbDescPtr xkb, KeyTypesInfo * info)
|
|||
|
||||
static int
|
||||
HandleKeyTypeBody(VarDef * def,
|
||||
XkbDescPtr xkb, KeyTypeInfo * type, KeyTypesInfo * info)
|
||||
XkbcDescPtr xkb, KeyTypeInfo * type, KeyTypesInfo * info)
|
||||
{
|
||||
int ok = 1;
|
||||
ExprResult tmp, field;
|
||||
|
@ -990,7 +990,7 @@ HandleKeyTypeBody(VarDef * def,
|
|||
*/
|
||||
static int
|
||||
HandleKeyTypeDef(KeyTypeDef * def,
|
||||
XkbDescPtr xkb, unsigned merge, KeyTypesInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, KeyTypesInfo * info)
|
||||
{
|
||||
register int i;
|
||||
KeyTypeInfo type;
|
||||
|
@ -1071,7 +1071,7 @@ HandleKeyTypeDef(KeyTypeDef * def,
|
|||
*/
|
||||
static void
|
||||
HandleKeyTypesFile(XkbFile * file,
|
||||
XkbDescPtr xkb, unsigned merge, KeyTypesInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, KeyTypesInfo * info)
|
||||
{
|
||||
ParseCommon *stmt;
|
||||
|
||||
|
@ -1132,7 +1132,7 @@ HandleKeyTypesFile(XkbFile * file,
|
|||
}
|
||||
|
||||
static Bool
|
||||
CopyDefToKeyType(XkbDescPtr xkb, XkbKeyTypePtr type, KeyTypeInfo * def)
|
||||
CopyDefToKeyType(XkbcDescPtr xkb, XkbKeyTypePtr type, KeyTypeInfo * def)
|
||||
{
|
||||
register int i;
|
||||
PreserveInfo *pre;
|
||||
|
|
|
@ -377,7 +377,7 @@ static KeyNameDesc dfltKeys[] = {
|
|||
};
|
||||
|
||||
Status
|
||||
ComputeKbdDefaults(XkbDescPtr xkb)
|
||||
ComputeKbdDefaults(XkbcDescPtr xkb)
|
||||
{
|
||||
Status rtrn;
|
||||
register int i, tmp, nUnknown;
|
||||
|
@ -463,7 +463,7 @@ ComputeKbdDefaults(XkbDescPtr xkb)
|
|||
* @return True if found, False otherwise.
|
||||
*/
|
||||
Bool
|
||||
FindNamedKey(XkbDescPtr xkb,
|
||||
FindNamedKey(XkbcDescPtr xkb,
|
||||
unsigned long name,
|
||||
unsigned int *kc_rtrn,
|
||||
Bool use_aliases, Bool create, int start_from)
|
||||
|
@ -536,7 +536,7 @@ FindNamedKey(XkbDescPtr xkb,
|
|||
}
|
||||
|
||||
Bool
|
||||
FindKeyNameForAlias(XkbDescPtr xkb, unsigned long lname,
|
||||
FindKeyNameForAlias(XkbcDescPtr xkb, unsigned long lname,
|
||||
unsigned long *real_name)
|
||||
{
|
||||
register int i;
|
||||
|
|
|
@ -92,10 +92,10 @@ extern Bool ProcessIncludeFile(IncludeStmt * /* stmt */ ,
|
|||
unsigned * /* merge_rtrn */
|
||||
);
|
||||
|
||||
extern Status ComputeKbdDefaults(XkbDescPtr /* xkb */
|
||||
extern Status ComputeKbdDefaults(XkbcDescPtr /* xkb */
|
||||
);
|
||||
|
||||
extern Bool FindNamedKey(XkbDescPtr /* xkb */ ,
|
||||
extern Bool FindNamedKey(XkbcDescPtr /* xkb */ ,
|
||||
unsigned long /* name */ ,
|
||||
unsigned int * /* kc_rtrn */ ,
|
||||
Bool /* use_aliases */ ,
|
||||
|
@ -103,7 +103,7 @@ extern Bool FindNamedKey(XkbDescPtr /* xkb */ ,
|
|||
int /* start_from */
|
||||
);
|
||||
|
||||
extern Bool FindKeyNameForAlias(XkbDescPtr /* xkb */ ,
|
||||
extern Bool FindKeyNameForAlias(XkbcDescPtr /* xkb */ ,
|
||||
unsigned long /* lname */ ,
|
||||
unsigned long * /* real_name */
|
||||
);
|
||||
|
|
|
@ -238,7 +238,7 @@ typedef struct _SymbolsInfo
|
|||
} SymbolsInfo;
|
||||
|
||||
static void
|
||||
InitSymbolsInfo(SymbolsInfo * info, XkbDescPtr xkb)
|
||||
InitSymbolsInfo(SymbolsInfo * info, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
@ -601,7 +601,7 @@ MergeKeys(SymbolsInfo * info, KeyInfo * into, KeyInfo * from)
|
|||
}
|
||||
|
||||
static Bool
|
||||
AddKeySymbols(SymbolsInfo * info, KeyInfo * key, XkbDescPtr xkb)
|
||||
AddKeySymbols(SymbolsInfo * info, KeyInfo * key, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
unsigned long real_name;
|
||||
|
@ -713,7 +713,7 @@ AddModMapEntry(SymbolsInfo * info, ModMapEntry * new)
|
|||
|
||||
static void
|
||||
MergeIncludedSymbols(SymbolsInfo * into, SymbolsInfo * from,
|
||||
unsigned merge, XkbDescPtr xkb)
|
||||
unsigned merge, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
KeyInfo *key;
|
||||
|
@ -763,14 +763,14 @@ MergeIncludedSymbols(SymbolsInfo * into, SymbolsInfo * from,
|
|||
}
|
||||
|
||||
typedef void (*FileHandler) (XkbFile * /* rtrn */ ,
|
||||
XkbDescPtr /* xkb */ ,
|
||||
XkbcDescPtr /* xkb */ ,
|
||||
unsigned /* merge */ ,
|
||||
SymbolsInfo * /* included */
|
||||
);
|
||||
|
||||
static Bool
|
||||
HandleIncludeSymbols(IncludeStmt * stmt,
|
||||
XkbDescPtr xkb, SymbolsInfo * info, FileHandler hndlr)
|
||||
XkbcDescPtr xkb, SymbolsInfo * info, FileHandler hndlr)
|
||||
{
|
||||
unsigned newMerge;
|
||||
XkbFile *rtrn;
|
||||
|
@ -930,7 +930,7 @@ GetGroupIndex(KeyInfo * key,
|
|||
|
||||
static Bool
|
||||
AddSymbolsToKey(KeyInfo * key,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field,
|
||||
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)
|
||||
{
|
||||
|
@ -980,7 +980,7 @@ AddSymbolsToKey(KeyInfo * key,
|
|||
|
||||
static Bool
|
||||
AddActionsToKey(KeyInfo * key,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field,
|
||||
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)
|
||||
{
|
||||
|
@ -1116,7 +1116,7 @@ static LookupEntry rgEntries[] = {
|
|||
|
||||
static Bool
|
||||
SetSymbolsField(KeyInfo * key,
|
||||
XkbDescPtr xkb,
|
||||
XkbcDescPtr xkb,
|
||||
char *field,
|
||||
ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info)
|
||||
{
|
||||
|
@ -1402,7 +1402,7 @@ SetGroupName(SymbolsInfo * info, ExprDef * arrayNdx, ExprDef * value)
|
|||
}
|
||||
|
||||
static int
|
||||
HandleSymbolsVar(VarDef * stmt, XkbDescPtr xkb, SymbolsInfo * info)
|
||||
HandleSymbolsVar(VarDef * stmt, XkbcDescPtr xkb, SymbolsInfo * info)
|
||||
{
|
||||
ExprResult elem, field, tmp;
|
||||
ExprDef *arrayNdx;
|
||||
|
@ -1484,7 +1484,7 @@ HandleSymbolsVar(VarDef * stmt, XkbDescPtr xkb, SymbolsInfo * info)
|
|||
|
||||
static Bool
|
||||
HandleSymbolsBody(VarDef * def,
|
||||
XkbDescPtr xkb, KeyInfo * key, SymbolsInfo * info)
|
||||
XkbcDescPtr xkb, KeyInfo * key, SymbolsInfo * info)
|
||||
{
|
||||
Bool ok = True;
|
||||
ExprResult tmp, field;
|
||||
|
@ -1562,7 +1562,7 @@ SetExplicitGroup(SymbolsInfo * info, KeyInfo * key)
|
|||
|
||||
static int
|
||||
HandleSymbolsDef(SymbolsDef * stmt,
|
||||
XkbDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
{
|
||||
KeyInfo key;
|
||||
|
||||
|
@ -1592,7 +1592,7 @@ HandleSymbolsDef(SymbolsDef * stmt,
|
|||
|
||||
static Bool
|
||||
HandleModMapDef(ModMapDef * def,
|
||||
XkbDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
{
|
||||
ExprDef *key;
|
||||
ModMapEntry tmp;
|
||||
|
@ -1635,7 +1635,7 @@ HandleModMapDef(ModMapDef * def,
|
|||
|
||||
static void
|
||||
HandleSymbolsFile(XkbFile * file,
|
||||
XkbDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
XkbcDescPtr xkb, unsigned merge, SymbolsInfo * info)
|
||||
{
|
||||
ParseCommon *stmt;
|
||||
|
||||
|
@ -1695,7 +1695,7 @@ HandleSymbolsFile(XkbFile * file,
|
|||
}
|
||||
|
||||
static Bool
|
||||
FindKeyForSymbol(XkbDescPtr xkb, KeySym sym, unsigned int *kc_rtrn)
|
||||
FindKeyForSymbol(XkbcDescPtr xkb, KeySym sym, unsigned int *kc_rtrn)
|
||||
{
|
||||
register int i, j;
|
||||
register Bool gotOne;
|
||||
|
@ -1731,7 +1731,7 @@ FindKeyForSymbol(XkbDescPtr xkb, KeySym sym, unsigned int *kc_rtrn)
|
|||
* @return True if found, False otherwise.
|
||||
*/
|
||||
static Bool
|
||||
FindNamedType(XkbDescPtr xkb, Atom name, unsigned *type_rtrn)
|
||||
FindNamedType(XkbcDescPtr xkb, Atom name, unsigned *type_rtrn)
|
||||
{
|
||||
register unsigned n;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "vmod.h"
|
||||
|
||||
void
|
||||
InitVModInfo(VModInfo * info, XkbDescPtr xkb)
|
||||
InitVModInfo(VModInfo * info, XkbcDescPtr xkb)
|
||||
{
|
||||
ClearVModInfo(info, xkb);
|
||||
info->errorCount = 0;
|
||||
|
@ -45,7 +45,7 @@ InitVModInfo(VModInfo * info, XkbDescPtr xkb)
|
|||
}
|
||||
|
||||
void
|
||||
ClearVModInfo(VModInfo * info, XkbDescPtr xkb)
|
||||
ClearVModInfo(VModInfo * info, XkbcDescPtr xkb)
|
||||
{
|
||||
register int i;
|
||||
|
||||
|
@ -173,9 +173,9 @@ LookupVModIndex(XPointer priv,
|
|||
register int i;
|
||||
register char *fieldStr;
|
||||
register char *modStr;
|
||||
XkbDescPtr xkb;
|
||||
XkbcDescPtr xkb;
|
||||
|
||||
xkb = (XkbDescPtr) priv;
|
||||
xkb = (XkbcDescPtr) priv;
|
||||
if ((xkb == NULL) || (xkb->names == NULL) || (elem != None)
|
||||
|| (type != TypeInt))
|
||||
{
|
||||
|
@ -226,7 +226,7 @@ LookupVModMask(XPointer priv,
|
|||
}
|
||||
|
||||
int
|
||||
FindKeypadVMod(XkbDescPtr xkb)
|
||||
FindKeypadVMod(XkbcDescPtr xkb)
|
||||
{
|
||||
Atom name;
|
||||
ExprResult rtrn;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
typedef struct _VModInfo
|
||||
{
|
||||
XkbDescPtr xkb;
|
||||
XkbcDescPtr xkb;
|
||||
unsigned defined;
|
||||
unsigned available;
|
||||
unsigned newlyDefined;
|
||||
|
@ -37,11 +37,11 @@ typedef struct _VModInfo
|
|||
} VModInfo;
|
||||
|
||||
extern void InitVModInfo(VModInfo * /* info */ ,
|
||||
XkbDescPtr /* xkb */
|
||||
XkbcDescPtr /* xkb */
|
||||
);
|
||||
|
||||
extern void ClearVModInfo(VModInfo * /* info */ ,
|
||||
XkbDescPtr /* xkb */
|
||||
XkbcDescPtr /* xkb */
|
||||
);
|
||||
|
||||
extern Bool HandleVModDef(VModDef * /* stmt */ ,
|
||||
|
@ -50,7 +50,7 @@ extern Bool HandleVModDef(VModDef * /* stmt */ ,
|
|||
);
|
||||
|
||||
extern Bool ApplyVModDefs(VModInfo * /* info */ ,
|
||||
XkbDescPtr /* xkb */
|
||||
XkbcDescPtr /* xkb */
|
||||
);
|
||||
|
||||
extern int LookupVModIndex(XPointer /* priv */ ,
|
||||
|
@ -67,7 +67,7 @@ extern int LookupVModMask(XPointer /* priv */ ,
|
|||
ExprResult * /* val_rtrn */
|
||||
);
|
||||
|
||||
extern int FindKeypadVMod(XkbDescPtr /* xkb */
|
||||
extern int FindKeypadVMod(XkbcDescPtr /* xkb */
|
||||
);
|
||||
|
||||
extern Bool ResolveVirtualModifier(ExprDef * /* def */ ,
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "utils.h"
|
||||
|
||||
#include <X11/extensions/XKM.h>
|
||||
#include "X11/extensions/XKBcommon.h"
|
||||
|
||||
extern char *scanFile;
|
||||
|
||||
|
|
Loading…
Reference in New Issue