[telepathy-glib/master] TpConnection: use tp_dbus_daemon_list_names

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Aug 17 07:31:05 PDT 2009


The signature changes a little, because tp_dbus_daemon_list_names is more
const-correct. (Nobody understands const in C, part 7,143 in an ongoing
series.)
---
 telepathy-glib/connection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 4a67aae..97b3557 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -1116,13 +1116,13 @@ OUT:
 
 static void
 tp_list_connection_names_helper (TpDBusDaemon *bus_daemon,
-                                 const gchar **names,
+                                 const gchar * const *names,
                                  const GError *error,
                                  gpointer user_data,
                                  GObject *user_object)
 {
   _ListContext *list_context = user_data;
-  const gchar **iter;
+  const gchar * const *iter;
   /* array of borrowed strings */
   GPtrArray *bus_names;
   /* array of dup'd strings */
@@ -1221,7 +1221,7 @@ tp_list_connection_names (TpDBusDaemon *bus_daemon,
   list_context->callback = callback;
   list_context->user_data = user_data;
 
-  tp_cli_dbus_daemon_call_list_names (bus_daemon, 2000,
+  tp_dbus_daemon_list_names (bus_daemon, 2000,
       tp_list_connection_names_helper, list_context,
       list_context_free, weak_object);
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list