[gnome-software/1364-implement-other-apps-by-author-section-in-app-details-page: 8/14] 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: 8/14] gs-plugin-appstream: Implement gs_plugin_add_search_other_apps()
- Date: Thu, 17 Mar 2022 10:20:30 +0000 (UTC)
commit fb9ccd56c8f33a58f14e40525a5bfa8ee99c7c77
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]