summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/xmpp/xmpp_stanza.cpp5
-rw-r--r--louloulibs/xmpp/xmpp_stanza.hpp2
2 files changed, 7 insertions, 0 deletions
diff --git a/louloulibs/xmpp/xmpp_stanza.cpp b/louloulibs/xmpp/xmpp_stanza.cpp
index 4c0f5c7..d1c2e0f 100644
--- a/louloulibs/xmpp/xmpp_stanza.cpp
+++ b/louloulibs/xmpp/xmpp_stanza.cpp
@@ -260,3 +260,8 @@ std::string sanitize(const std::string& data)
else
return xml_escape(utils::remove_invalid_xml_chars(utils::convert_to_utf8(data, "ISO-8859-1")));
}
+
+std::ostream& operator<<(std::ostream& os, const XmlNode& node)
+{
+ return os << node.to_string();
+}
diff --git a/louloulibs/xmpp/xmpp_stanza.hpp b/louloulibs/xmpp/xmpp_stanza.hpp
index 9cf7d8d..b1ba54a 100644
--- a/louloulibs/xmpp/xmpp_stanza.hpp
+++ b/louloulibs/xmpp/xmpp_stanza.hpp
@@ -140,4 +140,6 @@ private:
*/
typedef XmlNode Stanza;
+std::ostream& operator<<(std::ostream& os, const XmlNode& node);
+
#endif // XMPP_STANZA_INCLUDED