diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-09-29 01:41:23 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-09-29 01:41:23 +0000 |
commit | 01f9dc3a2fb3f6bfbb4dab27304371dd3c6345f4 (patch) | |
tree | ff2739087c040f4872adef4a3d0b3731f04ebea3 /bindings | |
parent | f83f65025b74f585f75db1a056f7a2fe4e215b69 (diff) | |
download | libdom-01f9dc3a2fb3f6bfbb4dab27304371dd3c6345f4.tar.gz libdom-01f9dc3a2fb3f6bfbb4dab27304371dd3c6345f4.tar.bz2 |
dom_initialise() and dom_finalise() are now completely public, rather than hidden away in a header only meant for inclusion by bindings. Client applications are responsible for initialisation and finalisation of the dom library. This must happen before/after (respectively) any call to a dom library or dom binding library function.
The reason for this change is that, if multiple bindings are required, then the dom library should still only be initialised/finalised once. Only the client can enforce this sensibly.
svn path=/trunk/dom/; revision=3606
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/xml/xmlbinding.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bindings/xml/xmlbinding.c b/bindings/xml/xmlbinding.c index 9c0d832..fbdc4c9 100644 --- a/bindings/xml/xmlbinding.c +++ b/bindings/xml/xmlbinding.c @@ -385,10 +385,6 @@ xml_error xml_dom_binding_initialise(xml_alloc alloc, void *pw) { dom_exception err; - err = dom_initialise(alloc, pw); - if (err != DOM_NO_ERR) - return XML_NOMEM; - err = dom_register_source(&xml_dom_impl_src, (dom_alloc) alloc, pw); if (err != DOM_NO_ERR) return XML_NOMEM; @@ -403,13 +399,6 @@ xml_error xml_dom_binding_initialise(xml_alloc alloc, void *pw) */ xml_error xml_dom_binding_finalise(void) { - dom_exception err; - - err = dom_finalise(); - if (err != DOM_NO_ERR) { - /** \todo Do something about it */ - } - return XML_OK; } |