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

Macros

#define accept_init(header)   osip_content_type_init(header)
 Allocate an Accept element. More...
 
#define osip_accept_free   osip_content_type_free
 Free an Accept element. More...
 
#define osip_accept_parse(header, hvalue)   osip_content_type_parse(header, hvalue)
 Parse an Accept element. More...
 
#define osip_accept_clone   osip_content_type_clone
 Clone an Accept element. More...
 
#define osip_accept_param_add(header, name, value)   osip_generic_param_add((&(header)->gen_params),name,value)
 Allocate and add a header parameter in an Accept element. More...
 
#define osip_accept_param_get_byname(header, name, dest)   osip_generic_param_get_byname((&(header)->gen_params),name,dest)
 Find a header parameter in an Accept element. More...
 

Typedefs

typedef osip_content_type_t osip_accept_t
 Structure for accept headers. More...
 

Functions

int osip_accept_to_str (const osip_accept_t *header, char **dest)
 Get a string representation of an Accept element. More...
 

Detailed Description

Macro Definition Documentation

#define accept_init (   header)    osip_content_type_init(header)

#include <osip_accept.h>

Allocate an Accept element.

Parameters
headerThe element to work on.

Definition at line 53 of file osip_accept.h.

#define osip_accept_clone   osip_content_type_clone

#include <osip_accept.h>

Clone an Accept element.

Parameters
headerThe element to work on.
destA pointer on the copy of the element.

Definition at line 76 of file osip_accept.h.

#define osip_accept_free   osip_content_type_free

#include <osip_accept.h>

Free an Accept element.

Parameters
headerThe element to work on.

Definition at line 58 of file osip_accept.h.

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

#include <osip_accept.h>

Allocate and add a header parameter in an Accept element.

Parameters
headerThe element to work on.
nameThe token name.
valueThe token value.

Definition at line 83 of file osip_accept.h.

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

#include <osip_accept.h>

Find a header parameter in an Accept element.

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

Definition at line 90 of file osip_accept.h.

#define osip_accept_parse (   header,
  hvalue 
)    osip_content_type_parse(header, hvalue)

#include <osip_accept.h>

Parse an Accept element.

Parameters
headerThe element to work on.
hvalueThe string to parse.

Definition at line 64 of file osip_accept.h.

Typedef Documentation

#include <osip_accept.h>

Structure for accept headers.

Definition at line 41 of file osip_accept.h.

Function Documentation

int osip_accept_to_str ( const osip_accept_t header,
char **  dest 
)

#include <osip_accept.h>

Get a string representation of an Accept element.

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