[Telepathy-commits] [telepathy-mission-control/master] Call SetSelfCapabilities after the connection is established
Alban Crequy
alban.crequy at collabora.co.uk
Thu Nov 13 06:59:28 PST 2008
---
src/mcd-connection.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 29b63ff..b3001e2 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -50,6 +50,7 @@
#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/gtypes.h>
#include <telepathy-glib/connection.h>
+#include <telepathy-glib/proxy-subclass.h>
#include <libmcclient/mc-errors.h>
#include "mcd-connection.h"
@@ -57,6 +58,11 @@
#include "mcd-provisioning-factory.h"
#include "mcd-misc.h"
+#include "_gen/interfaces.h"
+#include "_gen/gtypes.h"
+#include "_gen/cli-Connection_Interface_Contact_Capabilities.h"
+#include "_gen/cli-Connection_Interface_Contact_Capabilities-body.h"
+
#define MAX_REF_PRESENCE 4
#define LAST_MC_PRESENCE (TP_CONNECTION_PRESENCE_TYPE_BUSY + 1)
@@ -993,6 +999,14 @@ connect_cb (TpConnection *tp_conn, const GError *error,
g_warning ("%s: tp_conn_connect failed: %s",
G_STRFUNC, error->message);
}
+ else
+ {
+ GPtrArray *caps = g_ptr_array_new ();
+ g_debug ("calling SetSelfCapabilities");
+ mc_cli_connection_interface_contact_capabilities_call_set_self_capabilities
+ (tp_conn, -1, caps, NULL, NULL, NULL, NULL);
+ g_ptr_array_free (caps, TRUE);
+ }
}
static void
--
1.5.6.5
More information about the Telepathy-commits
mailing list