From 85dcf3c9a1d83129768f675921a7816b94f8b12a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Nov 2007 01:06:53 +0000 Subject: Fix up bindings buildsystem to permit multiple bindings to be built -- quite why this wasn't done in the first place is currently beyond me. Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643 --- include/dom/functypes.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/dom/functypes.h') diff --git a/include/dom/functypes.h b/include/dom/functypes.h index 85348a2..18b644a 100644 --- a/include/dom/functypes.h +++ b/include/dom/functypes.h @@ -9,10 +9,30 @@ #define dom_functypes_h_ #include +#include /** * Type of allocation function for DOM implementation */ typedef void *(*dom_alloc)(void *ptr, size_t size, void *pw); +/** + * Severity levels for dom_msg function, based on syslog(3) + */ +enum { + DOM_MSG_DEBUG, + DOM_MSG_INFO, + DOM_MSG_NOTICE, + DOM_MSG_WARNING, + DOM_MSG_ERROR, + DOM_MSG_CRITICAL, + DOM_MSG_ALERT, + DOM_MSG_EMERGENCY +}; + +/** + * Type of DOM message function + */ +typedef void (*dom_msg)(uint32_t severity, void *ctx, const char *msg, ...); + #endif -- cgit v1.2.3