(3) add needed GLib headers, move loop and bus descr out of main into global
[systembsd.git] / src / interfaces / localed / localed.c
index a40e4580a400c1c679a662b4915a62e34caa0f69..c11ae36b2c5be0f8a2bb6aaaa00070bd83abc8cf 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <unistd.h>
 #include <limits.h>
+#include <signal.h>
 
 #include <sys/param.h>
 #include <string.h>
 GPtrArray *localed_freeable;
 Locale1 *localed_interf;
 
+GMainLoop *localed_loop;
+
+guint bus_descriptor;
+gboolean dbus_interface_exported; /* reliable because of gdbus operational guarantees */
+
 /* --- begin method/property/dbus signal code --- */
 
 /*static gboolean
@@ -114,9 +120,6 @@ void localed_mem_clean() {
 
 int main() {
 
-       guint bus_descriptor;
-       GMainLoop *localed_loop;
-
        localed_loop = g_main_loop_new(NULL, TRUE);
        localed_freeable = g_ptr_array_new();