X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.c;h=f81e0208255eb71947cdc083dcefda2ca99fe16d;hb=11475670562275e7c88bf91b988af014dfe8a4ca;hp=2ff00fddfad06945dcf15802bfa0ecf0ddc8b4a8;hpb=ea207ed3d155cde4001063c981f7a263c47daf64;p=systembsd.git diff --git a/src/main.c b/src/main.c index 2ff00fd..f81e020 100644 --- a/src/main.c +++ b/src/main.c @@ -1,7 +1,25 @@ -#include "modules/hostnamed/hostnamed.c" +/* debugging */ +//#define INSTALL 1 +//#define NO_BUILTIN_XML 1 +/* end debugging */ + +#include +#include "interfaces/hostnamed/hostnamed.c" +//#include "main.h" int main() { + + #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(); - for(;;) {} + g_main_loop_run(mloop); + return 0; }