From: Guillaume Desmottes Date: Mon, 23 May 2011 10:20:47 +0000 (+0200) Subject: add empathy_account_settings_param_is_supported() X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=c4dfdc69a46f64dfc2ca12aea673f98605a3c39d add empathy_account_settings_param_is_supported() --- diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 4005d279..55af8f8f 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 25f1d315..80c30092 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__*/