From c4dfdc69a46f64dfc2ca12aea673f98605a3c39d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 May 2011 12:20:47 +0200 Subject: add empathy_account_settings_param_is_supported() --- libempathy/empathy-account-settings.c | 9 +++++++++ libempathy/empathy-account-settings.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 4005d2790..55af8f8f7 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 25f1d3155..80c30092e 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__*/ -- cgit v1.2.3