diff options
author | defanor <defanor@uberspace.net> | 2023-09-05 22:45:26 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-09-07 18:00:36 +0300 |
commit | 1e01dbfc114e4ff96c428d1db38a4908ba8d0438 (patch) | |
tree | c36d4db88486de75285f346c4679bf6e934a7715 /src/rexmpp_xml.h | |
parent | 39b84f12e7f0488157eb64261c8585927a91e194 (diff) |
Implement XML serialization in C and in Rust
Continuing replacement of libxml2, planning to use libexpat or a Rust
XML parser as an alternative for XML parsing.
Diffstat (limited to 'src/rexmpp_xml.h')
-rw-r--r-- | src/rexmpp_xml.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rexmpp_xml.h b/src/rexmpp_xml.h index dbd8ea8..0a3cb63 100644 --- a/src/rexmpp_xml.h +++ b/src/rexmpp_xml.h @@ -148,7 +148,7 @@ rexmpp_xml_add_id (rexmpp_t *s, @param[in] node An XML node. @returns A string (must be freed by the caller). */ -char *rexmpp_xml_serialize (rexmpp_xml_t *node); +char *rexmpp_xml_serialize (const rexmpp_xml_t *node, int pretty); /** @brief Count the number of siblings after a given node. @@ -207,7 +207,7 @@ rexmpp_xml_t *rexmpp_xml_find_child (rexmpp_xml_t *node, const char *namespace, const char *name); -rexmpp_xml_t *rexmpp_xml_children (rexmpp_xml_t *node); +rexmpp_xml_t *rexmpp_xml_children (const rexmpp_xml_t *node); char *rexmpp_xml_text (rexmpp_xml_t *node); |