summaryrefslogtreecommitdiff
path: root/bindings/hubbub
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-08-05 22:39:17 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-08-05 22:39:17 +0100
commitba2d58bb356c9ac16bcac8f02ff4d1c6882f86c8 (patch)
tree21ab1056650371056847be75130ab53437dacc99 /bindings/hubbub
parent93501a764570049afce4794c0fc64a374df677a7 (diff)
downloadlibdom-ba2d58bb356c9ac16bcac8f02ff4d1c6882f86c8.tar.gz
libdom-ba2d58bb356c9ac16bcac8f02ff4d1c6882f86c8.tar.bz2
Move document out parameter after in parameters.
Diffstat (limited to 'bindings/hubbub')
-rw-r--r--bindings/hubbub/parser.c18
-rw-r--r--bindings/hubbub/parser.h8
2 files changed, 15 insertions, 11 deletions
diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c
index f0e088e..6174823 100644
--- a/bindings/hubbub/parser.c
+++ b/bindings/hubbub/parser.c
@@ -710,23 +710,23 @@ dom_hubbub_parser_default_script(void *ctx, struct dom_node *node)
/**
* Create a Hubbub parser instance
*
- * \param enc Source charset, or NULL
- * \param fix_enc Whether fix the encoding
- * \param enable_script Whether scripting should be enabled.
- * \param document Dom document return parameter.
- * \param msg Informational message function
- * \param script Script callback function
- * \param mctx Pointer to client-specific private data
+ * \param enc Source charset, or NULL
+ * \param fix_enc Whether fix the encoding
+ * \param enable_script Whether scripting should be enabled.
+ * \param msg Informational message function
+ * \param script Script callback function
+ * \param mctx Pointer to client-specific private data
+ * \param document Pointer to location to receive document
* \return Pointer to instance, or NULL on memory exhaustion
*/
dom_hubbub_parser *
dom_hubbub_parser_create(const char *enc,
bool fix_enc,
bool enable_script,
- dom_document **document,
dom_msg msg,
dom_script script,
- void *mctx)
+ void *mctx,
+ dom_document **document)
{
dom_hubbub_parser *parser;
hubbub_parser_optparams params;
diff --git a/bindings/hubbub/parser.h b/bindings/hubbub/parser.h
index e4bd52a..a35cfd1 100644
--- a/bindings/hubbub/parser.h
+++ b/bindings/hubbub/parser.h
@@ -53,7 +53,10 @@ typedef enum dom_hubbub_encoding_source {
*/
/* Create a Hubbub parser instance */
-dom_hubbub_parser *dom_hubbub_parser_create(const char *enc, bool fix_enc, bool enable_script, dom_document **document, dom_msg msg, dom_script script, void *mctx);
+dom_hubbub_parser *dom_hubbub_parser_create(const char *enc, bool fix_enc,
+ bool enable_script, dom_msg msg,
+ dom_script script, void *mctx,
+ dom_document **document);
/* Destroy a Hubbub parser instance */
void dom_hubbub_parser_destroy(dom_hubbub_parser *parser);
@@ -63,7 +66,8 @@ dom_hubbub_error dom_hubbub_parser_parse_chunk(dom_hubbub_parser *parser,
const uint8_t *data, size_t len);
/* insert data into the parse stream but do not parse it */
-dom_hubbub_error dom_hubbub_parser_insert_chunk(dom_hubbub_parser *parser, const uint8_t *data, size_t length);
+dom_hubbub_error dom_hubbub_parser_insert_chunk(dom_hubbub_parser *parser,
+ const uint8_t *data, size_t length);
/* Notify parser that datastream is empty */
dom_hubbub_error dom_hubbub_parser_completed(dom_hubbub_parser *parser);