summaryrefslogtreecommitdiff
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index eb978e7..8e39a89 100644
--- a/conf.c
+++ b/conf.c
@@ -14,6 +14,18 @@ gchar *conf_get_string(const gchar *group, const gchar *key) {
return s;
}
+gchar **conf_get_string_list(const gchar *group, const gchar *key, gsize *length) {
+ GError *error = NULL;
+
+ gchar **s = g_key_file_get_string_list(kf, group, key, length, &error);
+ if(s == NULL) {
+ g_warning(error->message);
+ g_error_free(error);
+ }
+
+ return s;
+}
+
gint conf_get_int(const gchar *group, const gchar *key) {
GError *error = NULL;