Navigation



Ignore:
Timestamp:
Mar 29, 2013, 6:30:59 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Added a second callback in fd_msg_send_timeout to handle more easily the timeout situation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1004 r1014  
    24272427 *
    24282428 * PARAMETERS:
    2429  *  msg         : the answer message
     2429 *  msg         : the request message
    24302430 *  anscb       : the callback to associate with the message
    24312431 *  data        : the data to pass to the callback
     2432 *  expirecb    : the expiration callback to associate with the message
    24322433 *  timeout     : (optional, use NULL if no timeout) a timeout associated with calling the cb.
    24332434 *
    24342435 * DESCRIPTION:
    2435  *  Associate or retrieve a callback with an answer message.
     2436 *  Associate or retrieve callbacks with an message.
    24362437 * This is meant to be called from the daemon only.
    24372438 *
     
    24402441 *  EINVAL: a parameter is invalid
    24412442 */
    2442 int fd_msg_anscb_associate( struct msg * msg, void ( *anscb)(void *, struct msg **), void  * data, const struct timespec *timeout );
    2443 int fd_msg_anscb_get      ( struct msg * msg, void (**anscb)(void *, struct msg **), void ** data );
     2443int fd_msg_anscb_associate( struct msg * msg, void ( *anscb)(void *, struct msg **), void  * data, void (*expirecb)(void *, DiamId_t, size_t, struct msg **), const struct timespec *timeout );
     2444int fd_msg_anscb_get( struct msg * msg, void (**anscb)(void *, struct msg **), void (**expirecb)(void *, DiamId_t, size_t, struct msg **), void ** data );
    24442445struct timespec *fd_msg_anscb_gettimeout( struct msg * msg ); /* returns NULL or a valid non-0 timespec */
    24452446
Note: See TracChangeset for help on using the changeset viewer.