SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Typedefs | Functions
oSIP content-length definition.
Collaboration diagram for oSIP content-length definition.:

Data Structures

struct  osip_content_length
 Definition of the Content-Length header. More...
 

Typedefs

typedef struct osip_content_length osip_content_length_t
 Structure for Content-Length headers. More...
 

Functions

int osip_content_length_init (osip_content_length_t **header)
 Allocate a Content-Length element. More...
 
void osip_content_length_free (osip_content_length_t *header)
 Free a Content-Length element. More...
 
int osip_content_length_parse (osip_content_length_t *header, const char *hvalue)
 Parse a Content-Length element. More...
 
int osip_content_length_to_str (const osip_content_length_t *header, char **dest)
 Get a string representation of a Content-Length element. More...
 
int osip_content_length_clone (const osip_content_length_t *header, osip_content_length_t **dest)
 Clone a Content-Length element. More...
 

Detailed Description

Typedef Documentation

#include <osip_content_length.h>

Structure for Content-Length headers.

Definition at line 40 of file osip_content_length.h.

Function Documentation

int osip_content_length_clone ( const osip_content_length_t header,
osip_content_length_t **  dest 
)

#include <osip_content_length.h>

Clone a Content-Length element.

Parameters
headerThe element to work on.
destA pointer on the copy of the element.
void osip_content_length_free ( osip_content_length_t header)

#include <osip_content_length.h>

Free a Content-Length element.

Parameters
headerThe element to work on.
int osip_content_length_init ( osip_content_length_t **  header)

#include <osip_content_length.h>

Allocate a Content-Length element.

Parameters
headerThe element to work on.
int osip_content_length_parse ( osip_content_length_t header,
const char *  hvalue 
)

#include <osip_content_length.h>

Parse a Content-Length element.

Parameters
headerThe element to work on.
hvalueThe string to parse.
int osip_content_length_to_str ( const osip_content_length_t header,
char **  dest 
)

#include <osip_content_length.h>

Get a string representation of a Content-Length element.

Parameters
headerThe element to work on.
destA pointer on the new allocated string.