Added some wayland wrapped libs (partial)

This commit is contained in:
ptitSeb 2022-07-30 17:02:18 +02:00
parent 46fb9d6df1
commit add0081b50
18 changed files with 299 additions and 0 deletions

View File

@ -417,6 +417,9 @@ set(WRAPPEDS
"${BOX64_ROOT}/src/wrapped/wrappedunwind.c"
"${BOX64_ROOT}/src/wrapped/wrappedutil.c"
"${BOX64_ROOT}/src/wrapped/wrappedvorbisfile.c"
"${BOX64_ROOT}/src/wrapped/wrappedwaylandclient.c"
"${BOX64_ROOT}/src/wrapped/wrappedwaylandcursor.c"
"${BOX64_ROOT}/src/wrapped/wrappedwaylandegl.c"
"${BOX64_ROOT}/src/wrapped/wrappedxinerama.c"
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommon.c"
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommonx11.c"

View File

@ -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)

View File

@ -4069,6 +4069,9 @@ wrappedvulkan:
- vkGetPhysicalDeviceSparseImageFormatProperties
- vFpiiiupupup:
- vkCmdPipelineBarrier
wrappedwaylandclient:
wrappedwaylandcursor:
wrappedwaylandegl:
wrappedxinerama:
wrappedxkbcommon:
wrappedxkbcommonx11:

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandclientDEFS_H_
#define __wrappedwaylandclientDEFS_H_
#endif // __wrappedwaylandclientDEFS_H_

View File

@ -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_

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandclientUNDEFS_H_
#define __wrappedwaylandclientUNDEFS_H_
#endif // __wrappedwaylandclientUNDEFS_H_

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandcursorDEFS_H_
#define __wrappedwaylandcursorDEFS_H_
#endif // __wrappedwaylandcursorDEFS_H_

View File

@ -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_

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandcursorUNDEFS_H_
#define __wrappedwaylandcursorUNDEFS_H_
#endif // __wrappedwaylandcursorUNDEFS_H_

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandeglDEFS_H_
#define __wrappedwaylandeglDEFS_H_
#endif // __wrappedwaylandeglDEFS_H_

View File

@ -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_

View File

@ -0,0 +1,8 @@
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedwaylandeglUNDEFS_H_
#define __wrappedwaylandeglUNDEFS_H_
#endif // __wrappedwaylandeglUNDEFS_H_

View File

@ -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"

View File

@ -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,

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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)