1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <stdbool.h> 5 6 #if HAVE_SPLIT_USR 7 #define KBD_KEYMAP_DIRS \ 8 "/usr/share/keymaps/\0" \ 9 "/usr/share/kbd/keymaps/\0" \ 10 "/usr/lib/kbd/keymaps/\0" \ 11 "/lib/kbd/keymaps/\0" 12 #else 13 #define KBD_KEYMAP_DIRS \ 14 "/usr/share/keymaps/\0" \ 15 "/usr/share/kbd/keymaps/\0" \ 16 "/usr/lib/kbd/keymaps/\0" 17 #endif 18 19 int get_keymaps(char ***l); 20 bool keymap_is_valid(const char *name); 21 int keymap_exists(const char *name); 22