Navigation


Changeset 7:e5af94b04946 in freeDiameter for include/freeDiameter/freeDiameter.h


Ignore:
Timestamp:
Sep 4, 2009, 6:05:25 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added dispatch module and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r1 r7  
    111111
    112112
     113
     114/***************************************/
     115/*   Dispatch module, daemon's part    */
     116/***************************************/
     117
     118enum {
     119        DISP_APP_AUTH   = 1,
     120        DISP_APP_ACCT   = 2
     121};
     122/*
     123 * FUNCTION:    fd_disp_app_support
     124 *
     125 * PARAMETERS:
     126 *  app         : The dictionary object corresponding to the Application.
     127 *  vendor      : (Optional) the dictionary object of a Vendor to claim support in Vendor-Specific-Application-Id
     128 *  flags       : Combination of DISP_APP_* flags.
     129 *
     130 * DESCRIPTION:
     131 *   Registers an application to be advertized in CER/CEA exchanges.
     132 *  Messages with an application-id matching a registered value are passed to the dispatch module,
     133 * while other messages are simply relayed or an error is returned (if local node does not relay)
     134 *
     135 * RETURN VALUE:
     136 *  0           : The application support is registered.
     137 *  EINVAL      : A parameter is invalid.
     138 */
     139int fd_disp_app_support ( struct dict_object * app, struct dict_object * vendor, int flags );
     140
     141/* Note: if we want to support capabilities updates, we'll have to add possibility to remove an app as well... */
     142
     143
    113144#endif /* _FREEDIAMETER_H */
Note: See TracChangeset for help on using the changeset viewer.