Thu Jul 9 13:41:38 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 344 of file strings.h.


Field Documentation

size_t len

The current maximum length of the string

Definition at line 345 of file strings.h.

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

char str[0]

The string buffer

Definition at line 351 of file strings.h.

Referenced by __queues_show(), _sip_show_peer(), action_createconfig(), action_userevent(), add_sdp(), ALLOC_COMMENT(), ast_eivr_getvariable(), build_peer(), cli_match_char_tree(), config_curl(), config_text_file_load(), dahdi_new(), destroy_curl(), destroy_pgsql(), dumpchan_exec(), function_realtime_read(), function_realtime_readdestroy(), function_sippeer(), handle_showchan(), httpd_helper_thread(), initreqprep(), load_column_config(), log_match_char_tree(), manager_log(), odbc_log(), pbx_find_extension(), print_uptimestr(), realtime_curl(), realtime_multi_curl(), show_channels_cb(), sip_send_mwi_to_peer(), sqlite3_log(), store_curl(), store_pgsql(), transmit_notify_with_mwi(), transmit_state_notify(), update_curl(), and userevent_exec().

struct ast_threadstorage* ts

What kind of storage is this ?

Definition at line 347 of file strings.h.

size_t used

Amount of space used

Definition at line 346 of file strings.h.

Referenced by add_sdp(), ALLOC_COMMENT(), build_peer(), CB_RESET(), config_text_file_load(), load_column_config(), load_config(), 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 Thu Jul 9 13:41:38 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7