[Telepathy-commits] [telepathy-glib/master] Echo example: advertise support for Requests

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Dec 24 04:33:24 PST 2008


---
 examples/cm/echo/conn.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/examples/cm/echo/conn.c b/examples/cm/echo/conn.c
index add56e8..7b43c77 100644
--- a/examples/cm/echo/conn.c
+++ b/examples/cm/echo/conn.c
@@ -16,6 +16,7 @@
 #include <telepathy-glib/dbus.h>
 #include <telepathy-glib/errors.h>
 #include <telepathy-glib/handle-repo-dynamic.h>
+#include <telepathy-glib/interfaces.h>
 
 #include "factory.h"
 
@@ -165,6 +166,9 @@ shut_down (TpBaseConnection *conn)
 static void
 example_echo_connection_class_init (ExampleEchoConnectionClass *klass)
 {
+  static const gchar *interfaces_always_present[] = {
+      TP_IFACE_CONNECTION_INTERFACE_REQUESTS,
+      NULL };
   TpBaseConnectionClass *base_class =
       (TpBaseConnectionClass *) klass;
   GObjectClass *object_class = (GObjectClass *) klass;
@@ -180,6 +184,7 @@ example_echo_connection_class_init (ExampleEchoConnectionClass *klass)
   base_class->create_channel_managers = create_channel_managers;
   base_class->start_connecting = start_connecting;
   base_class->shut_down = shut_down;
+  base_class->interfaces_always_present = interfaces_always_present;
 
   param_spec = g_param_spec_string ("account", "Account name",
       "The username of this user", NULL,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list