about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibasound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibasound.c')
-rwxr-xr-xsrc/wrapped/wrappedlibasound.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/wrapped/wrappedlibasound.c b/src/wrapped/wrappedlibasound.c
index 13885062..455d6e4f 100755
--- a/src/wrapped/wrappedlibasound.c
+++ b/src/wrapped/wrappedlibasound.c
@@ -22,22 +22,7 @@
 #define LIBNAME libasound
 const char* libasoundName = "libasound.so.2";
 
-typedef int     (*iFp_t)        (void*);
-typedef void*   (*pFp_t)        (void*);
-typedef int     (*iFpipp_t)     (void*, int, void*, void*);
-typedef int     (*iFpppp_t)     (void*, void*, void*, void*);
-
-EXPORT uintptr_t my_snd_lib_error = 0;
-static void default_error_handler(const char *file, int line, const char *function, int err, const char *fmt, va_list ap)
-{
-    (void)file; (void)line; (void)function; (void)err;
-    vprintf(fmt, ap);
-}
-
-#define SUPER() \
-    GO(snd_async_add_handler, iFpipp_t)                 \
-    GO(snd_async_add_pcm_handler, iFpppp_t)             \
-    GO(snd_lib_error_set_handler, iFp_t)
+#include "generated/wrappedlibasoundtypes.h"
 
 typedef struct asound_my_s {
     // functions
@@ -46,6 +31,13 @@ typedef struct asound_my_s {
     #undef GO
 } asound_my_t;
 
+EXPORT uintptr_t my_snd_lib_error = 0;
+static void default_error_handler(const char *file, int line, const char *function, int err, const char *fmt, va_list ap)
+{
+    (void)file; (void)line; (void)function; (void)err;
+    vprintf(fmt, ap);
+}
+
 void* getAsoundMy(library_t* lib)
 {
     asound_my_t* my = (asound_my_t*)calloc(1, sizeof(asound_my_t));