From 18cb1d75f31075ac4ac4ad809d96cab824515387 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Wed, 29 Jun 2011 14:39:11 +0800 Subject: Document hashtable allocation/reffing --- goa-mc-plugin/mcp-account-manager-goa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'goa-mc-plugin') 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, -- cgit v1.2.3