diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#include "music.h" +#include "httpd.h" + +#include <glib.h> +#include <glib-object.h> + +int main(int argc, char **argv) { + g_type_init(); + + music_init(argv[1]); + music_scan_root(); + + httpd_start(); + + GMainLoop *main_loop = g_main_loop_new(NULL, FALSE); + g_main_loop_run(main_loop); + + httpd_stop(); + music_free(); + + return 0; +} |