diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 21:42:18 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 21:42:18 +0000 |
commit | d39dbc93d93f537962fe998031ade04d7ee6ca6a (patch) | |
tree | 38200fb0d97551967a2d9063daaf28927c043902 /include/dom/core/string.h | |
parent | 5da747ff564cdcfeff90c5f5cfcfac03bc48332b (diff) | |
download | libdom-d39dbc93d93f537962fe998031ade04d7ee6ca6a.tar.gz libdom-d39dbc93d93f537962fe998031ade04d7ee6ca6a.tar.bz2 |
Purge all trace of the ballache that was dom_ctx.
Document the functions in document.c
svn path=/trunk/dom/; revision=3385
Diffstat (limited to 'include/dom/core/string.h')
-rw-r--r-- | include/dom/core/string.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h index f79eaa7..f591464 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -13,28 +13,26 @@ #include <dom/core/exceptions.h> -struct dom_ctx; struct dom_document; struct dom_string; /* Claim a reference on a DOM string */ -void dom_string_ref(struct dom_ctx *ctx, struct dom_string *str); +void dom_string_ref(struct dom_string *str); /* Release a reference on a DOM string */ -void dom_string_unref(struct dom_ctx *ctx, struct dom_string *str); +void dom_string_unref(struct dom_string *str); /* Create a DOM string from an offset into the document buffer */ -dom_exception dom_string_create_from_off(struct dom_ctx *ctx, - struct dom_document *doc, uint32_t off, size_t len, - struct dom_string **str); +dom_exception dom_string_create_from_off(struct dom_document *doc, + uint32_t off, size_t len, struct dom_string **str); /* Create a DOM string from a string of characters */ -dom_exception dom_string_create_from_ptr(struct dom_ctx *ctx, +dom_exception dom_string_create_from_ptr(struct dom_document *doc, const uint8_t *ptr, size_t len, struct dom_string **str); /* Create a DOM string from a constant string of characters */ -dom_exception dom_string_create_from_const_ptr(struct dom_ctx *ctx, +dom_exception dom_string_create_from_const_ptr(struct dom_document *doc, 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_ctx *ctx, - struct dom_string *str, const uint8_t **data, size_t *len); +dom_exception dom_string_get_data(struct dom_string *str, + const uint8_t **data, size_t *len); #endif |