diff options
author | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-02 02:52:23 +0000 |
---|---|---|
committer | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-02 02:52:23 +0000 |
commit | 56c2e826689b2e104bb6f2d9ca2343db4d28f708 (patch) | |
tree | fb4ab1d4e826932aa1170e44568d31660cc37472 /main/data.c | |
parent | 762557326cdb010727aa5a61e440741c4c1ca275 (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: http://svn.digium.com/svn/asterisk/trunk@260521 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/data.c')
-rw-r--r-- | main/data.c | 2 |
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) { |