diff options
| author | Frank Benkstein <frank@benkstein.net> | 2024-01-08 00:05:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-08 00:05:15 +0100 |
| commit | 411a52e16fe29b2af581f0e485c2042dd07ea07c (patch) | |
| tree | 1a565424a0a2caf0dff129043a0ea1584c42bece /src/wrapped/generated | |
| parent | 41bfd757ad55623bd5c83ae2946390e50a48de3b (diff) | |
| download | box64-411a52e16fe29b2af581f0e485c2042dd07ea07c.tar.gz box64-411a52e16fe29b2af581f0e485c2042dd07ea07c.zip | |
expose minimal libxcb-xinput wrapper (#1192)
Expose minimal libxcb-xinput interface, enough to run the Enpass password manager. Also expose XkbGetIndicatorState since that is also required.
Diffstat (limited to 'src/wrapped/generated')
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxinputdefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxinputtypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxinputundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 4 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 1 |
6 files changed, 40 insertions, 0 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 4061b045..72f82584 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -581,6 +581,7 @@ #() uFpip #() uFpCi #() uFpWi +#() uFpWW #() uFpWu #() uFpWf #() uFpWp @@ -4840,6 +4841,7 @@ wrappedlibxcbsync: wrappedlibxcbutil: wrappedlibxcbxfixes: wrappedlibxcbxinerama: +wrappedlibxcbxinput: wrappedlibxcbxkb: wrappedlibxcbxtest: wrappedlibxcomposite: diff --git a/src/wrapped/generated/wrappedlibxcbxinputdefs.h b/src/wrapped/generated/wrappedlibxcbxinputdefs.h new file mode 100644 index 00000000..2540a07b --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxinputdefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.20) * + *******************************************************************/ +#ifndef __wrappedlibxcbxinputDEFS_H_ +#define __wrappedlibxcbxinputDEFS_H_ + + +#endif // __wrappedlibxcbxinputDEFS_H_ diff --git a/src/wrapped/generated/wrappedlibxcbxinputtypes.h b/src/wrapped/generated/wrappedlibxcbxinputtypes.h new file mode 100644 index 00000000..8b8d1869 --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxinputtypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.20) * + *******************************************************************/ +#ifndef __wrappedlibxcbxinputTYPES_H_ +#define __wrappedlibxcbxinputTYPES_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappedlibxcbxinputTYPES_H_ diff --git a/src/wrapped/generated/wrappedlibxcbxinputundefs.h b/src/wrapped/generated/wrappedlibxcbxinputundefs.h new file mode 100644 index 00000000..98df873e --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxinputundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.20) * + *******************************************************************/ +#ifndef __wrappedlibxcbxinputUNDEFS_H_ +#define __wrappedlibxcbxinputUNDEFS_H_ + + +#endif // __wrappedlibxcbxinputUNDEFS_H_ diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 934d22fa..46654a70 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -619,6 +619,7 @@ typedef uint32_t (*uFpiu_t)(void*, int32_t, uint32_t); typedef uint32_t (*uFpip_t)(void*, int32_t, void*); typedef uint32_t (*uFpCi_t)(void*, uint8_t, int32_t); typedef uint32_t (*uFpWi_t)(void*, uint16_t, int32_t); +typedef uint32_t (*uFpWW_t)(void*, uint16_t, uint16_t); typedef uint32_t (*uFpWu_t)(void*, uint16_t, uint32_t); typedef uint32_t (*uFpWf_t)(void*, uint16_t, float); typedef uint32_t (*uFpWp_t)(void*, uint16_t, void*); @@ -3653,6 +3654,7 @@ void uFpiu(x64emu_t *emu, uintptr_t fcn) { uFpiu_t fn = (uFpiu_t)fcn; R_RAX=(uin void uFpip(x64emu_t *emu, uintptr_t fcn) { uFpip_t fn = (uFpip_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX); } void uFpCi(x64emu_t *emu, uintptr_t fcn) { uFpCi_t fn = (uFpCi_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint8_t)R_RSI, (int32_t)R_RDX); } void uFpWi(x64emu_t *emu, uintptr_t fcn) { uFpWi_t fn = (uFpWi_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint16_t)R_RSI, (int32_t)R_RDX); } +void uFpWW(x64emu_t *emu, uintptr_t fcn) { uFpWW_t fn = (uFpWW_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint16_t)R_RSI, (uint16_t)R_RDX); } void uFpWu(x64emu_t *emu, uintptr_t fcn) { uFpWu_t fn = (uFpWu_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint16_t)R_RSI, (uint32_t)R_RDX); } void uFpWf(x64emu_t *emu, uintptr_t fcn) { uFpWf_t fn = (uFpWf_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint16_t)R_RSI, emu->xmm[0].f[0]); } void uFpWp(x64emu_t *emu, uintptr_t fcn) { uFpWp_t fn = (uFpWp_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint16_t)R_RSI, (void*)R_RDX); } @@ -6590,6 +6592,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &uFpip) return 1; if (fun == &uFpCi) return 1; if (fun == &uFpWi) return 1; + if (fun == &uFpWW) return 1; if (fun == &uFpWu) return 1; if (fun == &uFpWf) return 2; if (fun == &uFpWp) return 1; @@ -8150,6 +8153,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &uFufp) return 3; if (fun == &uFupu) return 1; if (fun == &uFupp) return 1; + if (fun == &uFpWW) return 1; if (fun == &uFpWu) return 1; if (fun == &uFpWf) return 3; if (fun == &uFpWp) return 1; diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 45dad010..68f3d562 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -619,6 +619,7 @@ void uFpiu(x64emu_t *emu, uintptr_t fnc); void uFpip(x64emu_t *emu, uintptr_t fnc); void uFpCi(x64emu_t *emu, uintptr_t fnc); void uFpWi(x64emu_t *emu, uintptr_t fnc); +void uFpWW(x64emu_t *emu, uintptr_t fnc); void uFpWu(x64emu_t *emu, uintptr_t fnc); void uFpWf(x64emu_t *emu, uintptr_t fnc); void uFpWp(x64emu_t *emu, uintptr_t fnc); |