diff options
| author | LiZhuoheng <114734429+zohanzephyr@users.noreply.github.com> | 2024-06-11 14:02:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 08:02:11 +0200 |
| commit | 9ed2e3bbf22f6fe2041b3119fc10a57cfca31406 (patch) | |
| tree | 0eecea1f7297360fd3883b458d5f682989a92343 | |
| parent | 8b3cd23045d0673abce1f200133de0cb33fb3b4f (diff) | |
| download | box64-9ed2e3bbf22f6fe2041b3119fc10a57cfca31406.tar.gz box64-9ed2e3bbf22f6fe2041b3119fc10a57cfca31406.zip | |
Wrapped libunistring2 (#1577)
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/library_list.h | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibunistring2defs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibunistring2types.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibunistring2undefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibunistring2.c | 17 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibunistring2_private.h | 6 |
8 files changed, 59 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 73f90d83..8cef5d24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -658,6 +658,7 @@ set(WRAPPEDS "${BOX64_ROOT}/src/wrapped/wrappedp11kit.c" "${BOX64_ROOT}/src/wrapped/wrappedlibtasn1.c" "${BOX64_ROOT}/src/wrapped/wrappedlibnettle8.c" + "${BOX64_ROOT}/src/wrapped/wrappedlibunistring2.c" ) endif() if(ANDROID) diff --git a/src/library_list.h b/src/library_list.h index 84bd02a9..6b7ccce8 100644 --- a/src/library_list.h +++ b/src/library_list.h @@ -260,6 +260,7 @@ GO("libssh2.so.1", libssh2) GO("libp11-kit.so.0", p11kit) GO("libtasn1.so.6", libtasn1) GO("libnettle.so.8", libnettle8) +GO("libunistring.so.2", libunistring2) #ifdef ANDROID GO("libc.so", libc) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index a185ec75..14b843f0 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -4786,6 +4786,7 @@ wrappedlibtinfo: wrappedlibtinfo6: - iFpip: - tputs +wrappedlibunistring2: wrappedlibusb1: - iFp: - libusb_cancel_transfer diff --git a/src/wrapped/generated/wrappedlibunistring2defs.h b/src/wrapped/generated/wrappedlibunistring2defs.h new file mode 100644 index 00000000..52044144 --- /dev/null +++ b/src/wrapped/generated/wrappedlibunistring2defs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibunistring2DEFS_H_ +#define __wrappedlibunistring2DEFS_H_ + + +#endif // __wrappedlibunistring2DEFS_H_ diff --git a/src/wrapped/generated/wrappedlibunistring2types.h b/src/wrapped/generated/wrappedlibunistring2types.h new file mode 100644 index 00000000..25a30d9e --- /dev/null +++ b/src/wrapped/generated/wrappedlibunistring2types.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibunistring2TYPES_H_ +#define __wrappedlibunistring2TYPES_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 // __wrappedlibunistring2TYPES_H_ diff --git a/src/wrapped/generated/wrappedlibunistring2undefs.h b/src/wrapped/generated/wrappedlibunistring2undefs.h new file mode 100644 index 00000000..88de83f1 --- /dev/null +++ b/src/wrapped/generated/wrappedlibunistring2undefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibunistring2UNDEFS_H_ +#define __wrappedlibunistring2UNDEFS_H_ + + +#endif // __wrappedlibunistring2UNDEFS_H_ diff --git a/src/wrapped/wrappedlibunistring2.c b/src/wrapped/wrappedlibunistring2.c new file mode 100644 index 00000000..c444d962 --- /dev/null +++ b/src/wrapped/wrappedlibunistring2.c @@ -0,0 +1,17 @@ +#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* libunistring2Name = "libunistring.so.2"; +#define LIBNAME libunistring2 + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedlibunistring2_private.h b/src/wrapped/wrappedlibunistring2_private.h new file mode 100644 index 00000000..e6d6a130 --- /dev/null +++ b/src/wrapped/wrappedlibunistring2_private.h @@ -0,0 +1,6 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +error Meh... +#endif + +GO(uninorm_nfc, pFpipp) +GO(uninorm_nfkc, pFpipp) |