comparison include/freeDiameter/freeDiameter.h @ 7:e5af94b04946

Added dispatch module and tests
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 04 Sep 2009 18:05:25 +0900
parents bafb831ba688
children 3e143f047f78
comparison
equal deleted inserted replaced
6:b0d377c79d80 7:e5af94b04946
108 108
109 /* The following functions are used to achieve frequent operations on the messages */ 109 /* The following functions are used to achieve frequent operations on the messages */
110 int fd_msg_add_origin ( struct msg * msg, struct dictionary * dict, int osi ); /* Add Origin-Host, Origin-Realm, (if osi) Origin-State-Id AVPS at the end of the message */ 110 int fd_msg_add_origin ( struct msg * msg, struct dictionary * dict, int osi ); /* Add Origin-Host, Origin-Realm, (if osi) Origin-State-Id AVPS at the end of the message */
111 111
112 112
113
114 /***************************************/
115 /* Dispatch module, daemon's part */
116 /***************************************/
117
118 enum {
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 */
139 int 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
113 #endif /* _FREEDIAMETER_H */ 144 #endif /* _FREEDIAMETER_H */
"Welcome to our mercurial repository"