From: Philipp Zabel Date: Mon, 23 Nov 2009 09:44:48 +0000 (+0100) Subject: sqlite3: add progress_handler method and ProgressCallback delegate X-Git-Tag: 0.7.9~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18756a4dde853f4dccf3bb969c045fe1e9ba5354;p=thirdparty%2Fvala.git sqlite3: add progress_handler method and ProgressCallback delegate Fixes bug 602702. --- diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi index ecff04c39..c9d3e266c 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 ();