64 int rc = strcmp(*(
const char **)_a, *(
const char **)_b);
90 const char *ref_string)
95 struct ast_xml_node *ca_node;
96 struct ast_xml_node *child_node;
103 for (s = lang; *s; s++) {
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Standard Command Line Interface.
static int compare_civicaddr_codes(const void *_a, const void *_b)
struct ast_xml_node * geoloc_civicaddr_list_to_xml(const struct ast_variable *resolved_location, const char *ref_string)
enum ast_geoloc_validate_result ast_geoloc_civicaddr_validate_varlist(const struct ast_variable *varlist, const char **result)
Validate that the names of the variables in the list are valid codes or synonyms.
int geoloc_civicaddr_reload(void)
int geoloc_civicaddr_load(void)
int ast_geoloc_civicaddr_is_code_valid(const char *code)
Given a civicAddress code, check whether it's valid.
static const char * addr_code_name_entries[]
int geoloc_civicaddr_unload(void)
#define SCOPE_EXIT_RTN_VALUE(__return_value,...)
#define SCOPE_EXIT_LOG_RTN_VALUE(__value, __log_level,...)
#define SCOPE_ENTER(level,...)
Configuration File Parser.
const char * ast_variable_find_in_list(const struct ast_variable *list, const char *variable)
Gets the value of a variable from a variable list by name.
@ AST_MODULE_LOAD_SUCCESS
char ast_defaultlanguage[]
ast_geoloc_validate_result
@ AST_GEOLOC_VALIDATE_SUCCESS
@ AST_GEOLOC_VALIDATE_INVALID_VARNAME
int ast_strings_equal(const char *str1, const char *str2)
Compare strings for equality checking for NULL.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Structure for variables, used for configurations and for channel variables.
Asterisk XML abstraction layer.
struct ast_xml_node * ast_xml_new_child(struct ast_xml_node *parent, const char *child_name)
Add a child node inside a passed parent node.
struct ast_xml_node * ast_xml_new_node(const char *name)
Create a XML node.
int ast_xml_set_attribute(struct ast_xml_node *node, const char *name, const char *value)
Set an attribute to a node.
void ast_xml_set_text(struct ast_xml_node *node, const char *content)
Set an element content string.
void ast_xml_free_node(struct ast_xml_node *node)
Free node.