summaryrefslogtreecommitdiff
path: root/main/data.c
diff options
context:
space:
mode:
authorEliel C. Sardanons <eliels@gmail.com>2010-05-02 02:52:23 +0000
committerEliel C. Sardanons <eliels@gmail.com>2010-05-02 02:52:23 +0000
commitcaa2eff30c93d73ab9baa1e5c3107c5ab7bf547b (patch)
treefb4ab1d4e826932aa1170e44568d31660cc37472 /main/data.c
parent6dd80de93da6be77d765cbbf8f419a5e53899440 (diff)
Avoid making AstData depend on libxml2 to compile.
We have some functions inside the AstData API to get the tree in XML form, but it is not required at the moment to compile asterisk and we can disable that part of the API if we don't have libxml2 support. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@260521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/data.c')
-rw-r--r--main/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/data.c b/main/data.c
index 1b12d451f..c402c4fa6 100644
--- a/main/data.c
+++ b/main/data.c
@@ -1845,6 +1845,7 @@ struct ast_data *ast_data_get(const struct ast_data_query *query)
return res;
}
+#ifdef HAVE_LIBXML2
/*!
* \internal
* \brief Helper function to move an ast_data tree to xml.
@@ -1944,6 +1945,7 @@ struct ast_xml_doc *ast_data_get_xml(const struct ast_data_query *query)
return doc;
}
+#endif
enum ast_data_type ast_data_retrieve_type(struct ast_data *node, const char *path)
{