body.texi 1.55 KB
@c This is part of the GNU Mailutils manual.
@c Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
@c See file mailutils.texi for copying conditions.
@comment *******************************************************************

@smallexample
@code{/* Prefix @emph{body_} is reserved. */}
@code{#include <mailutils/body.h>}
@end smallexample

@deftypefun  int body_create (body_t *@var{body}, void *@var{owner})
Initialize an object @var{body}.
@end deftypefun

@deftypefun void body_destroy (body_t *@var{body})
The resources allocated are release.
@end deftypefun

@deftypefun void* body_get_owner (body_t @var{body})
@end deftypefun

@deftypefun  int body_is_modified (body_t @var{body})
@end deftypefun

@deftypefun  int body_clear_modified (body_t @var{body})
@end deftypefun

@c
@c -----------
@c

@deftypefun  int body_get_stream (body_t @var{body}, stream_t *@var{stream})
@end deftypefun

@deftypefun  int body_set_stream (body_t @var{body}, stream_t @var{stream}, void *@var{owner})
@end deftypefun

@deftypefun  int body_get_filename (body_t @var{body}, char *@var{buffer}, size_t @var{buflen}, size_t *@var{writen})
@end deftypefun

@deftypefun  int body_size (body_t @var{body}, size_t *@var{size})
@end deftypefun

@deftypefun  int body_set_size (body_t @var{body}, int (*@var{_size}) (body_t, size_t *), void *@var{owner})
@end deftypefun

@deftypefun  int body_lines (body_t @var{body}, size_t *@var{lines})
@end deftypefun

@deftypefun  int body_set_lines (body_t @var{body}, int (*@var{_lines}) (body_t, size_t *), void *@var{owner})
@end deftypefun