summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dom/core/string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h
index 759f042..c9ffd97 100644
--- a/include/dom/core/string.h
+++ b/include/dom/core/string.h
@@ -11,6 +11,7 @@
#include <inttypes.h>
#include <stddef.h>
+#include <dom/functypes.h>
#include <dom/core/exceptions.h>
struct dom_document;
@@ -30,6 +31,10 @@ dom_exception dom_string_create_from_ptr(struct dom_document *doc,
/* Create a DOM string from a constant string of characters */
dom_exception dom_string_create_from_const_ptr(struct dom_document *doc,
const uint8_t *ptr, size_t len, struct dom_string **str);
+/* Create a DOM string from a string of characters that does not belong
+ * to a document */
+dom_exception dom_string_create_from_ptr_no_doc(dom_alloc alloc, void *pw,
+ const uint8_t *ptr, size_t len, struct dom_string **str);
/* Get a pointer to the string of characters within a DOM string */
dom_exception dom_string_get_data(struct dom_string *str,