Remove the ABI compatability ast_channel_alloc(). It is no longer needed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
Richard Mudgett 12 years ago
parent e5ad3cdc3a
commit 3232e23ca7

@ -11253,40 +11253,6 @@ int ast_channel_get_cc_agent_type(struct ast_channel *chan, char *agent_type, si
return 0;
}
/* DO NOT PUT ADDITIONAL FUNCTIONS BELOW THIS BOUNDARY
*
* ONLY FUNCTIONS FOR PROVIDING BACKWARDS ABI COMPATIBILITY BELONG HERE
*
*/
/* Provide binary compatibility for modules that call ast_channel_alloc() directly;
* newly compiled modules will call __ast_channel_alloc() via the macros in channel.h
*/
#undef ast_channel_alloc
struct ast_channel __attribute__((format(printf, 10, 11)))
*ast_channel_alloc(int needqueue, int state, const char *cid_num,
const char *cid_name, const char *acctcode,
const char *exten, const char *context,
const char *linkedid, const int amaflag,
const char *name_fmt, ...);
struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_num,
const char *cid_name, const char *acctcode,
const char *exten, const char *context,
const char *linkedid, const int amaflag,
const char *name_fmt, ...)
{
va_list ap;
struct ast_channel *result;
va_start(ap, name_fmt);
result = __ast_channel_alloc_ap(needqueue, state, cid_num, cid_name, acctcode, exten, context,
linkedid, amaflag, __FILE__, __LINE__, __FUNCTION__, name_fmt, ap);
va_end(ap);
return result;
}
void ast_channel_unlink(struct ast_channel *chan)
{
ao2_unlink(channels, chan);

Loading…
Cancel
Save