diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-04 11:58:16 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-04 11:58:16 +0100 |
commit | 9bdbe6e64d12c514888457d466f625524627af19 (patch) | |
tree | 7d08fa1ebdeaaf5cfc069cae09a6d25df8956342 /include | |
parent | 41b0a260811a0880e2f84e29e20e3ebea9d0b6fe (diff) | |
download | libdom-9bdbe6e64d12c514888457d466f625524627af19.tar.gz |
Add dom_node_contains()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dom/core/node.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dom/core/node.h b/include/dom/core/node.h index ba273af2..9600e6d4 100644 --- a/include/dom/core/node.h +++ b/include/dom/core/node.h @@ -202,6 +202,16 @@ static inline void dom_node_unref(dom_node *node) } #define dom_node_unref(n) dom_node_unref((dom_node *) (n)) +/* Contains is non-virtual since it doesn't need to be */ + +dom_exception _dom_node_contains(struct dom_node_internal *node, + struct dom_node_internal *other, + bool *contains); +#define dom_node_contains(n, o, c) \ + _dom_node_contains((dom_node_internal *)(n), (dom_node_internal *)(o), (c)) + +/* All the rest are virtual */ + static inline dom_exception dom_node_get_node_name(struct dom_node *node, dom_string **result) { |