summaryrefslogtreecommitdiff
path: root/include/dom/functypes.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-11-04 01:06:53 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-11-04 01:06:53 +0000
commita7628ce11342eb44f318904e084d0fccac9592b4 (patch)
treec0f000206efc85cc728334c4ed96fb824c6f511a /include/dom/functypes.h
parente61cf676eedb342b52df17b904e4dd8efc58a2db (diff)
downloadlibdom-a7628ce11342eb44f318904e084d0fccac9592b4.tar.gz
libdom-a7628ce11342eb44f318904e084d0fccac9592b4.tar.bz2
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 <dom/functypes.h> (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643
Diffstat (limited to 'include/dom/functypes.h')
-rw-r--r--include/dom/functypes.h20
1 files changed, 20 insertions, 0 deletions
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 <stddef.h>
+#include <inttypes.h>
/**
* 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