libosip
5.3.0
|
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) |
#define accept_init | ( | header | ) | osip_content_type_init(header) |
Allocate an Accept element.
header | The element to work on. |
#define osip_accept_clone osip_content_type_clone |
Clone an Accept element.
header | The element to work on. |
dest | A pointer on the copy of the element. |
#define osip_accept_free osip_content_type_free |
Free an Accept element.
header | The element to work on. |
#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.
header | The element to work on. |
name | The token name. |
value | The token value. |
#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.
header | The element to work on. |
name | The token name to search. |
dest | A pointer on the element found. |
#define osip_accept_parse | ( | header, | |
hvalue | |||
) | osip_content_type_parse(header, hvalue) |
Parse an Accept element.
header | The element to work on. |
hvalue | The string to parse. |
Structure for accept headers.
int osip_accept_to_str | ( | const osip_accept_t * | header, |
char ** | dest | ||
) |
Get a string representation of an Accept element.
header | The element to work on. |
dest | A 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.