From b657c277f517f4ab0a4da21e4f8c4cb6f8f53013 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 30 Aug 2010 13:06:19 +0000 Subject: Merge branches/struggleyb/libdom-html to trunk. A few additional fixes to reduce the number of regressions to single figures. svn path=/trunk/dom/; revision=10724 --- include/dom/html/html_collection.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/dom/html/html_collection.h (limited to 'include/dom/html/html_collection.h') diff --git a/include/dom/html/html_collection.h b/include/dom/html/html_collection.h new file mode 100644 index 0000000..09cf6ed --- /dev/null +++ b/include/dom/html/html_collection.h @@ -0,0 +1,29 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2009 Bo Yang + */ + +#ifndef dom_html_collection_h_ +#define dom_html_collection_h_ + +#include + +struct dom_node; +struct dom_string; + +typedef struct dom_html_collection dom_html_collection; + +dom_exception dom_html_collection_get_length(dom_html_collection *col, + unsigned long *len); +dom_exception dom_html_collection_item(dom_html_collection *col, + unsigned long index, struct dom_node **node); +dom_exception dom_html_collection_named_item(dom_html_collection *col, + struct dom_string *name, struct dom_node **node); + +void dom_html_collection_ref(dom_html_collection *col); +void dom_html_collection_unref(dom_html_collection *col); + +#endif + -- cgit v1.2.3