SIP Witch 1.9.15
|
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... | |
#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.
int osip_header_clone | ( | const osip_header_t * | header, |
osip_header_t ** | dest | ||
) |
#include <osip_header.h>
Clone a header element.
header | The element to work on. |
dest | A pointer on the copy of the element. |
void osip_header_free | ( | osip_header_t * | header | ) |
char* osip_header_get_name | ( | const osip_header_t * | header | ) |
#include <osip_header.h>
Get the token name a header element.
header | The 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.
header | The element to work on. |
int osip_header_init | ( | osip_header_t ** | header | ) |
void osip_header_set_name | ( | osip_header_t * | header, |
char * | pname | ||
) |
#include <osip_header.h>
Set the token name a header element.
header | The element to work on. |
pname | The 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.
header | The element to work on. |
pvalue | The 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.
header | The element to work on. |
dest | A pointer on the new allocated buffer. |