summaryrefslogtreecommitdiff
path: root/src/keymap.h
Commit message (Collapse)AuthorAgeFilesLines
...
* keymap.h: add note on why XKB_NUM_GROUPS is still thereRan Benita2012-09-241-1/+15
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* keymap, symbols: use darray for num_groupsRan Benita2012-09-241-1/+3
| | | | | | | Instead of using a static array of size XKB_NUM_GROUPS, because we want to get rid of this limit. Signed-off-by: Ran Benita <ran234@gmail.com>
* keymap: don't use XKB_NUM_GROUPS for key->kt_indexRan Benita2012-09-241-1/+1
| | | | | | One unneeded XKB_NUM_GROUPS less. Signed-off-by: Ran Benita <ran234@gmail.com>
* Add format argument to xkb_keymap_get_as_stringRan Benita2012-09-241-1/+4
| | | | | | | | | | | | | | | | | | | This function really needs a format argument, for symmetry with the keymap creation functions. If we add new formats, we will almost certainly want to add support for serializing it into a string. It would also allow to convert from one format to another, etc. The in the common case, the user would just want to use the format she used to create the keymap; for that we add a special XKB_KEYMAP_USE_ORIGINAL_FORMAT value, which will do that (it is defined to -1 outside of the enum because I have a feeling we might want to use 0 for something else). To support this we need to keep the format inside the keymap. While we're at it we also initialize keymap flags properly. This changes the API, but the old xkb_map_get_as_string name works as expected so this is the best time to do this. Signed-off-by: Ran Benita <ran234@gmail.com>
* keymap: remove XkbKeyGetKeycodeRan Benita2012-09-241-7/+0
| | | | | | Because we keep the keycode inside the xkb_key now. Signed-off-by: Ran Benita <ran234@gmail.com>
* Rename map.{c,h} to keymap.{c,h}Ran Benita2012-09-241-0/+433
Seeing as we don't like "map" anymore. Signed-off-by: Ran Benita <ran234@gmail.com>