summaryrefslogtreecommitdiff
path: root/src/common/xml.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-02-22 19:23:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-02-22 19:23:47 (GMT)
commit2512f75cec41ca4e6f8b95808530dbf1578ba412 (patch)
tree5852fcdfe5cb33c99fe05d7c73e152aab9f31559 /src/common/xml.h
parent98076c3b06700b1cf24f3fdca1844c0dcf6faeb2 (diff)
Extend XML features.
Diffstat (limited to 'src/common/xml.h')
-rw-r--r--src/common/xml.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/xml.h b/src/common/xml.h
index fe99b91..91f0552 100644
--- a/src/common/xml.h
+++ b/src/common/xml.h
@@ -74,6 +74,12 @@ char *qck_get_node_text_value(xmlNodePtr);
/* Obtient une valeur placée entre <...> et </...>. */
char *get_node_text_value(xmlXPathContextPtr, const char *);
+/* Obtient une valeur booléenne placée entre <...> et </...>. */
+bool get_node_boolean_value(xmlXPathContextPtr, const char *, bool *);
+
+/* Obtient une valeur entière placée entre <...> et </...>. */
+bool get_node_long_value(xmlXPathContextPtr, const char *, long *);
+
/* Obtient la valeur d'une propriété d'un élément. */
char *qck_get_node_prop_value(xmlNodePtr, const char *);