929eb2a9 |
1 | /* debugging */ |
d1e1db9e |
2 | //#define INSTALL 1 |
3 | //#define NO_BUILTIN_XML 1 |
929eb2a9 |
4 | /* end debugging */ |
5 | |
387173cb |
6 | #include <gio/gio.h> |
b7f8df44 |
7 | #include "interfaces/hostnamed/hostnamed.c" |
d1e1db9e |
8 | //#include "main.h" |
496f5d66 |
9 | |
10 | int main() { |
929eb2a9 |
11 | |
12 | #if (defined NO_BUILTIN_XML && defined INSTALL) |
13 | if(!install_conf()) |
14 | g_printf("%s\n", "FAILED to install xml configs!");; |
15 | #else |
16 | #endif |
17 | |
1cd91c9c |
18 | GMainLoop *mloop = NULL; |
387173cb |
19 | |
1cd91c9c |
20 | mloop = g_main_loop_new(NULL, FALSE); |
21 | hostnamed_init(); |
22 | g_main_loop_run(mloop); |
23 | |
496f5d66 |
24 | return 0; |
ea207ed3 |
25 | } |