[empathy] Document hashtable allocation/reffing



commit 18cb1d75f31075ac4ac4ad809d96cab824515387
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Wed Jun 29 14:39:11 2011 +0800

    Document hashtable allocation/reffing

 goa-mc-plugin/mcp-account-manager-goa.c |    5 ++++-
 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 5a20495..0e273a7 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]