| Top |
A simple GMimeStream implementation that sits on top of GLib's GIO input and output streams.
GMimeStream *
g_mime_stream_gio_new (GFile *file);
Creates a new GMimeStreamGIO wrapper around a GFile object.
GMimeStream * g_mime_stream_gio_new_with_bounds (GFile *file,gint64 start,gint64 end);
Creates a new GMimeStreamGIO stream around a GFile with bounds
start
and end
.
gboolean
g_mime_stream_gio_get_owner (GMimeStreamGIO *stream);
Gets whether or not stream
owns the backend GFile.
void g_mime_stream_gio_set_owner (GMimeStreamGIO *stream,gboolean owner);
Sets whether or not stream
owns the backend GIO pointer.
Note: owner
should be TRUE if the stream should close() the
backend file descriptor when destroyed or FALSE otherwise.