about summary refs log tree commit diff stats
path: root/src/plugins/c_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/c_api.c')
-rw-r--r--src/plugins/c_api.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/c_api.c b/src/plugins/c_api.c
index 82b89bfd..309a3492 100644
--- a/src/plugins/c_api.c
+++ b/src/plugins/c_api.c
@@ -194,6 +194,18 @@ c_api_send_stanza(char *stanza)
     return api_send_stanza(stanza);
 }
 
+static int
+c_api_settings_get_boolean(char *group, char *key, int def)
+{
+    return api_settings_get_boolean(group, key, def);
+}
+
+static void
+c_api_settings_set_boolean(char *group, char *key, int value)
+{
+    api_settings_set_boolean(group, key, value);
+}
+
 void
 c_command_callback(PluginCommand *command, gchar **args)
 {
@@ -243,4 +255,6 @@ c_api_init(void)
     prof_win_show = c_api_win_show;
     prof_win_show_themed = c_api_win_show_themed;
     prof_send_stanza = c_api_send_stanza;
+    prof_settings_get_boolean = c_api_settings_get_boolean;
+    prof_settings_set_boolean = c_api_settings_set_boolean;
 }