]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
sqlite3: add progress_handler method and ProgressCallback delegate
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 23 Nov 2009 09:44:48 +0000 (10:44 +0100)
committerEvan Nemerson <evan@coeus-group.com>
Tue, 24 Nov 2009 08:33:32 +0000 (00:33 -0800)
Fixes bug 602702.

vapi/sqlite3.vapi

index ecff04c390f0ffb6d9a4bf27a6d7a4a03a660be7..c9d3e266cd2fa71d5e82d135ea79b2366f7604df 100644 (file)
@@ -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 ();