Navigation



Ignore:
Timestamp:
Oct 30, 2009, 5:23:06 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Backup for the WE, some warnings remaining

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r33 r34  
    19901990 *  !0          : an error occurred.
    19911991 */
    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 );
     1992int fd_msg_source_set( struct msg * msg, char * diamid, int add_rr, struct dictionary * dict );
     1993int fd_msg_source_get( struct msg * msg, char ** diamid );
    19941994
    19951995/*
     
    21382138int fd_msg_parse_dict ( msg_or_avp * object, struct dictionary * dict );
    21392139
     2140/* Parsing Error Information structure */
     2141struct 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
    21402148/*
    21412149 * FUNCTION:    fd_msg_parse_rules
     
    21442152 *  object      : A msg or grouped avp object that must be verified.
    21452153 *  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.
    21472155 *
    21482156 * DESCRIPTION:
     
    21552163 *  ENOMEM      : Unable to allocate enough memory to complete the operation.
    21562164 */
    2157 int fd_msg_parse_rules ( msg_or_avp * object, struct dictionary * dict, struct dict_object ** rule);
     2165int fd_msg_parse_rules ( msg_or_avp * object, struct dictionary * dict, struct fd_pei *error_info);
     2166
    21582167
    21592168
Note: See TracChangeset for help on using the changeset viewer.