Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

oSIP body API
[The parser modules]


Classes

struct osip_body
struct osip_body

Typedefs

typedef osip_body osip_body_t

Functions

int osip_body_init (osip_body_t **body)
void osip_body_free (osip_body_t *body)
int osip_body_parse (osip_body_t *body, const char *buf, size_t length)
int osip_body_clone (const osip_body_t *body, osip_body_t **dest)
int osip_body_parse_mime (osip_body_t *body, const char *buf, size_t length)
int osip_body_to_str (const osip_body_t *body, char **dest, size_t *length)
int osip_body_set_contenttype (osip_body_t *body, const char *hvalue)
int osip_body_set_header (osip_body_t *body, const char *hname, const char *hvalue)

Typedef Documentation

Structure for holding Body


Function Documentation

int osip_body_clone ( const osip_body_t * body,
osip_body_t ** dest
)

Clone a osip_body_t element.

Parameters:
body The element to clone.
dest The cloned element.

void osip_body_free ( osip_body_t * body )

Free a osip_body_t element.

Parameters:
body The element to work on.

int osip_body_init ( osip_body_t ** body )

Allocate a osip_body_t element.

Parameters:
body The element to work on.

int osip_body_parse ( osip_body_t * body,
const char * buf,
size_t length
)

Parse a osip_body_t element.

Parameters:
body The element to work on.
buf The buffer to parse.
length The length of the buffer to parse.

int osip_body_parse_mime ( osip_body_t * body,
const char * buf,
size_t length
)

Parse a osip_body_t element. (for mime message format) (NOT TESTED, use with care)

Parameters:
body The element to work on.
buf The buffer to parse.
length The length of the buffer to parse.

int osip_body_set_contenttype ( osip_body_t * body,
const char * hvalue
)

Set the Content-Type header in the osip_body_t element.

Parameters:
body The element to work on.
hvalue The content type string value.

int osip_body_set_header ( osip_body_t * body,
const char * hname,
const char * hvalue
)

Add a header in the osip_body_t element.

Parameters:
body The element to work on.
hname The header string name.
hvalue The header string value.

int osip_body_to_str ( const osip_body_t * body,
char ** dest,
size_t * length
)

Get a string representation of a osip_body_t element.

Parameters:
body The element to work on.
dest The resulting buffer.
length The length of the returned buffer.

Generated on Tue Feb 22 00:59:48 2005 for libosip by doxygen 1.4.1

AltStyle によって変換されたページ (->オリジナル) /