Fri Jul 24 00:42:05 2009

Asterisk developer's documentation


ast_str Struct Reference

The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field to indicate the type of storage. Three special constants indicate malloc, alloca() or static variables, all other values indicate a struct ast_threadstorage pointer. More...

#include <strings.h>


Data Fields

size_t len
char str [0]
ast_threadstoragets
size_t used


Detailed Description

The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field to indicate the type of storage. Three special constants indicate malloc, alloca() or static variables, all other values indicate a struct ast_threadstorage pointer.

Definition at line 340 of file strings.h.


Field Documentation

size_t len

The current maximum length of the string

Definition at line 341 of file strings.h.

Referenced by acf_odbc_read(), add_sdp(), cli_prompt(), load_config(), and pbx_find_extension().

char str[0]

The string buffer

Definition at line 347 of file strings.h.

Referenced by __queues_show(), __sip_pretend_ack(), __sip_reliable_xmit(), __sip_semi_ack(), __sip_xmit(), _sip_show_peer(), acf_odbc_read(), action_createconfig(), action_userevent(), add_sdp(), ALLOC_COMMENT(), ast_eivr_getvariable(), build_peer(), cdr_handler(), chanavail_exec(), cli_match_char_tree(), cli_prompt(), config_curl(), config_text_file_load(), copy_request(), dahdi_new(), destroy_curl(), destroy_pgsql(), determine_firstline_parts(), dumpchan_exec(), eivr_comm(), find_table(), function_realtime_read(), function_realtime_readdestroy(), function_sippeer(), handle_request_do(), handle_show_chanvar(), handle_showchan(), httpd_helper_thread(), initreqprep(), load_column_config(), log_match_char_tree(), manager_log(), meetme_cmd(), odbc_log(), parse_request(), pbx_find_extension(), print_uptimestr(), process_sdp(), realtime_curl(), realtime_multi_curl(), require_curl(), require_pgsql(), retrans_pkt(), run_station(), send_eivr_event(), send_request(), send_response(), show_channels_cb(), sip_send_mwi_to_peer(), sip_show_sched(), sqlite3_log(), store_curl(), store_pgsql(), transmit_notify_with_mwi(), transmit_state_notify(), update_curl(), update_pgsql(), and userevent_exec().

struct ast_threadstorage* ts

What kind of storage is this ?

Definition at line 343 of file strings.h.

size_t used

Amount of space used

Definition at line 342 of file strings.h.

Referenced by add_blank(), add_header(), add_line(), add_sdp(), ALLOC_COMMENT(), build_peer(), CB_RESET(), cdr_handler(), chanavail_exec(), cli_prompt(), config_text_file_load(), copy_request(), load_column_config(), load_config(), manager_log(), odbc_log(), print_uptimestr(), sqlite3_log(), transmit_notify_with_mwi(), and transmit_state_notify().


The documentation for this struct was generated from the following file:
Generated on Fri Jul 24 00:42:05 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7