diff options
author | Ran Benita <ran234@gmail.com> | 2012-10-06 14:34:17 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-10-06 21:41:59 +0200 |
commit | 9ebd2f67f45ef3d650bb96030eac26b1b32ae699 (patch) | |
tree | cd2400a9962ea3242f69969b3b81d0ba172e2c51 /src/text.h | |
parent | 6d580127d89c1f258b533fc7333357c62e7a3b19 (diff) | |
download | xorg-lib-libxkbcommon-9ebd2f67f45ef3d650bb96030eac26b1b32ae699.tar.gz |
text: explicitly take mod_type in mod functions
This essentially "tags" each invocation of the functions with the
modifier type of the argument, which allows for easy grepping for them
(with the aim being, to remove anything but MOD_BOTH).
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.h')
-rw-r--r-- | src/text.h | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -48,19 +48,16 @@ extern const LookupEntry actionTypeNames[]; extern const LookupEntry symInterpretMatchMaskNames[]; const char * -VModMaskText(const struct xkb_keymap *keymap, xkb_mod_mask_t mask); - -xkb_mod_index_t -ModNameToIndex(const struct xkb_keymap *keymap, xkb_atom_t name); - -xkb_atom_t -ModIndexToName(const struct xkb_keymap *keymap, xkb_mod_index_t ndx); +ModMaskText(const struct xkb_keymap *keymap, xkb_mod_mask_t mask, + enum mod_type type); const char * -ModIndexText(const struct xkb_keymap *keymap, xkb_mod_index_t ndx); +ModIndexText(const struct xkb_keymap *keymap, xkb_mod_index_t ndx, + enum mod_type type); -const char * -ModMaskText(const struct xkb_keymap *keymap, xkb_mod_mask_t mask); +xkb_mod_index_t +ModNameToIndex(const struct xkb_keymap *keymap, xkb_atom_t name, + enum mod_type type); const char * ActionTypeText(enum xkb_action_type type); |