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

Data Structures

struct  osip_header
 Definition of a generic sip header. More...
 

Typedefs

typedef struct osip_header osip_header_t
 Structure for 'unknown' headers. More...
 
typedef osip_uri_param_t osip_generic_param_t
 Structure for generic parameter headers. More...
 

Functions

int osip_header_init (osip_header_t **header)
 Allocate a header element. More...
 
void osip_header_free (osip_header_t *header)
 Free a header element. More...
 
int osip_header_to_str (const osip_header_t *header, char **dest)
 Get a string representation of a header element. More...
 
char * osip_header_get_name (const osip_header_t *header)
 Get the token name a header element. More...
 
void osip_header_set_name (osip_header_t *header, char *pname)
 Set the token name a header element. More...
 
char * osip_header_get_value (const osip_header_t *header)
 Get the token value a header element. More...
 
void osip_header_set_value (osip_header_t *header, char *pvalue)
 Set the token value a header element. More...
 
int osip_header_clone (const osip_header_t *header, osip_header_t **dest)
 Clone a header element. More...
 

Detailed Description

Typedef Documentation

#include <osip_header.h>

Structure for generic parameter headers.

Generic parameter are used in a lot of headers. (To, From, Route, Record-Route...) All those headers use a common API but this is hidden by MACROs that you can be found in smsg.h.

Definition at line 65 of file osip_header.h.

#include <osip_header.h>

Structure for 'unknown' headers.

NOTE: 'unknown' header' are used in oSIP for all header that are not defined by oSIP in the osip_message_t structure. This means that all 'unknown' header has to be handled with the API related to this structure.

Definition at line 46 of file osip_header.h.

Function Documentation

int osip_header_clone ( const osip_header_t header,
osip_header_t **  dest 
)

#include <osip_header.h>

Clone a header element.

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

#include <osip_header.h>

Free a header element.

Parameters
headerThe element to work on.
char* osip_header_get_name ( const osip_header_t header)

#include <osip_header.h>

Get the token name a header element.

Parameters
headerThe element to work on.
char* osip_header_get_value ( const osip_header_t header)

#include <osip_header.h>

Get the token value a header element.

Parameters
headerThe element to work on.
int osip_header_init ( osip_header_t **  header)

#include <osip_header.h>

Allocate a header element.

Parameters
headerThe element to work on.
void osip_header_set_name ( osip_header_t header,
char *  pname 
)

#include <osip_header.h>

Set the token name a header element.

Parameters
headerThe element to work on.
pnameThe token name to set.
void osip_header_set_value ( osip_header_t header,
char *  pvalue 
)

#include <osip_header.h>

Set the token value a header element.

Parameters
headerThe element to work on.
pvalueThe token value to set.
int osip_header_to_str ( const osip_header_t header,
char **  dest 
)

#include <osip_header.h>

Get a string representation of a header element.

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