diff options
-rw-r--r-- | libempathy/empathy-contact.c | 12 | ||||
-rw-r--r-- | libempathy/empathy-contact.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index cf46069b7..572d49250 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -2109,3 +2109,15 @@ empathy_contact_add_to_contact_list (EmpathyContact *self, tp_contact_unblock_async (priv->tp_contact, contact_unblock_cb, NULL); } + +declare_contact_cb(remove) + +void +empathy_contact_remove_from_contact_list (EmpathyContact *self) +{ + EmpathyContactPriv *priv = GET_PRIV (self); + + g_return_if_fail (priv->tp_contact != NULL); + + tp_contact_remove_async (priv->tp_contact, contact_remove_cb, NULL); +} diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h index f15c8ad5d..d90ea2ad4 100644 --- a/libempathy/empathy-contact.h +++ b/libempathy/empathy-contact.h @@ -141,6 +141,8 @@ EmpathyContact * empathy_contact_dup_best_for_action ( void empathy_contact_add_to_contact_list (EmpathyContact *self, const gchar *message); +void empathy_contact_remove_from_contact_list (EmpathyContact *self); + G_END_DECLS #endif /* __EMPATHY_CONTACT_H__ */ |