summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-05-24 18:33:39 +0200
committerJean Felder <jean.felder@gmail.com>2020-08-21 15:05:10 +0000
commitf8e14b922b31d66c28e95715ebaa11669b5bdc28 (patch)
tree37ad4e3189d2b369e7d5b275560f3b9f5b7ac02a
parentad3967dd4b57ac43d6f209a5e0102166609ecebe (diff)
downloadgrilo-plugins-f8e14b922b31d66c28e95715ebaa11669b5bdc28.tar.gz
tracker3: Drop keys argument from GrlTrackerOp
This is no longer used.
-rw-r--r--src/tracker3/grl-tracker-source-api.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/tracker3/grl-tracker-source-api.c b/src/tracker3/grl-tracker-source-api.c
index 0148e94..ad1e964 100644
--- a/src/tracker3/grl-tracker-source-api.c
+++ b/src/tracker3/grl-tracker-source-api.c
@@ -192,14 +192,12 @@ fill_grilo_media_from_sparql (GrlTrackerSource *source,
static GrlTrackerOp *
grl_tracker_op_new (GrlTypeFilter type_filter,
- const GList *keys,
gpointer data)
{
GrlTrackerOp *os;
os = g_new0 (GrlTrackerOp, 1);
os->cancel = g_cancellable_new ();
- os->keys = keys;
os->type_filter = type_filter;
os->data = data;
@@ -618,8 +616,7 @@ grl_tracker_source_query (GrlSource *source,
if (!statement)
goto send_error;
- os = grl_tracker_op_new (grl_operation_options_get_type_filter (qs->options),
- qs->keys, qs);
+ os = grl_tracker_op_new (grl_operation_options_get_type_filter (qs->options), qs);
tracker_sparql_statement_execute_async (statement,
os->cancel,
@@ -670,7 +667,7 @@ grl_tracker_source_resolve (GrlSource *source,
return;
}
- os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, rs->keys, rs);
+ os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, rs);
tracker_sparql_statement_bind_string (statement, arg, value);
tracker_sparql_statement_execute_async (statement,
@@ -716,7 +713,7 @@ grl_tracker_source_store_metadata (GrlSource *source,
resource = grl_tracker_build_resource_from_media (sms->media, sms->keys);
- os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, sms->keys, sms);
+ os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, sms);
g_dbus_proxy_call (priv->writeback,
"Writeback",
@@ -759,8 +756,7 @@ grl_tracker_source_search (GrlSource *source, GrlSourceSearchSpec *ss)
return;
}
- os = grl_tracker_op_new (grl_operation_options_get_type_filter (ss->options),
- ss->keys, ss);
+ os = grl_tracker_op_new (grl_operation_options_get_type_filter (ss->options), ss);
if (ss->text && *ss->text) {
/* Make it a prefix search */
@@ -939,8 +935,7 @@ grl_tracker_source_browse_category (GrlSource *source,
return;
}
- os = grl_tracker_op_new (grl_operation_options_get_type_filter (bs->options),
- bs->keys, bs);
+ os = grl_tracker_op_new (grl_operation_options_get_type_filter (bs->options), bs);
tracker_sparql_statement_execute_async (statement,
os->cancel,
@@ -1120,7 +1115,7 @@ grl_tracker_source_get_media_from_uri (GrlSource *source,
return;
}
- os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, mfus->keys, mfus);
+ os = grl_tracker_op_new (GRL_TYPE_FILTER_ALL, mfus);
tracker_sparql_statement_bind_string (statement, "uri", mfus->uri);
tracker_sparql_statement_execute_async (statement,