xkbcomp: Add non-xkbfile XkbConfigText

master
Dan Nicholson 2009-03-27 18:55:13 -07:00
parent f2308e7e55
commit a3809b1340
2 changed files with 33 additions and 0 deletions

View File

@ -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";
}
}

View File

@ -108,4 +108,7 @@ extern Bool FindKeyNameForAlias(XkbDescPtr /* xkb */ ,
unsigned long * /* real_name */
);
extern char *
XkbConfigText(unsigned config, unsigned format);
#endif /* MISC_H */