X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=blobdiff_plain;f=src%2Finterfaces%2Ftimedated%2Ftimedated.c;h=5d465dd4fd4ff08f0f5bec04390b565896d4e96c;hp=83f3c5fa22f10182b823c6f163ca41626f60cd35;hb=b70beb08c1c83303a7d811b19caa4f23f927cf7b;hpb=ccd2f75bfcd00cf5c7b79f480c2d3f38ad837fa6 diff --git a/src/interfaces/timedated/timedated.c b/src/interfaces/timedated/timedated.c index 83f3c5f..5d465dd 100644 --- a/src/interfaces/timedated/timedated.c +++ b/src/interfaces/timedated/timedated.c @@ -24,6 +24,7 @@ #include #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 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) { @@ -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;