From: Russell Bryant Date: Sun, 31 May 2009 01:19:30 +0000 (+0000) Subject: Constify the ast_frame arg to ast_queue_frame(). X-Git-Tag: 11.0.0-beta1~4760 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8580871fd4a2b8730c9576fb51857affb6d876d1;p=thirdparty%2Fasterisk.git Constify the ast_frame arg to ast_queue_frame(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198434 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index a3f979b81a..193d0ff34a 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -929,7 +929,7 @@ struct ast_channel * attribute_malloc __attribute__((format(printf, 12, 13))) * * \note The channel does not need to be locked before calling this function. */ -int ast_queue_frame(struct ast_channel *chan, struct ast_frame *f); +int ast_queue_frame(struct ast_channel *chan, const struct ast_frame *f); /*! * \brief Queue an outgoing frame to the head of the frame queue @@ -943,7 +943,7 @@ int ast_queue_frame(struct ast_channel *chan, struct ast_frame *f); * \retval 0 success * \retval non-zero failure */ -int ast_queue_frame_head(struct ast_channel *chan, struct ast_frame *f); +int ast_queue_frame_head(struct ast_channel *chan, const struct ast_frame *f); /*! * \brief Queue a hangup frame diff --git a/main/channel.c b/main/channel.c index a87e6dcd97..bd997def62 100644 --- a/main/channel.c +++ b/main/channel.c @@ -1017,7 +1017,7 @@ struct ast_channel *__ast_channel_alloc(int needqueue, int state, const char *ci } /*! \brief Queue an outgoing media frame */ -static int __ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, int head) +static int __ast_queue_frame(struct ast_channel *chan, const struct ast_frame *fin, int head) { struct ast_frame *f; struct ast_frame *cur; @@ -1078,12 +1078,12 @@ static int __ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, in return 0; } -int ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin) +int ast_queue_frame(struct ast_channel *chan, const struct ast_frame *fin) { return __ast_queue_frame(chan, fin, 0); } -int ast_queue_frame_head(struct ast_channel *chan, struct ast_frame *fin) +int ast_queue_frame_head(struct ast_channel *chan, const struct ast_frame *fin) { return __ast_queue_frame(chan, fin, 1); }