summaryrefslogtreecommitdiff
path: root/rest/rest-private.h
diff options
context:
space:
mode:
authorTomas Frydrych <tf@linux.intel.com>2011-01-31 15:15:36 +0000
committerTomas Frydrych <tf@linux.intel.com>2011-02-10 12:12:34 +0000
commitdb9aefd94e376fb5a984bd59f860adb0abae532d (patch)
treecc36de9293294812aa0ecd9f3f6a1c8af315f855 /rest/rest-private.h
parent880049882106f92ab8db7befa3d6d66ab30d4c37 (diff)
downloadlibrest-db9aefd94e376fb5a984bd59f860adb0abae532d.tar.gz
xml-node: API for manually constructing and outputting XML
Split out RestXmlNode into separate source files and added simple API for manually constructing tree of RextXmlNodes and converting such a tree to a string: * xml_node_add_child() * xml_node_add_attribute() * xml_node_set_content() * xml_node_print() Includes xml test for make check
Diffstat (limited to 'rest/rest-private.h')
-rw-r--r--rest/rest-private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rest/rest-private.h b/rest/rest-private.h
index 400ead2..b0f1fe4 100644
--- a/rest/rest-private.h
+++ b/rest/rest-private.h
@@ -26,6 +26,7 @@
#include <glib.h>
#include <rest/rest-proxy.h>
#include <rest/rest-proxy-call.h>
+#include <rest/rest-xml-node.h>
#include <libsoup/soup.h>
G_BEGIN_DECLS
@@ -58,5 +59,11 @@ void _rest_proxy_cancel_message (RestProxy *proxy,
SoupMessage *message);
guint _rest_proxy_send_message (RestProxy *proxy,
SoupMessage *message);
+
+RestXmlNode *_rest_xml_node_new (void);
+void _rest_xml_node_reverse_children_siblings (RestXmlNode *node);
+RestXmlNode *_rest_xml_node_prepend (RestXmlNode *cur_node,
+ RestXmlNode *new_node);
+
G_END_DECLS
#endif /* _REST_PRIVATE */