X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgiostream.h;h=561b0e96487739638f77c4db8acf146939628e80;hb=ffe286e647ce9ba9bb8e1631ba3cf0194038f438;hp=048fd4f106b47d218d55c5fcadcac14a7998e81e;hpb=73ca8b47540d005d5227c03aac143d6780da654c;p=platform%2Fupstream%2Fglib.git diff --git a/gio/giostream.h b/gio/giostream.h index 048fd4f..561b0e9 100644 --- a/gio/giostream.h +++ b/gio/giostream.h @@ -14,13 +14,13 @@ * Alexander Larsson */ +#ifndef __G_IO_STREAM_H__ +#define __G_IO_STREAM_H__ + #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) #error "Only can be included directly." #endif -#ifndef __G_IO_STREAM_H__ -#define __G_IO_STREAM_H__ - #include #include #include @@ -83,28 +83,51 @@ struct _GIOStreamClass void (*_g_reserved10) (void); }; +GLIB_AVAILABLE_IN_ALL GType g_io_stream_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL GInputStream * g_io_stream_get_input_stream (GIOStream *stream); +GLIB_AVAILABLE_IN_ALL GOutputStream *g_io_stream_get_output_stream (GIOStream *stream); +GLIB_AVAILABLE_IN_ALL +void g_io_stream_splice_async (GIOStream *stream1, + GIOStream *stream2, + GIOStreamSpliceFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +GLIB_AVAILABLE_IN_ALL +gboolean g_io_stream_splice_finish (GAsyncResult *result, + GError **error); + +GLIB_AVAILABLE_IN_ALL gboolean g_io_stream_close (GIOStream *stream, GCancellable *cancellable, GError **error); +GLIB_AVAILABLE_IN_ALL void g_io_stream_close_async (GIOStream *stream, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); +GLIB_AVAILABLE_IN_ALL gboolean g_io_stream_close_finish (GIOStream *stream, GAsyncResult *result, GError **error); +GLIB_AVAILABLE_IN_ALL gboolean g_io_stream_is_closed (GIOStream *stream); +GLIB_AVAILABLE_IN_ALL gboolean g_io_stream_has_pending (GIOStream *stream); +GLIB_AVAILABLE_IN_ALL gboolean g_io_stream_set_pending (GIOStream *stream, GError **error); +GLIB_AVAILABLE_IN_ALL void g_io_stream_clear_pending (GIOStream *stream); G_END_DECLS