autoconf
[platform/upstream/pulseaudio.git] / src / main.c
index 3104c26..0785b39 100644 (file)
@@ -1,5 +1,6 @@
 #include <stddef.h>
 #include <assert.h>
+#include <ltdl.h>
 
 #include "core.h"
 #include "mainloop.h"
@@ -8,7 +9,11 @@
 int main(int argc, char *argv[]) {
     struct mainloop *m;
     struct core *c;
+    int r;
 
+    r = lt_dlinit();
+    assert(r == 0);
+    
     m = mainloop_new();
     assert(m);
     c = core_new(m);
@@ -21,6 +26,8 @@ int main(int argc, char *argv[]) {
     
     core_free(c);
     mainloop_free(m);
+
+    lt_dlexit();
     
     return 0;
 }