[gxml] * make more IO cancellable



commit 828a6c957832fdbca6e8191f1f6775c05ebabe08
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sun Aug 7 12:18:09 2011 +0200

    * make more IO cancellable

 gxml/Document.vala |    4 ++--
 plan.txt           |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gxml/Document.vala b/gxml/Document.vala
index d46f7e6..93429e1 100644
--- a/gxml/Document.vala
+++ b/gxml/Document.vala
@@ -302,9 +302,9 @@ namespace GXml.Dom {
 		 *
 		 * @throws DomError When a Document cannot be constructed for the specified stream.
 		 */
-		public Document.for_stream (InputStream instream) throws DomError {
+		public Document.for_stream (InputStream instream, Cancellable? can = null) throws DomError {
 			// TODO: accept Cancellable
-			Cancellable can = new Cancellable ();
+			// Cancellable can = new Cancellable ();
 			InputStreamBox box = { instream, can };
 
 			Xml.TextReader reader = new Xml.TextReader.for_io ((Xml.InputReadCallback)_ioread,
diff --git a/plan.txt b/plan.txt
index 9bd625a..89e7bbd 100644
--- a/plan.txt
+++ b/plan.txt
@@ -3,6 +3,7 @@ C test files
 gtkdoc-doclet
   look at libfolks' makefile
 switch to libgee from GLib
+figure out which IO operations should be cancellable (all?)
 
 TODO:
 get vala mode



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]