Navigation


Changeset 34:0e2b57789361 in freeDiameter for include


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

Location:
include/freeDiameter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r33 r34  
    492492int fd_msg_add_origin ( struct msg * msg, int osi );
    493493
     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) */
     495int fd_msg_parse_or_error( struct msg ** msg );
    494496
    495497
  • 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.