about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-07-14 10:23:15 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-07-14 10:23:15 +0200
commit066d7458ca6937a16656569ad0d4427a805a2cfe (patch)
treef3b299e472a8227a17e4890dd3beaa71d4a0ec9c /src
parent88a59b44605324c23192a518c657b7c22fda07c4 (diff)
downloadbox64-066d7458ca6937a16656569ad0d4427a805a2cfe.tar.gz
box64-066d7458ca6937a16656569ad0d4427a805a2cfe.zip
Some fixes to wrapped libgio2 (for #840 and #46)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedgio2.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/wrapped/wrappedgio2.c b/src/wrapped/wrappedgio2.c
index efe21bd2..e4837e7e 100755
--- a/src/wrapped/wrappedgio2.c
+++ b/src/wrapped/wrappedgio2.c
@@ -331,16 +331,16 @@ SUPER()
 // then the static functions callback that may be used with the structure, but dispatch also have a callback...
 #define GO(A)   \
 static uintptr_t fct_funcs_method_call_##A = 0; \
-static void my_funcs_method_call_##A(void* connection, void* sender, void* object_path, void* interface_name, void* method_name, void* invocation, void* user_data) { \
-    RunFunctionFmt(fct_funcs_method_call_##A, "ppppppp", connection, sender, object_path, interface_name, method_name, invocation, user_data); \
+static void my_funcs_method_call_##A(void* connection, void* sender, void* object_path, void* interface_name, void* method_name, void* parameters, void* invocation, void* user_data) { \
+    RunFunctionFmt(fct_funcs_method_call_##A, "pppppppp", connection, sender, object_path, interface_name, method_name, parameters, invocation, user_data); \
 } \
 static uintptr_t fct_funcs_get_property_##A = 0; \
-static void* my_funcs_get_property_##A(void* connection, void* sender, void* object_path, void* interface_name, void* error, void* user_data) { \
-    return (void*)RunFunctionFmt(fct_funcs_get_property_##A, "pppppp", connection, sender, object_path, interface_name, error, user_data); \
+static void* my_funcs_get_property_##A(void* connection, void* sender, void* object_path, void* interface_name, void* property_name, void* error, void* user_data) { \
+    return (void*)RunFunctionFmt(fct_funcs_get_property_##A, "ppppppp", connection, sender, object_path, interface_name, property_name, error, user_data); \
 } \
 static uintptr_t fct_funcs_set_property_##A = 0; \
-static int my_funcs_set_property_##A(void* connection, void* sender, void* object_path, void* interface_name, void* value, void* error, void* user_data) { \
-    return (int)RunFunctionFmt(fct_funcs_set_property_##A, "ppppppp", connection, sender, object_path, interface_name, value, error, user_data); \
+static int my_funcs_set_property_##A(void* connection, void* sender, void* object_path, void* interface_name, void* property_name, void* value, void* error, void* user_data) { \
+    return (int)RunFunctionFmt(fct_funcs_set_property_##A, "pppppppp", connection, sender, object_path, interface_name, property_name, value, error, user_data); \
 }
 
 SUPER()
@@ -578,6 +578,7 @@ EXPORT void my_g_simple_async_result_set_error(x64emu_t* emu, void* simple, void
 
 EXPORT void* my_g_initable_new(x64emu_t* emu, void* type, void* cancel, void* err, void* first, uintptr_t* b)
 {
+    #if 0
     // look for number of pairs
     int n = 1;
     emu->scratch[0] = (uint64_t)first;
@@ -590,6 +591,9 @@ EXPORT void* my_g_initable_new(x64emu_t* emu, void* type, void* cancel, void* er
     emu->scratch[n+1] = 0;
     emu->scratch[n+2] = 0;
     PREPARE_VALIST;
+    #else
+    CREATE_VALIST_FROM_VAARG(b, emu->scratch, 4);
+    #endif
     return my->g_initable_new_valist(type, first, VARARGS, cancel, err);
 }