Changeset 34:0e2b57789361 in freeDiameter for include
- Timestamp:
- Oct 30, 2009, 5:23:06 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- include/freeDiameter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/freeDiameter.h
r33 r34 492 492 int fd_msg_add_origin ( struct msg * msg, int osi ); 493 493 494 /* Parse a message against our dictionary, and in case of error log and eventually build the error reply (on return and EBADMSG, *msg == NULL or *msg is the error message ready to send) */ 495 int fd_msg_parse_or_error( struct msg ** msg ); 494 496 495 497 -
include/freeDiameter/libfreeDiameter.h
r33 r34 1990 1990 * !0 : an error occurred. 1991 1991 */ 1992 int fd_msg_source_set( struct msg * msg, char * diamid, uint32_t hash,int add_rr, struct dictionary * dict );1993 int fd_msg_source_get( struct msg * msg, char ** diamid , uint32_t *hash);1992 int fd_msg_source_set( struct msg * msg, char * diamid, int add_rr, struct dictionary * dict ); 1993 int fd_msg_source_get( struct msg * msg, char ** diamid ); 1994 1994 1995 1995 /* … … 2138 2138 int fd_msg_parse_dict ( msg_or_avp * object, struct dictionary * dict ); 2139 2139 2140 /* Parsing Error Information structure */ 2141 struct fd_pei { 2142 char * pei_errcode; /* name of the error code to use */ 2143 struct avp * pei_avp; /* pointer to invalid or missing AVP (to be freed) */ 2144 char * pei_message; /* Overwrite default message if needed */ 2145 int pei_protoerr; /* do we set the 'E' bit in the error message ? */ 2146 }; 2147 2140 2148 /* 2141 2149 * FUNCTION: fd_msg_parse_rules … … 2144 2152 * object : A msg or grouped avp object that must be verified. 2145 2153 * dict : The dictionary containing the rules definitions. 2146 * rule : If not NULL, the first conflicting rule will be saved here if a conflict is found.2154 * error_info : If not NULL, the first problem information will be saved here. 2147 2155 * 2148 2156 * DESCRIPTION: … … 2155 2163 * ENOMEM : Unable to allocate enough memory to complete the operation. 2156 2164 */ 2157 int fd_msg_parse_rules ( msg_or_avp * object, struct dictionary * dict, struct dict_object ** rule); 2165 int fd_msg_parse_rules ( msg_or_avp * object, struct dictionary * dict, struct fd_pei *error_info); 2166 2158 2167 2159 2168
Note: See TracChangeset
for help on using the changeset viewer.