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
*/
struct ast_data *ast_data_get(const struct ast_data_query *query);
+#ifdef HAVE_LIBXML2
/*!
* \brief Retrieve a subtree from the asterisk data API in XML format..
* \param[in] query The query structure specifying what nodes to retrieve.
* \see ast_data_free, ast_data_get
*/
struct ast_xml_doc *ast_data_get_xml(const struct ast_data_query *query);
+#endif
/*!
* \brief Release the allocated memory of a tree.
return res;
}
+#ifdef HAVE_LIBXML2
/*!
* \internal
* \brief Helper function to move an ast_data tree to xml.
return doc;
}
+#endif
enum ast_data_type ast_data_retrieve_type(struct ast_data *node, const char *path)
{