From a278a9f7441876f7f7015097bd954bb24fb712bb Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 12 Dec 2008 09:40:14 +0000 Subject: add empathy_tp_group_get_flags (Guillaume Desmottes) svn path=/trunk/; revision=1960 --- libempathy/empathy-tp-group.c | 11 +++++++++++ libempathy/empathy-tp-group.h | 1 + 2 files changed, 12 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-group.c b/libempathy/empathy-tp-group.c index ca7ff491f..689d2bb80 100644 --- a/libempathy/empathy-tp-group.c +++ b/libempathy/empathy-tp-group.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "empathy-tp-group.h" #include "empathy-contact-factory.h" @@ -968,3 +969,13 @@ empathy_tp_group_get_invitation (EmpathyTpGroup *group, return invitation; } +TpChannelGroupFlags +empathy_tp_group_get_flags (EmpathyTpGroup *self) +{ + EmpathyTpGroupPriv *priv = GET_PRIV (self); + + if (priv->channel == NULL) + return 0; + + return tp_channel_group_get_flags (priv->channel); +} diff --git a/libempathy/empathy-tp-group.h b/libempathy/empathy-tp-group.h index bbd4b84f9..4a60bfc69 100644 --- a/libempathy/empathy-tp-group.h +++ b/libempathy/empathy-tp-group.h @@ -86,6 +86,7 @@ EmpathyPendingInfo *empathy_pending_info_new (EmpathyContact *me EmpathyContact *actor, const gchar *message); void empathy_pending_info_free (EmpathyPendingInfo *info); +TpChannelGroupFlags empathy_tp_group_get_flags (EmpathyTpGroup *group); G_END_DECLS -- cgit v1.2.3