libosip  5.3.0
Macros | Typedefs
oSIP accept-language header definition.

Macros

#define osip_accept_language_init(header)   osip_accept_encoding_init(header)
 
#define osip_accept_language_parse(header, hvalue)   osip_accept_encoding_parse(header, hvalue)
 
#define osip_accept_language_to_str   osip_accept_encoding_to_str
 
#define osip_accept_language_free   osip_accept_encoding_free
 
#define osip_accept_language_clone   osip_accept_encoding_clone
 
#define osip_accept_language_get_element(header)   osip_accept_encoding_get_element(header)
 
#define osip_accept_language_set_element(header, value)   osip_accept_encoding_set_element(header, value)
 
#define osip_accept_language_param_add(header, name, value)   osip_generic_param_add((&(header)->gen_params), name, value)
 
#define osip_accept_language_param_get_byname(header, name, dest)   osip_generic_param_get_byname((&(header)->gen_params), name, dest)
 

Typedefs

typedef osip_accept_encoding_t osip_accept_language_t
 

Detailed Description

Macro Definition Documentation

◆ osip_accept_language_clone

#define osip_accept_language_clone   osip_accept_encoding_clone

Clone an Accept-Language element.

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

◆ osip_accept_language_free

#define osip_accept_language_free   osip_accept_encoding_free

Free an Accept-Language element.

Parameters
headerThe element to work on.

◆ osip_accept_language_get_element

#define osip_accept_language_get_element (   header)    osip_accept_encoding_get_element(header)

Get the value of an Accept-Language element.

Parameters
headerThe element to work on.

◆ osip_accept_language_init

#define osip_accept_language_init (   header)    osip_accept_encoding_init(header)

Allocate an Accept-Language element.

Parameters
headerThe element to work on.

◆ osip_accept_language_param_add

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

Allocate and add a generic parameter element in an Accept-Language element.

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

◆ osip_accept_language_param_get_byname

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

Find a header parameter in a Accept-Language element.

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

◆ osip_accept_language_parse

#define osip_accept_language_parse (   header,
  hvalue 
)    osip_accept_encoding_parse(header, hvalue)

Parse an Accept-Language element.

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

◆ osip_accept_language_set_element

#define osip_accept_language_set_element (   header,
  value 
)    osip_accept_encoding_set_element(header, value)

Set the value of an Accept-Language element.

Parameters
headerThe element to work on.
valueThe value to set.

◆ osip_accept_language_to_str

#define osip_accept_language_to_str   osip_accept_encoding_to_str

Get a string representation of an Accept-Language element.

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

Typedef Documentation

◆ osip_accept_language_t

Structure for Accept-Language headers.