(2) move on_name_lost() callback to appropriate commend-bounded region
[systembsd.git] / src / interfaces / localed / localed.c
index e5fe4d6ad7d909f8068c8b4bd0f5c4731276615f..a40e4580a400c1c679a662b4915a62e34caa0f69 100644 (file)
@@ -24,6 +24,7 @@
 #include <glib-unix.h>
 
 #include "localed-gen.h"
+#include "localed.h"
 
 GPtrArray *localed_freeable;
 Locale1 *localed_interf;
@@ -91,15 +92,6 @@ static void localed_on_name_acquired(GDBusConnection *conn,
 
 }
 
-/* --- end bus/name handlers, begin misc unix functions --- */
-
-/* free()'s */
-void localed_mem_clean() {
-
-    g_ptr_array_foreach(localed_freeable, (GFunc) g_free, NULL);
-       g_ptr_array_free(localed_freeable, TRUE);
-}
-
 static void localed_on_name_lost(GDBusConnection *conn,
                                    const gchar *name,
                                    gpointer user_data) {
@@ -111,6 +103,15 @@ static void localed_on_name_lost(GDBusConnection *conn,
 
 }
 
+/* --- end bus/name handlers, begin misc unix functions --- */
+
+/* free()'s */
+void localed_mem_clean() {
+
+    g_ptr_array_foreach(localed_freeable, (GFunc) g_free, NULL);
+       g_ptr_array_free(localed_freeable, TRUE);
+}
+
 int main() {
 
        guint bus_descriptor;