X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fconfigfile.h;h=ae2c6c0fac27970d4058abbf91aced19c5ef859e;hb=474d70e02d04de92aa7503b3887989729bbbff02;hp=5bc9b305615ee3404d8d373dd5544de7e88e433d;hpb=6258e772d808f4e76ea8e23d9e2750cfc7e6c60d;p=collectd.git diff --git a/src/daemon/configfile.h b/src/daemon/configfile.h index 5bc9b305..ae2c6c0f 100644 --- a/src/daemon/configfile.h +++ b/src/daemon/configfile.h @@ -28,13 +28,14 @@ #define CONFIGFILE_H #include "collectd.h" + #include "utils_time.h" #include "liboconfig/oconfig.h" /* * DESCRIPTION * Remove a registered plugin from the internal data structures. - * + * * PARAMETERS * `type' Name of the plugin (must be the same as passed to * `plugin_register' @@ -87,9 +88,9 @@ int cf_register_complex (const char *type, int (*callback) (oconfig_item_t *)); * Returns zero upon success and non-zero otherwise. A error-message will have * been printed in this case. */ -int cf_read (char *filename); +int cf_read (const char *filename); -int global_option_set (const char *option, const char *value); +int global_option_set (const char *option, const char *value, _Bool from_cli); const char *global_option_get (const char *option); long global_option_get_long (const char *option, long default_value); long global_option_get_long_in_range (const char *option, long default_value, long min, long max);