aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-05-30 15:01:49 +0800
committerkremlin <ian@kremlin.cc>2014-05-30 15:01:49 +0800
commit387173cba1f381beb144043ed0b6b4074084d318 (patch)
treeb2896955a9398f6850d3460f240d1e965a62747e /src/main.c
parentea207ed3d155cde4001063c981f7a263c47daf64 (diff)
downloadsystembsd-387173cba1f381beb144043ed0b6b4074084d318.tar
systembsd-387173cba1f381beb144043ed0b6b4074084d318.tar.gz
systembsd-387173cba1f381beb144043ed0b6b4074084d318.tar.bz2
systembsd-387173cba1f381beb144043ed0b6b4074084d318.tar.lz
systembsd-387173cba1f381beb144043ed0b6b4074084d318.tar.xz
systembsd-387173cba1f381beb144043ed0b6b4074084d318.tar.zst
systembsd-387173cba1f381beb144043ed0b6b4074084d318.zip
get hostnamed to show up on session bus, incomplete
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2ff00fd..8ba8907 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,13 @@
+#include <gio/gio.h>
#include "modules/hostnamed/hostnamed.c"
int main() {
+ GMainLoop *loop;
+
hostnamed_init();
- for(;;) {}
+
+ loop = g_main_loop_new(NULL, FALSE);
+ g_main_loop_run(loop);
+
return 0;
}