diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-10 21:36:14 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-10 21:36:14 +0000 |
commit | acfc9fd1b44f7b72ba66705daf34914940509793 (patch) | |
tree | 9ed7dfde5664ff05fd47565d3f68c27792604500 /src/core/document.h | |
parent | d39dbc93d93f537962fe998031ade04d7ee6ca6a (diff) | |
download | libdom-acfc9fd1b44f7b72ba66705daf34914940509793.tar.gz libdom-acfc9fd1b44f7b72ba66705daf34914940509793.tar.bz2 |
Add NodeList and string comparison API
svn path=/trunk/dom/; revision=3394
Diffstat (limited to 'src/core/document.h')
-rw-r--r-- | src/core/document.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/document.h b/src/core/document.h index 7c18fe9..a51d1e1 100644 --- a/src/core/document.h +++ b/src/core/document.h @@ -12,8 +12,24 @@ #include <stddef.h> struct dom_document; +struct dom_node; +struct dom_nodelist; +struct dom_string; +/* Get base of document buffer */ const uint8_t *dom_document_get_base(struct dom_document *doc); + +/* (De)allocate memory */ void *dom_document_alloc(struct dom_document *doc, void *ptr, size_t size); +/* Get a nodelist, creating one if necessary */ +dom_exception dom_document_get_nodelist(struct dom_document *doc, + struct dom_node *root, struct dom_string *tagname, + struct dom_string *namespace, struct dom_string *localname, + struct dom_nodelist **list); + +/* Remove a nodelist */ +void dom_document_remove_nodelist(struct dom_document *doc, + struct dom_nodelist *list); + #endif |