Ignore:
Timestamp:
Aug 1, 2010 9:48:51 AM (14 years ago)
Author:
bennylp
Message:

Implemented core multipart support and support in the invite session (re #1070)

  • incoming multipart message will be handled automatically
  • for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_parser.h

    r2660 r3243  
    277277 *                      pinpoint the location of the error in the buffer. 
    278278 * 
    279  * @return              The instance of the header if parsing was successfull, 
     279 * @return              The instance of the header if parsing was successful, 
    280280 *                      or otherwise a NULL pointer will be returned. 
    281281 */ 
     
    288288 * When there are multiple headers, the headers MUST be separated by either 
    289289 * a newline (as in SIP message) or ampersand mark (as in URI). This separator 
    290  * however is optional for the last header. 
    291  * 
    292  * @param pool          the pool. 
    293  * @param input         the input text to parse, which must be NULL terminated. 
    294  * @param size          the text length. 
    295  * @param hlist         the header list to store the parsed headers.  
     290 * is optional for the last header. 
     291 * 
     292 * @param pool          The pool. 
     293 * @param input         The input text to parse, which must be NULL terminated. 
     294 * @param size          The text length. 
     295 * @param hlist         The header list to store the parsed headers. 
    296296 *                      This list must have been initialized before calling  
    297297 *                      this function. 
     298 * @param options       Specify 1 here to make parsing stop when error is 
     299 *                      encountered when parsing the header. Otherwise the 
     300 *                      error is silently ignored and parsing resumes to the 
     301 *                      next line. 
    298302 * @return              zero if successfull, or -1 if error is encountered.  
    299303 *                      Upon error, the \a hlist argument MAY contain  
    300304 *                      successfully parsed headers. 
    301305 */ 
    302 PJ_DECL(pj_status_t) pjsip_parse_headers( pj_pool_t *pool, 
    303                                           char *input, pj_size_t size, 
    304                                           pj_list *hlist ); 
     306PJ_DECL(pj_status_t) pjsip_parse_headers( pj_pool_t *pool, char *input, 
     307                                          pj_size_t size, pjsip_hdr *hlist, 
     308                                          unsigned options); 
    305309 
    306310 
Note: See TracChangeset for help on using the changeset viewer.