libdom
Loading...
Searching...
No Matches
nodelist.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
6 */
7
8#ifndef dom_internal_core_nodelist_h_
9#define dom_internal_core_nodelist_h_
10
11#include <stdbool.h>
12
13#include <dom/core/nodelist.h>
14
15struct dom_document;
16struct dom_node;
17struct dom_nodelist;
18
29
30/* Create a nodelist */
32 struct dom_node_internal *root, dom_string *tagname,
33 dom_string *namespace, dom_string *localname,
34 struct dom_nodelist **list);
35
36/* Match a nodelist instance against a set of nodelist creation parameters */
38 struct dom_node_internal *root, dom_string *tagname,
39 dom_string *namespace, dom_string *localname);
40
41bool _dom_nodelist_equal(struct dom_nodelist *l1, struct dom_nodelist *l2);
42#define dom_nodelist_equal(l1, l2) _dom_nodelist_equal( \
43 (struct dom_nodelist *) (l1), (struct dom_nodelist *) (l2))
44
45#endif
dom_exception
Definition exceptions.h:24
bool _dom_nodelist_match(struct dom_nodelist *list, nodelist_type type, struct dom_node_internal *root, dom_string *tagname, dom_string *namespace, dom_string *localname)
Definition nodelist.c:416
bool _dom_nodelist_equal(struct dom_nodelist *l1, struct dom_nodelist *l2)
Definition nodelist.c:453
nodelist_type
Definition nodelist.h:22
@ DOM_NODELIST_BY_NAMESPACE
Definition nodelist.h:25
@ DOM_NODELIST_BY_NAME
Definition nodelist.h:24
@ DOM_NODELIST_BY_NAME_CASELESS
Definition nodelist.h:26
@ DOM_NODELIST_CHILDREN
Definition nodelist.h:23
@ DOM_NODELIST_BY_NAMESPACE_CASELESS
Definition nodelist.h:27
dom_exception _dom_nodelist_create(struct dom_document *doc, nodelist_type type, struct dom_node_internal *root, dom_string *tagname, dom_string *namespace, dom_string *localname, struct dom_nodelist **list)
Definition nodelist.c:68
Definition document.h:43
Definition node.h:54
Definition node.h:79
Definition nodelist.c:26
dom_node_internal * root
Definition nodelist.c:29
dom_string * localname
Definition nodelist.c:43
nodelist_type type
Definition nodelist.c:32
Definition string.h:19
Definition list.h:33