about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-16 13:18:26 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-16 13:18:26 +0100
commitcc12620868610d350908e77adfdf2e12112f840c (patch)
treed283f826bf958a9b1f80b9a30efe32e23bb956b5 /src
parent9c89e646912211bfd799d35b5b6d69bb26e1bb90 (diff)
downloadbox64-cc12620868610d350908e77adfdf2e12112f840c.tar.gz
box64-cc12620868610d350908e77adfdf2e12112f840c.zip
[WRAPPER] Added wrapped libxcb-res with new wrapperhelper
Diffstat (limited to 'src')
-rw-r--r--src/library_list.h1
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrappedlibxcbresdefs.h8
-rw-r--r--src/wrapped/generated/wrappedlibxcbrestypes.h17
-rw-r--r--src/wrapped/generated/wrappedlibxcbresundefs.h8
-rw-r--r--src/wrapped/wrappedlibxcbres.c28
-rw-r--r--src/wrapped/wrappedlibxcbres_private.h59
-rw-r--r--src/wrapped32/wrappedxcbres.c28
-rw-r--r--src/wrapped32/wrappedxcbres_private.h59
9 files changed, 209 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h
index c3bfdd4a..f8ee0c17 100644
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -74,6 +74,7 @@ GO("libxcb-icccm.so.4", libxcbicccm)
 GO("libxcb-util.so.1", libxcbutil)
 GO("libxcb-render-util.so.0", libxcbrenderutil)
 GO("libxcb-render.so.0", libxcbrender)
+GO("libxcb-res.so.0", libxcbres)
 GO("libxcb-sync.so.1", libxcbsync)
 GO("libxcb-xinerama.so.0", libxcbxinerama)
 GO("libxcb-xinput.so.0", libxcbxinput)
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 016bb716..0f989183 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -5374,6 +5374,7 @@ wrappedlibxcbpresent:
 wrappedlibxcbrandr:
 wrappedlibxcbrender:
 wrappedlibxcbrenderutil:
+wrappedlibxcbres:
 wrappedlibxcbshape:
 wrappedlibxcbshm:
 wrappedlibxcbsync:
