[empathy] add empathy_account_settings_get_tp_protocol



commit 047a96316d388258fcff299ac4bea1bc3881ecae
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Dec 21 17:01:13 2009 +0000

    add empathy_account_settings_get_tp_protocol

 libempathy/empathy-account-settings.c |    8 ++++++++
 libempathy/empathy-account-settings.h |    3 +++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index f33e437..6b8b017 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -1283,3 +1283,11 @@ empathy_account_settings_is_valid (EmpathyAccountSettings *settings)
 
   return !missed;
 }
+
+const TpConnectionManagerProtocol *
+empathy_account_settings_get_tp_protocol (EmpathyAccountSettings *self)
+{
+  EmpathyAccountSettingsPriv *priv = GET_PRIV (self);
+
+  return tp_connection_manager_get_protocol (priv->manager, priv->protocol);
+}
diff --git a/libempathy/empathy-account-settings.h b/libempathy/empathy-account-settings.h
index 0ea9b55..419476b 100644
--- a/libempathy/empathy-account-settings.h
+++ b/libempathy/empathy-account-settings.h
@@ -169,6 +169,9 @@ gboolean empathy_account_settings_apply_finish (
 
 gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
 
+const TpConnectionManagerProtocol * empathy_account_settings_get_tp_protocol (
+    EmpathyAccountSettings *settings);
+
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]