X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.c;h=59e23fe96ea74a26525ccde1cba2d10b629a02b2;hb=929eb2a9b45b11b5e3d76f1d4ac744853b7ab2fe;hp=8ba890714434b4a2285953854ff04766f222aa10;hpb=387173cba1f381beb144043ed0b6b4074084d318;p=systembsd.git diff --git a/src/main.c b/src/main.c index 8ba8907..59e23fe 100644 --- a/src/main.c +++ b/src/main.c @@ -1,13 +1,26 @@ +/* debugging */ +#define INSTALL 1 +#define NO_BUILTIN_XML 1 + +/* end debugging */ + #include -#include "modules/hostnamed/hostnamed.c" +#include "interfaces/hostnamed/hostnamed.c" +#include "main.h" int main() { - GMainLoop *loop; + + #if (defined NO_BUILTIN_XML && defined INSTALL) + if(!install_conf()) + g_printf("%s\n", "FAILED to install xml configs!");; + #else + #endif + + GMainLoop *mloop = NULL; + mloop = g_main_loop_new(NULL, FALSE); hostnamed_init(); - - loop = g_main_loop_new(NULL, FALSE); - g_main_loop_run(loop); + g_main_loop_run(mloop); return 0; }