aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-connection-managers.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-07-23 18:31:27 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-07-30 06:13:19 +0800
commit9dfae3e6a3b7ca4751c2249590eca8317768e9b9 (patch)
tree3f19535695c8e387d4cbfb1ebfeb54e7aa79739f /libempathy/empathy-connection-managers.c
parent4b6db27ff05428dda571c5e60bc7229a4dd91d5f (diff)
downloadgsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar.gz
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar.bz2
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar.lz
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar.xz
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.tar.zst
gsoc2013-empathy-9dfae3e6a3b7ca4751c2249590eca8317768e9b9.zip
Add an API to get the num of CMs
Diffstat (limited to 'libempathy/empathy-connection-managers.c')
-rw-r--r--libempathy/empathy-connection-managers.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-connection-managers.c b/libempathy/empathy-connection-managers.c
index 587a463a8..82699d3d6 100644
--- a/libempathy/empathy-connection-managers.c
+++ b/libempathy/empathy-connection-managers.c
@@ -295,3 +295,15 @@ empathy_connection_managers_get_cm (EmpathyConnectionManagers *managers,
return NULL;
}
+
+guint
+empathy_connection_managers_get_cms_num (EmpathyConnectionManagers *managers)
+{
+ EmpathyConnectionManagersPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_CONNECTION_MANAGERS (managers), 0);
+
+ priv = GET_PRIV (managers);
+
+ return g_list_length (priv->cms);
+}