[gnome-online-accounts] daemon: Move object_path_to_group to its own area
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] daemon: Move object_path_to_group to its own area
- Date: Mon, 9 May 2016 16:58:13 +0000 (UTC)
commit 124d285f1a88fa8f3afad3eed8b411a4fbb5ba89
Author: Debarshi Ray <debarshir gnome org>
Date: Fri May 6 18:50:41 2016 +0200
daemon: Move object_path_to_group to its own area
In a subsequent commit, we are going to add one more similar utility
function that will be used in multiple places. Therefore, let's club
them together and give them a separate home.
https://bugzilla.gnome.org/show_bug.cgi?id=688041
src/daemon/goadaemon.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 55d9ea2..d4b5be3 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -362,6 +362,15 @@ diff_sorted_lists (GList *list1,
/* ---------------------------------------------------------------------------------------------------- */
+static gchar *
+object_path_to_group (const gchar *object_path)
+{
+ g_return_val_if_fail (g_str_has_prefix (object_path, "/org/gnome/OnlineAccounts/Accounts/"), NULL);
+ return g_strdup_printf ("Account %s", object_path + sizeof "/org/gnome/OnlineAccounts/Accounts/" - 1);
+}
+
+/* ---------------------------------------------------------------------------------------------------- */
+
typedef struct
{
GKeyFile *key_file;
@@ -576,13 +585,6 @@ update_account_object (GoaDaemon *self,
return ret;
}
-static gchar *
-object_path_to_group (const gchar *object_path)
-{
- g_return_val_if_fail (g_str_has_prefix (object_path, "/org/gnome/OnlineAccounts/Accounts/"), NULL);
- return g_strdup_printf ("Account %s", object_path + sizeof "/org/gnome/OnlineAccounts/Accounts/" - 1);
-}
-
static void
process_config_entries (GoaDaemon *self,
GHashTable *group_name_to_key_file_data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]