diff options
Diffstat (limited to '')
-rw-r--r-- | src/shared/kbd-util.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/shared/kbd-util.h b/src/shared/kbd-util.h new file mode 100644 index 0000000..a2fc2e6 --- /dev/null +++ b/src/shared/kbd-util.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include <stdbool.h> + +#if HAVE_SPLIT_USR +#define KBD_KEYMAP_DIRS \ + "/usr/share/keymaps/\0" \ + "/usr/share/kbd/keymaps/\0" \ + "/usr/lib/kbd/keymaps/\0" \ + "/lib/kbd/keymaps/\0" +#else +#define KBD_KEYMAP_DIRS \ + "/usr/share/keymaps/\0" \ + "/usr/share/kbd/keymaps/\0" \ + "/usr/lib/kbd/keymaps/\0" +#endif + +int get_keymaps(char ***l); +bool keymap_is_valid(const char *name); +int keymap_exists(const char *name); |