summaryrefslogtreecommitdiff
path: root/main.c
blob: bcf52d855087474372b399a3dde8d4a49529cf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}