aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.c')
-rw-r--r--libempathy-gtk/empathy-roster-model.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.c b/libempathy-gtk/empathy-roster-model.c
index eaceca5f7..d8671f279 100644
--- a/libempathy-gtk/empathy-roster-model.c
+++ b/libempathy-gtk/empathy-roster-model.c
@@ -102,3 +102,17 @@ empathy_roster_model_get_individuals (EmpathyRosterModel *self)
return (* iface->get_individuals) (self);
}
+
+GList *
+empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self,
+ FolksIndividual *individual)
+{
+ EmpathyRosterModelInterface *iface;
+
+ g_return_val_if_fail (EMPATHY_IS_ROSTER_MODEL (self), NULL);
+
+ iface = EMPATHY_ROSTER_MODEL_GET_IFACE (self);
+ g_return_val_if_fail (iface->get_groups_for_individual != NULL, NULL);
+
+ return (* iface->get_groups_for_individual) (self, individual);
+}