summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dom/html/html_document.h7
-rw-r--r--src/html/html_document.c8
-rw-r--r--src/html/html_document.h13
3 files changed, 6 insertions, 22 deletions
diff --git a/include/dom/html/html_document.h b/include/dom/html/html_document.h
index d03c117..16ade80 100644
--- a/include/dom/html/html_document.h
+++ b/include/dom/html/html_document.h
@@ -19,11 +19,6 @@ struct dom_nodelist;
typedef struct dom_html_document dom_html_document;
-typedef enum {
- DOM_HTML_PARSER = 0,
- DOM_XML_PARSER = 1
-} dom_parser_type;
-
/**
* Callbacks for UI related function calls
*/
@@ -43,7 +38,7 @@ typedef struct dom_ui_handler dom_ui_handler;
/* Create a HTMLDocument */
dom_exception dom_html_document_create(dom_msg msg, void *msg_pw,
dom_events_default_action_fetcher daf, dom_ui_handler *ui,
- dom_parser_type pt, dom_html_document **doc);
+ dom_html_document **doc);
/* Parse a data chunk into the HTMLDocument */
dom_exception dom_html_document_write_data(uint8_t *data, size_t len);
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 0022e0d..d716901 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -16,27 +16,25 @@
/* Create a HTMLDocument */
dom_exception dom_html_document_create(dom_msg msg, void *msg_pw,
dom_events_default_action_fetcher daf, dom_ui_handler *ui,
- dom_parser_type pt, dom_html_document **doc)
+ dom_html_document **doc)
{
*doc = malloc(sizeof(dom_html_document));
if (*doc == NULL)
return DOM_NO_MEM_ERR;
- return _dom_html_document_initialise(*doc, msg, msg_pw, daf, ui, pt);
+ return _dom_html_document_initialise(*doc, msg, msg_pw, daf, ui);
}
/* Initialise a HTMLDocument */
dom_exception _dom_html_document_initialise(dom_html_document *doc,
dom_msg msg, void *msg_pw,
- dom_events_default_action_fetcher daf, dom_ui_handler *ui,
- dom_parser_type pt)
+ dom_events_default_action_fetcher daf, dom_ui_handler *ui)
{
UNUSED(doc);
UNUSED(msg);
UNUSED(msg_pw);
UNUSED(daf);
UNUSED(ui);
- UNUSED(pt);
return DOM_NO_ERR;
}
diff --git a/src/html/html_document.h b/src/html/html_document.h
index a865695..658836b 100644
--- a/src/html/html_document.h
+++ b/src/html/html_document.h
@@ -12,32 +12,23 @@
#include "core/document.h"
-struct dom_hubbub_parser;
-struct dom_xml_parser;
-
/**
* The dom_html_document class
*/
struct dom_html_document {
struct dom_document base; /**< The base class */
- union {
- struct dom_hubbub_parser *hp;
- struct dom_xml_parser *xp;
- } parser;
- /**< The underlaying parser of this document */
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 *url; /**< HTML document URL */
dom_string *cookie; /**< HTML document cookie */
};
/* Initialise a HTMLDocument */
dom_exception _dom_html_document_initialise(dom_html_document *doc,
dom_msg msg, void *msg_pw,
- dom_events_default_action_fetcher daf, dom_ui_handler *ui,
- dom_parser_type pt);
+ dom_events_default_action_fetcher daf, dom_ui_handler *ui);
/* Finalise a HTMLDocument */
void _dom_html_document_finalise(dom_html_document *doc);
/* Destroy a HTMLDocument */