SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
oSIP content-type header definition.
Collaboration diagram for oSIP content-type header definition.:

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

Detailed Description

Macro Definition Documentation

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

Parameters
headerThe element to work on.
nameThe token name.
valueThe 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.

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

Definition at line 102 of file osip_content_type.h.

Typedef Documentation

#include <osip_content_type.h>

Structure for Content-Type headers.

Definition at line 41 of file osip_content_type.h.

Function Documentation

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.

Parameters
headerThe element to work on.
destA 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.

Parameters
headerThe element to work on.
int osip_content_type_init ( osip_content_type_t **  header)

#include <osip_content_type.h>

Allocate a Content-Type element.

Parameters
headerThe 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.

Parameters
headerThe element to work on.
hvalueThe 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.

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