about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibfuse.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-04-26 18:35:28 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-04-26 18:35:28 +0200
commitbb22be4f4f59c3584798825de5deb270d39bd1f2 (patch)
tree65d364b0ab4b8879408fd8cfe6d8b0992e3287c1 /src/wrapped/wrappedlibfuse.c
parentfab4c72285fc7f0597d74fa80ef6863d257822b8 (diff)
downloadbox64-bb22be4f4f59c3584798825de5deb270d39bd1f2.tar.gz
box64-bb22be4f4f59c3584798825de5deb270d39bd1f2.zip
Added some libfuse wrapping (AppImage is not working yet)
Diffstat (limited to 'src/wrapped/wrappedlibfuse.c')
-rwxr-xr-xsrc/wrapped/wrappedlibfuse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wrapped/wrappedlibfuse.c b/src/wrapped/wrappedlibfuse.c
index c87559e4..aa07a595 100755
--- a/src/wrapped/wrappedlibfuse.c
+++ b/src/wrapped/wrappedlibfuse.c
@@ -90,10 +90,10 @@ GO(3)
 
 // fuse_opt_proc
 #define GO(A)   \
-static uintptr_t my_fuse_opt_proc_fct_##A = 0;                              \
-static int my_fuse_opt_proc_##A(void* a, void* b, int c, void* d)           \
-{                                                                           \
-    return RunFunction(my_context, my_fuse_opt_proc_fct_##A, 4, a, b, c, d);\
+static uintptr_t my_fuse_opt_proc_fct_##A = 0;                                      \
+static int my_fuse_opt_proc_##A(void* a, void* b, int c, void* d)                   \
+{                                                                                   \
+    return (int)RunFunction(my_context, my_fuse_opt_proc_fct_##A, 4, a, b, c, d);   \
 }
 SUPER()
 #undef GO
@@ -907,7 +907,7 @@ EXPORT void* my_fuse_lowlevel_new(x64emu_t* emu, void* args, fuse_lowlevel_ops_t
 {
     libfuse_my_t *my = (libfuse_my_t*)my_lib->priv.w.p2;
     static fuse_lowlevel_ops_t o_;
-    #define GO(A) o_.A = find_##A##_Fct(o->A)
+    #define GO(A) o_.A = find_##A##_Fct(o->A); if(o_.A) printf_log(LOG_DEBUG, "fuse: %s is present\n", #A)
     GO(init);
     GO(destroy);
     GO(lookup);