Asterisk - The Open Source Telephony Project GIT-master-3dae2cf
|
Channel Variables. More...
#include "asterisk/linkedlists.h"
Go to the source code of this file.
Data Structures | |
struct | ast_var_t |
struct | varshead |
Macros | |
#define | ast_var_assign(name, value) _ast_var_assign(name, value, __FILE__, __LINE__, __PRETTY_FUNCTION__) |
#define | AST_VAR_LIST_TRAVERSE(head, var) AST_LIST_TRAVERSE(head, var, entries) |
Functions | |
struct ast_var_t * | _ast_var_assign (const char *name, const char *value, const char *file, int lineno, const char *function) |
void | ast_var_delete (struct ast_var_t *var) |
char * | ast_var_find (const struct varshead *head, const char *name) |
const char * | ast_var_full_name (const struct ast_var_t *var) |
struct varshead * | ast_var_list_clone (struct varshead *head) |
struct varshead * | ast_var_list_create (void) |
void | ast_var_list_destroy (struct varshead *head) |
static void | AST_VAR_LIST_INSERT_HEAD (struct varshead *head, struct ast_var_t *var) |
static void | AST_VAR_LIST_INSERT_TAIL (struct varshead *head, struct ast_var_t *var) |
const char * | ast_var_name (const struct ast_var_t *var) |
const char * | ast_var_value (const struct ast_var_t *var) |
Channel Variables.
Definition in file chanvars.h.
#define ast_var_assign | ( | name, | |
value | |||
) | _ast_var_assign(name, value, __FILE__, __LINE__, __PRETTY_FUNCTION__) |
Definition at line 40 of file chanvars.h.
#define AST_VAR_LIST_TRAVERSE | ( | head, | |
var | |||
) | AST_LIST_TRAVERSE(head, var, entries) |
Definition at line 49 of file chanvars.h.
struct ast_var_t * _ast_var_assign | ( | const char * | name, |
const char * | value, | ||
const char * | file, | ||
int | lineno, | ||
const char * | function | ||
) |
Definition at line 36 of file chanvars.c.
References __ast_calloc(), ast_copy_string(), make_ari_stubs::file, name, NULL, value, and var.
static void ast_var_delete | ( | struct ast_var_t * | var | ) |
Definition at line 2471 of file extconf.c.
References ast_free, free(), and var.
Referenced by acf_iaxvar_write(), ast_cdr_reset(), ast_channel_destructor(), ast_dummy_channel_destructor(), ast_var_list_destroy(), cdr_object_dtor(), chan_cleanup(), do_say(), dundi_lookup_local(), free_variables(), gosub_release_frame(), loopback_subst(), pbx_builtin_clear_globals(), pbx_builtin_setvar_helper(), phoneprov_callback(), profile_destructor(), set_variable(), shared_variable_free(), shared_write(), and varshead_dtor().
char * ast_var_find | ( | const struct varshead * | head, |
const char * | name | ||
) |
Definition at line 85 of file chanvars.c.
References AST_LIST_TRAVERSE, ast_var_t::entries, name, NULL, and var.
Referenced by add_user_extension(), ast_phoneprov_add_extension(), build_extension(), load_users(), phoneprov_callback(), phoneprov_destroy(), and users_apply_handler().
const char * ast_var_full_name | ( | const struct ast_var_t * | var | ) |
Definition at line 75 of file chanvars.c.
Referenced by ast_channel_inherit_variables(), ast_unreal_call_setup(), and inherit_channel_vars_from_id().
Definition at line 124 of file chanvars.c.
References ast_var_assign, ast_var_list_create(), ast_var_list_destroy(), AST_VAR_LIST_INSERT_TAIL(), AST_VAR_LIST_TRAVERSE, NULL, and var.
Referenced by build_extension().
struct varshead * ast_var_list_create | ( | void | ) |
Definition at line 97 of file chanvars.c.
References ast_calloc, AST_LIST_HEAD_INIT_NOLOCK, and NULL.
Referenced by ast_var_list_clone(), build_profile(), geoloc_eprofile_resolve_varlist(), get_defaults(), handle_aor(), handle_registrations(), load_users(), and phoneprov_alloc().
void ast_var_list_destroy | ( | struct varshead * | head | ) |
Definition at line 109 of file chanvars.c.
References ast_free, AST_LIST_REMOVE_HEAD, ast_var_delete(), ast_var_t::entries, and var.
Referenced by ast_var_list_clone(), delete_extension(), geoloc_eprofile_resolve_varlist(), get_defaults(), handle_aor(), handle_registrations(), load_users(), and phoneprov_destroy().
|
inlinestatic |
Definition at line 57 of file chanvars.h.
References AST_LIST_INSERT_HEAD, and var.
|
inlinestatic |
Definition at line 51 of file chanvars.h.
References AST_LIST_INSERT_TAIL, and var.
Referenced by add_user_extension(), assign_and_insert(), ast_var_list_clone(), build_extension(), build_profile(), geoloc_eprofile_resolve_varlist(), get_defaults(), handle_aor(), handle_registrations(), load_users(), phoneprov_callback(), and set_timezone_variables().
const char * ast_var_name | ( | const struct ast_var_t * | var | ) |
Definition at line 60 of file chanvars.c.
References name, NULL, and var.
Referenced by ast_cdr_serialize_variables(), ast_channel_get_vars(), ast_str_retrieve_variable(), cdr_format_var_internal(), cdr_object_create_public_records(), cdr_object_format_var_internal(), clearvar_prefix(), copy_variables(), frame_set_var(), generate_status(), get_key(), gosub_release_frame(), handle_show_chanvar(), handle_show_globals(), handle_showchan(), iax2_call(), iax2_dup_variable_datastore(), local_read(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), phoneprov_callback(), set_variable(), shared_read(), and shared_write().
const char * ast_var_value | ( | const struct ast_var_t * | var | ) |
Definition at line 80 of file chanvars.c.
Referenced by ast_cdr_serialize_variables(), ast_channel_get_vars(), ast_channel_inherit_variables(), ast_str_retrieve_variable(), ast_unreal_call_setup(), cdr_format_var_internal(), cdr_object_create_public_records(), cdr_object_format_var_internal(), copy_variables(), generate_status(), handle_show_chanvar(), handle_show_globals(), handle_showchan(), iax2_call(), iax2_dup_variable_datastore(), inherit_channel_vars_from_id(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), and shared_read().