19#ifndef RES_AEAP_TRANSACTION_H
20#define RES_AEAP_TRANSACTION_H
Asterisk External Application Protocol API.
struct ast_aeap_tsx_params params
Parameters to be used when sending a transaction based message.
void * aeap_transaction_user_obj(struct aeap_transaction *tsx)
Retrieve the user object associated with the transaction.
int aeap_transaction_cancel_timer(struct aeap_transaction *tsx)
Cancel the transaction timer.
int aeap_transaction_result(struct aeap_transaction *tsx)
Get a transaction's result.
struct ao2_container * aeap_transactions_create(void)
Create an Asterisk external application transactions container.
struct aeap_transaction * aeap_transaction_create_and_add(struct ao2_container *transactions, const char *id, struct ast_aeap_tsx_params *params, struct ast_aeap *aeap)
Create a transaction object, and add it to the given container.
void aeap_transaction_end(struct aeap_transaction *tsx, int result)
End a transaction, and remove it from the given container.
struct aeap_transaction * aeap_transaction_get(struct ao2_container *transactions, const char *id)
Retrieve a transaction for the id from the container.
int aeap_transaction_start(struct aeap_transaction *tsx)
Start the transaction.
void aeap_transaction_params_cleanup(struct ast_aeap_tsx_params *params)
Clean up parameter references, and possibly call optional user object cleanup.