summaryrefslogtreecommitdiff
path: root/rcm-server-keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'rcm-server-keymap.h')
-rw-r--r--rcm-server-keymap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rcm-server-keymap.h b/rcm-server-keymap.h
index a33632c..8da6bb6 100644
--- a/rcm-server-keymap.h
+++ b/rcm-server-keymap.h
@@ -21,11 +21,16 @@ struct keymap {
struct keymap *find_keymap_by_id(struct device *dev, const char *id);
+struct keymap *keymap_read(int dfd, const char *path, const char *filename);
+
int keymaps_load(struct device *device);
int keymap_write(struct keymap *keymap);
void keymap_free(struct keymap *keymap);
+DEFINE_TRIVIAL_CLEANUP_FUNC(struct keymap *, keymap_free);
+#define _cleanup_keymap_free_ _cleanup_(keymap_freep)
+
#endif