summaryrefslogtreecommitdiff
path: root/src/locale/keymap-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/keymap-util.h')
-rw-r--r--src/locale/keymap-util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/locale/keymap-util.h b/src/locale/keymap-util.h
index c55c9f92a6..6eced84240 100644
--- a/src/locale/keymap-util.h
+++ b/src/locale/keymap-util.h
@@ -1,7 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
#include "sd-bus.h"
+#include "hashmap.h"
#include "locale-util.h"
#include "time-util.h"
@@ -21,6 +23,8 @@ typedef struct Context {
usec_t vc_mtime;
char *vc_keymap;
char *vc_keymap_toggle;
+
+ Hashmap *polkit_registry;
} Context;
int find_converted_keymap(const char *x11_layout, const char *x11_variant, char **new_keymap);
@@ -31,7 +35,7 @@ int locale_read_data(Context *c, sd_bus_message *m);
int vconsole_read_data(Context *c, sd_bus_message *m);
int x11_read_data(Context *c, sd_bus_message *m);
-void context_free(Context *c);
+void context_clear(Context *c);
int vconsole_convert_to_x11(Context *c);
int vconsole_write_data(Context *c);
int x11_convert_to_vconsole(Context *c);