## GMimeStreamPipe GMimeStreamPipe — A low-level pipe stream |

## Synopsis

    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);

## Object Hierarchy

      GObject
       +----GMimeStream
             +----GMimeStreamPipe

## Description

A simple GMimeStream implementation that sits on top of low-level POSIX pipes.

## Details

### struct GMimeStreamPipe

    struct GMimeStreamPipe;

A GMimeStream wrapper around pipes.

### g_mime_stream_pipe_new ()

    GMimeStream *       g_mime_stream_pipe_new              (int fd);

Creates a new GMimeStreamPipe object around `fd`.

`fd` : | a pipe descriptor
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.

`stream` : | a GMimeStreamPipe
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.

`stream` : | a GMimeStreamPipe
`owner` : | owner

## See Also

GMimeStream