Top |
Functions
GMimeStream * | g_mime_stream_fs_new () |
GMimeStream * | g_mime_stream_fs_open () |
GMimeStream * | g_mime_stream_fs_new_with_bounds () |
gboolean | g_mime_stream_fs_get_owner () |
void | g_mime_stream_fs_set_owner () |
Description
A simple GMimeStream implementation that sits on top of the low-level UNIX file descriptor based I/O layer.
Functions
g_mime_stream_fs_new ()
GMimeStream *
g_mime_stream_fs_new (int fd
);
Creates a new GMimeStreamFs object around fd
.
g_mime_stream_fs_open ()
GMimeStream * g_mime_stream_fs_open (const char *path
,int flags
,int mode
,GError **err
);
Creates a new GMimeStreamFs object for the specified path
.
g_mime_stream_fs_new_with_bounds ()
GMimeStream * g_mime_stream_fs_new_with_bounds (int fd
,gint64 start
,gint64 end
);
Creates a new GMimeStreamFs object around fd
with bounds start
and end
.
g_mime_stream_fs_get_owner ()
gboolean
g_mime_stream_fs_get_owner (GMimeStreamFs *stream
);
Gets whether or not stream
owns the backend file descriptor.
g_mime_stream_fs_set_owner ()
void g_mime_stream_fs_set_owner (GMimeStreamFs *stream
,gboolean owner
);
Sets whether or not stream
owns the backend file descriptor.
Note: owner
should be TRUE
if the stream should close()
the
backend file descriptor when destroyed or FALSE
otherwise.