]> arthur.barton.de Git - netdata.git/blobdiff - src/appconfig.h
added more fping alarms; added the ability to have alarms that never send CLEAR notif...
[netdata.git] / src / appconfig.h
old mode 100755 (executable)
new mode 100644 (file)
index 365d1e2..08aae83
@@ -1,5 +1,3 @@
-#include "web_buffer.h"
-
 #ifndef NETDATA_CONFIG_H
 #define NETDATA_CONFIG_H 1
 
@@ -16,10 +14,19 @@ extern char *config_get(const char *section, const char *name, const char *defau
 extern long long config_get_number(const char *section, const char *name, long long value);
 extern int config_get_boolean(const char *section, const char *name, int value);
 
+#define CONFIG_ONDEMAND_NO 0
+#define CONFIG_ONDEMAND_YES 1
+#define CONFIG_ONDEMAND_ONDEMAND 2
+extern int config_get_boolean_ondemand(const char *section, const char *name, int value);
+
 extern const char *config_set(const char *section, const char *name, const char *value);
+extern const char *config_set_default(const char *section, const char *name, const char *value);
 extern long long config_set_number(const char *section, const char *name, long long value);
 extern int config_set_boolean(const char *section, const char *name, int value);
 
+extern int config_exists(const char *section, const char *name);
+extern int config_rename(const char *section, const char *old, const char *new);
+
 extern void generate_config(BUFFER *wb, int only_changed);
 
 #endif /* NETDATA_CONFIG_H */