summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2008-08-12 20:06:30 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2008-08-12 20:06:30 +0000
commitbb8fa613012bfa6337e1ae1bb6eb0bbfa00e397c (patch)
tree750ba4ee469eda324222310a144083fb42bf8a00
parent9ecb2ef1203b8667f4c05798f5bf9306f599bbab (diff)
downloadpygobject-bb8fa613012bfa6337e1ae1bb6eb0bbfa00e397c.tar.gz
pygobject-bb8fa613012bfa6337e1ae1bb6eb0bbfa00e397c.tar.xz
pygobject-bb8fa613012bfa6337e1ae1bb6eb0bbfa00e397c.zip
Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until
2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until * tests/test_gio.py (TestDataInputStream): New test case. * gio/gio.defs (read_line, read_until): Document. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=947
-rw-r--r--ChangeLog2
-rw-r--r--gio/gio.defs9
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cd7549e..e6de6b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
* tests/test_gio.py (TestDataInputStream): New test case.
+ * gio/gio.defs (read_line, read_until): Document.
+
* gio/ginputstream.override (_wrap_g_data_input_stream_read_line)
(_wrap_g_data_input_stream_read_until): New functions.
diff --git a/gio/gio.defs b/gio/gio.defs
index aa5c8b0..1d7cde0 100644
--- a/gio/gio.defs
+++ b/gio/gio.defs
@@ -713,6 +713,10 @@
(define-method read_line
(of-object "GDataInputStream")
+ (docstring
+ "S.read_line([cancellable]) -> str\n"
+ "Read a line from the stream. Return value includes ending newline\n"
+ "character.")
(c-name "g_data_input_stream_read_line")
(return-type "char*")
(parameters
@@ -724,6 +728,11 @@
(define-method read_until
(of-object "GDataInputStream")
+ (docstring
+ "S.read_until(stop_chars, [cancellable]) -> str\n"
+ "Read characters from the string, stopping at the end or upon reading\n"
+ "any character in stop_chars. Return value does not include the stopping\n"
+ "character.")
(c-name "g_data_input_stream_read_until")
(return-type "char*")
(parameters