summaryrefslogtreecommitdiff
path: root/bindings/xml/functypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/xml/functypes.h')
-rw-r--r--bindings/xml/functypes.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/bindings/xml/functypes.h b/bindings/xml/functypes.h
index d0706b8..9cb15ee 100644
--- a/bindings/xml/functypes.h
+++ b/bindings/xml/functypes.h
@@ -13,4 +13,24 @@
*/
typedef void *(*xml_alloc)(void *ptr, size_t len, void *pw);
+/**
+ * Severity levels for xml_msg function, based on syslog(3)
+ */
+enum {
+ XML_MSG_DEBUG,
+ XML_MSG_INFO,
+ XML_MSG_NOTICE,
+ XML_MSG_WARNING,
+ XML_MSG_ERROR,
+ XML_MSG_CRITICAL,
+ XML_MSG_ALERT,
+ XML_MSG_EMERGENCY
+};
+
+/**
+ * Type of XML parser message function
+ */
+typedef void (*xml_msg)(uint32_t severity, void *ctx, const char *msg, ...);
+
#endif
+