119 .
type =
"stasis-command-prestart-queue",
137 command_queue = datastore->
data;
143 if (!command_queue) {
154 datastore->
data = command_queue;
Asterisk main include file. File version handling, generic pbx functions.
#define ao2_link(container, obj)
Add an object to a container.
@ AO2_ALLOC_OPT_LOCK_MUTEX
#define ao2_bump(obj)
Bump refcount on an AO2 object by one, returning the object.
#define ao2_container_alloc_list(ao2_options, container_options, sort_fn, cmp_fn)
Allocate and initialize a list container.
#define ao2_alloc(data_size, destructor_fn)
int ast_channel_datastore_add(struct ast_channel *chan, struct ast_datastore *datastore)
Add a datastore to a channel.
struct ast_datastore * ast_channel_datastore_find(struct ast_channel *chan, const struct ast_datastore_info *info, const char *uid)
Find a datastore on a channel.
struct ao2_container * command_prestart_get_container(struct ast_channel *chan)
Get the Stasis() prestart commands for a channel.
struct stasis_app_command * command_create(stasis_app_command_cb callback, void *data, command_data_destructor_fn data_destructor)
void command_invoke(struct stasis_app_command *command, struct stasis_app_control *control, struct ast_channel *chan)
static void command_dtor(void *obj)
int command_prestart_queue_command(struct ast_channel *chan, stasis_app_command_cb command_fn, void *data, command_data_destructor_fn data_destructor)
Queue a Stasis() prestart command for a channel.
static void command_queue_prestart_destroy(void *obj)
void command_complete(struct stasis_app_command *command, int retval)
int command_join(struct stasis_app_command *command)
static const struct ast_datastore_info command_queue_prestart
Internal API for the Stasis application commands.
#define ast_datastore_alloc(info, uid)
Asterisk locking-related definitions:
#define ast_cond_destroy(cond)
#define ast_cond_wait(cond, mutex)
#define ast_cond_init(cond, attr)
#define ast_mutex_init(pmutex)
#define ast_mutex_unlock(a)
pthread_cond_t ast_cond_t
#define ast_mutex_destroy(a)
#define ast_mutex_lock(a)
#define ast_cond_signal(cond)
Backend API for implementing components of res_stasis.
void(* command_data_destructor_fn)(void *data)
Typedef for data destructor for stasis app commands.
int(* stasis_app_command_cb)(struct stasis_app_control *control, struct ast_channel *chan, void *data)
Main Channel structure associated with a channel.
Structure for a data store type.
Structure for a data store object.
Structure for mutex and tracking information.
stasis_app_command_cb callback
command_data_destructor_fn data_destructor
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.