diff options
author | James Booth <boothj5@gmail.com> | 2016-02-14 22:28:55 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-02-14 22:28:55 +0000 |
commit | 41fe8c22b1f8c1cf666d42052cd73d59e40a2ed2 (patch) | |
tree | 3b53c1fbc2e5dc8c6daccf7fe7bb9f27d1c9d05a /src/config/preferences.c | |
parent | f887a35c0cd550a3c635630da2bd83bb7400b957 (diff) | |
download | profani-tty-41fe8c22b1f8c1cf666d42052cd73d59e40a2ed2.tar.gz |
Added C plugin code from plugins branch
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r-- | src/config/preferences.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 32214c91..802f60bc 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -32,7 +32,7 @@ * */ -#include "config.h" +#include "prof_config.h" #include <stdlib.h> #include <stdio.h> @@ -591,6 +591,19 @@ prefs_set_autoxa_time(gint value) _save_prefs(); } +gchar ** +prefs_get_plugins(void) +{ + if (!g_key_file_has_group(prefs, "plugins")) { + return NULL; + } + if (!g_key_file_has_key(prefs, "plugins", "load", NULL)) { + return NULL; + } + + return g_key_file_get_string_list(prefs, "plugins", "load", NULL, NULL); +} + void prefs_set_occupants_size(gint value) { |