From bbed3403e81195c509a6d737ec7b1fdb684efa44 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 4 Jul 2021 11:04:53 +0200 Subject: Added wrapped libxkbcommon (for #17) --- src/library_list.h | 1 + src/wrapped/wrappedxkbcommon.c | 18 +++++++ src/wrapped/wrappedxkbcommon_private.h | 93 ++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 src/wrapped/wrappedxkbcommon.c create mode 100644 src/wrapped/wrappedxkbcommon_private.h (limited to 'src') diff --git a/src/library_list.h b/src/library_list.h index 952b7d38..3acd39b8 100755 --- a/src/library_list.h +++ b/src/library_list.h @@ -67,6 +67,7 @@ GO("libXt.so.6", libxt) GO("libXcomposite.so.1", libxcomposite) GO("libXdamage.so.1", libxdamage) GO("libXmu.so.6", libxmu) +GO("libxkbcommon.so.0", xkbcommon) GO("libxkbcommon-x11.so.0", xkbcommonx11) GO("libz.so.1", libz) GO("libopenal.so.1", openal) diff --git a/src/wrapped/wrappedxkbcommon.c b/src/wrapped/wrappedxkbcommon.c new file mode 100644 index 00000000..c0be8c64 --- /dev/null +++ b/src/wrapped/wrappedxkbcommon.c @@ -0,0 +1,18 @@ +#include +#include +#include +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include + +#include "wrappedlibs.h" + +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" + +const char* xkbcommonName = "libxkbcommon.so.0"; +#define LIBNAME xkbcommon + +#include "wrappedlib_init.h" + diff --git a/src/wrapped/wrappedxkbcommon_private.h b/src/wrapped/wrappedxkbcommon_private.h new file mode 100644 index 00000000..897900f9 --- /dev/null +++ b/src/wrapped/wrappedxkbcommon_private.h @@ -0,0 +1,93 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif +//typedef uint32_t xkb_keycode_t + +//GO(xkb_compose_state_feed, +//GO(xkb_compose_state_get_compose_table, +//GO(xkb_compose_state_get_one_sym, +//GO(xkb_compose_state_get_status, +//GO(xkb_compose_state_get_utf8, +//GO(xkb_compose_state_new, +//GO(xkb_compose_state_ref, +//GO(xkb_compose_state_reset, +//GO(xkb_compose_state_unref, +//GO(xkb_compose_table_new_from_buffer, +//GO(xkb_compose_table_new_from_file, +//GO(xkb_compose_table_new_from_locale, +//GO(xkb_compose_table_ref, +//GO(xkb_compose_table_unref, +//GO(xkb_context_get_log_level, +//GO(xkb_context_get_log_verbosity, +GO(xkb_context_get_user_data, pFp) +//GO(xkb_context_include_path_append, +//GO(xkb_context_include_path_append_default, +//GO(xkb_context_include_path_clear, +//GO(xkb_context_include_path_get, +//GO(xkb_context_include_path_reset_defaults, +GO(xkb_context_new, pFi) +//GO(xkb_context_num_include_paths, +GO(xkb_context_ref, pFp) +//GOM(xkb_context_set_log_fn, vFEpp) +GO(xkb_context_set_log_level, vFpi) +GO(xkb_context_set_log_verbosity, vFpi) +GO(xkb_context_set_user_data, vFpp) +GO(xkb_context_unref, vFp) +//GO(xkb_keymap_get_as_string, +GO(xkb_keymap_key_by_name, uFpp) +//GOM(xkb_keymap_key_for_each, vFEppp) +GO(xkb_keymap_key_get_name, pFpu) +GO(xkb_keymap_key_get_syms_by_level, iFpuuup) +GO(xkb_keymap_key_repeats, iFpu) +GO(xkb_keymap_layout_get_index, uFpp) +GO(xkb_keymap_layout_get_name, pFpu) +GO(xkb_keymap_led_get_index, uFpp) +GO(xkb_keymap_led_get_name, pFpu) +GO(xkb_keymap_max_keycode, uFp) +GO(xkb_keymap_min_keycode, uFp) +GO(xkb_keymap_mod_get_index, uFpp) +GO(xkb_keymap_mod_get_name, pFpu) +//GO(xkb_keymap_new_from_buffer, +//GO(xkb_keymap_new_from_file, +//GO(xkb_keymap_new_from_names, +//GO(xkb_keymap_new_from_string, +GO(xkb_keymap_num_layouts, uFp) +GO(xkb_keymap_num_layouts_for_key, uFpu) +GO(xkb_keymap_num_leds, uFp) +GO(xkb_keymap_num_levels_for_key, uFpuu) +GO(xkb_keymap_num_mods, uFp) +//GO(xkb_keymap_ref, +//GO(xkb_keymap_unref, +//GO(xkb_keysym_from_name, +//GO(xkb_keysym_get_name, +//GO(xkb_keysym_to_lower, +//GO(xkb_keysym_to_upper, +//GO(xkb_keysym_to_utf32, +//GO(xkb_keysym_to_utf8, +//GO(xkb_state_get_keymap, +//GO(xkb_state_key_get_consumed_mods, +//GO(xkb_state_key_get_consumed_mods2, +//GO(xkb_state_key_get_layout, +//GO(xkb_state_key_get_level, +//GO(xkb_state_key_get_one_sym, +//GO(xkb_state_key_get_syms, +//GO(xkb_state_key_get_utf32, +//GO(xkb_state_key_get_utf8, +//GO(xkb_state_layout_index_is_active, +//GO(xkb_state_layout_name_is_active, +//GO(xkb_state_led_index_is_active, +//GO(xkb_state_led_name_is_active, +//GO(xkb_state_mod_index_is_active, +//GO(xkb_state_mod_index_is_consumed, +//GO(xkb_state_mod_index_is_consumed2, +//GO(xkb_state_mod_indices_are_active, +//GO(xkb_state_mod_mask_remove_consumed, +//GO(xkb_state_mod_name_is_active, +//GO(xkb_state_mod_names_are_active, +//GO(xkb_state_new, +//GO(xkb_state_ref, +//GO(xkb_state_serialize_layout, +//GO(xkb_state_serialize_mods, +//GO(xkb_state_unref, +//GO(xkb_state_update_key, +//GO(xkb_state_update_mask, -- cgit 1.4.1