Next: , Previous: Headers, Up: libmailbox



3.1.7 Body

     /* Prefix body_ is reserved. */
     #include <mailutils/body.h>
— Function: int body_create (body_t *body, void *owner)

Initialize an object body.

— Function: void body_destroy (body_t *body)

The resources allocated are release.

— Function: void* body_get_owner (body_t body)
— Function: int body_is_modified (body_t body)
— Function: int body_clear_modified (body_t body)
— Function: int body_get_stream (body_t body, stream_t *stream)
— Function: int body_set_stream (body_t body, stream_t stream, void *owner)
— Function: int body_get_filename (body_t body, char *buffer, size_t buflen, size_t *writen)
— Function: int body_size (body_t body, size_t *size)
— Function: int body_set_size (body_t body, int (*_size) (body_t, size_t *), void *owner)
— Function: int body_lines (body_t body, size_t *lines)
— Function: int body_set_lines (body_t body, int (*_lines) (body_t, size_t *), void *owner)