diff options
Diffstat (limited to 'src/core/document.h')
-rw-r--r-- | src/core/document.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/document.h b/src/core/document.h index 367b1ec..5149f2e 100644 --- a/src/core/document.h +++ b/src/core/document.h @@ -12,12 +12,12 @@ #include <stddef.h> #include <dom/core/node.h> +#include <dom/core/string.h> struct dom_document; struct dom_namednodemap; struct dom_node; struct dom_nodelist; -struct dom_string; /* Destroy a document */ void dom_document_destroy(struct dom_document *doc); @@ -25,6 +25,9 @@ void dom_document_destroy(struct dom_document *doc); /* Get base of document buffer */ const uint8_t *dom_document_get_base(struct dom_document *doc); +/* Get the document character set */ +dom_string_charset dom_document_get_charset(struct dom_document *doc); + /* (De)allocate memory */ void *dom_document_alloc(struct dom_document *doc, void *ptr, size_t size); |