[tracker/async-queries-due] TrackerDBInterfaceSqlite: Implement interrupt().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/async-queries-due] TrackerDBInterfaceSqlite: Implement interrupt().
- Date: Fri, 16 Apr 2010 12:16:10 +0000 (UTC)
commit c4770416b33f46d6f920c938bbb8eb4b83d10968
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 16 14:02:48 2010 +0200
TrackerDBInterfaceSqlite: Implement interrupt().
src/libtracker-db/tracker-db-interface-sqlite.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 03cefb5..56710dc 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -780,11 +780,23 @@ tracker_db_interface_sqlite_execute_query (TrackerDBInterface *db_interface,
return result_set;
}
+static gboolean
+tracker_db_interface_sqlite_interrupt (TrackerDBInterface *iface)
+{
+ TrackerDBInterfaceSqlitePrivate *priv;
+
+ priv = TRACKER_DB_INTERFACE_SQLITE_GET_PRIVATE (iface);
+ sqlite3_interrupt (priv->db);
+
+ return TRUE;
+}
+
static void
tracker_db_interface_sqlite_iface_init (TrackerDBInterfaceIface *iface)
{
iface->create_statement = tracker_db_interface_sqlite_create_statement;
iface->execute_query = tracker_db_interface_sqlite_execute_query;
+ iface->interrupt = tracker_db_interface_sqlite_interrupt;
}
TrackerDBInterface *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]