aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-23 18:20:47 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-23 18:20:47 +0800
commitc4dfdc69a46f64dfc2ca12aea673f98605a3c39d (patch)
tree4372ee9ecda57e28e10a18ed38d2968f5eb7fdca /libempathy
parent6c9d7372fb7e155be2ca6953db316c1b70744159 (diff)
downloadgsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar.gz
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar.bz2
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar.lz
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar.xz
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.tar.zst
gsoc2013-empathy-c4dfdc69a46f64dfc2ca12aea673f98605a3c39d.zip
add empathy_account_settings_param_is_supported()
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-settings.c9
-rw-r--r--libempathy/empathy-account-settings.h4
2 files changed, 13 insertions, 0 deletions
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__*/