Structure for holding Body.
osip_content_type_t * content_type
Content-Type (when mime is used)
Definition of the Content-Type header.
int osip_body_set_header(osip_body_t *body, const char *hname, const char *hvalue)
Add a header in the osip_body_t element.
int osip_body_init(osip_body_t **body)
Allocate a osip_body_t element.
void osip_body_free(osip_body_t *body)
Free a osip_body_t element.
int osip_body_parse_mime(osip_body_t *body, const char *buf, size_t length)
Parse a osip_body_t element.
int osip_body_set_contenttype(osip_body_t *body, const char *hvalue)
Set the Content-Type header in the osip_body_t element.
int osip_body_parse(osip_body_t *body, const char *buf, size_t length)
Parse a osip_body_t element.
int osip_body_to_str(const osip_body_t *body, char **dest, size_t *length)
Get a string representation of a osip_body_t element.
oSIP osip_content_type header definition.
osip_list_t * headers
List of headers (when mime is used)
int osip_body_clone(const osip_body_t *body, osip_body_t **dest)
Clone a osip_body_t element.