X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=635ff308f2cd4f83278554f4f79759a5b2efaeb4;hb=b21ab82a9ffe2a74a29c1dd606cb2ca7db6cd985;hp=3f2d98cb057957bc30224a057598244a22cfccac;hpb=d8825859c7b31f068899c2d5f8a147ea1ef65750;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 3f2d98cb..635ff308 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -326,8 +326,7 @@ int plugin_unregister_notification (const char *name); * `vl' Value list of the values that have been read by a `read' * function. */ -int plugin_dispatch_values (value_list_t *vl); -int plugin_dispatch_values_secure (const value_list_t *vl); +int plugin_dispatch_values (value_list_t const *vl); int plugin_dispatch_missing (const value_list_t *vl); int plugin_dispatch_notification (const notification_t *notif); @@ -335,6 +334,10 @@ int plugin_dispatch_notification (const notification_t *notif); void plugin_log (int level, const char *format, ...) __attribute__ ((format(printf,2,3))); +/* These functions return the parsed severity or less than zero on failure. */ +int parse_log_severity (const char *severity); +int parse_notif_severity (const char *severity); + #define ERROR(...) plugin_log (LOG_ERR, __VA_ARGS__) #define WARNING(...) plugin_log (LOG_WARNING, __VA_ARGS__) #define NOTICE(...) plugin_log (LOG_NOTICE, __VA_ARGS__)