GMimeStreamPipe
GMimeStreamPipe
— A low-level pipe stream
Description
A simple GMimeStream implementation that sits on top of low-level
POSIX pipes.
Functions
g_mime_stream_pipe_new ()
GMimeStream *
g_mime_stream_pipe_new (int fd
);
Creates a new GMimeStreamPipe object around fd
.
Returns
a stream using fd
.
g_mime_stream_pipe_get_owner ()
gboolean
g_mime_stream_pipe_get_owner (GMimeStreamPipe *stream
);
Gets whether or not stream
owns the backend pipe descriptor.
Returns
TRUE
if stream
owns the backend pipe descriptor or FALSE
otherwise.
g_mime_stream_pipe_set_owner ()
void
g_mime_stream_pipe_set_owner (GMimeStreamPipe *stream
,
gboolean owner
);
Sets whether or not stream
owns the backend pipe descriptor.
Note: owner
should be TRUE
if the stream should close()
the
backend pipe descriptor when destroyed or FALSE
otherwise.
Types and Values
struct GMimeStreamPipe
struct GMimeStreamPipe {
GMimeStream parent_object;
gboolean owner;
gboolean eos;
int fd;
};
A GMimeStream wrapper around pipes.