Changeset 1014:908ffbb81f60 in freeDiameter for libfdcore/messages.c
- Timestamp:
- Mar 29, 2013, 6:30:59 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/messages.c
r928 r1014 321 321 322 322 /* Save the callback in the message */ 323 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data, NULL /* we should maybe use a safeguard here like 1 hour or so? */ ) );323 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data, NULL, NULL /* we should maybe use a safeguard here like 1 hour or so? */ ) ); 324 324 325 325 /* Post the message in the outgoing queue */ … … 330 330 331 331 /* The variation of the same function with a timeout callback */ 332 int fd_msg_send_timeout ( struct msg ** pmsg, void (*anscb)(void *, struct msg **), void * data, const struct timespec *timeout )333 { 334 TRACE_ENTRY("%p %p %p ", pmsg, anscb, data, timeout);335 CHECK_PARAMS( pmsg && anscb && timeout );332 int fd_msg_send_timeout ( struct msg ** pmsg, void (*anscb)(void *, struct msg **), void * data, void (*expirecb)(void *, DiamId_t, size_t, struct msg **), const struct timespec *timeout ) 333 { 334 TRACE_ENTRY("%p %p %p %p %p", pmsg, anscb, data, expirecb, timeout); 335 CHECK_PARAMS( pmsg && expirecb && timeout ); 336 336 337 337 /* Save the callback in the message, with the timeout */ 338 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data, timeout ) );338 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data, expirecb, timeout ) ); 339 339 340 340 /* Post the message in the outgoing queue */
Note: See TracChangeset
for help on using the changeset viewer.