(2) move on_name_lost() callback to appropriate commend-bounded region
[systembsd.git] / src / interfaces / timedated / timedated.c
index 53a3a3cb76265a1ae72e6f576bbbc8bc2bea398b..5d465dd4fd4ff08f0f5bec04390b565896d4e96c 100644 (file)
@@ -24,6 +24,7 @@
 #include <glib-unix.h>
 
 #include "timedated-gen.h"
+#include "timedated.h"
 
 GPtrArray *timedated_freeable;
 Timedate1 *timedated_interf;
@@ -91,15 +92,6 @@ static void timedated_on_name_acquired(GDBusConnection *conn,
 
 }
 
-/* --- end bus/name handlers, begin misc functions --- */
-
-/* free()'s */
-void timedated_mem_clean() {
-
-    g_ptr_array_foreach(timedated_freeable, (GFunc) g_free, NULL);
-       g_ptr_array_free(timedated_freeable, TRUE);
-}
-
 static void timedated_on_name_lost(GDBusConnection *conn,
                                    const gchar *name,
                                    gpointer user_data) {
@@ -111,6 +103,15 @@ static void timedated_on_name_lost(GDBusConnection *conn,
 
 }
 
+/* --- end bus/name handlers, begin misc unix functions --- */
+
+/* free()'s */
+void timedated_mem_clean() {
+
+    g_ptr_array_foreach(timedated_freeable, (GFunc) g_free, NULL);
+       g_ptr_array_free(timedated_freeable, TRUE);
+}
+
 int main() {
 
        guint bus_descriptor;