From 998ef19cf8a2e546208d1fb0a835032a7e07e543 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 19 Feb 2010 15:26:58 +0000 Subject: Introduce empathy_tp_chat_leave --- libempathy/empathy-tp-chat.c | 6 ++++++ libempathy/empathy-tp-chat.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 65b4926c6..0b19a6680 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1804,3 +1804,9 @@ empathy_tp_chat_can_add_contact (EmpathyTpChat *self) tp_proxy_has_interface_by_id (priv->channel, TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP);; } + +void +empathy_tp_chat_leave (EmpathyTpChat *self) +{ + empathy_tp_chat_close (self); +} diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index f0a4caa87..37d6d68f9 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -99,6 +99,8 @@ gboolean empathy_tp_chat_provide_password_finish (EmpathyTpChat *chat, GError **error); gboolean empathy_tp_chat_can_add_contact (EmpathyTpChat *self); +void empathy_tp_chat_leave (EmpathyTpChat *chat); + G_END_DECLS #endif /* __EMPATHY_TP_CHAT_H__ */ -- cgit v1.2.3