17 #ifndef _ASTERISK_XMLDOC_H 18 #define _ASTERISK_XMLDOC_H 91 struct ast_xml_xpath_results *__attribute__((
format(printf, 1, 2)))
ast_xmldoc_query(const
char *fmt, ...);
#define AST_LIST_HEAD(name, type)
Defines a structure to be used to hold a list of specified type.
String manipulation functions.
struct ast_xml_doc_item * next
const ast_string_field ref
struct ast_xml_node * node
char * ast_xmldoc_build_description(const char *type, const char *name, const char *module)
Generate description documentation from XML.
struct ao2_container * ast_xmldoc_build_documentation(const char *type)
Build the documentation for a particular source type.
struct ast_xml_xpath_results * ast_xmldoc_query(const char *fmt,...)
Execute an XPath query on the loaded XML documentation.
static struct aco_type item
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
char * ast_xmldoc_build_synopsis(const char *type, const char *name, const char *module)
Generate synopsis documentation from XML.
char * ast_xmldoc_build_arguments(const char *type, const char *name, const char *module)
Generate the [arguments] tag based on type of node ('application', 'function' or 'agi') and name...
ast_doc_src
From where the documentation come from, this structure is useful for use it inside application/functi...
struct ast_xml_doc_item * ast_xmldoc_build_final_response(const char *type, const char *name, const char *module)
Generate the [final response] tag based on type of node ('application', 'function' or 'agi') and name...
struct ast_xml_doc_item * ast_xmldoc_build_list_responses(const char *type, const char *name, const char *module)
Generate the [list responses] tag based on type of node ('application', 'function' or 'agi') and name...
The struct to be used as the head of an ast_xml_doc_item list when being manipulated.
const ast_string_field type
#define AST_STRING_FIELD(name)
Declare a string field.
Asterisk XML abstraction layer.
struct ast_str * description
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
const ast_string_field name
char * ast_xmldoc_printable(const char *bwinput, int withcolors)
Colorize and put delimiters (instead of tags) to the xmldoc output.
int ast_xmldoc_regenerate_doc_item(struct ast_xml_doc_item *item)
Regenerate the documentation for a particular item.
char * ast_xmldoc_build_syntax(const char *type, const char *name, const char *module)
Get the syntax for a specified application or function.
char * ast_xmldoc_build_seealso(const char *type, const char *name, const char *module)
Parse the <see-also> node content.
Struct that contains the XML documentation for a particular item. Note that this is an ao2 ref counte...
struct ast_str * arguments
static snd_pcm_format_t format
struct ast_str * synopsis