diff --git a/src/plugin.h b/src/plugin.h
index 86d403400e88af2c04e987548aed48ad5d98fd57..dd65b5982c6eb6ca80e5f8b63d947a00a05ca132 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
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__)