about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-25 14:14:31 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-25 14:14:31 +0100
commit0b56f5aebd1eb47a09d3fa11b88d407855b7fa3e (patch)
treed59d95134186f5a7d6d705b9b9d479fc32810ff6 /src
parent178537116b1c36ce08a7123914460c8b2292c2ee (diff)
downloadbox64-0b56f5aebd1eb47a09d3fa11b88d407855b7fa3e.tar.gz
box64-0b56f5aebd1eb47a09d3fa11b88d407855b7fa3e.zip
Added wrapped libuuid
Diffstat (limited to 'src')
-rwxr-xr-xsrc/library_list.h2
-rwxr-xr-xsrc/wrapped/wrappedlibuuid.c17
-rwxr-xr-xsrc/wrapped/wrappedlibuuid_private.h21
3 files changed, 39 insertions, 1 deletions
diff --git a/src/library_list.h b/src/library_list.h
index 0b715adb..906d5a7a 100755
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -80,7 +80,7 @@ GO("libalure.so.1", alure)
 //GO("libssl.so.1", libssl)
 //GO("libcrypt.so.1", libcrypt)
 //GO("libutil.so.1", util)
-//GO("libuuid.so.1", libuuid)
+GO("libuuid.so.1", libuuid)
 GO("libresolv.so.2", libresolv)
 GO("libpulse-simple.so.0", pulsesimple)
 GO("libpulse.so.0", pulse)
diff --git a/src/wrapped/wrappedlibuuid.c b/src/wrapped/wrappedlibuuid.c
new file mode 100755
index 00000000..d80c991c
--- /dev/null
+++ b/src/wrapped/wrappedlibuuid.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* libuuidName = "libuuid.so.1";
+#define LIBNAME libuuid
+
+#include "wrappedlib_init.h"
diff --git a/src/wrapped/wrappedlibuuid_private.h b/src/wrapped/wrappedlibuuid_private.h
new file mode 100755
index 00000000..4402e96c
--- /dev/null
+++ b/src/wrapped/wrappedlibuuid_private.h
@@ -0,0 +1,21 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+#error Meh...
+#endif
+
+GO(uuid_clear, vFp)
+GO(uuid_compare, iFpp)
+GO(uuid_copy, vFpp)
+GO(uuid_generate, vFp)
+GO(uuid__generate_random, vFpp)
+GO(uuid_generate_random, vFp)
+GO(uuid__generate_time, vFpp)
+GO(uuid_generate_time, vFp)
+GO(uuid_generate_time_safe, iFp)
+GO(uuid_is_null, iFp)
+GO(uuid_parse, iFpp)
+GO(uuid_time, uFpp)
+GO(uuid_type, iFp)
+GO(uuid_unparse, vFpp)
+GO(uuid_unparse_lower, vFpp)
+GO(uuid_unparse_upper, vFpp)
+GO(uuid_variant, iFp)