diff --git a/src/wrapped/generated/wrappedlibxcbresdefs.h b/src/wrapped/generated/wrappedlibxcbresdefs.h
new file mode 100644
index 00000000..162e13fc
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibxcbresdefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.5.0.24) *
+ *******************************************************************/
+#ifndef __wrappedlibxcbresDEFS_H_
+#define __wrappedlibxcbresDEFS_H_
+
+
+#endif // __wrappedlibxcbresDEFS_H_
diff --git a/src/wrapped/generated/wrappedlibxcbrestypes.h b/src/wrapped/generated/wrappedlibxcbrestypes.h
new file mode 100644
index 00000000..f15ee95c
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibxcbrestypes.h
@@ -0,0 +1,17 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.5.0.24) *
+ *******************************************************************/
+#ifndef __wrappedlibxcbresTYPES_H_
+#define __wrappedlibxcbresTYPES_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 // __wrappedlibxcbresTYPES_H_
diff --git a/src/wrapped/generated/wrappedlibxcbresundefs.h b/src/wrapped/generated/wrappedlibxcbresundefs.h
new file mode 100644
index 00000000..e2b3b3c4
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibxcbresundefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.5.0.24) *
+ *******************************************************************/
+#ifndef __wrappedlibxcbresUNDEFS_H_
+#define __wrappedlibxcbresUNDEFS_H_
+
+
+#endif // __wrappedlibxcbresUNDEFS_H_
diff --git a/src/wrapped/wrappedlibxcbres.c b/src/wrapped/wrappedlibxcbres.c
new file mode 100644
index 00000000..52aa0596
--- /dev/null
+++ b/src/wrapped/wrappedlibxcbres.c
@@ -0,0 +1,28 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "debug.h"
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+#include "emu/x64emu_private.h"
+#include "callback.h"
+#include "librarian.h"
+#include "box64context.h"
+#include "emu/x64emu_private.h"
+
+#ifdef ANDROID
+	const char* libxcbresName = "libxcb-res.so";
+#else
+	const char* libxcbresName = "libxcb-res.so.0";
+#endif
+
+#define LIBNAME libxcbres
+
+#include "wrappedlib_init.h"
diff --git a/src/wrapped/wrappedlibxcbres_private.h b/src/wrapped/wrappedlibxcbres_private.h
new file mode 100644
index 00000000..e4712e09
--- /dev/null
+++ b/src/wrapped/wrappedlibxcbres_private.h
@@ -0,0 +1,59 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+#error Meh...
+#endif
+
+//GO(xcb_res_client_end, 
+//GO(xcb_res_client_id_spec_end, 
+GO(xcb_res_client_id_spec_next, vFp)
+//GO(xcb_res_client_id_value_end, 
+GO(xcb_res_client_id_value_next, vFp)
+GO(xcb_res_client_id_value_sizeof, iFp)
+GO(xcb_res_client_id_value_value, pFp)
+GO(xcb_res_client_id_value_value_end, HFp)
+GO(xcb_res_client_id_value_value_length, iFp)
+GO(xcb_res_client_next, vFp)
+DATA(xcb_res_id, 16)
+GO(xcb_res_query_client_ids, UFbup)
+GO(xcb_res_query_client_ids_ids_iterator, HFp)
+GO(xcb_res_query_client_ids_ids_length, iFp)
+GO(xcb_res_query_client_ids_reply, pFbup)
+GO(xcb_res_query_client_ids_sizeof, iFp)
+GO(xcb_res_query_client_ids_unchecked, UFbup)
+GO(xcb_res_query_client_pixmap_bytes, UFbu)
+GO(xcb_res_query_client_pixmap_bytes_reply, pFbup)
+GO(xcb_res_query_client_pixmap_bytes_unchecked, UFbu)
+GO(xcb_res_query_client_resources, UFbu)
+GO(xcb_res_query_client_resources_reply, pFbup)
+GO(xcb_res_query_client_resources_sizeof, iFp)
+GO(xcb_res_query_client_resources_types, pFp)
+GO(xcb_res_query_client_resources_types_iterator, HFp)
+GO(xcb_res_query_client_resources_types_length, iFp)
+GO(xcb_res_query_client_resources_unchecked, UFbu)
+GO(xcb_res_query_clients, UFb)
+GO(xcb_res_query_clients_clients, pFp)
+GO(xcb_res_query_clients_clients_iterator, HFp)
+GO(xcb_res_query_clients_clients_length, iFp)
+GO(xcb_res_query_clients_reply, pFbup)
+GO(xcb_res_query_clients_sizeof, iFp)
+GO(xcb_res_query_clients_unchecked, UFb)
+GO(xcb_res_query_resource_bytes, UFbuup)
+GO(xcb_res_query_resource_bytes_reply, pFbup)
+GO(xcb_res_query_resource_bytes_sizeof, iFp)
+GO(xcb_res_query_resource_bytes_sizes_iterator, HFp)
+GO(xcb_res_query_resource_bytes_sizes_length, iFp)
+GO(xcb_res_query_resource_bytes_unchecked, UFbuup)
+GO(xcb_res_query_version, UFbCC)
+GO(xcb_res_query_version_reply, pFbup)
+GO(xcb_res_query_version_unchecked, UFbCC)
+//GO(xcb_res_resource_id_spec_end, 
+GO(xcb_res_resource_id_spec_next, vFp)
+//GO(xcb_res_resource_size_spec_end, 
+GO(xcb_res_resource_size_spec_next, vFp)
+GO(xcb_res_resource_size_value_cross_references, pFp)
+GO(xcb_res_resource_size_value_cross_references_iterator, HFp)
+GO(xcb_res_resource_size_value_cross_references_length, iFp)
+//GO(xcb_res_resource_size_value_end, 
+GO(xcb_res_resource_size_value_next, vFp)
+GO(xcb_res_resource_size_value_sizeof, iFp)
+//GO(xcb_res_type_end, 
+GO(xcb_res_type_next, vFp)
diff --git a/src/wrapped32/wrappedxcbres.c b/src/wrapped32/wrappedxcbres.c
new file mode 100644
index 00000000..52aa0596
--- /dev/null
+++ b/src/wrapped32/wrappedxcbres.c
@@ -0,0 +1,28 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "debug.h"
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+#include "emu/x64emu_private.h"
+#include "callback.h"
+#include "librarian.h"
+#include "box64context.h"
+#include "emu/x64emu_private.h"
+
+#ifdef ANDROID
+	const char* libxcbresName = "libxcb-res.so";
+#else
+	const char* libxcbresName = "libxcb-res.so.0";
+#endif
+
+#define LIBNAME libxcbres
+
+#include "wrappedlib_init.h"
diff --git a/src/wrapped32/wrappedxcbres_private.h b/src/wrapped32/wrappedxcbres_private.h
new file mode 100644
index 00000000..31af8040
--- /dev/null
+++ b/src/wrapped32/wrappedxcbres_private.h
@@ -0,0 +1,59 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+#error Meh...
+#endif
+
+//GO(xcb_res_client_end, 
+//GO(xcb_res_client_id_spec_end, 
+//GO(xcb_res_client_id_spec_next, 
+//GO(xcb_res_client_id_value_end, 
+//GO(xcb_res_client_id_value_next, 
+//GO(xcb_res_client_id_value_sizeof, 
+//GO(xcb_res_client_id_value_value, 
+//GO(xcb_res_client_id_value_value_end, 
+//GO(xcb_res_client_id_value_value_length, 
+//GO(xcb_res_client_next, 
+//DATA(xcb_res_id, 
+//GO(xcb_res_query_client_ids, 
+//GO(xcb_res_query_client_ids_ids_iterator, 
+//GO(xcb_res_query_client_ids_ids_length, 
+//GO(xcb_res_query_client_ids_reply, 
+//GO(xcb_res_query_client_ids_sizeof, 
+//GO(xcb_res_query_client_ids_unchecked, 
+//GO(xcb_res_query_client_pixmap_bytes, 
+//GO(xcb_res_query_client_pixmap_bytes_reply, 
+//GO(xcb_res_query_client_pixmap_bytes_unchecked, 
+//GO(xcb_res_query_client_resources, 
+//GO(xcb_res_query_client_resources_reply, 
+//GO(xcb_res_query_client_resources_sizeof, 
+//GO(xcb_res_query_client_resources_types, 
+//GO(xcb_res_query_client_resources_types_iterator, 
+//GO(xcb_res_query_client_resources_types_length, 
+//GO(xcb_res_query_client_resources_unchecked, 
+//GO(xcb_res_query_clients, 
+//GO(xcb_res_query_clients_clients, 
+//GO(xcb_res_query_clients_clients_iterator, 
+//GO(xcb_res_query_clients_clients_length, 
+//GO(xcb_res_query_clients_reply, 
+//GO(xcb_res_query_clients_sizeof, 
+//GO(xcb_res_query_clients_unchecked, 
+//GO(xcb_res_query_resource_bytes, 
+//GO(xcb_res_query_resource_bytes_reply, 
+//GO(xcb_res_query_resource_bytes_sizeof, 
+//GO(xcb_res_query_resource_bytes_sizes_iterator, 
+//GO(xcb_res_query_resource_bytes_sizes_length, 
+//GO(xcb_res_query_resource_bytes_unchecked, 
+//GO(xcb_res_query_version, 
+//GO(xcb_res_query_version_reply, 
+//GO(xcb_res_query_version_unchecked, 
+//GO(xcb_res_resource_id_spec_end, 
+//GO(xcb_res_resource_id_spec_next, 
+//GO(xcb_res_resource_size_spec_end, 
+//GO(xcb_res_resource_size_spec_next, 
+//GO(xcb_res_resource_size_value_cross_references, 
+//GO(xcb_res_resource_size_value_cross_references_iterator, 
+//GO(xcb_res_resource_size_value_cross_references_length, 
+//GO(xcb_res_resource_size_value_end, 
+//GO(xcb_res_resource_size_value_next, 
+//GO(xcb_res_resource_size_value_sizeof, 
+//GO(xcb_res_type_end, 
+//GO(xcb_res_type_next,