summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-06-29 17:56:29 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-06-29 17:56:29 +0000
commitb5f6eac49e7aabe9315f8c5149acc66b4825a1a4 (patch)
treebf2e779e3f2763882b6893a7092138f4ea181f80 /include/asterisk/channel.h
parentf2a94ef51cbb2352004f454212555524ba57b157 (diff)
Allow trunk to once again compile under MALLOC_DEBUG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 496e477a2..ddd5e9e80 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -940,7 +940,12 @@ struct ast_channel * attribute_malloc __attribute__((format(printf, 13, 14)))
* that can then be populated with data for use in variable
* substitution when a real channel does not exist.
*/
+#if defined(REF_DEBUG) || defined(__AST_DEBUG_MALLOC)
+#define ast_dummy_channel_alloc() __ast_dummy_channel_alloc(__FILE__, __LINE__, __PRETTY_FUNCTION__)
+struct ast_channel *__ast_dummy_channel_alloc(const char *file, int line, const char *function);
+#else
struct ast_channel *ast_dummy_channel_alloc(void);
+#endif
/*!
* \brief Queue one or more frames to a channel's frame queue