Navigation


Changeset 114:5b3868944e2b in freeDiameter for include


Ignore:
Timestamp:
Dec 8, 2009, 4:55:18 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Reporting errors in parse_dict function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r112 r114  
    21802180int fd_msg_parse_buffer ( unsigned char ** buffer, size_t buflen, struct msg ** msg );
    21812181
     2182/* Parsing Error Information structure */
     2183struct fd_pei {
     2184        char *          pei_errcode;    /* name of the error code to use */
     2185        struct avp *    pei_avp;        /* pointer to invalid or missing AVP (to be freed) */
     2186        char *          pei_message;    /* Overwrite default message if needed */
     2187        int             pei_protoerr;   /* do we set the 'E' bit in the error message ? */
     2188};
     2189
    21822190/*
    21832191 * FUNCTION:    fd_msg_parse_dict
     
    21862194 *  object      : A msg or AVP object as returned by fd_msg_parse_buffer.
    21872195 *  dict        : the dictionary containing the objects definitions to use for resolving all AVPs.
     2196 *  error_info  : If not NULL, will contain the detail about error upon return. May be used to generate an error reply.
    21882197 *
    21892198 * DESCRIPTION:
     
    22032212 *  ENOTSUP     : No dictionary definition for the command or one of the mandatory AVP was found.
    22042213 */
    2205 int fd_msg_parse_dict ( msg_or_avp * object, struct dictionary * dict );
    2206 
    2207 /* Parsing Error Information structure */
    2208 struct fd_pei {
    2209         char *          pei_errcode;    /* name of the error code to use */
    2210         struct avp *    pei_avp;        /* pointer to invalid or missing AVP (to be freed) */
    2211         char *          pei_message;    /* Overwrite default message if needed */
    2212         int             pei_protoerr;   /* do we set the 'E' bit in the error message ? */
    2213 };
     2214int fd_msg_parse_dict ( msg_or_avp * object, struct dictionary * dict, struct fd_pei *error_info );
    22142215
    22152216/*
Note: See TracChangeset for help on using the changeset viewer.