diff options
Diffstat (limited to 'test/test.h')
-rw-r--r-- | test/test.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/test.h b/test/test.h index 046b64e..a72d6aa 100644 --- a/test/test.h +++ b/test/test.h @@ -25,11 +25,27 @@ #include <assert.h> - /* Don't use compat names in internal code. */ +/* Don't use compat names in internal code. */ #define _XKBCOMMON_COMPAT_H #include "xkbcommon/xkbcommon.h" #include "utils.h" +/* The offset between KEY_* numbering, and keycodes in the XKB evdev + * dataset. */ +#define EVDEV_OFFSET 8 + +enum key_seq_state { + DOWN, + REPEAT, + UP, + BOTH, + NEXT, + FINISH, +}; + +int +test_key_seq(struct xkb_keymap *keymap, ...); + const char * test_get_path(const char *path_rel); |