(2) move on_name_lost() callback to appropriate commend-bounded region
authorkremlin <ian@kremlin.cc>
Tue, 29 Jul 2014 07:26:14 +0000 (02:26 -0500)
committerkremlin <ian@kremlin.cc>
Tue, 29 Jul 2014 07:26:14 +0000 (02:26 -0500)
minor, builds

src/interfaces/localed/localed.c
src/interfaces/logind/logind.c
src/interfaces/timedated/timedated.c

index 47c568a85b78319038718056523ef1fa11f1a506..a40e4580a400c1c679a662b4915a62e34caa0f69 100644 (file)
@@ -92,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) {
@@ -112,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;
index ec55156d6704f98d21ab5b6f9aadcfdddf8d2cf9..bb740a72ef3e13f63d5cfb7fb22cd9a5cf85ea55 100644 (file)
@@ -92,15 +92,6 @@ static void logind_on_name_acquired(GDBusConnection *conn,
 
 }
 
-/* --- end bus/name handlers, begin misc unix functions --- */
-
-/* free()'s */
-void logind_mem_clean() {
-
-    g_ptr_array_foreach(logind_freeable, (GFunc) g_free, NULL);
-       g_ptr_array_free(logind_freeable, TRUE);
-}
-
 static void logind_on_name_lost(GDBusConnection *conn,
                                 const gchar *name,
                                 gpointer user_data) {
@@ -112,6 +103,15 @@ static void logind_on_name_lost(GDBusConnection *conn,
 
 }
 
+/* --- end bus/name handlers, begin misc unix functions --- */
+
+/* free()'s */
+void logind_mem_clean() {
+
+    g_ptr_array_foreach(logind_freeable, (GFunc) g_free, NULL);
+       g_ptr_array_free(logind_freeable, TRUE);
+}
+
 int main() {
 
        guint bus_descriptor;
index ba26a2f0e2c37e3f9712719df61f28f220bfeacf..5d465dd4fd4ff08f0f5bec04390b565896d4e96c 100644 (file)
@@ -92,15 +92,6 @@ static void timedated_on_name_acquired(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);
-}
-
 static void timedated_on_name_lost(GDBusConnection *conn,
                                    const gchar *name,
                                    gpointer user_data) {
@@ -112,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;