about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibxpm.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-25 13:26:02 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-25 13:26:02 +0100
commit348bd64449843f70e08dd591c867973d83ea87eb (patch)
tree831a18b17437f0d3d29f4097a5b3487aea3b8b01 /src/wrapped/wrappedlibxpm.c
parentb36eca9792b55ccf038407470e480edc80daf543 (diff)
downloadbox64-348bd64449843f70e08dd591c867973d83ea87eb.tar.gz
box64-348bd64449843f70e08dd591c867973d83ea87eb.zip
Added a bunch of X11 related wrapped libs
Diffstat (limited to 'src/wrapped/wrappedlibxpm.c')
-rwxr-xr-xsrc/wrapped/wrappedlibxpm.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibxpm.c b/src/wrapped/wrappedlibxpm.c
new file mode 100755
index 00000000..17dbb0ec
--- /dev/null
+++ b/src/wrapped/wrappedlibxpm.c
@@ -0,0 +1,23 @@
+#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* libxpmName = "libXpm.so.4";
+#define LIBNAME libxpm
+
+#include "wrappedlib_init.h"
+
+#define CUSTOM_INIT \
+    lib->priv.w.needed = 2; \
+    lib->priv.w.neededlibs = (char**)calloc(lib->priv.w.needed, sizeof(char*)); \
+    lib->priv.w.neededlibs[0] = strdup("libX11.so.6"); \
+    lib->priv.w.neededlibs[1] = strdup("libXext.so.6");