X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.c;h=59e23fe96ea74a26525ccde1cba2d10b629a02b2;hb=929eb2a9b45b11b5e3d76f1d4ac744853b7ab2fe;hp=a51b30d84f76fd2b5689ceee737a0d2e52a8a8ca;hpb=780e1f192a4eba77537f81e3f61fffeb60480e93;p=systembsd.git diff --git a/src/main.c b/src/main.c index a51b30d..59e23fe 100644 --- a/src/main.c +++ b/src/main.c @@ -1,8 +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() { - hostnamed_init(); + + #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(); + g_main_loop_run(mloop); + return 0; }