summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-17 03:21:26 (GMT)
committer Rupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-10 22:57:09 (GMT)
commitefec9dd5e88f563242a645e0a1f1904f5c262093 (patch)
tree7388a953e7fce4f712143d5c168f4ee147254748
parentf1107bdb33dd760151d1b7311b09fb099c05d8c9 (diff)
downloadlibdom-efec9dd5e88f563242a645e0a1f1904f5c262093.tar.gz
libdom-efec9dd5e88f563242a645e0a1f1904f5c262093.tar.bz2
Adding some comments
-rw-r--r--src/html/html_map_element.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/html/html_map_element.c b/src/html/html_map_element.c
index ca08d4c..bdd4ef0 100644
--- a/src/html/html_map_element.c
+++ b/src/html/html_map_element.c
@@ -162,15 +162,24 @@ dom_exception dom_html_map_element_set_##attr( \
SIMPLE_GET_SET(name);
-bool callback(
- struct dom_node_internal *node, void *ctx)
+/* The callback function for _dom_html_collection_create*/
+bool callback(struct dom_node_internal *node, void *ctx)
{
- if(dom_string_caseless_isequal(node->name,((dom_html_document *)ctx)->memoised[hds_AREA])) {
+ if(dom_string_caseless_isequal
+ (node->name,((dom_html_document *)ctx)->memoised[hds_AREA])) {
return true;
}
return false;
}
+/**
+ * Get the areas property
+ *
+ * \param ele The dom_html_map_element object
+ * \param areas The returned dom_html_collection object
+ * \return DOM_NO_ERR on success, appropriate dom_exception on failure.
+ */
+
dom_exception dom_html_map_element_get_areas(
dom_html_map_element *ele, dom_html_collection **areas)
{