Thu Apr 8 01:23:55 2010

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 ast_ignorepatignorepats
struct ast_includeincludes
ast_rwlock_t lock
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 207 of file pbx.c.


Field Documentation

struct ast_ignorepat* ignorepats [read]
struct ast_include* includes [read]

A lock to prevent multiple threads from clobbering the context

Definition at line 208 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().

struct ast_context* next [read]

Link them together

Definition at line 212 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 216 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 215 of file pbx.c.

Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_find_or_create(), ast_get_context_registrar(), 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 210 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 8 Apr 2010 for Asterisk - the Open Source PBX by  doxygen 1.6.1