libosip  5.3.0
Macros | Typedefs | Functions
oSIP content-disposition definition.

Macros

#define osip_content_disposition_init(header)   osip_call_info_init(header)
 
#define osip_content_disposition_free(header)   osip_call_info_free(header)
 
#define osip_content_disposition_to_str(header, dest)   osip_call_info_to_str(header, dest)
 
#define osip_content_disposition_clone   osip_call_info_clone
 
#define osip_content_disposition_set_type(header, value)   osip_call_info_set_uri(header, value)
 
#define osip_content_disposition_get_type(header)   osip_call_info_get_uri(header)
 

Typedefs

typedef osip_call_info_t osip_content_disposition_t
 

Functions

int osip_content_disposition_parse (osip_content_disposition_t *header, const char *hvalue)
 

Detailed Description

Macro Definition Documentation

◆ osip_content_disposition_clone

#define osip_content_disposition_clone   osip_call_info_clone

Clone a Content-Disposition element.

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

◆ osip_content_disposition_free

#define osip_content_disposition_free (   header)    osip_call_info_free(header)

Free a Content-Disposition element.

Parameters
headerThe element to work on.

◆ osip_content_disposition_get_type

#define osip_content_disposition_get_type (   header)    osip_call_info_get_uri(header)

Get the type from a Content-Disposition header.

Parameters
headerThe element to work on.

◆ osip_content_disposition_init

#define osip_content_disposition_init (   header)    osip_call_info_init(header)

Allocate a Content-Disposition element.

Parameters
headerThe element to work on.

◆ osip_content_disposition_set_type

#define osip_content_disposition_set_type (   header,
  value 
)    osip_call_info_set_uri(header, value)

Set the type in the Content-Disposition element.

Parameters
headerThe element to work on.
valueThe value of the element.

◆ osip_content_disposition_to_str

#define osip_content_disposition_to_str (   header,
  dest 
)    osip_call_info_to_str(header, dest)

Get a string representation of a Content-Disposition element.

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

Typedef Documentation

◆ osip_content_disposition_t

Structure for Content-Disposition headers.

Function Documentation

◆ osip_content_disposition_parse()

int osip_content_disposition_parse ( osip_content_disposition_t header,
const char *  hvalue 
)

Parse a Content-Disposition element.

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

References osip_call_info::element, and osip_call_info::gen_params.