diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-16 13:18:26 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-16 13:18:26 +0100 |
| commit | cc12620868610d350908e77adfdf2e12112f840c (patch) | |
| tree | d283f826bf958a9b1f80b9a30efe32e23bb956b5 /src/wrapped32 | |
| parent | 9c89e646912211bfd799d35b5b6d69bb26e1bb90 (diff) | |
| download | box64-cc12620868610d350908e77adfdf2e12112f840c.tar.gz box64-cc12620868610d350908e77adfdf2e12112f840c.zip | |
[WRAPPER] Added wrapped libxcb-res with new wrapperhelper
Diffstat (limited to 'src/wrapped32')
| -rw-r--r-- | src/wrapped32/wrappedxcbres.c | 28 | ||||
| -rw-r--r-- | src/wrapped32/wrappedxcbres_private.h | 59 |
2 files changed, 87 insertions, 0 deletions
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, |