Navigation


Changeset 1216:581bbd48524a in freeDiameter for include


Ignore:
Timestamp:
Jun 19, 2013, 11:03:24 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1217:3f7c74ef3787, 1218:152466ff49f8
Phase:
public
Message:

Change prototype of rt_out callbacks to allow disposal of messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1194 r1216  
    763763 *  ENOMEM      : Not enough memory to complete the operation
    764764 */
    765 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 );
     765int 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 );
    766766/*
    767767 * CALLBACK:    rt_out_cb
     
    769769 * PARAMETERS:
    770770 *  cbdata      : pointer to some data that was registered with the callback.
    771  *  msg         : The message that must be sent.
     771 *  pmsg        : pointer to the message that must be sent. upon return if *msg is NULL, the processing stops and the message is not sent.
    772772 *  list        : The list of peers to which the message may be sent to, as returned by fd_rtd_candidate_extract
    773773 *
Note: See TracChangeset for help on using the changeset viewer.