Data Structures | Typedefs | Functions

parse_content.c File Reference

Parser :: Content part. More...

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "../mem/mem.h"
#include "../dprint.h"
#include "../str.h"
#include "../ut.h"
#include "parse_content.h"
Include dependency graph for parse_content.c:

Go to the source code of this file.

Data Structures

Typedefs

Functions


Detailed Description

Definition in file parse_content.c.


Function Documentation

int parse_accept_hdr ( struct sip_msg msg  ) 

parse the body of the Accept header.

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  ) 
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: