• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[svn-commits] russell: trunk r198434 - in /trunk: include/as

 
   AsteriskGuru Archives Forum Index -> Asterisk-CVS
View previous topic :: View next topic  
Author Message
svn-commits at lists.digi
Guest





PostPosted: Sun May 31, 2009 12:23 am    Post subject: [svn-commits] russell: trunk r198434 - in /trunk: include/as

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);
}


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-CVS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™