[gnome-software/1364-implement-other-apps-by-author-section-in-app-details-page: 32/38] gs-plugin-appstream: Implement gs_plugin_add_search_other_apps()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1364-implement-other-apps-by-author-section-in-app-details-page: 32/38] gs-plugin-appstream: Implement gs_plugin_add_search_other_apps()
- Date: Tue, 15 Mar 2022 17:25:38 +0000 (UTC)
commit 0fb2fd17dfaa2f61a24d543cf8cd488beebbdf41
Author: Milan Crha <mcrha redhat com>
Date: Tue Mar 15 18:17:41 2022 +0100
gs-plugin-appstream: Implement gs_plugin_add_search_other_apps()
plugins/core/gs-plugin-appstream.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 60e206ff9..ae1fa6f3c 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -1311,6 +1311,28 @@ gs_plugin_add_search (GsPlugin *plugin,
error);
}
+gboolean
+gs_plugin_add_search_other_apps (GsPlugin *plugin,
+ gchar **values,
+ GsAppList *list,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GsPluginAppstream *self = GS_PLUGIN_APPSTREAM (plugin);
+ g_autoptr(GRWLockReaderLocker) locker = NULL;
+
+ if (!gs_plugin_appstream_check_silo (self, cancellable, error))
+ return FALSE;
+
+ locker = g_rw_lock_reader_locker_new (&self->silo_lock);
+ return gs_appstream_search_other_apps (plugin,
+ self->silo,
+ (const gchar * const *) values,
+ list,
+ cancellable,
+ error);
+}
+
static void list_installed_apps_thread_cb (GTask *task,
gpointer source_object,
gpointer task_data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]