Wed Oct 28 11:46:38 2009

Asterisk developer's documentation


ast_context Struct Reference

ast_context: An extension context More...

Collaboration diagram for ast_context:

Collaboration graph
[legend]

Data Fields

struct {
   struct ast_sw *   first
   struct ast_sw *   last
alts
struct ast_ignorepatignorepats
struct ast_includeincludes
ast_rwlock_t lock
ast_mutex_t macrolock
char name [0]
struct ast_contextnext
struct match_charpattern_tree
int refcount
char * registrar
struct ast_extenroot
struct ast_hashtabroot_table

Detailed Description

ast_context: An extension context

Definition at line 205 of file pbx.c.


Field Documentation

struct { ... } alts

struct ast_sw* first [read]

Definition at line 215 of file pbx.c.

struct ast_ignorepat* ignorepats [read]

struct ast_include* includes [read]

struct ast_sw* last [read]

Definition at line 215 of file pbx.c.

A lock to prevent multiple threads from clobbering the context

Definition at line 206 of file pbx.c.

Referenced by __ast_internal_context_destroy(), ast_context_find_or_create(), ast_rdlock_context(), ast_unlock_context(), and ast_wrlock_context().

A lock to implement "exclusive" macros - held whilst a call is executing in the macro

Definition at line 216 of file pbx.c.

Referenced by ast_context_find_or_create(), ast_context_lockmacro(), and ast_context_unlockmacro().

char name[0]

struct ast_context* next [read]

Link them together

Definition at line 210 of file pbx.c.

Referenced by __ast_context_destroy(), ast_context_find_or_create(), ast_merge_contexts_and_delete(), and ast_walk_contexts().

struct match_char* pattern_tree [read]

int refcount

each module that would have created this context should inc/dec this as appropriate

Definition at line 214 of file pbx.c.

Referenced by __ast_context_destroy(), ast_context_find_or_create(), and context_merge().

char* registrar

Registrar -- make sure you malloc this, as the registrar may have to survive module unloads

Definition at line 213 of file pbx.c.

Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_find_or_create(), ast_get_context_registrar(), ast_merge_contexts_and_delete(), and context_merge().

struct ast_exten* root [read]

struct ast_hashtab* root_table [read]

For exact matches on the extensions in the pattern tree, and for traversals of the pattern_tree

Definition at line 208 of file pbx.c.

Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), add_pri_lockopt(), ast_add_extension2_lockopt(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), context_merge(), create_match_char_tree(), and pbx_find_extension().


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

Generated on Wed Oct 28 11:46:38 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6