diff include/freeDiameter/libfdcore.h @ 1216:581bbd48524a

Change prototype of rt_out callbacks to allow disposal of messages
author Sebastien Decugis <sdecugis@freediameter.net>
date Wed, 19 Jun 2013 16:03:24 +0200
parents 90d1222a65a8
children cec3e9b579e1
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h	Wed Jun 19 10:20:47 2013 +0800
+++ b/include/freeDiameter/libfdcore.h	Wed Jun 19 16:03:24 2013 +0200
@@ -762,13 +762,13 @@
  *  EINVAL 	: A parameter is invalid.
  *  ENOMEM	: Not enough memory to complete the operation
  */
-int fd_rt_out_register ( int (*rt_out_cb)(void * cbdata, struct msg * msg, struct fd_list * candidates), void * cbdata, int priority, struct fd_rt_out_hdl ** handler );
+int fd_rt_out_register ( int (*rt_out_cb)(void * cbdata, struct msg ** pmsg, struct fd_list * candidates), void * cbdata, int priority, struct fd_rt_out_hdl ** handler );
 /*
  * CALLBACK:	rt_out_cb
  *
  * PARAMETERS:
  *  cbdata	: pointer to some data that was registered with the callback.
- *  msg 	: The message that must be sent.
+ *  pmsg 	: pointer to the message that must be sent. upon return if *msg is NULL, the processing stops and the message is not sent.
  *  list        : The list of peers to which the message may be sent to, as returned by fd_rtd_candidate_extract
  *
  * DESCRIPTION: 
"Welcome to our mercurial repository"