diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-03-07 17:36:06 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-03-15 11:09:32 +0000 |
commit | d6aa393578667575a2c31863e94023779d6794fc (patch) | |
tree | 12e0f1948f16be0619fe097e368612ab53b21452 /gio/gpollableoutputstream.h | |
parent | 6837c34c84697df50d8300fdf7f32739361f4e7a (diff) | |
download | glib-d6aa393578667575a2c31863e94023779d6794fc.tar.gz |
gpollableoutputstream: Add vfunc documentation for writev_nonblocking
This was missing from the original merge request.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'gio/gpollableoutputstream.h')
-rw-r--r-- | gio/gpollableoutputstream.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gio/gpollableoutputstream.h b/gio/gpollableoutputstream.h index c1e7ad889..c282afdec 100644 --- a/gio/gpollableoutputstream.h +++ b/gio/gpollableoutputstream.h @@ -49,6 +49,8 @@ typedef struct _GPollableOutputStreamInterface GPollableOutputStreamInterface; * @create_source: Creates a #GSource to poll the stream * @write_nonblocking: Does a non-blocking write or returns * %G_IO_ERROR_WOULD_BLOCK + * @writev_nonblocking: Does a vectored non-blocking write, or returns + * %G_POLLABLE_RETURN_WOULD_BLOCK * * The interface for pollable output streams. * @@ -61,6 +63,12 @@ typedef struct _GPollableOutputStreamInterface GPollableOutputStreamInterface; * implementation may return %TRUE when the stream is not actually * writable. * + * The default implementation of @writev_nonblocking calls + * g_pollable_output_stream_write_nonblocking() for each vector, and converts + * its return value and error (if set) to a #GPollableReturn. You should + * override this where possible to avoid having to allocate a #GError to return + * %G_IO_ERROR_WOULD_BLOCK. + * * Since: 2.28 */ struct _GPollableOutputStreamInterface |