Mon Mar 19 11:30:58 2012

Asterisk developer's documentation


ast_variable Struct Reference

Structure for variables, used for configurations and for channel variables. More...

#include <config.h>


Data Fields

int blanklines
const char * file
int lineno
const char * name
ast_variablenext
int object
ast_commentprecomments
ast_commentsameline
char stuff [0]
 Contents of file, name, and value in that order stuffed here.
ast_commenttrailing
const char * value


Detailed Description

Structure for variables, used for configurations and for channel variables.

Definition at line 75 of file config.h.


Field Documentation

int blanklines

Number of blanklines following entry

Definition at line 89 of file config.h.

Referenced by ast_variable_move(), process_text_line(), and variable_clone().

const char* file

Filename where variable found. Stored in stuff[] at struct end.

Definition at line 85 of file config.h.

Referenced by ast_include_rename(), ast_variable_update(), check_access(), dup_vars(), iax_parse_ies(), pbx_load_config(), and variable_clone().

int lineno

Definition at line 87 of file config.h.

Referenced by ast_variable_move(), build_device(), build_peer(), build_user(), config_parse_variables(), handle_common_options(), handle_t38_options(), iax_template_parse(), load_config(), pbx_load_config(), process_dahdi(), process_text_line(), reload_config(), reload_queue_rules(), set_config(), setup_dahdi_int(), smdi_load(), update_common_options(), and variable_clone().

const char* name

Variable name. Stored in stuff[] at struct end.

Definition at line 77 of file config.h.

Referenced by __ast_http_load(), __ast_http_post_load(), _build_general_config(), _build_port_config(), _sip_show_peer(), action_getconfig(), action_getconfigjson(), adsi_load(), ast_cli_perms_init(), ast_config_text_file_save(), ast_http_get_cookies(), ast_http_get_post_vars(), ast_http_manid_from_vars(), ast_iax2_new(), ast_include_rename(), ast_readconfig(), ast_set_variables(), ast_var_channel_types_table(), ast_variable_delete(), ast_variable_retrieve(), ast_variable_update(), auth_http_callback(), build_alias(), build_calendar(), build_callno_limits(), build_device(), build_peer(), build_profile(), build_user(), caldav_load_calendar(), check_access(), check_tx_freq(), collect_function_digits(), config_parse_variables(), convert_attribute_name_from_ldap(), copy_plain_file(), dahdi_new(), dahdi_show_channel(), do_say(), do_scheduler(), dup_vars(), ewscal_load_calendar(), exchangecal_load_calendar(), find_queue_by_name_rt(), find_realtime(), find_realtime_gw(), function_sippeer(), generic_http_callback(), get_name_from_variable(), handle_cli_dialplan_save(), handle_common_options(), handle_mgcp_show_endpoints(), handle_t38_options(), httpstatus_callback(), iax_parse_ies(), iax_template_parse(), ical_load_calendar(), load_config(), load_module(), load_modules(), load_odbc_config(), load_pktccops_config(), load_rpt_vars(), local_ast_moh_start(), mgcp_new(), node_lookup(), parse_tone_zone(), pbx_load_config(), process_dahdi(), read_agent_config(), read_config_maps(), realtime_alias(), realtime_exec(), realtime_ldap_base_ap(), realtime_peer(), realtime_peer_by_name(), realtime_user(), reload(), reload_config(), reload_queue_rules(), run_startup_commands(), search_directory_sub(), set_config(), setup_dahdi_int(), sip_new(), sip_show_user(), skinny_new(), smdi_load(), static_callback(), store_config(), update_common_options(), variable_clone(), and xml_translate().

struct ast_variable* next

Next node in the list.

Definition at line 82 of file config.h.

