From bf76bc3e4d99044704497fca51fbf9ece10e7070 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 24 Oct 2018 17:39:37 +1300 Subject: [PATCH] libeos-parental-controls: Rename a callback function Make it a bit clearer that it gets the bus purely for the getter method for parental controls, which it is hard-coded to chain to. This will clarify some later changes. Signed-off-by: Philip Withnall https://phabricator.endlessm.com/T24025 --- libeos-parental-controls/app-filter.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libeos-parental-controls/app-filter.c b/libeos-parental-controls/app-filter.c index 52072ab..cbe7b50 100644 --- a/libeos-parental-controls/app-filter.c +++ b/libeos-parental-controls/app-filter.c @@ -237,14 +237,14 @@ bus_error_to_app_filter_error (const GError *bus_error, return g_error_copy (bus_error); } -static void get_bus_cb (GObject *obj, - GAsyncResult *result, - gpointer user_data); -static void get_app_filter (GDBusConnection *connection, - GTask *task); -static void get_app_filter_cb (GObject *obj, - GAsyncResult *result, - gpointer user_data); +static void get_app_filter_get_bus_cb (GObject *obj, + GAsyncResult *result, + gpointer user_data); +static void get_app_filter (GDBusConnection *connection, + GTask *task); +static void get_app_filter_cb (GObject *obj, + GAsyncResult *result, + gpointer user_data); typedef struct { @@ -309,15 +309,15 @@ epc_get_app_filter_async (GDBusConnection *connection, if (connection == NULL) g_bus_get (G_BUS_TYPE_SYSTEM, cancellable, - get_bus_cb, g_steal_pointer (&task)); + get_app_filter_get_bus_cb, g_steal_pointer (&task)); else get_app_filter (connection, g_steal_pointer (&task)); } static void -get_bus_cb (GObject *obj, - GAsyncResult *result, - gpointer user_data) +get_app_filter_get_bus_cb (GObject *obj, + GAsyncResult *result, + gpointer user_data) { g_autoptr(GTask) task = G_TASK (user_data); g_autoptr(GDBusConnection) connection = NULL;