diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 01:06:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 01:06:53 +0000 |
commit | 85dcf3c9a1d83129768f675921a7816b94f8b12a (patch) | |
tree | c0f000206efc85cc728334c4ed96fb824c6f511a /include | |
parent | dedeeac53ec4c72afb2270478c48342be997a323 (diff) | |
download | libdom-85dcf3c9a1d83129768f675921a7816b94f8b12a.tar.gz libdom-85dcf3c9a1d83129768f675921a7816b94f8b12a.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')
-rw-r--r-- | include/dom/functypes.h | 20 |
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 |