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