mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-09 00:21:32 +08:00
[WRAPPER] Added wrapped libxcb-res with new wrapperhelper
This commit is contained in:
parent
9c89e64691
commit
cc12620868
@ -626,6 +626,7 @@ set(WRAPPEDS
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrandr.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrender.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrenderutil.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbres.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbshape.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbshm.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbsync.c"
|
||||
@ -836,6 +837,7 @@ if(BOX32)
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedexpat.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibx11xcb.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibxcb.c"
|
||||
#"${BOX64_ROOT}/src/wrapped32/wrappedlibxcbres.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedudev0.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedudev1.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibuuid.c"
|
||||
|
@ -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)
|
||||
|
@ -5374,6 +5374,7 @@ wrappedlibxcbpresent:
|
||||
wrappedlibxcbrandr:
|
||||
wrappedlibxcbrender:
|
||||
wrappedlibxcbrenderutil:
|
||||
wrappedlibxcbres:
|
||||
wrappedlibxcbshape:
|
||||
wrappedlibxcbshm:
|
||||
wrappedlibxcbsync:
|
||||
|
8
src/wrapped/generated/wrappedlibxcbresdefs.h
Normal file
8
src/wrapped/generated/wrappedlibxcbresdefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.5.0.24) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedlibxcbresDEFS_H_
|
||||
#define __wrappedlibxcbresDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedlibxcbresDEFS_H_
|
17
src/wrapped/generated/wrappedlibxcbrestypes.h
Normal file
17
src/wrapped/generated/wrappedlibxcbrestypes.h
Normal file
@ -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_
|
8
src/wrapped/generated/wrappedlibxcbresundefs.h
Normal file
8
src/wrapped/generated/wrappedlibxcbresundefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.5.0.24) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedlibxcbresUNDEFS_H_
|
||||
#define __wrappedlibxcbresUNDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedlibxcbresUNDEFS_H_
|
28
src/wrapped/wrappedlibxcbres.c
Normal file
28
src/wrapped/wrappedlibxcbres.c
Normal file
@ -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"
|
59
src/wrapped/wrappedlibxcbres_private.h
Normal file
59
src/wrapped/wrappedlibxcbres_private.h
Normal file
@ -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)
|
28
src/wrapped32/wrappedxcbres.c
Normal file
28
src/wrapped32/wrappedxcbres.c
Normal file
@ -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"
|
59
src/wrapped32/wrappedxcbres_private.h
Normal file
59
src/wrapped32/wrappedxcbres_private.h
Normal file
@ -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,
|
Loading…
x
Reference in New Issue
Block a user