[asterisk-commits] russell: trunk r198434 - in /trunk: include/asterisk/channel.h main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 30 20:19:38 CDT 2009


Author: russell
Date: Sat May 30 20:19:30 2009
New Revision: 198434

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198434
Log:
Constify the ast_frame arg to ast_queue_frame().

Modified:
    trunk/include/asterisk/channel.h
    trunk/main/channel.c

Modified: trunk/include/asterisk/channel.h
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=198434&r1=198433&r2=198434
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Sat May 30 20:19:30 2009
@@ -929,7 +929,7 @@
  *
  * \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 @@
  * \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

Modified: trunk/main/channel.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/channel.c?view=diff&rev=198434&r1=198433&r2=198434
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Sat May 30 20:19:30 2009
@@ -1017,7 +1017,7 @@
 }
 
 /*! \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 @@
 	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);
 }




More information about the asterisk-commits mailing list