Referenced by __ast_http_load(), __ast_http_post_load(), _build_general_config(), _build_port_config(), _sip_show_peer(), action_getconfig(), action_getconfigjson(), add_var(), adsi_load(), ast_cli_perms_init(), ast_config_text_file_save(), ast_http_get_cookies(), ast_http_get_post_vars(), ast_http_manid_from_vars(), ast_iax2_new(), ast_include_rename(), ast_load_realtime(), ast_readconfig(), ast_set_variables(), ast_var_channel_types(), ast_var_channel_types_table(), ast_variable_append(), ast_variable_delete(), ast_variable_insert(), ast_variable_retrieve(), ast_variable_update(), ast_variables_destroy(), ast_variables_dup(), auth_http_callback(), build_alias(), build_calendar(), build_callno_limits(), build_device(), build_peer(), build_profile(), build_user(), caldav_load_calendar(), check_access(), check_tx_freq(), collect_function_digits(), config_parse_variables(), copy_plain_file(), copy_vars(), create_vmaccount(), dahdi_new(), dahdi_show_channel(), do_say(), do_scheduler(), dup_vars(), ewscal_load_calendar(), exchangecal_load_calendar(), find_queue_by_name_rt(), find_realtime(), find_realtime_gw(), function_realtime_read(), function_realtime_readdestroy(), function_sippeer(), generic_http_callback(), get_name_from_variable(), handle_cli_dialplan_save(), handle_mgcp_show_endpoints(), httpd_helper_thread(), httpstatus_callback(), iax_parse_ies(), iax_template_parse(), ical_load_calendar(), load_config(), load_module(), load_modules(), load_odbc_config(), load_pktccops_config(), load_rpt_vars(), local_ast_moh_start(), mgcp_new(), node_lookup(), parse_tone_zone(), pbx_load_config(), process_dahdi(), read_agent_config(), read_config_maps(), realtime_alias(), realtime_exec(), realtime_ldap(), realtime_ldap_base_ap(), realtime_ldap_entry_to_var(), realtime_ldap_result_to_vars(), realtime_multi_ldap(), realtime_peer(), realtime_peer_by_name(), realtime_pgsql(), realtime_user(), reload(), reload_config(), reload_queue_rules(), run_startup_commands(), search_directory_sub(), set_config(), setup_dahdi_int(), sip_new(), sip_show_user(), skinny_new(), smdi_load(), static_callback(), store_config(), and xml_translate().

int object

0 for variable, 1 for object

Definition at line 88 of file config.h.

Referenced by ast_variable_move(), handle_updates(), process_text_line(), and variable_clone().

struct ast_comment* precomments

Definition at line 90 of file config.h.

Referenced by ast_variable_destroy(), ast_variable_move(), and process_text_line().

struct ast_comment* sameline

Definition at line 91 of file config.h.

Referenced by ast_variable_destroy(), ast_variable_move(), and process_text_line().

char stuff[0]

Contents of file, name, and value in that order stuffed here.

Note:
File must be stuffed before name because of ast_include_rename().

Definition at line 97 of file config.h.

struct ast_comment* trailing

the last object in the list will get assigned any trailing comments when EOF is hit

Definition at line 92 of file config.h.

Referenced by ast_variable_destroy(), ast_variable_move(), and config_text_file_load().

const char* value

Variable value. Stored in stuff[] at struct end.

Definition at line 79 of file config.h.

Referenced by __ast_http_load(), __ast_http_post_load(), _build_general_config(), _build_port_config(), _sip_show_peer(), action_getconfig(), action_getconfigjson(), adsi_load(), ast_cli_perms_init(), ast_config_text_file_save(), ast_http_get_cookies(), ast_http_get_post_vars(), ast_http_manid_from_vars(), ast_iax2_new(), ast_include_rename(), ast_load_realtime(), ast_readconfig(), ast_set_variables(), ast_variable_delete(), ast_variable_retrieve(), ast_variable_update(), build_alias(), build_calendar(), build_callno_limits(), build_device(), build_peer(), build_profile(), build_user(), caldav_load_calendar(), check_access(), check_tx_freq(), collect_function_digits(), config_ldap(), config_parse_variables(), convert_attribute_name_to_ldap(), copy_plain_file(), dahdi_new(), dahdi_show_channel(), do_say(), do_scheduler(), dup_vars(), ewscal_load_calendar(), exchangecal_load_calendar(), find_queue_by_name_rt(), find_realtime(), find_realtime_gw(), function_sippeer(), generic_http_callback(), get_name_from_variable(), handle_cli_dialplan_save(), handle_common_options(), handle_mgcp_show_endpoints(), handle_t38_options(), httpstatus_callback(), iax_parse_ies(), iax_template_parse(), ical_load_calendar(), load_config(), load_module(), load_modules(), load_odbc_config(), load_pktccops_config(), load_rpt_vars(), local_ast_moh_start(), mgcp_new(), parse_tone_zone(), pbx_load_config(), process_dahdi(), read_agent_config(), read_config_maps(), realtime_alias(), realtime_exec(), realtime_ldap_base_ap(), realtime_ldap_result_to_vars(), realtime_peer(), realtime_peer_by_name(), realtime_user(), reload(), reload_config(), reload_queue_rules(), run_startup_commands(), search_directory_sub(), semicolon_count_var(), set_config(), setup_dahdi_int(), sip_new(), sip_show_user(), skinny_new(), smdi_load(), static_callback(), store_config(), update_common_options(), variable_clone(), and xml_translate().


The documentation for this struct was generated from the following file:
Generated on Mon Mar 19 11:30:58 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7