[next] telepathy-glib: base-client: rename requests_hash to requests_variant

Simon McVittie smcv at kemper.freedesktop.org
Wed Sep 17 06:17:26 PDT 2014


Module: telepathy-glib
Branch: next
Commit: b4bd1d43cd0f4b02290c98b3ba434d4926e58733
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=b4bd1d43cd0f4b02290c98b3ba434d4926e58733

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon May 12 18:18:57 2014 +0200

base-client: rename requests_hash to requests_variant

It's not a GHashTable any more.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77882
Reviewed-by: Simon McVittie

---

 telepathy-glib/base-client.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c
index d7fa99e..a604a9d 100644
--- a/telepathy-glib/base-client.c
+++ b/telepathy-glib/base-client.c
@@ -1579,7 +1579,7 @@ error:
 
 static gboolean
 create_channel_request_array (TpBaseClient *self,
-    GVariant *requests_hash,
+    GVariant *requests_variant,
     GPtrArray **requests,
     GError **error)
 {
@@ -1587,10 +1587,10 @@ create_channel_request_array (TpBaseClient *self,
   const gchar *key;
   GVariant *value;
 
-  *requests = g_ptr_array_new_full (g_variant_n_children (requests_hash),
+  *requests = g_ptr_array_new_full (g_variant_n_children (requests_variant),
       g_object_unref);
 
-  g_variant_iter_init (&iter, requests_hash);
+  g_variant_iter_init (&iter, requests_variant);
   while (g_variant_iter_next (&iter, "{&o at a{sv}}", &key, &value))
     {
       const gchar *req_path = key;
@@ -1621,7 +1621,7 @@ _tp_base_client_observe_channel (_TpGDBusClientObserverSkeleton *skeleton,
     const gchar *channel_path,
     GVariant *channel_props,
     const gchar *dispatch_operation_path,
-    GVariant *requests_hash,
+    GVariant *requests_variant,
     GVariant *observer_info,
     TpBaseClient *self)
 {
@@ -1668,7 +1668,7 @@ _tp_base_client_observe_channel (_TpGDBusClientObserverSkeleton *skeleton,
         }
     }
 
-  if (!create_channel_request_array (self, requests_hash, &requests, &error))
+  if (!create_channel_request_array (self, requests_variant, &requests, &error))
     goto out;
 
   ctx = _tp_observe_channel_context_new (account, connection, channel,
@@ -2142,7 +2142,7 @@ _tp_base_client_handle_channel (_TpGDBusClientHandler *skeleton,
     const gchar *connection_path,
     const gchar *channel_path,
     GVariant *channel_props,
-    GVariant *requests_hash,
+    GVariant *requests_variant,
     gint64 user_action_time,
     GVariant *handler_info,
     TpBaseClient *self)
@@ -2173,7 +2173,7 @@ _tp_base_client_handle_channel (_TpGDBusClientHandler *skeleton,
   if (channel == NULL)
     goto out;
 
-  if (!create_channel_request_array (self, requests_hash, &requests, &error))
+  if (!create_channel_request_array (self, requests_variant, &requests, &error))
     goto out;
 
   ctx = _tp_handle_channel_context_new (account, connection, channel,



More information about the telepathy-commits mailing list