]> git.0d.be Git - empathy.git/commitdiff
Document hashtable allocation/reffing
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 29 Jun 2011 06:39:11 +0000 (14:39 +0800)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Sep 2011 05:37:07 +0000 (07:37 +0200)
goa-mc-plugin/mcp-account-manager-goa.c

index 5a20495328600b298cb806067cdc17f0906b1b23..0e273a7c422fb5c2101d9a3efe9f3461d1ff8144 100644 (file)
@@ -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,