X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.c;h=f81e0208255eb71947cdc083dcefda2ca99fe16d;hb=dc2aee922fcde92f6e896603226b468089b2d133;hp=a51b30d84f76fd2b5689ceee737a0d2e52a8a8ca;hpb=780e1f192a4eba77537f81e3f61fffeb60480e93;p=systembsd.git diff --git a/src/main.c b/src/main.c index a51b30d..f81e020 100644 --- a/src/main.c +++ b/src/main.c @@ -1,8 +1,25 @@ +/* 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; }