/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "dlfcn-util.h" #if HAVE_XKBCOMMON #include extern DLSYM_PROTOTYPE(xkb_context_new); extern DLSYM_PROTOTYPE(xkb_context_unref); extern DLSYM_PROTOTYPE(xkb_context_set_log_fn); extern DLSYM_PROTOTYPE(xkb_keymap_new_from_names); extern DLSYM_PROTOTYPE(xkb_keymap_unref); int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options); #else static inline int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options) { return 0; } #endif