|
Asterisk - The Open Source Telephony Project GIT-master-35be64c
|
Tracking for a single extension state callback. More...
Data Fields | |
| int | destroyed |
| char | exten [AST_MAX_EXTENSION] |
| int | id |
| enum ast_extension_states | last_state |
Tracking for a single extension state callback.
While a callback is registered it holds its own reference to the watcher, which is released only by the destroy callback. This keeps the watcher valid for as long as the callback can use it, even if the test gives up waiting and returns.
Definition at line 64 of file test_extension_state.c.
| int destroyed |
Number of times the destroy callback was invoked
Definition at line 70 of file test_extension_state.c.
Referenced by AST_TEST_DEFINE(), state_destroyed(), test_watcher_add(), and test_watcher_remove().
| char exten[AST_MAX_EXTENSION] |
The spelling of the extension this watcher subscribed to
Definition at line 72 of file test_extension_state.c.
Referenced by dash_spelling_check(), test_watcher_add(), test_watcher_alloc(), and test_watcher_remove().
| int id |
The ID returned when adding the callback
Definition at line 66 of file test_extension_state.c.
Referenced by Section::__cmp__(), Section::__eq__(), Section::__ge__(), Section::__gt__(), Section::__le__(), Section::__lt__(), test_watcher_add(), test_watcher_alloc(), and test_watcher_remove().
| enum ast_extension_states last_state |
The last extension state received
Definition at line 68 of file test_extension_state.c.
Referenced by state_changed(), test_watcher_alloc(), and test_watcher_wait_for_state().