aboutsummaryrefslogtreecommitdiffstats
path: root/goa-mc-plugin
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-06-29 14:39:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-06 13:37:07 +0800
commit18cb1d75f31075ac4ac4ad809d96cab824515387 (patch)
tree6dba9ada63d3df7f7b5e71f52f91cdf1a21fee4d /goa-mc-plugin
parent0b4a5527117a282de064b0ea0a9bc920a1029dae (diff)
downloadgsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar.gz
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar.bz2
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar.lz
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar.xz
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.tar.zst
gsoc2013-empathy-18cb1d75f31075ac4ac4ad809d96cab824515387.zip
Document hashtable allocation/reffing
Diffstat (limited to 'goa-mc-plugin')
-rw-r--r--goa-mc-plugin/mcp-account-manager-goa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 5a2049532..0e273a7c4 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -55,7 +55,7 @@ struct _McpAccountManagerGoaPrivate
gboolean ready;
GoaClient *client;
- GHashTable *accounts; /* string -> GoaAccount */
+ GHashTable *accounts; /* alloc'ed string -> ref'ed GoaAccount */
};
@@ -193,6 +193,7 @@ _new_account (McpAccountManagerGoa *self,
g_signal_emit_by_name (self, "created", account_name);
}
+
DECLARE_GASYNC_CALLBACK (_goa_client_new_cb);
static void
@@ -209,6 +210,7 @@ mcp_account_manager_goa_init (McpAccountManagerGoa *self)
goa_client_new (NULL, _goa_client_new_cb, self);
}
+
static void
_account_added_cb (GoaClient *client,
GoaObject *object,
@@ -219,6 +221,7 @@ _account_added_cb (GoaClient *client,
_new_account (self, account);
}
+
static void
_account_removed_cb (GoaClient *client,
GoaObject *object,