aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-07-29 15:26:14 +0800
committerkremlin <ian@kremlin.cc>2014-07-29 15:26:14 +0800
commiteb20fe6d701a9921bccf54797f4b8b0054fdee1d (patch)
treed978a9eca38fe90eb1243df06c49d2bfaca45642
parentce19cb8ad17124e683b1fce029a3beb802421710 (diff)
downloadsystembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar.gz
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar.bz2
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar.lz
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar.xz
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.tar.zst
systembsd-eb20fe6d701a9921bccf54797f4b8b0054fdee1d.zip
(2) move on_name_lost() callback to appropriate commend-bounded region
minor, builds
-rw-r--r--src/interfaces/localed/localed.c18
-rw-r--r--src/interfaces/logind/logind.c18
-rw-r--r--src/interfaces/timedated/timedated.c18
3 files changed, 27 insertions, 27 deletions
diff --git a/src/interfaces/localed/localed.c b/src/interfaces/localed/localed.c
index 47c568a..a40e458 100644
--- a/src/interfaces/localed/localed.c
+++ b/src/interfaces/localed/localed.c
@@ -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;
diff --git a/src/interfaces/logind/logind.c b/src/interfaces/logind/logind.c
index ec55156..bb740a7 100644
--- a/src/interfaces/logind/logind.c
+++ b/src/interfaces/logind/logind.c
@@ -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;
diff --git a/src/interfaces/timedated/timedated.c b/src/interfaces/timedated/timedated.c
index ba26a2f..5d465dd 100644
--- a/src/interfaces/timedated/timedated.c
+++ b/src/interfaces/timedated/timedated.c
@@ -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;