diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-05 15:14:17 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-07-05 15:14:17 +0200 |
| commit | 303390bf003e59a8bc3e1e00c39d587b87cf36d5 (patch) | |
| tree | 0967be392e053ba7c12497a8f58c026f48baf481 | |
| parent | 623e81a4224b01658b264c2184b278fec876e108 (diff) | |
| download | box64-303390bf003e59a8bc3e1e00c39d587b87cf36d5.tar.gz box64-303390bf003e59a8bc3e1e00c39d587b87cf36d5.zip | |
Added more xkcbcommon wrapped functions (for #29)
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 6 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 2 | ||||
| -rw-r--r-- | src/wrapped/wrappedxkbcommon_private.h | 46 |
4 files changed, 33 insertions, 23 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 0f10cdd8..8192cd9d 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -329,6 +329,7 @@ #() uFupp #() uFpip #() uFpCi +#() uFpui #() uFpuu #() uFpLp #() uFppi @@ -535,6 +536,7 @@ #() iFpuLL #() iFpuLp #() iFpupu +#() iFpupL #() iFpupV #() iFplip #() iFpLwp diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 86e9e88b..4e91ddf5 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -363,6 +363,7 @@ typedef uint64_t (*uFupu_t)(uint64_t, void*, uint64_t); typedef uint64_t (*uFupp_t)(uint64_t, void*, void*); typedef uint64_t (*uFpip_t)(void*, int64_t, void*); typedef uint64_t (*uFpCi_t)(void*, uint8_t, int64_t); +typedef uint64_t (*uFpui_t)(void*, uint64_t, int64_t); typedef uint64_t (*uFpuu_t)(void*, uint64_t, uint64_t); typedef uint64_t (*uFpLp_t)(void*, uintptr_t, void*); typedef uint64_t (*uFppi_t)(void*, void*, int64_t); @@ -569,6 +570,7 @@ typedef int64_t (*iFpuup_t)(void*, uint64_t, uint64_t, void*); typedef int64_t (*iFpuLL_t)(void*, uint64_t, uintptr_t, uintptr_t); typedef int64_t (*iFpuLp_t)(void*, uint64_t, uintptr_t, void*); typedef int64_t (*iFpupu_t)(void*, uint64_t, void*, uint64_t); +typedef int64_t (*iFpupL_t)(void*, uint64_t, void*, uintptr_t); typedef int64_t (*iFpupV_t)(void*, uint64_t, void*, void*); typedef int64_t (*iFplip_t)(void*, intptr_t, int64_t, void*); typedef int64_t (*iFpLwp_t)(void*, uintptr_t, int16_t, void*); @@ -1695,6 +1697,7 @@ void uFupu(x64emu_t *emu, uintptr_t fcn) { uFupu_t fn = (uFupu_t)fcn; R_RAX=(uin void uFupp(x64emu_t *emu, uintptr_t fcn) { uFupp_t fn = (uFupp_t)fcn; R_RAX=(uint64_t)fn((uint64_t)R_RDI, (void*)R_RSI, (void*)R_RDX); } void uFpip(x64emu_t *emu, uintptr_t fcn) { uFpip_t fn = (uFpip_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (int64_t)R_RSI, (void*)R_RDX); } void uFpCi(x64emu_t *emu, uintptr_t fcn) { uFpCi_t fn = (uFpCi_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (uint8_t)R_RSI, (int64_t)R_RDX); } +void uFpui(x64emu_t *emu, uintptr_t fcn) { uFpui_t fn = (uFpui_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (int64_t)R_RDX); } void uFpuu(x64emu_t *emu, uintptr_t fcn) { uFpuu_t fn = (uFpuu_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (uint64_t)R_RDX); } void uFpLp(x64emu_t *emu, uintptr_t fcn) { uFpLp_t fn = (uFpLp_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX); } void uFppi(x64emu_t *emu, uintptr_t fcn) { uFppi_t fn = (uFppi_t)fcn; R_RAX=(uint64_t)fn((void*)R_RDI, (void*)R_RSI, (int64_t)R_RDX); } @@ -1901,6 +1904,7 @@ void iFpuup(x64emu_t *emu, uintptr_t fcn) { iFpuup_t fn = (iFpuup_t)fcn; R_RAX=( void iFpuLL(x64emu_t *emu, uintptr_t fcn) { iFpuLL_t fn = (iFpuLL_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX); } void iFpuLp(x64emu_t *emu, uintptr_t fcn) { iFpuLp_t fn = (iFpuLp_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX); } void iFpupu(x64emu_t *emu, uintptr_t fcn) { iFpupu_t fn = (iFpupu_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (void*)R_RDX, (uint64_t)R_RCX); } +void iFpupL(x64emu_t *emu, uintptr_t fcn) { iFpupL_t fn = (iFpupL_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (void*)R_RDX, (uintptr_t)R_RCX); } void iFpupV(x64emu_t *emu, uintptr_t fcn) { iFpupV_t fn = (iFpupV_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uint64_t)R_RSI, (void*)R_RDX, (void*)(R_RSP + 8)); } void iFplip(x64emu_t *emu, uintptr_t fcn) { iFplip_t fn = (iFplip_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (intptr_t)R_RSI, (int64_t)R_RDX, (void*)R_RCX); } void iFpLwp(x64emu_t *emu, uintptr_t fcn) { iFpLwp_t fn = (iFpLwp_t)fcn; R_RAX=(int64_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (int16_t)R_RDX, (void*)R_RCX); } @@ -2989,6 +2993,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &uFupp) return 1; if (fun == &uFpip) return 1; if (fun == &uFpCi) return 1; + if (fun == &uFpui) return 1; if (fun == &uFpuu) return 1; if (fun == &uFpLp) return 1; if (fun == &uFppi) return 1; @@ -3164,6 +3169,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &iFpuLL) return 1; if (fun == &iFpuLp) return 1; if (fun == &iFpupu) return 1; + if (fun == &iFpupL) return 1; if (fun == &iFplip) return 1; if (fun == &iFpLwp) return 1; if (fun == &iFpLpi) return 1; diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index d009d2b9..4e18f5b9 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -359,6 +359,7 @@ void uFupu(x64emu_t *emu, uintptr_t fnc); void uFupp(x64emu_t *emu, uintptr_t fnc); void uFpip(x64emu_t *emu, uintptr_t fnc); void uFpCi(x64emu_t *emu, uintptr_t fnc); +void uFpui(x64emu_t *emu, uintptr_t fnc); void uFpuu(x64emu_t *emu, uintptr_t fnc); void uFpLp(x64emu_t *emu, uintptr_t fnc); void uFppi(x64emu_t *emu, uintptr_t fnc); @@ -565,6 +566,7 @@ void iFpuup(x64emu_t *emu, uintptr_t fnc); void iFpuLL(x64emu_t *emu, uintptr_t fnc); void iFpuLp(x64emu_t *emu, uintptr_t fnc); void iFpupu(x64emu_t *emu, uintptr_t fnc); +void iFpupL(x64emu_t *emu, uintptr_t fnc); void iFpupV(x64emu_t *emu, uintptr_t fnc); void iFplip(x64emu_t *emu, uintptr_t fnc); void iFpLwp(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedxkbcommon_private.h b/src/wrapped/wrappedxkbcommon_private.h index e65657b4..a5de5f67 100644 --- a/src/wrapped/wrappedxkbcommon_private.h +++ b/src/wrapped/wrappedxkbcommon_private.h @@ -64,30 +64,30 @@ GO(xkb_keymap_unref, vFp) //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_get_keymap, pFp) +GO(xkb_state_key_get_consumed_mods, uFpu) +GO(xkb_state_key_get_consumed_mods2, uFpui) +GO(xkb_state_key_get_layout, iFpu) +GO(xkb_state_key_get_level, iFpui) +GO(xkb_state_key_get_one_sym, uFpu) +GO(xkb_state_key_get_syms, iFpip) +GO(xkb_state_key_get_utf32, uFpu) +GO(xkb_state_key_get_utf8, iFpupL) +GO(xkb_state_layout_index_is_active, iFpii) +GO(xkb_state_layout_name_is_active, iFppi) +GO(xkb_state_led_index_is_active, iFpi) +GO(xkb_state_led_name_is_active, iFpp) +GO(xkb_state_mod_index_is_active, iFpii) +GO(xkb_state_mod_index_is_consumed, iFpuu) +GO(xkb_state_mod_index_is_consumed2, iFpuui) +//GO(xkb_state_mod_indices_are_active, iFpiiV) +GO(xkb_state_mod_mask_remove_consumed, uFpuu) +GO(xkb_state_mod_name_is_active, iFppi) +//GO(xkb_state_mod_names_are_active, iFpiiV) GO(xkb_state_new, pFp) GO(xkb_state_ref, pFp) -//GO(xkb_state_serialize_layout, -//GO(xkb_state_serialize_mods, +GO(xkb_state_serialize_layout, uFpi) +GO(xkb_state_serialize_mods, uFpi) GO(xkb_state_unref, vFp) -//GO(xkb_state_update_key, +GO(xkb_state_update_key, iFpui) GO(xkb_state_update_mask, iFpiiiiii) |