Defines | Functions

parse_body.c File Reference

Parser :: Body handling. More...

#include "../trim.h"
#include "parser_f.h"
#include "parse_content.h"
#include "parse_param.h"
#include "keys.h"
#include "parse_body.h"
Include dependency graph for parse_body.c:

Go to the source code of this file.

Defines

Functions


Detailed Description

Definition in file parse_body.c.


Function Documentation

char* get_body_part ( struct sip_msg msg,
unsigned short  type,
unsigned short  subtype,
int *  len 
)

Returns the pointer within the msg body to the given type/subtype, and sets the length.

The result can be the whole msg body, or a part of a multipart body.

Definition at line 175 of file parse_body.c.

References sip_msg::buf, decode_mime_type(), get_body(), get_boundary_param(), get_multipart_body(), _str::len, sip_msg::len, parse_content_type_hdr(), READ, and search_boundary().

Here is the call graph for this function: