diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-04 09:39:29 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-04 09:39:29 +0100 |
commit | 315edc2c115a28e9a9463ad5e914610ce893e170 (patch) | |
tree | 7c8757828101b82585792cf8b41b40011b30041a /src/shared/kbd-util.h | |
parent | man: document usage of SD_BUS_CREDS_AUGMENT (diff) | |
download | systemd-315edc2c115a28e9a9463ad5e914610ce893e170.tar.xz systemd-315edc2c115a28e9a9463ad5e914610ce893e170.zip |
Move basic/kbd-util to shared/
It is (or should be used) in localectl, localed, and a few other places,
no reason to keep it in basic/.
Diffstat (limited to 'src/shared/kbd-util.h')
-rw-r--r-- | src/shared/kbd-util.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/shared/kbd-util.h b/src/shared/kbd-util.h new file mode 100644 index 0000000000..6714aeb9e0 --- /dev/null +++ b/src/shared/kbd-util.h @@ -0,0 +1,20 @@ +/* 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); |