Wed Jan 8 2020 09:50:23

Asterisk developer's documentation


ast_state_cb Struct Reference

ast_state_cb: An extension state notify register item More...

Data Fields

ast_state_cb_type change_cb
 
void * data
 
ast_state_cb_destroy_type destroy_cb
 
struct {
   struct ast_state_cb *   next
 
entry
 
int id
 

Detailed Description

ast_state_cb: An extension state notify register item

Definition at line 989 of file pbx.c.

Field Documentation

ast_state_cb_type change_cb

Callback when state changes.

Definition at line 995 of file pbx.c.

Referenced by ast_extension_state_add_destroy(), ast_merge_contexts_and_delete(), destroy_hint(), handle_statechange(), and statecbs_cmp().

void* data

Arbitrary data passed for callbacks.

Definition at line 993 of file pbx.c.

Referenced by ast_extension_state_add_destroy(), ast_merge_contexts_and_delete(), destroy_hint(), destroy_state_cb(), and handle_statechange().

Callback when destroyed so any resources given by the registerer can be freed.

Definition at line 997 of file pbx.c.

Referenced by ast_extension_state_add_destroy(), and destroy_state_cb().

struct { ... } entry
Note
Only used by ast_merge_contexts_and_delete
int id

Watcher ID returned when registered.

Definition at line 991 of file pbx.c.

Referenced by ast_extension_state_add_destroy(), destroy_state_cb(), and hint_id_cmp().

struct ast_state_cb* next

Definition at line 999 of file pbx.c.


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