Codename Pineapple

Home page | Mailing list | Docs

Last updated: Sat Feb 3 05:02:00 2007

Asterisk developer's documentation :: Codename Pineapple


ast_str Struct Reference

#include <strings.h>

Collaboration diagram for ast_str:

Collaboration graph
[legend]

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 312 of file strings.h.

Data Fields

size_t len
char str [0]
ast_threadstoragets
size_t used


Field Documentation

size_t len
 

The current maximum length of the string

Definition at line 313 of file strings.h.

char str[0]
 

The string buffer

Definition at line 319 of file strings.h.

Referenced by __manager_event(), ast_cli(), ast_log(), ast_verbose(), astman_append(), handle_showchan(), httpd_helper_thread(), print_uptimestr(), and static_callback().

struct ast_threadstorage* ts
 

What kind of storage is this ?

Definition at line 315 of file strings.h.

size_t used
 

Amount of space used

Definition at line 314 of file strings.h.

Referenced by print_uptimestr(), and static_callback().


The documentation for this struct was generated from the following file:

Asterisk is a trademark for Digium, inc.. | Edvina.net | Asterisk.org | This documentation was generated with Doxygen