From acfc9fd1b44f7b72ba66705daf34914940509793 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 10 Jul 2007 21:36:14 +0000 Subject: Add NodeList and string comparison API svn path=/trunk/dom/; revision=3394 --- src/core/document.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/document.h') 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 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 -- cgit v1.2.3