diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-24 11:48:24 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2014-12-03 01:33:00 +0100 |
commit | d8ea0243dddb28bcc802e230a8de8e66513a7dbb (patch) | |
tree | 5249a1ed4a88393ee32fe8dee3757358d3b80dbd /include/mupdf/fitz/xml.h | |
parent | fa04ab8e0c40cfc6b248c60e1ec9db028c97988a (diff) | |
download | mupdf-d8ea0243dddb28bcc802e230a8de8e66513a7dbb.tar.xz |
xml: Make accessors NULL-resistant. Add fz_xml_find functions.
Find the first sibling, next sibling or first child matching tag name.
Diffstat (limited to 'include/mupdf/fitz/xml.h')
-rw-r--r-- | include/mupdf/fitz/xml.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mupdf/fitz/xml.h b/include/mupdf/fitz/xml.h index e14e1521..8006fa07 100644 --- a/include/mupdf/fitz/xml.h +++ b/include/mupdf/fitz/xml.h @@ -74,4 +74,8 @@ void fz_detach_xml(fz_xml *node); */ void fz_debug_xml(fz_xml *item, int level); +fz_xml *fz_xml_find(fz_xml *item, const char *tag); +fz_xml *fz_xml_find_next(fz_xml *item, const char *tag); +fz_xml *fz_xml_find_down(fz_xml *item, const char *tag); + #endif |