X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgiostream.h;h=561b0e96487739638f77c4db8acf146939628e80;hb=f2786908a8858ec9d063e8fae7e4b2d8d612b682;hp=90283ddbd2b2598896622859665e806d59de8c53;hpb=0a2d47b626d130b0b795f76147c68132ede73b08;p=platform%2Fupstream%2Fglib.git diff --git a/gio/giostream.h b/gio/giostream.h index 90283dd..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,11 +83,15 @@ 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, @@ -96,26 +100,34 @@ void g_io_stream_splice_async (GIOStream *stream1, 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