[tracker/libtracker-sparql: 42/43] libtracker-sparql: Add priority parameter to sync methods as well
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-sparql: 42/43] libtracker-sparql: Add priority parameter to sync methods as well
- Date: Mon, 9 Aug 2010 15:55:44 +0000 (UTC)
commit 195ae9b3f593ddfda10f20d10ca81f12e369a45a
Author: Jürg Billeter <j bitron ch>
Date: Mon Aug 9 12:10:40 2010 +0200
libtracker-sparql: Add priority parameter to sync methods as well
src/libtracker-sparql/tracker-connection.vala | 6 ++++--
src/libtracker-sparql/tracker-plugin-loader.vala | 8 ++++----
2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index c8f058e..9b14ca6 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -238,13 +238,14 @@ public abstract class Tracker.Sparql.Connection : Object {
* tracker_sparql_connection_update:
* @self: a #TrackerSparqlConnection
* @sparql: string containing the SPARQL update query
+ * @priority: the priority for the operation
* @cancellable: a #GCancellable used to cancel the operation
* @error: #GError for error reporting.
*
* Executes a SPARQL update on the store. The API call is completely
* synchronous, so it may block.
*/
- public virtual void update (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
+ public virtual void update (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'update' not implemented");
}
@@ -277,6 +278,7 @@ public abstract class Tracker.Sparql.Connection : Object {
* tracker_sparql_connection_update_blank:
* @self: a #TrackerSparqlConnection
* @sparql: string containing the SPARQL update query
+ * @priority: the priority for the operation
* @cancellable: a #GCancellable used to cancel the operation
* @error: #GError for error reporting.
*
@@ -287,7 +289,7 @@ public abstract class Tracker.Sparql.Connection : Object {
* Returns: a #GVariant with the generated URNs, which should be freed with
* g_variant_unref() when no longer used.
*/
- public virtual GLib.Variant? update_blank (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
+ public virtual GLib.Variant? update_blank (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'update_blank' not implemented");
return null;
}
diff --git a/src/libtracker-sparql/tracker-plugin-loader.vala b/src/libtracker-sparql/tracker-plugin-loader.vala
index ef2914e..b04035e 100644
--- a/src/libtracker-sparql/tracker-plugin-loader.vala
+++ b/src/libtracker-sparql/tracker-plugin-loader.vala
@@ -55,12 +55,12 @@ class Tracker.Sparql.PluginLoader : Connection {
}
}
- public override void update (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
- bus.update (sparql, cancellable);
+ public override void update (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
+ bus.update (sparql, priority, cancellable);
}
- public override GLib.Variant? update_blank (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
- return bus.update_blank (sparql, cancellable);
+ public override GLib.Variant? update_blank (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
+ return bus.update_blank (sparql, priority, cancellable);
}
public async override void update_async (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]