aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-settings.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-09-04 04:45:08 +0800
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-09-09 05:12:01 +0800
commit0d31be0718c4624eaa17778f60f953f261f7487d (patch)
tree56ee043920d765ce777a458ad6a17dab116936e3 /libempathy/empathy-account-settings.c
parentc7630607a2ad03c27ee42b95093ada15d54087b9 (diff)
downloadgsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar.gz
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar.bz2
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar.lz
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar.xz
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.tar.zst
gsoc2013-empathy-0d31be0718c4624eaa17778f60f953f261f7487d.zip
Add support for 'as' in account settings
Diffstat (limited to 'libempathy/empathy-account-settings.c')
-rw-r--r--libempathy/empathy-account-settings.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index c470ce052..43bba44e6 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -682,6 +682,20 @@ empathy_account_settings_get_string (EmpathyAccountSettings *settings,
return g_value_get_string (v);
}
+const gchar * const *
+empathy_account_settings_get_strv (EmpathyAccountSettings *settings,
+ const gchar *param)
+{
+ const GValue *v;
+
+ v = empathy_account_settings_get (settings, param);
+
+ if (v == NULL || !G_VALUE_HOLDS (v, G_TYPE_STRV))
+ return NULL;
+
+ return g_value_get_boxed (v);
+}
+
gint32
empathy_account_settings_get_int32 (EmpathyAccountSettings *settings,
const gchar *param)
@@ -857,6 +871,18 @@ empathy_account_settings_set_string (EmpathyAccountSettings *settings,
}
void
+empathy_account_settings_set_strv (EmpathyAccountSettings *settings,
+ const gchar *param,
+ gchar **value)
+{
+ EmpathyAccountSettingsPriv *priv = GET_PRIV (settings);
+
+ tp_asv_set_strv (priv->parameters, param, value);
+
+ account_settings_remove_from_unset (settings, param);
+}
+
+void
empathy_account_settings_set_int32 (EmpathyAccountSettings *settings,
const gchar *param,
gint32 value)