SIP Witch 1.9.15
|
Data Structures | |
struct | osip_content_type |
Definition of the Content-Type header. More... | |
Macros | |
#define | osip_content_type_param_add(header, name, value) osip_generic_param_add((&(header)->gen_params),name,value) |
Allocate and add a generic parameter element in a list. More... | |
#define | osip_content_type_param_get_byname(header, name, dest) osip_generic_param_get_byname((&(header)->gen_params),name,dest) |
Find a header parameter in a Content-Type element. More... | |
Typedefs | |
typedef struct osip_content_type | osip_content_type_t |
Structure for Content-Type headers. More... | |
Functions | |
int | osip_content_type_init (osip_content_type_t **header) |
Allocate a Content-Type element. More... | |
void | osip_content_type_free (osip_content_type_t *header) |
Free a Content-Type element. More... | |
int | osip_content_type_parse (osip_content_type_t *header, const char *hvalue) |
Parse a Content-Type element. More... | |
int | osip_content_type_to_str (const osip_content_type_t *header, char **dest) |
Get a string representation of a Content-Type element. More... | |
int | osip_content_type_clone (const osip_content_type_t *header, osip_content_type_t **dest) |
Clone a Content-Type element. More... | |
#define osip_content_type_param_add | ( | header, | |
name, | |||
value | |||
) | osip_generic_param_add((&(header)->gen_params),name,value) |
#include <osip_content_type.h>
Allocate and add a generic parameter element in a list.
header | The element to work on. |
name | The token name. |
value | The token value. |
Definition at line 95 of file osip_content_type.h.
#define osip_content_type_param_get_byname | ( | header, | |
name, | |||
dest | |||
) | osip_generic_param_get_byname((&(header)->gen_params),name,dest) |
#include <osip_content_type.h>
Find a header parameter in a Content-Type element.
header | The element to work on. |
name | The token name to search. |
dest | A pointer on the element found. |
Definition at line 102 of file osip_content_type.h.
#include <osip_content_type.h>
Structure for Content-Type headers.
Definition at line 41 of file osip_content_type.h.
int osip_content_type_clone | ( | const osip_content_type_t * | header, |
osip_content_type_t ** | dest | ||
) |
#include <osip_content_type.h>
Clone a Content-Type element.
header | The element to work on. |
dest | A pointer on the copy of the element. |
void osip_content_type_free | ( | osip_content_type_t * | header | ) |
#include <osip_content_type.h>
Free a Content-Type element.
header | The element to work on. |
int osip_content_type_init | ( | osip_content_type_t ** | header | ) |
#include <osip_content_type.h>
Allocate a Content-Type element.
header | The element to work on. |
int osip_content_type_parse | ( | osip_content_type_t * | header, |
const char * | hvalue | ||
) |
#include <osip_content_type.h>
Parse a Content-Type element.
header | The element to work on. |
hvalue | The string to parse. |
int osip_content_type_to_str | ( | const osip_content_type_t * | header, |
char ** | dest | ||
) |
#include <osip_content_type.h>
Get a string representation of a Content-Type element.
header | The element to work on. |
dest | A pointer on the new allocated string. |