Defines | Functions

parse_content.h File Reference

Parser :: Content. More...

#include "msg_parser.h"
Include dependency graph for parse_content.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

MimeTypes

Mimes types/subtypes that are recognized

Functions


Detailed Description

Definition in file parse_content.h.


Function Documentation

int parse_accept_hdr ( struct sip_msg msg  ) 

It's values are also converted as an null-terminated array of ints. Returns: 1 : OK 0 : hdr not found -1 : error (parse error)

Definition at line 495 of file parse_content.c.

References hdr_field::body, decode_mime_type(), _str::len, MAX_MIMES_NR, hdr_field::parsed, and _str::s.

Here is the call graph for this function:

char* parse_content_length ( char *  buffer,
char *  end,
int *  len 
)

Also tries to recognize the type specified by this header (see th above defines). Returns the first chr after the end of the header.

Definition at line 219 of file parse_content.c.

int parse_content_type_hdr ( struct sip_msg msg  ) 

It's value is also converted as int. Returns: n (n>0) : the found type 0 : hdr not found -1 : error (parse error )

Returns:
  • > 0 mime found
  • = 0 hdr not found
  • =-1 error

Definition at line 388 of file parse_content.c.

References hdr_field::body, decode_mime_type(), get_content_type, _str::len, hdr_field::parsed, and _str::s.

Referenced by get_body_part().

Here is the call graph for this function:

Here is the caller graph for this function: