diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h index f238ce7..f05e3ab 100644 --- a/src/common.h +++ b/src/common.h @@ -27,10 +27,23 @@ G_BEGIN_DECLS -void _g_io_stream_splice_async (GIOStream *stream1, GIOStream *stream2, - GAsyncReadyCallback callback, gpointer user_data); - -gboolean _g_io_stream_splice_finish (GAsyncResult *result, GError **error); +typedef enum { + _G_IO_STREAM_SPLICE_NONE = 0, + _G_IO_STREAM_SPLICE_CLOSE_STREAM1 = (1 << 0), + _G_IO_STREAM_SPLICE_CLOSE_STREAM2 = (1 << 1), + _G_IO_STREAM_SPLICE_WAIT_FOR_BOTH = (1 << 2), +} _GIOStreamSpliceFlags; + +void _g_io_stream_splice_async (GIOStream *stream1, + GIOStream *stream2, + _GIOStreamSpliceFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean _g_io_stream_splice_finish (GAsyncResult *result, + GError **error); G_END_DECLS |