| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Dialplan switch routines. More...
#include "asterisk.h"#include "asterisk/_private.h"#include "asterisk/pbx.h"#include "pbx_private.h"
Go to the source code of this file.
| Data Structures | |
| struct | ast_sw | 
| ast_sw: Switch statement in extensions.conf  More... | |
| Functions | |
| const char * | ast_get_switch_data (const struct ast_sw *sw) | 
| int | ast_get_switch_eval (const struct ast_sw *sw) | 
| const char * | ast_get_switch_name (const struct ast_sw *sw) | 
| const char * | ast_get_switch_registrar (const struct ast_sw *sw) | 
| struct ast_sw * | sw_alloc (const char *value, const char *data, int eval, const char *registrar) | 
| void | sw_free (struct ast_sw *sw) | 
Dialplan switch routines.
Definition in file pbx_sw.c.
| const char * ast_get_switch_data | ( | const struct ast_sw * | sw | ) | 
Definition at line 53 of file pbx_sw.c.
References ast_sw::data, and NULL.
Referenced by ast_context_add_switch2(), ast_context_remove_switch2(), context_merge_incls_swits_igps_other_registrars(), handle_cli_dialplan_save(), manager_show_dialplan_helper(), pbx_find_extension(), and show_dialplan_helper().
| int ast_get_switch_eval | ( | const struct ast_sw * | sw | ) | 
Definition at line 58 of file pbx_sw.c.
References ast_sw::eval.
Referenced by context_merge_incls_swits_igps_other_registrars(), and pbx_find_extension().
| const char * ast_get_switch_name | ( | const struct ast_sw * | sw | ) | 
Definition at line 48 of file pbx_sw.c.
References ast_sw::name, and NULL.
Referenced by ast_context_add_switch2(), ast_context_remove_switch2(), context_merge_incls_swits_igps_other_registrars(), handle_cli_dialplan_save(), manager_show_dialplan_helper(), pbx_find_extension(), and show_dialplan_helper().
| const char * ast_get_switch_registrar | ( | const struct ast_sw * | sw | ) | 
Definition at line 63 of file pbx_sw.c.
References NULL, and ast_sw::registrar.
Referenced by __ast_context_destroy(), ast_context_remove_switch2(), context_merge_incls_swits_igps_other_registrars(), handle_cli_dialplan_save(), manager_show_dialplan_helper(), and show_dialplan_helper().
| struct ast_sw * sw_alloc | ( | const char * | value, | 
| const char * | data, | ||
| int | eval, | ||
| const char * | registrar | ||
| ) | 
Definition at line 68 of file pbx_sw.c.
References ast_calloc, ast_sw::data, ast_sw::eval, ast_sw::name, NULL, ast_sw::registrar, registrar, ast_sw::stuff, and value.
Referenced by ast_context_add_switch2().
| void sw_free | ( | struct ast_sw * | sw | ) | 
Definition at line 101 of file pbx_sw.c.
References ast_free.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_switch2(), and ast_context_remove_switch2().