| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
#include "asterisk.h"#include "asterisk/config.h"#include "asterisk/cli.h"#include "asterisk/res_geolocation.h"#include "asterisk/xml.h"#include "geoloc_private.h"
Go to the source code of this file.
| Functions | |
| int | ast_geoloc_civicaddr_is_code_valid (const char *code) | 
| Given a civicAddress code, check whether it's valid. | |
| 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. | |
| 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) | 
| int | geoloc_civicaddr_load (void) | 
| int | geoloc_civicaddr_reload (void) | 
| int | geoloc_civicaddr_unload (void) | 
| Variables | |
| static const char * | addr_code_name_entries [] | 
| int ast_geoloc_civicaddr_is_code_valid | ( | const char * | code | ) | 
Given a civicAddress code, check whether it's valid.
| code | Pointer to the code to check | 
Definition at line 68 of file geoloc_civicaddr.c.
References addr_code_name_entries, ARRAY_LEN, compare_civicaddr_codes(), and NULL.
Referenced by ast_geoloc_civicaddr_validate_varlist().
| 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.
| varlist | Variable list to check. | |
| [out] | result | Pointer to char * to receive failing item. | 
Definition at line 75 of file geoloc_civicaddr.c.
References ast_geoloc_civicaddr_is_code_valid(), AST_GEOLOC_VALIDATE_INVALID_VARNAME, AST_GEOLOC_VALIDATE_SUCCESS, result, and var.
Referenced by validate_location_info().
| 
 | static | 
Definition at line 61 of file geoloc_civicaddr.c.
Referenced by ast_geoloc_civicaddr_is_code_valid(), and geoloc_civicaddr_load().
| struct ast_xml_node * geoloc_civicaddr_list_to_xml | ( | const struct ast_variable * | resolved_location, | 
| const char * | ref_string | ||
| ) | 
Definition at line 89 of file geoloc_civicaddr.c.
References ast_defaultlanguage, ast_strdupa, ast_strings_equal(), ast_strlen_zero(), ast_variable_find_in_list(), ast_xml_free_node(), ast_xml_new_child(), ast_xml_new_node(), ast_xml_set_attribute(), ast_xml_set_text(), LOG_ERROR, ast_variable::next, NULL, SCOPE_ENTER, SCOPE_EXIT_LOG_RTN_VALUE, SCOPE_EXIT_RTN_VALUE, and var.
Referenced by geoloc_eprofile_to_intermediate().
| int geoloc_civicaddr_load | ( | void | ) | 
Definition at line 140 of file geoloc_civicaddr.c.
References addr_code_name_entries, ARRAY_LEN, AST_MODULE_LOAD_SUCCESS, and compare_civicaddr_codes().
Referenced by load_module().
| int geoloc_civicaddr_reload | ( | void | ) | 
Definition at line 148 of file geoloc_civicaddr.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
| int geoloc_civicaddr_unload | ( | void | ) | 
Definition at line 135 of file geoloc_civicaddr.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by unload_module().
| 
 | static | 
Definition at line 26 of file geoloc_civicaddr.c.
Referenced by ast_geoloc_civicaddr_is_code_valid(), and geoloc_civicaddr_load().