libosip  5.3.0
Macros | Typedefs | Functions
oSIP accept header definition.

Macros

#define accept_init(header)   osip_content_type_init(header)
 
#define osip_accept_free   osip_content_type_free
 
#define osip_accept_parse(header, hvalue)   osip_content_type_parse(header, hvalue)
 
#define osip_accept_clone   osip_content_type_clone
 
#define osip_accept_param_add(header, name, value)   osip_generic_param_add((&(header)->gen_params), name, value)
 
#define osip_accept_param_get_byname(header, name, dest)   osip_generic_param_get_byname((&(header)->gen_params), name, dest)
 

Typedefs

typedef osip_content_type_t osip_accept_t
 

Functions

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

Detailed Description

Macro Definition Documentation

◆ accept_init

#define accept_init (   header)    osip_content_type_init(header)

Allocate an Accept element.

Parameters
headerThe element to work on.

◆ osip_accept_clone

#define osip_accept_clone   osip_content_type_clone

Clone an Accept element.

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

◆ osip_accept_free

#define osip_accept_free   osip_content_type_free

Free an Accept element.

Parameters
headerThe element to work on.

◆ osip_accept_param_add

#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.

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

◆ osip_accept_param_get_byname

#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.

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

◆ osip_accept_parse

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

Parse an Accept element.

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

Typedef Documentation

◆ osip_accept_t

Structure for accept headers.

Function Documentation

◆ osip_accept_to_str()

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

Get a string representation of an Accept element.

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

References osip_content_type::gen_params, osip_uri_param::gname, osip_uri_param::gvalue, osip_list_get_first(), osip_list_get_next(), osip_list_size(), osip_content_type::subtype, and osip_content_type::type.