mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Geolocation: Base Asterisk Prereqs
* Added ast_variable_list_from_quoted_string() Parse a quoted string into an ast_variable list. * Added ast_str_substitute_variables_full2() Perform variable/function/expression substitution on an ast_str. * Added ast_strsep_quoted() Like ast_strsep except you can specify a specific quote character. Also added unit test. * Added ast_xml_find_child_element() Find a direct child element by name. * Added ast_xml_doc_dump_memory() Dump the specified document to a buffer * ast_datastore_free() now checks for a NULL datastore before attempting to destroy it. Change-Id: I5dcefed2f5f93a109e8b489e18d80d42e45244ec
This commit is contained in:
committed by
Friendly Automation
parent
a692e79ec6
commit
104e53aecd
@@ -361,6 +361,11 @@ int ast_xml_doc_dump_file(FILE *output, struct ast_xml_doc *doc)
|
||||
return xmlDocDump(output, (xmlDocPtr)doc);
|
||||
}
|
||||
|
||||
void ast_xml_doc_dump_memory(struct ast_xml_doc *doc, char **buffer, int *length)
|
||||
{
|
||||
xmlDocDumpFormatMemory((xmlDocPtr)doc, (xmlChar **)buffer, length, 1);
|
||||
}
|
||||
|
||||
const char *ast_xml_node_get_name(struct ast_xml_node *node)
|
||||
{
|
||||
return (const char *) ((xmlNode *) node)->name;
|
||||
|
Reference in New Issue
Block a user