[gnome-software/1364-implement-other-apps-by-author-section-in-app-details-page: 9/15] 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: 9/15] gs-plugin-appstream: Implement gs_plugin_add_search_other_apps()
- Date: Wed, 16 Mar 2022 17:34:41 +0000 (UTC)
commit 8fc30e38c0013c7abb75bbb30711982c7b2e8e0c
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]