3.1.7 Body

 
/* Prefix mu_body_ is reserved. */
#include <mailutils/body.h>
Function: int mu_body_create (mu_body_t *body, void *owner)

Initialize an object body.

Function: void mu_body_destroy (mu_body_t *body)

The resources allocated are release.

Function: void* mu_body_get_owner (mu_body_t body)
Function: int mu_body_is_modified (mu_body_t body)
Function: int mu_body_clear_modified (mu_body_t body)
Function: int mu_body_get_stream (mu_body_t body, stream_t *stream)
Function: int mu_body_set_stream (mu_body_t body, stream_t stream, void *owner)
Function: int mu_body_get_filename (mu_body_t body, char *buffer, size_t buflen, size_t *writen)
Function: int mu_body_size (mu_body_t body, size_t *size)
Function: int mu_body_set_size (mu_body_t body, int (*_size) (mu_body_t, size_t *), void *owner)
Function: int mu_body_lines (mu_body_t body, size_t *lines)
Function: int mu_body_set_lines (mu_body_t body, int (*_lines) (mu_body_t, size_t *), void *owner)