summaryrefslogtreecommitdiff
path: root/src/html/html_collection.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 22:21:26 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 22:21:26 +0100
commit7d18edc5bfbb2a70840072d05da9b314274cf21d (patch)
tree43d10c947692a85d7b40973ae77bd0f0c968cff4 /src/html/html_collection.h
parentc68390df675dc6d5799b30a139151382805ebde9 (diff)
downloadlibdom-7d18edc5bfbb2a70840072d05da9b314274cf21d.tar.gz
libdom-7d18edc5bfbb2a70840072d05da9b314274cf21d.tar.bz2
HTML{{,Button,Select,Form}Element,Document,Element,{,Options}Collection}: Make buttons work and forms contain their correct buttons
Diffstat (limited to 'src/html/html_collection.h')
-rw-r--r--src/html/html_collection.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/html/html_collection.h b/src/html/html_collection.h
index 634d2d3..23d149b 100644
--- a/src/html/html_collection.h
+++ b/src/html/html_collection.h
@@ -12,7 +12,8 @@
struct dom_node_internal;
-typedef bool (*dom_callback_is_in_collection)(struct dom_node_internal *node);
+typedef bool (*dom_callback_is_in_collection)(
+ struct dom_node_internal *node, void *ctx);
/**
* The html_collection structure
@@ -23,6 +24,7 @@ struct dom_html_collection {
* whether some node is an element of
* this collection
*/
+ void *ctx; /**< Context for the callback */
struct dom_html_document *doc; /**< The document created this
* collection
*/
@@ -35,12 +37,13 @@ struct dom_html_collection {
dom_exception _dom_html_collection_create(struct dom_html_document *doc,
struct dom_node_internal *root,
dom_callback_is_in_collection ic,
+ void *ctx,
struct dom_html_collection **col);
dom_exception _dom_html_collection_initialise(struct dom_html_document *doc,
struct dom_html_collection *col,
struct dom_node_internal *root,
- dom_callback_is_in_collection ic);
+ dom_callback_is_in_collection ic, void *ctx);
void _dom_html_collection_finalise(struct dom_html_collection *col);