Asterisk - The Open Source Telephony Project  18.5.0
channel_internal.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 1999 - 2012, Digium, Inc.
5  *
6  * See http://www.asterisk.org for more information about
7  * the Asterisk project. Please do not directly contact
8  * any of the maintainers of this project for assistance;
9  * the project provides a web site, mailing lists and IRC
10  * channels for your use.
11  *
12  * This program is free software, distributed under the terms of
13  * the GNU General Public License Version 2. See the LICENSE file
14  * at the top of the source tree.
15  */
16 
17 /*! \file
18  * \brief Internal channel functions for channel.c to use
19  */
20 
21 #ifndef ASTERISK_CHANNEL_INTERNAL_H
22 #define ASTERISK_CHANNEL_INTERNAL_H
23 
24 #define ast_channel_internal_alloc(destructor, assignedid, requestor) __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__)
25 struct ast_channel *__ast_channel_internal_alloc(void (*destructor)(void *obj), const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *file, int line, const char *function);
28 void ast_channel_internal_cleanup(struct ast_channel *chan);
30 
34  struct ast_stream_topology *topology);
36  struct ast_channel *chan, void *change_source);
38  struct ast_channel *chan2);
39 
40 #endif /* ASTERISK_CHANNEL_INTERNAL_H */
Main Channel structure associated with a channel.
void ast_channel_internal_set_stream_topology_change_source(struct ast_channel *chan, void *change_source)
Structure to pass both assignedid values to channel drivers.
Definition: channel.h:605
void ast_channel_internal_errno_set(enum ast_channel_error error)
void ast_channel_internal_swap_stream_topology(struct ast_channel *chan1, struct ast_channel *chan2)
void ast_channel_internal_cleanup(struct ast_channel *chan)
ast_channel_error
Definition: channel.h:5020
enum ast_channel_error ast_channel_internal_errno(void)
int ast_channel_internal_is_finalized(struct ast_channel *chan)
int error(const char *format,...)
Definition: utils/frame.c:999
struct ast_channel * __ast_channel_internal_alloc(void(*destructor)(void *obj), const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *file, int line, const char *function)
int ast_channel_internal_setup_topics(struct ast_channel *chan)
void ast_channel_internal_finalize(struct ast_channel *chan)
void ast_channel_internal_set_stream_topology(struct ast_channel *chan, struct ast_stream_topology *topology)