[tracker/rss-enclosures] TrackerDBInterfaceSqlite: Implement interrupt().



commit 06a127627e9af1112c982897b3dfff514a8e13e7
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]