libosip  4.0.0
Macros | Typedefs
oSIP accept-language header definition.
oSIP headers definitions

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(header, dest)   osip_accept_encoding_clone(header, dest)
#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

#define osip_accept_language_clone (   header,
  dest 
)    osip_accept_encoding_clone(header, dest)

Clone an Accept-Language element.

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

Referenced by osip_message_clone().

#define osip_accept_language_free   osip_accept_encoding_free

Free an Accept-Language element.

Parameters
headerThe element to work on.

Referenced by osip_message_free(), and osip_message_set_accept_language().

#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.
#define osip_accept_language_init (   header)    osip_accept_encoding_init(header)

Allocate an Accept-Language element.

Parameters
headerThe element to work on.

Referenced by osip_message_set_accept_language().

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

Referenced by osip_message_set_accept_language().

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

Structure for Accept-Language headers.