[vala] sqlite3: add progress_handler method and ProgressCallback delegate



commit 18756a4dde853f4dccf3bb969c045fe1e9ba5354
Author: Philipp Zabel <philipp zabel gmail com>
Date:   Mon Nov 23 10:44:48 2009 +0100

    sqlite3: add progress_handler method and ProgressCallback delegate
    
    Fixes bug 602702.

 vapi/sqlite3.vapi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index ecff04c..c9d3e26 100644
--- a/vapi/sqlite3.vapi
+++ b/vapi/sqlite3.vapi
@@ -46,6 +46,7 @@ namespace Sqlite {
 		public int prepare_v2 (string sql, int n_bytes, out Statement stmt, out string tail = null);
 		public void trace (TraceCallback? xtrace);
 		public void profile (ProfileCallback? xprofile);
+		public void progress_handler (int n_opcodes, Sqlite.ProgressCallback? progress_handler);
 		public void commit_hook (CommitCallback? commit_hook);
 		public void rollback_hook (RollbackCallback? rollback_hook);
 	}
@@ -54,6 +55,7 @@ namespace Sqlite {
 	public delegate void TraceCallback (string message);
 	[CCode (instance_pos = 0)]
 	public delegate void ProfileCallback (string sql, uint64 time);
+	public delegate int ProgressCallback ();
 	public delegate int CommitCallback ();
 	public delegate void RollbackCallback ();
 



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