X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgpollableoutputstream.h;h=f1c183bc01009173a1091a798162222e8fc2da29;hb=ffe286e647ce9ba9bb8e1631ba3cf0194038f438;hp=abef0ede6e83195e9b7ffcb76f31445b2c9ad392;hpb=631d0c3534661e549f7df18fbb9832bdf19c5eaf;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gpollableoutputstream.h b/gio/gpollableoutputstream.h index abef0ed..f1c183b 100644 --- a/gio/gpollableoutputstream.h +++ b/gio/gpollableoutputstream.h @@ -13,14 +13,16 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . */ #ifndef __G_POLLABLE_OUTPUT_STREAM_H__ #define __G_POLLABLE_OUTPUT_STREAM_H__ +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only can be included directly." +#endif + #include G_BEGIN_DECLS @@ -73,21 +75,26 @@ struct _GPollableOutputStreamInterface GCancellable *cancellable); gssize (*write_nonblocking) (GPollableOutputStream *stream, const void *buffer, - gsize size, + gsize count, GError **error); }; +GLIB_AVAILABLE_IN_ALL GType g_pollable_output_stream_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL gboolean g_pollable_output_stream_can_poll (GPollableOutputStream *stream); +GLIB_AVAILABLE_IN_ALL gboolean g_pollable_output_stream_is_writable (GPollableOutputStream *stream); +GLIB_AVAILABLE_IN_ALL GSource *g_pollable_output_stream_create_source (GPollableOutputStream *stream, GCancellable *cancellable); +GLIB_AVAILABLE_IN_ALL gssize g_pollable_output_stream_write_nonblocking (GPollableOutputStream *stream, const void *buffer, - gsize size, + gsize count, GCancellable *cancellable, GError **error);