diff options
author | Ran Benita <ran234@gmail.com> | 2012-08-27 19:20:41 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-09-02 19:17:09 +0300 |
commit | 591df1156d2c2510c8672150a74982e0009e0f48 (patch) | |
tree | 5d7649e8184e25639e490a692778de0e6e787de6 /src/text.c | |
parent | efc2d74141fec07b0aa44640fbf667d6b52a8631 (diff) |
Move enum xkb_file_type to xkbcomp/ast.h
This is a more suitable place for this enum, since it's internal to
xkbcomp.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -226,23 +226,6 @@ ModMaskText(xkb_mod_mask_t mask) return buf; } -static const char *xkb_file_type_strings[_FILE_TYPE_NUM_ENTRIES] = { - [FILE_TYPE_KEYMAP] = "xkb_keymap", - [FILE_TYPE_TYPES] = "xkb_types", - [FILE_TYPE_COMPAT] = "xkb_compatibility", - [FILE_TYPE_SYMBOLS] = "xkb_symbols", - [FILE_TYPE_KEYCODES] = "xkb_keycodes", - [FILE_TYPE_RULES] = "rules", -}; - -const char * -FileTypeText(enum xkb_file_type type) -{ - if (type > _FILE_TYPE_NUM_ENTRIES) - return "unknown"; - return xkb_file_type_strings[type]; -} - static const char *actionTypeNames[XkbSA_NumActions] = { [XkbSA_NoAction] = "NoAction", [XkbSA_SetMods] = "SetMods", |