summaryrefslogtreecommitdiff
path: root/src/xml/xml.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-03 23:16:18 -0600
committersanine <sanine.not@pm.me>2023-02-03 23:16:18 -0600
commit414bc3c6db05ec6d5127967eae39dbaa7f48ad2c (patch)
tree714c87d7d7963e20f9311a34968bab252159ea34 /src/xml/xml.h
parent1b4564c02380d10f7f8630d73441e7f9aa83c812 (diff)
implement kai_tag_get_attr
Diffstat (limited to 'src/xml/xml.h')
-rw-r--r--src/xml/xml.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xml/xml.h b/src/xml/xml.h
index 238177e..e2abf8f 100644
--- a/src/xml/xml.h
+++ b/src/xml/xml.h
@@ -8,4 +8,9 @@
struct kai_tag_t * kai_parse_string(const char *str);
+/* return pointer to the attribute's value string, or NULL if it
+ * isn't present
+ */
+char * kai_tag_get_attr(struct kai_tag_t *t, const char *attr);
+
#endif