Add docs
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 13 Aug 2008 05:35:10 +0000 (05:35 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 13 Aug 2008 05:35:10 +0000 (05:35 +0000)
svn path=/trunk/; revision=7346

gio/ChangeLog
gio/ginputstream.c
gio/goutputstream.c

index 58300f1..5fe43d5 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * ginputstream.c:
+       * goutputstream.c: Add intro docs.
+
 2008-08-13  Tor Lillqvist  <tml@novell.com>
 
        * win32/gwinhttpfileoutputstream.c
index 740de34..663bfde 100644 (file)
  * @short_description: Base class for implementing streaming input
  * @include: gio/gio.h
  *
- * 
- * 
+ * GInputStream has functions to read from a stream (g_input_stream_read()),
+ * to close a stream (g_input_stream_close()) and to skip some content
+ * (g_input_stream_skip()). 
+ *
+ * To copy the content of an input stream to an output stream without 
+ * manually handling the reads and writes, use g_output_stream_splice(). 
+ *
+ * All of these functions have async variants too.
  **/
 
 G_DEFINE_TYPE (GInputStream, g_input_stream, G_TYPE_OBJECT);
index 42c5531..3f7155d 100644 (file)
  * @short_description: Base class for implementing streaming output
  * @include: gio/gio.h
  *
+ * GOutputStream has functions to write to a stream (g_output_stream_write()),
+ * to close a stream (g_output_stream_close()) and to flush pending writes
+ * (g_output_stream_flush()). 
  *
+ * To copy the content of an input stream to an output stream without 
+ * manually handling the reads and writes, use g_output_stream_splice(). 
+ *
+ * All of these functions have async variants too.
  **/
 
 G_DEFINE_TYPE (GOutputStream, g_output_stream, G_TYPE_OBJECT);