Three copies of the file contents in channel_internal.h are a bit excessive.
[asterisk/asterisk.git] / include / asterisk / channel_internal.h
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 #define ast_channel_internal_alloc(destructor) __ast_channel_internal_alloc(destructor, __FILE__, __LINE__, __PRETTY_FUNCTION__)
22 struct ast_channel *__ast_channel_internal_alloc(void (*destructor)(void *obj), const char *file, int line, const char *function);
23 void ast_channel_internal_finalize(struct ast_channel *chan);
24 int ast_channel_internal_is_finalized(struct ast_channel *chan);
25 void ast_channel_internal_cleanup(struct ast_channel *chan);
26