about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedudev0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedudev0.c')
-rw-r--r--src/wrapped/wrappedudev0.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/wrapped/wrappedudev0.c b/src/wrapped/wrappedudev0.c
index 4f2182a3..3c13853e 100644
--- a/src/wrapped/wrappedudev0.c
+++ b/src/wrapped/wrappedudev0.c
@@ -74,13 +74,8 @@ EXPORT void my0_udev_set_log_fn(x64emu_t* emu, void* udev, void* f)
     my->udev_set_log_fn(udev, find_log_fn_Fct(f));
 }
 
-#define CUSTOM_INIT \
-    SETALT(my0_);   \
-    getMy(lib);     \
-    setNeededLibs(lib, 1, "libudev.so.1");
+#define ALTMY my0_
 
-#define CUSTOM_FINI \
-    freeMy();
+#define NEEDED_LIBS "libudev.so.1"
 
 #include "wrappedlib_init.h"
-