]> git.draconx.ca Git - upkg.git/blobdiff - src/upkg.c
Add EOF notification to the upkg export API.
[upkg.git] / src / upkg.c
index a7e96bf02984fbbf21c95ac7e4d8841b86e72a85..c40d6d14c3f69eefb51e7508d527f850a7dee003 100644 (file)
@@ -25,7 +25,6 @@
 #include "module.h"
 #include "serializable.h"
 #include "exportable.h"
-#include "music.h"
 
 void print_upkg_flags(const char *prefix, unsigned long flags)
 {
@@ -88,7 +87,9 @@ int main(int argc, char **argv)
        printf("Exports: %lu\n", pkg->export_count);
        printf("Imports: %lu\n", pkg->import_count);
 
-       GObject *music = u_music_new();
+       GObject *music = g_object_new(module_get_class("Engine", "Music"), NULL);
+       if (!music)
+               return EXIT_FAILURE;
        struct upkg_file *f = upkg_export_open(pkg, 0);
        upkg_deserialize(music, f);