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/document.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/document.h')
-rw-r--r-- | include/dom/core/document.h | 123 |
1 files changed, 55 insertions, 68 deletions
diff --git a/include/dom/core/document.h b/include/dom/core/document.h index 347fdc4..96b8dca 100644 --- a/include/dom/core/document.h +++ b/include/dom/core/document.h @@ -14,7 +14,6 @@ struct dom_attr; struct dom_configuration; -struct dom_ctx; struct dom_document; struct dom_document_type; struct dom_element; @@ -24,81 +23,69 @@ struct dom_nodelist; struct dom_string; struct dom_text; -dom_exception dom_document_get_doctype(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_document_type **result); -dom_exception dom_document_get_implementation(struct dom_ctx *ctx, - struct dom_document *doc, +dom_exception dom_document_get_doctype(struct dom_document *doc, + struct dom_document_type **result); +dom_exception dom_document_get_implementation(struct dom_document *doc, struct dom_implementation **result); -dom_exception dom_document_get_element(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_element **result); -dom_exception dom_document_create_element(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *tag_name, +dom_exception dom_document_get_element(struct dom_document *doc, struct dom_element **result); -dom_exception dom_document_create_document_fragment(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_node **result); -dom_exception dom_document_create_text_node(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *data, - struct dom_text **result); -dom_exception dom_document_create_cdata_section(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *data, - struct dom_text **result); -dom_exception dom_document_create_processing_instruction(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *target, - struct dom_string *data, +dom_exception dom_document_create_element(struct dom_document *doc, + struct dom_string *tag_name, struct dom_element **result); +dom_exception dom_document_create_document_fragment(struct dom_document *doc, struct dom_node **result); -dom_exception dom_document_create_attribute(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *name, +dom_exception dom_document_create_text_node(struct dom_document *doc, + struct dom_string *data, struct dom_text **result); +dom_exception dom_document_create_cdata_section(struct dom_document *doc, + struct dom_string *data, struct dom_text **result); +dom_exception dom_document_create_processing_instruction( + struct dom_document *doc, struct dom_string *target, + struct dom_string *data, struct dom_node **result); +dom_exception dom_document_create_attribute(struct dom_document *doc, + struct dom_string *name, struct dom_attr **result); +dom_exception dom_document_create_entity_reference(struct dom_document *doc, + struct dom_string *name, struct dom_node **result); +dom_exception dom_document_get_elements_by_tag_name(struct dom_document *doc, + struct dom_string *tagname, struct dom_nodelist **result); +dom_exception dom_document_import_node(struct dom_document *doc, + struct dom_node *node, bool deep, struct dom_node **result); +dom_exception dom_document_create_element_ns(struct dom_document *doc, + struct dom_string *namespace, struct dom_string *qname, + struct dom_element **result); +dom_exception dom_document_create_attribute_ns(struct dom_document *doc, + struct dom_string *namespace, struct dom_string *qname, struct dom_attr **result); -dom_exception dom_document_create_entity_reference(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *name, - struct dom_node **result); -dom_exception dom_document_get_elements_by_tag_name(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *tagname, - struct dom_nodelist **result); -dom_exception dom_document_import_node(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_node *node, - bool deep, struct dom_node **result); -dom_exception dom_document_create_element_ns(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *namespace, - struct dom_string *qname, struct dom_element **result); -dom_exception dom_document_create_attribute_ns(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *namespace, - struct dom_string *qname, struct dom_attr **result); -dom_exception dom_document_get_elements_by_tag_name_ns(struct dom_ctx *ctx, +dom_exception dom_document_get_elements_by_tag_name_ns( struct dom_document *doc, struct dom_string *namespace, struct dom_string *localname, struct dom_nodelist **result); -dom_exception dom_document_get_element_by_id(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *id, - struct dom_element **result); -dom_exception dom_document_get_input_encoding(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string **result); -dom_exception dom_document_get_xml_encoding(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string **result); -dom_exception dom_document_get_xml_standalone(struct dom_ctx *ctx, +dom_exception dom_document_get_element_by_id(struct dom_document *doc, + struct dom_string *id, struct dom_element **result); +dom_exception dom_document_get_input_encoding(struct dom_document *doc, + struct dom_string **result); +dom_exception dom_document_get_xml_encoding(struct dom_document *doc, + struct dom_string **result); +dom_exception dom_document_get_xml_standalone(struct dom_document *doc, + bool *result); +dom_exception dom_document_set_xml_standalone(struct dom_document *doc, + bool standalone); +dom_exception dom_document_get_xml_version(struct dom_document *doc, + struct dom_string **result); +dom_exception dom_document_set_xml_version(struct dom_document *doc, + struct dom_string *version); +dom_exception dom_document_get_strict_error_checking( struct dom_document *doc, bool *result); -dom_exception dom_document_set_xml_standalone(struct dom_ctx *ctx, - struct dom_document *doc, bool standalone); -dom_exception dom_document_get_xml_version(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string **result); -dom_exception dom_document_set_xml_version(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *version); -dom_exception dom_document_get_strict_error_checking(struct dom_ctx *ctx, - struct dom_document *doc, bool *result); -dom_exception dom_document_set_strict_error_checking(struct dom_ctx *ctx, +dom_exception dom_document_set_strict_error_checking( struct dom_document *doc, bool strict); -dom_exception dom_document_get_uri(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string **result); -dom_exception dom_document_set_uri(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_string *uri); -dom_exception dom_document_adopt_node(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_node *node, - struct dom_node **result); -dom_exception dom_document_get_dom_config(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_configuration **result); -dom_exception dom_document_normalize(struct dom_ctx *ctx, - struct dom_document *doc); -dom_exception dom_document_rename_node(struct dom_ctx *ctx, - struct dom_document *doc, struct dom_node *node, +dom_exception dom_document_get_uri(struct dom_document *doc, + struct dom_string **result); +dom_exception dom_document_set_uri(struct dom_document *doc, + struct dom_string *uri); +dom_exception dom_document_adopt_node(struct dom_document *doc, + struct dom_node *node, struct dom_node **result); +dom_exception dom_document_get_dom_config(struct dom_document *doc, + struct dom_configuration **result); +dom_exception dom_document_normalize(struct dom_document *doc); +dom_exception dom_document_rename_node(struct dom_document *doc, + struct dom_node *node, struct dom_string *namespace, struct dom_string *qname, struct dom_node **result); |