diff options
Diffstat (limited to 'src/html')
28 files changed, 67 insertions, 67 deletions
diff --git a/src/html/html_base_element.c b/src/html/html_base_element.c index f8aa14e..dad0985 100644 --- a/src/html/html_base_element.c +++ b/src/html/html_base_element.c @@ -96,8 +96,8 @@ void _dom_html_base_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_base_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_base_element.h b/src/html/html_base_element.h index 7e58cc2..c9143f5 100644 --- a/src/html/html_base_element.h +++ b/src/html/html_base_element.h @@ -35,8 +35,8 @@ void _dom_html_base_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_base_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_base_element_destroy(dom_node_internal *node); dom_exception _dom_html_base_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_body_element.c b/src/html/html_body_element.c index 7512910..afe8ee4 100644 --- a/src/html/html_body_element.c +++ b/src/html/html_body_element.c @@ -96,8 +96,8 @@ void _dom_html_body_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_body_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_body_element.h b/src/html/html_body_element.h index e62ff78..ccb6091 100644 --- a/src/html/html_body_element.h +++ b/src/html/html_body_element.h @@ -35,8 +35,8 @@ void _dom_html_body_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_body_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_body_element_destroy(dom_node_internal *node); dom_exception _dom_html_body_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_collection.c b/src/html/html_collection.c index e0c96b9..9b34c51 100644 --- a/src/html/html_collection.c +++ b/src/html/html_collection.c @@ -206,7 +206,7 @@ dom_exception dom_html_collection_item(dom_html_collection *col, * \return DOM_NO_ERR on success. */ dom_exception dom_html_collection_named_item(dom_html_collection *col, - struct dom_string *name, struct dom_node **node) + dom_string *name, struct dom_node **node) { struct dom_node_internal *n = col->root; dom_exception err; diff --git a/src/html/html_document.c b/src/html/html_document.c index a2845aa..6b9eb5c 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -72,7 +72,7 @@ dom_exception dom_html_document_complete(void); * as the returned title. */ dom_exception dom_html_document_get_title(dom_html_document *doc, - struct dom_string **title) + dom_string **title) { UNUSED(doc); UNUSED(title); @@ -81,13 +81,13 @@ dom_exception dom_html_document_get_title(dom_html_document *doc, } dom_exception dom_html_document_set_title(dom_html_document *doc, - struct dom_string *title); + dom_string *title); dom_exception dom_html_document_get_referer(dom_html_document *doc, - struct dom_string **referer); + dom_string **referer); dom_exception dom_html_document_get_domain(dom_html_document *doc, - struct dom_string **domain); + dom_string **domain); dom_exception dom_html_document_get_url(dom_html_document *doc, - struct dom_string **url); + dom_string **url); dom_exception dom_html_document_get_body(dom_html_document *doc, struct dom_html_element **body); dom_exception dom_html_document_set_body(dom_html_document *doc, @@ -103,16 +103,16 @@ dom_exception dom_html_document_get_forms(dom_html_document *doc, dom_exception dom_html_document_get_anchors(dom_html_document *doc, struct dom_html_collection **col); dom_exception dom_html_document_get_cookie(dom_html_document *doc, - struct dom_string **cookie); + dom_string **cookie); dom_exception dom_html_document_set_cookie(dom_html_document *doc, - struct dom_string *cookie); + dom_string *cookie); dom_exception dom_html_document_open(dom_html_document *doc); dom_exception dom_html_document_close(dom_html_document *doc); dom_exception dom_html_document_write(dom_html_document *doc, - struct dom_string *text); + dom_string *text); dom_exception dom_html_document_writeln(dom_html_document *doc, - struct dom_string *text); + dom_string *text); dom_exception dom_html_document_get_elements_by_name(dom_html_document *doc, - struct dom_string *name, struct dom_nodelist **list); + dom_string *name, struct dom_nodelist **list); diff --git a/src/html/html_document.h b/src/html/html_document.h index 31770ef..27f5cf9 100644 --- a/src/html/html_document.h +++ b/src/html/html_document.h @@ -26,11 +26,11 @@ struct dom_html_document { } parser; /**< The underlaying parser of this document */ - struct dom_string *title; /**< HTML document title */ - struct dom_string *referer; /**< HTML document referer */ - struct dom_string *domain; /**< HTML document domain */ - struct dom_string *url; /**< HTML document URL */ - struct dom_string *cookie; /**< HTML document cookie */ + dom_string *title; /**< HTML document title */ + dom_string *referer; /**< HTML document referer */ + dom_string *domain; /**< HTML document domain */ + dom_string *url; /**< HTML document URL */ + dom_string *cookie; /**< HTML document cookie */ }; /* Initialise a HTMLDocument */ diff --git a/src/html/html_element.c b/src/html/html_element.c index decf955..3552c67 100644 --- a/src/html/html_element.c +++ b/src/html/html_element.c @@ -71,7 +71,7 @@ dom_exception _dom_html_element_copy(struct dom_node_internal *new, /* API functions */ dom_exception _dom_html_element_get_id(dom_html_element *element, - struct dom_string **id) + dom_string **id) { dom_exception ret; dom_document *doc; @@ -94,7 +94,7 @@ dom_exception _dom_html_element_get_id(dom_html_element *element, } dom_exception _dom_html_element_set_id(dom_html_element *element, - struct dom_string *id) + dom_string *id) { dom_exception ret; dom_document *doc; diff --git a/src/html/html_element.h b/src/html/html_element.h index d0691d6..2a433a8 100644 --- a/src/html/html_element.h +++ b/src/html/html_element.h @@ -43,9 +43,9 @@ dom_exception _dom_html_element_copy(struct dom_node_internal *new, /* The API functions */ dom_exception _dom_html_element_get_id(dom_html_element *element, - struct dom_string **id); + dom_string **id); dom_exception _dom_html_element_set_id(dom_html_element *element, - struct dom_string *id); + dom_string *id); /* Some common functions used by all child classes */ dom_exception dom_html_element_get_bool_property(dom_html_element *ele, diff --git a/src/html/html_form_element.c b/src/html/html_form_element.c index 7c0e9af..1b6ab91 100644 --- a/src/html/html_form_element.c +++ b/src/html/html_form_element.c @@ -104,8 +104,8 @@ void _dom_html_form_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_form_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_form_element.h b/src/html/html_form_element.h index 9b8105d..dd1482b 100644 --- a/src/html/html_form_element.h +++ b/src/html/html_form_element.h @@ -39,8 +39,8 @@ void _dom_html_form_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_form_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_form_element_destroy(dom_node_internal *node); dom_exception _dom_html_form_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_head_element.c b/src/html/html_head_element.c index 9ab53b6..a37acfe 100644 --- a/src/html/html_head_element.c +++ b/src/html/html_head_element.c @@ -96,8 +96,8 @@ void _dom_html_head_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_head_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_head_element.h b/src/html/html_head_element.h index d92c656..bb58720 100644 --- a/src/html/html_head_element.h +++ b/src/html/html_head_element.h @@ -35,8 +35,8 @@ void _dom_html_head_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_head_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_head_element_destroy(dom_node_internal *node); dom_exception _dom_html_head_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_html_element.c b/src/html/html_html_element.c index 8e08382..2da67f6 100644 --- a/src/html/html_html_element.c +++ b/src/html/html_html_element.c @@ -96,8 +96,8 @@ void _dom_html_html_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_html_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_html_element.h b/src/html/html_html_element.h index 4e81d18..4ffc9ba 100644 --- a/src/html/html_html_element.h +++ b/src/html/html_html_element.h @@ -35,8 +35,8 @@ void _dom_html_html_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_html_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_html_element_destroy(dom_node_internal *node); dom_exception _dom_html_html_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_isindex_element.c b/src/html/html_isindex_element.c index 42db2e5..295ee38 100644 --- a/src/html/html_isindex_element.c +++ b/src/html/html_isindex_element.c @@ -103,8 +103,8 @@ void _dom_html_isindex_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_isindex_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_isindex_element.h b/src/html/html_isindex_element.h index 3aad119..b64c6c0 100644 --- a/src/html/html_isindex_element.h +++ b/src/html/html_isindex_element.h @@ -37,8 +37,8 @@ void _dom_html_isindex_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_isindex_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_isindex_element_destroy(dom_node_internal *node); dom_exception _dom_html_isindex_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_link_element.c b/src/html/html_link_element.c index ce0d6ac..b7b143c 100644 --- a/src/html/html_link_element.c +++ b/src/html/html_link_element.c @@ -130,8 +130,8 @@ dom_exception dom_html_link_element_set_disabled(dom_html_link_element *ele, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_link_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_link_element.h b/src/html/html_link_element.h index 4c6fe55..613665b 100644 --- a/src/html/html_link_element.h +++ b/src/html/html_link_element.h @@ -35,8 +35,8 @@ void _dom_html_link_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_link_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_link_element_destroy(dom_node_internal *node); dom_exception _dom_html_link_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_meta_element.c b/src/html/html_meta_element.c index a525e13..92b293b 100644 --- a/src/html/html_meta_element.c +++ b/src/html/html_meta_element.c @@ -96,8 +96,8 @@ void _dom_html_meta_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_meta_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_meta_element.h b/src/html/html_meta_element.h index 2f50719..6574913 100644 --- a/src/html/html_meta_element.h +++ b/src/html/html_meta_element.h @@ -35,8 +35,8 @@ void _dom_html_meta_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_meta_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_meta_element_destroy(dom_node_internal *node); dom_exception _dom_html_meta_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_options_collection.c b/src/html/html_options_collection.c index 8b4c7bb..0b80df2 100644 --- a/src/html/html_options_collection.c +++ b/src/html/html_options_collection.c @@ -140,7 +140,7 @@ dom_exception dom_html_options_collection_item(dom_html_options_collection *col, * \return DOM_NO_ERR on success. */ dom_exception dom_html_options_collection_named_item(dom_html_options_collection *col, - struct dom_string *name, struct dom_node **node) + dom_string *name, struct dom_node **node) { return dom_html_collection_named_item(&col->base, name, node); } diff --git a/src/html/html_select_element.c b/src/html/html_select_element.c index f4e54cb..134df3e 100644 --- a/src/html/html_select_element.c +++ b/src/html/html_select_element.c @@ -102,8 +102,8 @@ void _dom_html_select_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_select_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_select_element.h b/src/html/html_select_element.h index 28b4956..acaa929 100644 --- a/src/html/html_select_element.h +++ b/src/html/html_select_element.h @@ -40,8 +40,8 @@ void _dom_html_select_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_select_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_select_element_destroy(dom_node_internal *node); dom_exception _dom_html_select_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_style_element.c b/src/html/html_style_element.c index 288b1cf..b39995a 100644 --- a/src/html/html_style_element.c +++ b/src/html/html_style_element.c @@ -96,8 +96,8 @@ void _dom_html_style_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_style_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); diff --git a/src/html/html_style_element.h b/src/html/html_style_element.h index 3ac8cf5..b20acb0 100644 --- a/src/html/html_style_element.h +++ b/src/html/html_style_element.h @@ -35,8 +35,8 @@ void _dom_html_style_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_style_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_style_element_destroy(dom_node_internal *node); dom_exception _dom_html_style_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); diff --git a/src/html/html_title_element.c b/src/html/html_title_element.c index c914d4a..1a440b1 100644 --- a/src/html/html_title_element.c +++ b/src/html/html_title_element.c @@ -101,8 +101,8 @@ void _dom_html_title_element_destroy(struct dom_document *doc, /* The virtual function used to parse attribute value, see src/core/element.c * for detail */ dom_exception _dom_html_title_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed) + dom_string *name, dom_string *value, + dom_string **parsed) { UNUSED(ele); UNUSED(name); @@ -151,7 +151,7 @@ dom_exception _dom_html_title_element_copy(struct dom_node_internal *new, * \return DOM_NO_ERR on success, appropriated dom_exception on failure. */ dom_exception dom_html_title_element_get_text(dom_html_title_element *ele, - struct dom_string **text) + dom_string **text) { dom_node_internal *node = (dom_node_internal *) ele; dom_node_internal *n = node->first_child; @@ -172,7 +172,7 @@ dom_exception dom_html_title_element_get_text(dom_html_title_element *ele, * \return DOM_NO_ERR on success, appropriated dom_exception on failure. */ dom_exception dom_html_title_element_set_text(dom_html_title_element *ele, - struct dom_string *text) + dom_string *text) { dom_node_internal *node = (dom_node_internal *) ele; dom_node_internal *n = node->first_child; diff --git a/src/html/html_title_element.h b/src/html/html_title_element.h index 1433189..87dabd8 100644 --- a/src/html/html_title_element.h +++ b/src/html/html_title_element.h @@ -35,8 +35,8 @@ void _dom_html_title_element_destroy(struct dom_document *doc, /* The protected virtual functions */ dom_exception _dom_html_title_element_parse_attribute(dom_element *ele, - struct dom_string *name, struct dom_string *value, - struct dom_string **parsed); + dom_string *name, dom_string *value, + dom_string **parsed); void _dom_virtual_html_title_element_destroy(dom_node_internal *node); dom_exception _dom_html_title_element_alloc(struct dom_document *doc, struct dom_node_internal *n, struct dom_node_internal **ret); |