diff options
author | defanor <defanor@uberspace.net> | 2023-06-18 17:38:35 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-06-18 17:38:35 +0300 |
commit | c12a24ef337889ed1f980cce2baf78ac6bd0ee93 (patch) | |
tree | b4a5e6f08e702336057872162a26655b43e957e1 /src/rexmpp_xml.h | |
parent | 931847c9c0d170410ec210ab558f3bbf6902355b (diff) |
Duplicate most of the XML functions in Rust, use Cargo
Diffstat (limited to 'src/rexmpp_xml.h')
-rw-r--r-- | src/rexmpp_xml.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rexmpp_xml.h b/src/rexmpp_xml.h index 33f61f2..dbd8ea8 100644 --- a/src/rexmpp_xml.h +++ b/src/rexmpp_xml.h @@ -47,6 +47,10 @@ struct rexmpp_xml_node { }; +void rexmpp_xml_qname_free (rexmpp_xml_qname_t *qname); +void rexmpp_xml_attribute_free (rexmpp_xml_attr_t *attr); +void rexmpp_xml_attribute_free_list (rexmpp_xml_attr_t *attr); + /** @brief Frees a single XML node. Does not free its siblings. */ @@ -205,9 +209,9 @@ rexmpp_xml_t *rexmpp_xml_find_child (rexmpp_xml_t *node, rexmpp_xml_t *rexmpp_xml_children (rexmpp_xml_t *node); -const char *rexmpp_xml_text (rexmpp_xml_t *node); +char *rexmpp_xml_text (rexmpp_xml_t *node); -const char *rexmpp_xml_text_child (rexmpp_xml_t *node); +char *rexmpp_xml_text_child (rexmpp_xml_t *node); rexmpp_xml_t *rexmpp_xml_first_elem_child (rexmpp_xml_t *node); |