[empathy] add empathy_account_settings_param_is_supported()



commit c4dfdc69a46f64dfc2ca12aea673f98605a3c39d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon May 23 12:20:47 2011 +0200

    add empathy_account_settings_param_is_supported()

 libempathy/empathy-account-settings.c |    9 +++++++++
 libempathy/empathy-account-settings.h |    4 ++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 4005d27..55af8f8 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -1785,3 +1785,12 @@ empathy_account_settings_supports_sasl (EmpathyAccountSettings *self)
 
   return priv->supports_sasl;
 }
+
+gboolean
+empathy_account_settings_param_is_supported (EmpathyAccountSettings *self,
+    const gchar *param)
+{
+  EmpathyAccountSettingsPriv *priv = GET_PRIV (self);
+
+  return tp_protocol_has_param (priv->protocol_obj, param);
+}
diff --git a/libempathy/empathy-account-settings.h b/libempathy/empathy-account-settings.h
index 25f1d31..80c3009 100644
--- a/libempathy/empathy-account-settings.h
+++ b/libempathy/empathy-account-settings.h
@@ -196,6 +196,10 @@ const TpConnectionManagerProtocol * empathy_account_settings_get_tp_protocol (
 
 gboolean empathy_account_settings_supports_sasl (EmpathyAccountSettings *self);
 
+gboolean empathy_account_settings_param_is_supported (
+    EmpathyAccountSettings *self,
+    const gchar *param);
+
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/



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