diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-12-06 18:14:45 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-12-06 18:14:45 +0100 |
| commit | 23e01808a22d687b93a81c108a4e00cc1a97d7ab (patch) | |
| tree | 1e12a1b94764d5ce9afca5ec04ea404f1fbeae09 /src | |
| parent | b8300add62f1a865e3daf1077e6b6e1d61ea6240 (diff) | |
| download | box64-23e01808a22d687b93a81c108a4e00cc1a97d7ab.tar.gz box64-23e01808a22d687b93a81c108a4e00cc1a97d7ab.zip | |
Added wrapped libxcb-xinerama.so (helps #468)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/library_list.h | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxineramadefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxineramatypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibxcbxineramaundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibxcbxinerama.c | 23 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibxcbxinerama_private.h | 29 |
7 files changed, 87 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h index 99ece64a..cfd16beb 100755 --- a/src/library_list.h +++ b/src/library_list.h @@ -69,6 +69,7 @@ GO("libxcb-util.so.1", libxcbutil) GO("libxcb-render-util.so.0", libxcbrenderutil) GO("libxcb-render.so.0", libxcbrender) GO("libxcb-sync.so.1", libxcbsync) +GO("libxcb-xinerama.so.0", libxcbxinerama) //GO("libxcb-present.so.0", libxcbpresent) GO("libXtst.so.6", libxtst) GO("libXt.so.6", libxt) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index b2055c3f..baaa30a1 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -3541,6 +3541,7 @@ wrappedlibxcbshm: wrappedlibxcbsync: wrappedlibxcbutil: wrappedlibxcbxfixes: +wrappedlibxcbxinerama: wrappedlibxcbxtest: wrappedlibxcomposite: wrappedlibxcursor: diff --git a/src/wrapped/generated/wrappedlibxcbxineramadefs.h b/src/wrapped/generated/wrappedlibxcbxineramadefs.h new file mode 100644 index 00000000..620a21d1 --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxineramadefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedlibxcbxineramaDEFS_H_ +#define __wrappedlibxcbxineramaDEFS_H_ + + +#endif // __wrappedlibxcbxineramaDEFS_H_ diff --git a/src/wrapped/generated/wrappedlibxcbxineramatypes.h b/src/wrapped/generated/wrappedlibxcbxineramatypes.h new file mode 100644 index 00000000..b2a6fa10 --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxineramatypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedlibxcbxineramaTYPES_H_ +#define __wrappedlibxcbxineramaTYPES_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 // __wrappedlibxcbxineramaTYPES_H_ diff --git a/src/wrapped/generated/wrappedlibxcbxineramaundefs.h b/src/wrapped/generated/wrappedlibxcbxineramaundefs.h new file mode 100644 index 00000000..7f44561c --- /dev/null +++ b/src/wrapped/generated/wrappedlibxcbxineramaundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedlibxcbxineramaUNDEFS_H_ +#define __wrappedlibxcbxineramaUNDEFS_H_ + + +#endif // __wrappedlibxcbxineramaUNDEFS_H_ diff --git a/src/wrapped/wrappedlibxcbxinerama.c b/src/wrapped/wrappedlibxcbxinerama.c new file mode 100644 index 00000000..c129e6b0 --- /dev/null +++ b/src/wrapped/wrappedlibxcbxinerama.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 "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" + +const char* libxcbxineramaName = "libxcb-xinerama.so.0"; +#define LIBNAME libxcbxinerama + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedlibxcbxinerama_private.h b/src/wrapped/wrappedlibxcbxinerama_private.h new file mode 100644 index 00000000..725b6f81 --- /dev/null +++ b/src/wrapped/wrappedlibxcbxinerama_private.h @@ -0,0 +1,29 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif + +//GO(xcb_xinerama_get_screen_count, +//GO(xcb_xinerama_get_screen_count_reply, +//GO(xcb_xinerama_get_screen_count_unchecked, +//GO(xcb_xinerama_get_screen_size, +//GO(xcb_xinerama_get_screen_size_reply, +//GO(xcb_xinerama_get_screen_size_unchecked, +//GO(xcb_xinerama_get_state, +//GO(xcb_xinerama_get_state_reply, +//GO(xcb_xinerama_get_state_unchecked, +DATA(xcb_xinerama_id, 2*sizeof(void*)) +GO(xcb_xinerama_is_active, pFpp) +GO(xcb_xinerama_is_active_reply, pFpup) +GO(xcb_xinerama_is_active_unchecked, pFpp) +GO(xcb_xinerama_query_screens, pFpp) +GO(xcb_xinerama_query_screens_reply, pFpup) +GO(xcb_xinerama_query_screens_screen_info, pFp) +GO(xcb_xinerama_query_screens_screen_info_iterator, pFpp) +GO(xcb_xinerama_query_screens_screen_info_length, iFp) +GO(xcb_xinerama_query_screens_sizeof, iFp) +GO(xcb_xinerama_query_screens_unchecked, pFpp) +//GO(xcb_xinerama_query_version, +//GO(xcb_xinerama_query_version_reply, +//GO(xcb_xinerama_query_version_unchecked, +//GO(xcb_xinerama_screen_info_end, +GO(xcb_xinerama_screen_info_next, vFp) |