Navigation


Changeset 90:2c9444152e4b in freeDiameter for include


Ignore:
Timestamp:
Dec 7, 2009, 6:32:30 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added the dispatch thread code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r88 r90  
    23532353enum disp_action {
    23542354        DISP_ACT_CONT,  /* The next handler should be called, unless *msg == NULL. */
    2355         DISP_ACT_SEND   /* The updated message must be sent. No further callback is called. */
     2355        DISP_ACT_SEND,  /* The updated message must be sent. No further callback is called. */
     2356        DISP_ACT_ERROR  /* An error must be created and sent as a reply -- not valid for callbacks, only for fd_msg_dispatch. */
    23562357};
    23572358/* The callbacks that are registered have the following prototype:
     
    24242425int fd_disp_unregister ( struct disp_hdl ** handle );
    24252426
     2427/* Destroy all handlers */
     2428void fd_disp_unregister_all ( void );
     2429
    24262430/*
    24272431 * FUNCTION:    fd_msg_dispatch
     
    24432447 *  (other errors)
    24442448 */
    2445 int fd_msg_dispatch ( struct msg ** msg, struct session * session, enum disp_action *action );
     2449int fd_msg_dispatch ( struct msg ** msg, struct session * session, enum disp_action *action, const char ** error_code );
    24462450
    24472451
Note: See TracChangeset for help on using the changeset viewer.