]> git.0d.be Git - empathy.git/commitdiff
add empathy_tp_chat_get_self_contact()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Apr 2011 09:37:28 +0000 (11:37 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Apr 2011 09:49:48 +0000 (11:49 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=622118

libempathy/empathy-tp-chat.c
libempathy/empathy-tp-chat.h

index 6d29807e40466d045c68645faed76a5912d1f231..1b2fe46b742765afd79f077cc665fccb02f05601 100644 (file)
@@ -1940,3 +1940,13 @@ empathy_tp_chat_get_chat_state (EmpathyTpChat *chat,
        return tp_channel_get_chat_state (priv->channel,
                empathy_contact_get_handle (contact));
 }
+
+EmpathyContact *
+empathy_tp_chat_get_self_contact (EmpathyTpChat *self)
+{
+       EmpathyTpChatPriv *priv = GET_PRIV (self);
+
+       g_return_val_if_fail (EMPATHY_IS_TP_CHAT (self), NULL);
+
+       return priv->user;
+}
index 7c83bec77eb0c12f29a9e2186366a089d7ba494f..f7998e06f1dc6258eda99451ab18f3f2127d1d23 100644 (file)
@@ -110,6 +110,8 @@ TpChannelChatState
                empathy_tp_chat_get_chat_state       (EmpathyTpChat      *chat,
                                     EmpathyContact *contact);
 
+EmpathyContact * empathy_tp_chat_get_self_contact   (EmpathyTpChat      *self);
+
 G_END_DECLS
 
 #endif /* __EMPATHY_TP_CHAT_H__ */