diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 17:02:18 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 17:02:18 +0200 |
| commit | add0081b508a26d29f58f2c06fce60a0666b4134 (patch) | |
| tree | a76ecfd42ba92ae9ef98dfc1d174f7c6fa8571bc /src | |
| parent | 46fb9d6df1b51bd68a00fbcb3f12508438128fc0 (diff) | |
| download | box64-add0081b508a26d29f58f2c06fce60a0666b4134.tar.gz box64-add0081b508a26d29f58f2c06fce60a0666b4134.zip | |
Added some wayland wrapped libs (partial)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/library_list.h | 3 | ||||
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 3 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandclientdefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandclienttypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandclientundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandcursordefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandcursortypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandcursorundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandegldefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandegltypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedwaylandeglundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandclient.c | 30 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandclient_private.h | 79 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandcursor.c | 30 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandcursor_private.h | 10 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandegl.c | 30 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandegl_private.h | 12 |
17 files changed, 296 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h index e65101db..3788bf62 100755 --- a/src/library_list.h +++ b/src/library_list.h @@ -192,6 +192,9 @@ GO("libgstvideo-1.0.so.0", gstvideo) GO("libxshmfence.so.1", xshmfence) GO("libatomic.so.1", atomic) GO("libsoftokn3.so", softokn3) +GO("libwayland-egl.so.1", waylandegl) +GO("libwayland-client.so.0", waylandclient) +GO("libwayland-cursor.so.0", waylandcursor) GO("ld-linux-x86-64.so.2", ldlinux) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 2810cd91..2c1c7b81 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -4069,6 +4069,9 @@ wrappedvulkan: - vkGetPhysicalDeviceSparseImageFormatProperties - vFpiiiupupup: - vkCmdPipelineBarrier +wrappedwaylandclient: +wrappedwaylandcursor: +wrappedwaylandegl: wrappedxinerama: wrappedxkbcommon: wrappedxkbcommonx11: diff --git a/src/wrapped/generated/wrappedwaylandclientdefs.h b/src/wrapped/generated/wrappedwaylandclientdefs.h new file mode 100644 index 00000000..e41d0656 --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandclientdefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandclientDEFS_H_ +#define __wrappedwaylandclientDEFS_H_ + + +#endif // __wrappedwaylandclientDEFS_H_ diff --git a/src/wrapped/generated/wrappedwaylandclienttypes.h b/src/wrapped/generated/wrappedwaylandclienttypes.h new file mode 100644 index 00000000..17f39dfe --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandclienttypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandclientTYPES_H_ +#define __wrappedwaylandclientTYPES_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 // __wrappedwaylandclientTYPES_H_ diff --git a/src/wrapped/generated/wrappedwaylandclientundefs.h b/src/wrapped/generated/wrappedwaylandclientundefs.h new file mode 100644 index 00000000..506adf2a --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandclientundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandclientUNDEFS_H_ +#define __wrappedwaylandclientUNDEFS_H_ + + +#endif // __wrappedwaylandclientUNDEFS_H_ diff --git a/src/wrapped/generated/wrappedwaylandcursordefs.h b/src/wrapped/generated/wrappedwaylandcursordefs.h new file mode 100644 index 00000000..9a03e25c --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandcursordefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandcursorDEFS_H_ +#define __wrappedwaylandcursorDEFS_H_ + + +#endif // __wrappedwaylandcursorDEFS_H_ diff --git a/src/wrapped/generated/wrappedwaylandcursortypes.h b/src/wrapped/generated/wrappedwaylandcursortypes.h new file mode 100644 index 00000000..7978a4c7 --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandcursortypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandcursorTYPES_H_ +#define __wrappedwaylandcursorTYPES_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 // __wrappedwaylandcursorTYPES_H_ diff --git a/src/wrapped/generated/wrappedwaylandcursorundefs.h b/src/wrapped/generated/wrappedwaylandcursorundefs.h new file mode 100644 index 00000000..ffced61d --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandcursorundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandcursorUNDEFS_H_ +#define __wrappedwaylandcursorUNDEFS_H_ + + +#endif // __wrappedwaylandcursorUNDEFS_H_ diff --git a/src/wrapped/generated/wrappedwaylandegldefs.h b/src/wrapped/generated/wrappedwaylandegldefs.h new file mode 100644 index 00000000..3fa41b90 --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandegldefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandeglDEFS_H_ +#define __wrappedwaylandeglDEFS_H_ + + +#endif // __wrappedwaylandeglDEFS_H_ diff --git a/src/wrapped/generated/wrappedwaylandegltypes.h b/src/wrapped/generated/wrappedwaylandegltypes.h new file mode 100644 index 00000000..270e8ff5 --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandegltypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandeglTYPES_H_ +#define __wrappedwaylandeglTYPES_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 // __wrappedwaylandeglTYPES_H_ diff --git a/src/wrapped/generated/wrappedwaylandeglundefs.h b/src/wrapped/generated/wrappedwaylandeglundefs.h new file mode 100644 index 00000000..5e9bf7f9 --- /dev/null +++ b/src/wrapped/generated/wrappedwaylandeglundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedwaylandeglUNDEFS_H_ +#define __wrappedwaylandeglUNDEFS_H_ + + +#endif // __wrappedwaylandeglUNDEFS_H_ diff --git a/src/wrapped/wrappedwaylandclient.c b/src/wrapped/wrappedwaylandclient.c new file mode 100644 index 00000000..5335f30f --- /dev/null +++ b/src/wrapped/wrappedwaylandclient.c @@ -0,0 +1,30 @@ +#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 "box64context.h" +#include "librarian.h" +#include "myalign.h" + + +const char* waylandclientName = "libwayland-client.so.0"; +#define LIBNAME waylandclient + +#define CUSTOM_INIT \ + box64->vorbis = lib; + +#define CUSTOM_FINI \ + lib->context->vorbis = NULL; + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedwaylandclient_private.h b/src/wrapped/wrappedwaylandclient_private.h new file mode 100644 index 00000000..d220df06 --- /dev/null +++ b/src/wrapped/wrappedwaylandclient_private.h @@ -0,0 +1,79 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif + +//GO(wl_array_add, +//GO(wl_array_copy, +//GO(wl_array_init, +//GO(wl_array_release, +//DATA(wl_buffer_interface, +//DATA(wl_callback_interface, +//DATA(wl_compositor_interface, +//DATA(wl_data_device_interface, +//DATA(wl_data_device_manager_interface, +//DATA(wl_data_offer_interface, +//DATA(wl_data_source_interface, +GO(wl_display_cancel_read, vFp) +GO(wl_display_connect, pFp) +GO(wl_display_connect_to_fd, pFi) +GO(wl_display_create_queue, pFp) +GO(wl_display_disconnect, vFp) +GO(wl_display_dispatch, iFp) +GO(wl_display_dispatch_pending, iFp) +GO(wl_display_dispatch_queue, iFpp) +GO(wl_display_dispatch_queue_pending, iFpp) +GO(wl_display_flush, iFp) +GO(wl_display_get_error, iFp) +GO(wl_display_get_fd, iFp) +//GO(wl_display_get_protocol_error, +//DATA(wl_display_interface, +GO(wl_display_prepare_read, iFp) +//GO(wl_display_prepare_read_queue, +GO(wl_display_read_events, iFp) +GO(wl_display_roundtrip, iFp) +//GO(wl_display_roundtrip_queue, +//GO(wl_event_queue_destroy, +//DATA(wl_keyboard_interface, +//GO(wl_list_empty, +//GO(wl_list_init, +//GO(wl_list_insert, +//GO(wl_list_insert_list, +//GO(wl_list_length, +//GO(wl_list_remove, +//GO(wl_log_set_handler_client, +//DATA(wl_output_interface, +//DATA(wl_pointer_interface, +//GO(wl_proxy_add_dispatcher, +//GO(wl_proxy_add_listener, +GO(wl_proxy_create, pFpp) +//GO(wl_proxy_create_wrapper, +GO(wl_proxy_destroy, vFp) +//GO(wl_proxy_get_class, +//GO(wl_proxy_get_id, +//GO(wl_proxy_get_listener, +//GO(wl_proxy_get_tag, +//GO(wl_proxy_get_user_data, +//GO(wl_proxy_get_version, +//GO(wl_proxy_marshal, +//GO(wl_proxy_marshal_array, +//GO(wl_proxy_marshal_array_constructor, +//GO(wl_proxy_marshal_array_constructor_versioned, +//GO(wl_proxy_marshal_array_flags, +//GO(wl_proxy_marshal_constructor, +//GO(wl_proxy_marshal_constructor_versioned, +//GO(wl_proxy_marshal_flags, +//GO(wl_proxy_set_queue, +//GO(wl_proxy_set_tag, +//GO(wl_proxy_set_user_data, +//GO(wl_proxy_wrapper_destroy, +//DATA(wl_region_interface, +//DATA(wl_registry_interface, +//DATA(wl_seat_interface, +//DATA(wl_shell_interface, +//DATA(wl_shell_surface_interface, +//DATA(wl_shm_interface, +//DATA(wl_shm_pool_interface, +//DATA(wl_subcompositor_interface, +//DATA(wl_subsurface_interface, +//DATA(wl_surface_interface, +//DATA(wl_touch_interface, diff --git a/src/wrapped/wrappedwaylandcursor.c b/src/wrapped/wrappedwaylandcursor.c new file mode 100644 index 00000000..b62a4181 --- /dev/null +++ b/src/wrapped/wrappedwaylandcursor.c @@ -0,0 +1,30 @@ +#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 "box64context.h" +#include "librarian.h" +#include "myalign.h" + + +const char* waylandcursorName = "libwayland-cursor.so.0"; +#define LIBNAME waylandcursor + +#define CUSTOM_INIT \ + box64->vorbis = lib; + +#define CUSTOM_FINI \ + lib->context->vorbis = NULL; + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedwaylandcursor_private.h b/src/wrapped/wrappedwaylandcursor_private.h new file mode 100644 index 00000000..94d121f4 --- /dev/null +++ b/src/wrapped/wrappedwaylandcursor_private.h @@ -0,0 +1,10 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif + +GO(wl_cursor_frame, iFpu) +GO(wl_cursor_frame_and_duration, iFpup) +GO(wl_cursor_image_get_buffer, pFp) +GO(wl_cursor_theme_destroy, vFp) +GO(wl_cursor_theme_get_cursor, pFpp) +GO(wl_cursor_theme_load, pFpip) diff --git a/src/wrapped/wrappedwaylandegl.c b/src/wrapped/wrappedwaylandegl.c new file mode 100644 index 00000000..d7c0dd29 --- /dev/null +++ b/src/wrapped/wrappedwaylandegl.c @@ -0,0 +1,30 @@ +#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 "box64context.h" +#include "librarian.h" +#include "myalign.h" + + +const char* waylandeglName = "libwayland-egl.so.1"; +#define LIBNAME waylandegl + +#define CUSTOM_INIT \ + box64->vorbis = lib; + +#define CUSTOM_FINI \ + lib->context->vorbis = NULL; + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedwaylandegl_private.h b/src/wrapped/wrappedwaylandegl_private.h new file mode 100644 index 00000000..7bdac735 --- /dev/null +++ b/src/wrapped/wrappedwaylandegl_private.h @@ -0,0 +1,12 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif + +GO(wl_egl_window_create, pFpii) +GO(wl_egl_window_destroy, vFp) +GO(wl_egl_window_get_attached_size, vFppp) +GO(wl_egl_window_resize, vFpiiii) + +GO(wl_egl_pixmap_create, pFiiu) +GO(wl_egl_pixmap_destroy, vFp) +GO(wl_egl_pixmap_create_buffer, pFp) \ No newline at end of file |