xkbcomp: Add non-xkbfile XkbConfigText
parent
f2308e7e55
commit
a3809b1340
|
@ -574,3 +574,33 @@ FindKeyNameForAlias(XkbDescPtr xkb, unsigned long lname,
|
|||
}
|
||||
return False;
|
||||
}
|
||||
|
||||
char *
|
||||
XkbConfigText(unsigned config, unsigned format)
|
||||
{
|
||||
switch (config) {
|
||||
case XkmSemanticsFile:
|
||||
return "Semantics";
|
||||
case XkmLayoutFile:
|
||||
return "Layout";
|
||||
case XkmKeymapFile:
|
||||
return "Keymap";
|
||||
case XkmGeometryFile:
|
||||
case XkmGeometryIndex:
|
||||
return "Geometry";
|
||||
case XkmTypesIndex:
|
||||
return "Types";
|
||||
case XkmCompatMapIndex:
|
||||
return "CompatMap";
|
||||
case XkmSymbolsIndex:
|
||||
return "Symbols";
|
||||
case XkmIndicatorsIndex:
|
||||
return "Indicators";
|
||||
case XkmKeyNamesIndex:
|
||||
return "KeyNames";
|
||||
case XkmVirtualModsIndex:
|
||||
return "VirtualMods";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,7 @@ extern Bool FindKeyNameForAlias(XkbDescPtr /* xkb */ ,
|
|||
unsigned long * /* real_name */
|
||||
);
|
||||
|
||||
extern char *
|
||||
XkbConfigText(unsigned config, unsigned format);
|
||||
|
||||
#endif /* MISC_H */
|
||||
|
|
Loading…
Reference in New Issue