headers: move log-level definitions to libmctp.h
Since we allow library clients to set the log levels when using a stdio
log implementation (through mctp_set_log_stdio()), we need to expose
values for those log levels.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/libmctp.h b/libmctp.h
index 36babe5..f0633e3 100644
--- a/libmctp.h
+++ b/libmctp.h
@@ -104,10 +104,19 @@
void *(realloc)(void *, size_t));
/* environment-specific logging */
+
void mctp_set_log_stdio(int level);
void mctp_set_log_syslog(void);
void mctp_set_log_custom(void (*fn)(int, const char *, va_list));
+/* these should match the syslog-standard LOG_* definitions, for
+ * easier use with syslog */
+#define MCTP_LOG_ERR 3
+#define MCTP_LOG_WARNING 4
+#define MCTP_LOG_NOTICE 5
+#define MCTP_LOG_INFO 6
+#define MCTP_LOG_DEBUG 7
+
#ifdef __cplusplus
}