]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-chat.c
Add empathy_tp_chat_get_connection() to direct access the channel's connection.
[empathy.git] / libempathy / empathy-tp-chat.c
index 3ecc3dc6dd2c2a8e4477f3b1f5338d6148de4d1a..b9b731384f5fa7be91dd3e6d8fec7e18feac003d 100644 (file)
@@ -1231,6 +1231,16 @@ empathy_tp_chat_get_channel (EmpathyTpChat *chat)
        return priv->channel;
 }
 
        return priv->channel;
 }
 
+TpConnection *
+empathy_tp_chat_get_connection (EmpathyTpChat *chat)
+{
+       EmpathyTpChatPriv *priv = GET_PRIV (chat);
+
+       g_return_val_if_fail (EMPATHY_IS_TP_CHAT (chat), NULL);
+
+       return tp_channel_borrow_connection (priv->channel);
+}
+
 gboolean
 empathy_tp_chat_is_ready (EmpathyTpChat *chat)
 {
 gboolean
 empathy_tp_chat_is_ready (EmpathyTpChat *chat)
 {