Debian Codegraph @

src/locale/xkbcommon-util.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "dlfcn-util.h"
5 #include "shared-forward.h"
6
7 #if HAVE_XKBCOMMON
8 #include <xkbcommon/xkbcommon.h>
9
10 extern DLSYM_PROTOTYPE(xkb_context_new);
11 extern DLSYM_PROTOTYPE(xkb_context_unref);
12 extern DLSYM_PROTOTYPE(xkb_context_set_log_fn);
13 extern DLSYM_PROTOTYPE(xkb_keymap_new_from_names);
14 extern DLSYM_PROTOTYPE(xkb_keymap_unref);
15
16 int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options);
17
18 #else
19
20 static inline int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options) {
21 return 0;
22 }
23
24 #endif