[asterisk-commits] mmichelson: branch group/CCSS r231734 - in /team/group/CCSS: include/asterisk...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 30 16:47:01 CST 2009


Author: mmichelson
Date: Mon Nov 30 16:47:00 2009
New Revision: 231734

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=231734
Log:
Change function signature of ast_cc_agent_callback to return an ast_cc_agent
pointer instead of a void pointer.


Modified:
    team/group/CCSS/include/asterisk/ccss.h
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/include/asterisk/ccss.h
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/include/asterisk/ccss.h?view=diff&rev=231734&r1=231733&r2=231734
==============================================================================
--- team/group/CCSS/include/asterisk/ccss.h (original)
+++ team/group/CCSS/include/asterisk/ccss.h Mon Nov 30 16:47:00 2009
@@ -877,7 +877,7 @@
  * \param arg the argument to the callback function
  * \param type The type of agents to call the callback on
  */
-void *ast_cc_agent_callback(int flags, ao2_callback_fn function, void *arg, const char * const type);
+struct ast_cc_agent *ast_cc_agent_callback(int flags, ao2_callback_fn function, void *arg, const char * const type);
 
 /* END STRUCTURES FOR AGENTS */
 

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=231734&r1=231733&r2=231734
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Nov 30 16:47:00 2009
@@ -261,7 +261,7 @@
 	return helper->function(core_instance->agent, helper->args, flags);
 }
 
-void *ast_cc_agent_callback(int flags, ao2_callback_fn function, void *args, const char * const type)
+struct ast_cc_agent *ast_cc_agent_callback(int flags, ao2_callback_fn function, void *args, const char * const type)
 {
 	struct cc_callback_helper helper = {.function = function, .args = args, .type = type};
 	return ao2_callback(cc_core_instances, flags, cc_agent_callback_helper, &helper);




More information about the asterisk-commits mailing list