diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-04 11:04:53 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-07-04 11:04:53 +0200 |
| commit | bbed3403e81195c509a6d737ec7b1fdb684efa44 (patch) | |
| tree | 8c010e40a806232b505dedaf7864bb3533cfa0d9 /src/wrapped | |
| parent | 9a0824af6999204dd70aae3b8f6a7fa2fb2f78a4 (diff) | |
| download | box64-bbed3403e81195c509a6d737ec7b1fdb684efa44.tar.gz box64-bbed3403e81195c509a6d737ec7b1fdb684efa44.zip | |
Added wrapped libxkbcommon (for #17)
Diffstat (limited to 'src/wrapped')
| -rw-r--r-- | src/wrapped/wrappedxkbcommon.c | 18 | ||||
| -rw-r--r-- | src/wrapped/wrappedxkbcommon_private.h | 93 |
2 files changed, 111 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <string.h> +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <dlfcn.h> + +#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, |