Asterisk - The Open Source Telephony Project GIT-master-35be64c
Loading...
Searching...
No Matches
Data Fields
test_watcher Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ destroyed

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().

◆ exten

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().

◆ id

int id

◆ last_state

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().


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