[vala] sqlite3: add binding for sqlite3_update_hook
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] sqlite3: add binding for sqlite3_update_hook
- Date: Tue, 4 May 2010 23:49:58 +0000 (UTC)
commit 77048935bbd5ab61f9c3a7e05172c4f8e7fee326
Author: Evan Nemerson <evan coeus-group com>
Date: Tue May 4 16:48:28 2010 -0700
sqlite3: add binding for sqlite3_update_hook
vapi/sqlite3.vapi | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index 4ae8cd3..d44db08 100644
--- a/vapi/sqlite3.vapi
+++ b/vapi/sqlite3.vapi
@@ -85,6 +85,7 @@ namespace Sqlite {
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);
+ public void update_hook (UpdateCallback? update_hook);
public int create_function (string zFunctionName, int nArg, int eTextRep, void * user_data, UserFuncCallback? xFunc, UserFuncCallback? xStep, UserFuncFinishCallback? xFinal);
}
@@ -101,6 +102,8 @@ namespace Sqlite {
public delegate void UserFuncCallback (Sqlite.Context context, [CCode (array_length_pos = 1.1)] Sqlite.Value[] values);
[CCode (has_target = false)]
public delegate void UserFuncFinishCallback (Sqlite.Context context);
+ [CCode (instance_pos = 0)]
+ public delegate void UpdateCallback (Sqlite.Action action, string dbname, string table, int64 rowid);
public unowned string? compileoption_get (int n);
public int compileoption_used (string option_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]