]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/locale/keymap-util.h
Merge pull request #7388 from keszybz/doc-tweak
[thirdparty/systemd.git] / src / locale / keymap-util.h
1 /***
2 This file is part of systemd.
3
4 Copyright 2011 Lennart Poettering
5 Copyright 2013 Kay Sievers
6
7 systemd is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
11
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
19 ***/
20
21 #include "locale-util.h"
22
23 typedef struct Context {
24 char *locale[_VARIABLE_LC_MAX];
25
26 char *x11_layout;
27 char *x11_model;
28 char *x11_variant;
29 char *x11_options;
30
31 char *vc_keymap;
32 char *vc_keymap_toggle;
33 } Context;
34
35 int find_converted_keymap(const char *x11_layout, const char *x11_variant, char **new_keymap);
36 int find_legacy_keymap(Context *c, char **new_keymap);
37 int find_language_fallback(const char *lang, char **language);
38
39 int context_read_data(Context *c);
40 void context_free(Context *c);
41 int vconsole_convert_to_x11(Context *c);
42 int vconsole_write_data(Context *c);
43 int x11_convert_to_vconsole(Context *c);
44 int x11_write_data(Context *c);
45 void locale_simplify(Context *c);
46 int locale_write_data(Context *c, char ***settings);