about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibxrender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibxrender.c')
-rwxr-xr-xsrc/wrapped/wrappedlibxrender.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibxrender.c b/src/wrapped/wrappedlibxrender.c
new file mode 100755
index 00000000..343951e1
--- /dev/null
+++ b/src/wrapped/wrappedlibxrender.c
@@ -0,0 +1,26 @@
+#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* libxrenderName = "libXrender.so.1";
+#define LIBNAME libxrender
+
+#define CUSTOM_INIT \
+    lib->priv.w.needed = 4; \
+    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("libxcb.so.1"); \
+    lib->priv.w.neededlibs[2] = strdup("libXau.so.6"); \
+    lib->priv.w.neededlibs[3] = strdup("libXdmcp.so.6");
+
+#include "wrappedlib_init.h"
+