libxkbcommon/test
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
..
data parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
.gitignore test: add print-compiled-keymap tool 2012-09-19 16:56:26 +03:00
common.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
context.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
filecomp.c parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
interactive.c Make xkb_keymap_num_leds return the index range instead of active count 2012-10-11 16:54:17 +02:00
keyseq.c state: correctly wrap state->locked_group and ->group 2012-09-24 09:08:53 +10:00
keysym.c keysym: fix xkb_keysym_is_upper/lower() to work properly 2012-10-09 21:39:16 +02:00
log.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
print-compiled-keymap.c Add format argument to xkb_keymap_get_as_string 2012-09-24 09:13:32 +10:00
rmlvo-to-kccgst.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
rules-file.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
rulescomp.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
state.c Make xkb_keymap_num_leds return the index range instead of active count 2012-10-11 16:54:17 +02:00
stringcomp.c stringcomp: test compilation of a dump of a keymap created from rules 2012-10-10 19:44:23 +02:00
test.h Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00