]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/locale/keymap-util.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / locale / keymap-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
4897d1dc
ZJS
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
24typedef 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
36int find_converted_keymap(const char *x11_layout, const char *x11_variant, char **new_keymap);
aa63b56f 37int find_legacy_keymap(Context *c, char **new_keymap);
4897d1dc
ZJS
38int find_language_fallback(const char *lang, char **language);
39
40int context_read_data(Context *c);
41void context_free(Context *c);
42int vconsole_convert_to_x11(Context *c);
43int vconsole_write_data(Context *c);
44int x11_convert_to_vconsole(Context *c);
45int x11_write_data(Context *c);
46void locale_simplify(Context *c);
47int locale_write_data(Context *c, char ***settings);