summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:05:41 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:05:41 +0000
commitf604d632680c96cbbad0a1c3bf4372149d47d7ae (patch)
tree23b4547c140a3427608377b9807c1495f3edc30f
parent96594a8edefd223b69392e361c8d943bb5332f2b (diff)
downloadlasso-f604d632680c96cbbad0a1c3bf4372149d47d7ae.tar.gz
lasso-f604d632680c96cbbad0a1c3bf4372149d47d7ae.tar.xz
lasso-f604d632680c96cbbad0a1c3bf4372149d47d7ae.zip
XML: Remove static modifier on lasso_node_build_query
* lasso/xml/private.h, lasso/xml/xml.c: remove static modifier to lasso_node_build_query and export it for use in id-ff profiles.
-rw-r--r--lasso/xml/private.h2
-rw-r--r--lasso/xml/xml.c18
2 files changed, 13 insertions, 7 deletions
diff --git a/lasso/xml/private.h b/lasso/xml/private.h
index b13315e3..816aec35 100644
--- a/lasso/xml/private.h
+++ b/lasso/xml/private.h
@@ -143,6 +143,8 @@ void xml_insure_namespace(xmlNode *xmlnode, xmlNs *ns, gboolean force,
gchar* lasso_node_build_deflated_query(LassoNode *node);
+gchar* lasso_node_build_query(LassoNode *node);
+
gboolean lasso_node_init_from_deflated_query_part(LassoNode *node, char *deflate_string);
xmlNode* lasso_node_get_xmlnode_for_any_type(LassoNode *node, xmlNode *cur);
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index 52f2cacb..392ae374 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -49,8 +49,6 @@
#include "../registry.h"
#include "../debug.h"
-
-static char* lasso_node_build_query(LassoNode *node);
static void lasso_node_build_xmlNode_from_snippets(LassoNode *node, xmlNode *xmlnode,
struct XmlSnippet *snippets, gboolean lasso_dump);
static struct XmlSnippet* find_xml_snippet_by_name(LassoNode *node, char *name);
@@ -690,11 +688,17 @@ lasso_node_init_from_xml(LassoNode *node, xmlNode *xmlnode)
return class->init_from_xml(node, xmlnode);
}
-/*****************************************************************************/
-/* virtual private methods */
-/*****************************************************************************/
-
-static char*
+/**
+ * lasso_node_build_query(LassoNode *node)
+ * @node: a #LassoNode
+ *
+ * Build an HTTP query from the given LassoNode, this is a pure virtual
+ * function, you must overload it in subclass.
+ *
+ * Return value: a newly allocated string containing the query if it succeed,
+ * or NULL otherwise.
+ */
+char*
lasso_node_build_query(LassoNode *node)
{
LassoNodeClass *class;