diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 22:21:26 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 22:21:26 +0100 |
commit | 146bda077e00e3feffc3748af681f10494fc9c5c (patch) | |
tree | 43d10c947692a85d7b40973ae77bd0f0c968cff4 /src/html/html_collection.h | |
parent | 50d83f430d109472dee45910851275fe189b0fdb (diff) | |
download | libdom-146bda077e00e3feffc3748af681f10494fc9c5c.tar.gz libdom-146bda077e00e3feffc3748af681f10494fc9c5c.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.h | 7 |
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); |