Sun Oct 16 2011 08:43:12

Asterisk developer's documentation


ast_context Struct Reference

ast_context: An extension context More...

Collaboration diagram for ast_context:

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


Field Documentation

struct ast_sw* first

Definition at line 895 of file pbx.c.

struct ast_sw* last

Definition at line 895 of file pbx.c.

A lock to prevent multiple threads from clobbering the context

Definition at line 886 of file pbx.c.

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

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

Definition at line 896 of file pbx.c.

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

struct ast_context* next

Link them together

Definition at line 890 of file pbx.c.

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

int refcount

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

Definition at line 894 of file pbx.c.

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

char* registrar

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

Definition at line 893 of file pbx.c.

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

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

Definition at line 888 of file pbx.c.

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


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