summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-16 00:51:20 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-16 00:51:20 +0200
commitb4cbca161a1638e96d9e0a6fe12a29ed43173e43 (patch)
tree296cc7512f6e4baf1e357cedd628356bc2cf5aa5 /main.c
Committed some work.
Diffstat (limited to 'main.c')
-rw-r--r--main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..bcf52d8
--- /dev/null
+++ b/main.c
@@ -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;
+}