summaryrefslogtreecommitdiff
path: root/src/shared/kbd-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-04 09:39:29 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-04 09:39:29 +0100
commit315edc2c115a28e9a9463ad5e914610ce893e170 (patch)
tree7c8757828101b82585792cf8b41b40011b30041a /src/shared/kbd-util.h
parent7e40042b55c245ffd449e764edfc4dd7c0aa0094 (diff)
downloadsystemd-315edc2c115a28e9a9463ad5e914610ce893e170.tar.gz
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.h20
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);