| GMime 2.6 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GMimeStreamPipe; GMimeStream * g_mime_stream_pipe_new (int fd); gboolean g_mime_stream_pipe_get_owner (GMimeStreamPipe *stream); void g_mime_stream_pipe_set_owner (GMimeStreamPipe *stream,gboolean owner);
struct GMimeStreamPipe {
GMimeStream parent_object;
gboolean owner;
gboolean eos;
int fd;
};
A GMimeStream wrapper around pipes.
GMimeStream |
parent GMimeStream |
TRUE if this stream owns fd
|
|
TRUE if end-of-stream |
|
| pipe descriptor |
GMimeStream * g_mime_stream_pipe_new (int fd);
Creates a new GMimeStreamPipe object around fd.
|
a pipe descriptor |
Returns : |
a stream using fd. |
gboolean g_mime_stream_pipe_get_owner (GMimeStreamPipe *stream);
Gets whether or not stream owns the backend pipe descriptor.
|
a GMimeStreamPipe |
Returns : |
TRUE if stream owns the backend pipe descriptor or FALSE
otherwise. |
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.
|
a GMimeStreamPipe |
|
owner |