mirror of
https://github.com/ptitSeb/box64.git
synced 2025-02-17 12:57:47 +00:00
Added wrapped libxkbcommon (for #17)
This commit is contained in:
parent
9a0824af69
commit
bbed3403e8
@ -289,6 +289,7 @@ set(WRAPPEDS
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedutil.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedvorbisfile.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedxinerama.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommon.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommonx11.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedxml2.c"
|
||||
)
|
||||
|
@ -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)
|
||||
|
18
src/wrapped/wrappedxkbcommon.c
Normal file
18
src/wrapped/wrappedxkbcommon.c
Normal file
@ -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"
|
||||
|
93
src/wrapped/wrappedxkbcommon_private.h
Normal file
93
src/wrapped/wrappedxkbcommon_private.h
Normal file
@ -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,
|
Loading…
x
Reference in New Issue
Block a user