| GMime 2.6 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
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);
typedef struct _GMimeStreamPipe GMimeStreamPipe;
A GMimeStream wrapper around pipes.
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 |