| 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 "geoloc_private.h"
Go to the source code of this file.
| Data Structures | |
| struct | geoloc_gml_attr | 
| struct | geoloc_gml_attr_def | 
| struct | geoloc_gml_shape_def | 
| Functions | |
| enum ast_geoloc_validate_result | ast_geoloc_gml_validate_varlist (const struct ast_variable *varlist, const char **result) | 
| Validate that the variables in the list represent a valid GML shape. | |
| static int | float_validator (const char *value) | 
| struct ast_xml_node * | geoloc_gml_list_to_xml (const struct ast_variable *resolved_location, const char *ref_string) | 
| int | geoloc_gml_load (void) | 
| int | geoloc_gml_reload (void) | 
| int | geoloc_gml_unload (void) | 
| static char * | handle_gml_show (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) | 
| static int | pos3d_validator (const char *value) | 
| static int | pos_validator (const char *value) | 
| static int | uom_validator (const char *value) | 
| Variables | |
| static struct ast_cli_entry | geoloc_gml_cli [] | 
| struct geoloc_gml_attr_def | gml_attr_defs [] | 
| static struct geoloc_gml_shape_def | gml_shape_defs [8] | 
| enum geoloc_shape_attrs | 
Definition at line 25 of file geoloc_gml.c.
| enum ast_geoloc_validate_result ast_geoloc_gml_validate_varlist | ( | const struct ast_variable * | varlist, | 
| const char ** | result | ||
| ) | 
Validate that the variables in the list represent a valid GML shape.
| varlist | Variable list to check. | |
| [out] | result | Pointer to char * to receive failing item. | 
Definition at line 124 of file geoloc_gml.c.
References ARRAY_LEN, AST_GEOLOC_VALIDATE_INVALID_SHAPE, AST_GEOLOC_VALIDATE_INVALID_VALUE, AST_GEOLOC_VALIDATE_INVALID_VARNAME, AST_GEOLOC_VALIDATE_MISSING_SHAPE, AST_GEOLOC_VALIDATE_NOT_ENOUGH_VARNAMES, AST_GEOLOC_VALIDATE_SUCCESS, AST_GEOLOC_VALIDATE_TOO_MANY_VARNAMES, ast_strings_equal(), ast_variable_find_in_list(), geoloc_gml_attr::attribute, gml_shape_defs, ast_variable::next, NULL, geoloc_gml_shape_def::required_attributes, result, and var.
Referenced by validate_location_info().
| 
 | static | 
| struct ast_xml_node * geoloc_gml_list_to_xml | ( | const struct ast_variable * | resolved_location, | 
| const char * | ref_string | ||
| ) | 
Definition at line 238 of file geoloc_gml.c.
References a, ast_begins_with(), ast_free, ast_strdup, 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, RAII_VAR, SCOPE_ENTER, SCOPE_EXIT_LOG_RTN_VALUE, SCOPE_EXIT_RTN_VALUE, strsep(), value, and var.
Referenced by geoloc_eprofile_to_intermediate().
| int geoloc_gml_load | ( | void | ) | 
Definition at line 357 of file geoloc_gml.c.
References ARRAY_LEN, ast_cli_register_multiple, AST_MODULE_LOAD_SUCCESS, and geoloc_gml_cli.
Referenced by load_module().
| int geoloc_gml_reload | ( | void | ) | 
Definition at line 364 of file geoloc_gml.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
| int geoloc_gml_unload | ( | void | ) | 
Definition at line 350 of file geoloc_gml.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), AST_MODULE_LOAD_SUCCESS, and geoloc_gml_cli.
Referenced by unload_module().
| 
 | static | 
Definition at line 193 of file geoloc_gml.c.
References a, ARRAY_LEN, ast_cli(), geoloc_gml_attr::attribute, CLI_GENERATE, CLI_INIT, CLI_SUCCESS, ast_cli_entry::command, gml_shape_defs, geoloc_gml_attr::max_allowed, geoloc_gml_attr::min_required, NULL, geoloc_gml_shape_def::required_attributes, geoloc_gml_shape_def::shape_type, and ast_cli_entry::usage.
| 
 | static | 
Definition at line 86 of file geoloc_gml.c.
References value.
| 
 | static | 
Definition at line 79 of file geoloc_gml.c.
References value.
| 
 | static | 
Definition at line 100 of file geoloc_gml.c.
References ast_strings_equal(), and value.
| 
 | static | 
Definition at line 234 of file geoloc_gml.c.
Referenced by geoloc_gml_load(), and geoloc_gml_unload().
| struct geoloc_gml_attr_def gml_attr_defs[] | 
Definition at line 49 of file geoloc_gml.c.
| 
 | static | 
Definition at line 106 of file geoloc_gml.c.
Referenced by ast_geoloc_gml_validate_varlist(), and handle_gml_show().