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

Data Structures

struct  osip_accept_encoding
 Definition of the Accept-Encoding header. More...
 

Macros

#define osip_accept_encoding_param_add(header, name, value)   osip_generic_param_add((&(header)->gen_params),name,value)
 Allocate and Add a header parameter in an Accept-Encoding element. More...
 
#define osip_accept_encoding_param_get_byname(header, name, dest)   osip_generic_param_get_byname((&(header)->gen_params),name,dest)
 Find a header parameter in an Accept-Encoding element. More...
 

Typedefs

typedef struct osip_accept_encoding osip_accept_encoding_t
 Structure for Accept-Encoding header. More...
 

Functions

int osip_accept_encoding_init (osip_accept_encoding_t **header)
 Allocate a Accept-Encoding element. More...
 
int osip_accept_encoding_parse (osip_accept_encoding_t *header, const char *hvalue)
 Parse a Accept-Encoding element. More...
 
int osip_accept_encoding_to_str (const osip_accept_encoding_t *header, char **dest)
 Get a string representation of a Accept-Encoding element. More...
 
void osip_accept_encoding_free (osip_accept_encoding_t *header)
 Free a Accept-Encoding element. More...
 
int osip_accept_encoding_clone (const osip_accept_encoding_t *header, osip_accept_encoding_t **dest)
 Clone a Accept-Encoding element. More...
 
void osip_accept_encoding_set_element (osip_accept_encoding_t *header, char *value)
 Set the value of an Accept-Encoding element. More...
 
char * osip_accept_encoding_get_element (const osip_accept_encoding_t *header)
 Get the value of an Accept-Encoding element. More...
 

Detailed Description

Macro Definition Documentation

#define osip_accept_encoding_param_add (   header,
  name,
  value 
)    osip_generic_param_add((&(header)->gen_params),name,value)

#include <osip_accept_encoding.h>

Allocate and Add a header parameter in an Accept-Encoding element.

Parameters
headerThe element to work on.
nameThe token name for the new parameter.
valueThe token value for the new parameter.

Definition at line 107 of file osip_accept_encoding.h.

#define osip_accept_encoding_param_get_byname (   header,
  name,
  dest 
)    osip_generic_param_get_byname((&(header)->gen_params),name,dest)

#include <osip_accept_encoding.h>

Find a header parameter in an Accept-Encoding element.

Parameters
headerThe element to work on.
nameThe token name to search.
destA pointer on the element found.

Definition at line 114 of file osip_accept_encoding.h.

Typedef Documentation

#include <osip_accept_encoding.h>

Structure for Accept-Encoding header.

Definition at line 41 of file osip_accept_encoding.h.

Function Documentation

int osip_accept_encoding_clone ( const osip_accept_encoding_t header,
osip_accept_encoding_t **  dest 
)

#include <osip_accept_encoding.h>

Clone a Accept-Encoding element.

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

#include <osip_accept_encoding.h>

Free a Accept-Encoding element.

Parameters
headerThe element to work on.
char* osip_accept_encoding_get_element ( const osip_accept_encoding_t header)

#include <osip_accept_encoding.h>

Get the value of an Accept-Encoding element.

Parameters
headerThe element to work on.
int osip_accept_encoding_init ( osip_accept_encoding_t **  header)

#include <osip_accept_encoding.h>

Allocate a Accept-Encoding element.

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

#include <osip_accept_encoding.h>

Parse a Accept-Encoding element.

Parameters
headerThe element to work on.
hvalueThe string to parse.
void osip_accept_encoding_set_element ( osip_accept_encoding_t header,
char *  value 
)

#include <osip_accept_encoding.h>

Set the value of an Accept-Encoding element.

Parameters
headerThe element to work on.
valueThe token value to set.
int osip_accept_encoding_to_str ( const osip_accept_encoding_t header,
char **  dest 
)

#include <osip_accept_encoding.h>

Get a string representation of a Accept-Encoding element.

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