libxkbcommon/xkbcommon
Ran Benita bbf388ec1f Make xkb_keymap_num_leds return the index range instead of active count
Currently xkb_keymap_num_leds() returns a count of valid (settable)
leds. Because the indexes might be non-consecutive, and some leds
might not be settable, it is incorrect to use this function for
iterating over the leds in the keymap. But this is the main use case of
this function, so instead of the current behavior we adapt the function
to the use case by making it return the needed range of iteration.
The caller needs to handle invalid intermittent indexes, though.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-10-11 16:54:17 +02:00
..
xkbcommon-compat.h Add format argument to xkb_keymap_get_as_string 2012-09-24 09:13:32 +10:00
xkbcommon-keysyms.h xkbcommon-keysyms: Add header protection 2012-09-11 16:49:04 +01:00
xkbcommon-names.h Improve API doxygen documentation 2012-09-24 09:13:32 +10:00
xkbcommon.h Make xkb_keymap_num_leds return the index range instead of active count 2012-10-11 16:54:17 +02:00