29#ifndef _ASTERISK_AUTOCHAN_H
30#define _ASTERISK_AUTOCHAN_H
75#define ast_autochan_channel_lock(autochan) \
77 ast_mutex_lock(&(autochan)->lock); \
78 while (ast_channel_trylock((autochan)->chan)) { \
79 DEADLOCK_AVOIDANCE(&(autochan)->lock); \
81 ast_mutex_unlock(&(autochan)->lock); \
84#define ast_autochan_channel_unlock(autochan) \
85 ast_channel_unlock(autochan->chan)
Asterisk main include file. File version handling, generic pbx functions.
void ast_autochan_new_channel(struct ast_channel *old_chan, struct ast_channel *new_chan)
Switch what channel autochans point to.
struct ast_autochan * ast_autochan_setup(struct ast_channel *chan)
set up a new ast_autochan structure
void ast_autochan_destroy(struct ast_autochan *autochan)
destroy an ast_autochan structure
A set of macros to manage forward-linked lists.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
struct ast_channel * chan
struct ast_autochan::@188 list
Main Channel structure associated with a channel.
Structure for mutex and tracking information.