[gnome-software/1409-add-available-for-fedora-section-to-the-explore-page: 185/187] gs-plugin-appstream: Implement gs_plugin_add_distro_featured()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1409-add-available-for-fedora-section-to-the-explore-page: 185/187] gs-plugin-appstream: Implement gs_plugin_add_distro_featured()
- Date: Thu, 7 Oct 2021 10:43:04 +0000 (UTC)
commit 360565f87cf1fc0d88d79c90d8e7cc8637f07119
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 8 15:56:57 2021 +0200
gs-plugin-appstream: Implement gs_plugin_add_distro_featured()
plugins/core/gs-plugin-appstream.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 5d61c5b6a..fc1576838 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -1126,6 +1126,22 @@ gs_plugin_add_featured (GsPlugin *plugin,
return gs_appstream_add_featured (priv->silo, list, cancellable, error);
}
+gboolean
+gs_plugin_add_distro_featured (GsPlugin *plugin,
+ GsAppList *list,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GsPluginData *priv = gs_plugin_get_data (plugin);
+ g_autoptr(GRWLockReaderLocker) locker = NULL;
+
+ if (!gs_plugin_appstream_check_silo (plugin, cancellable, error))
+ return FALSE;
+
+ locker = g_rw_lock_reader_locker_new (&priv->silo_lock);
+ return gs_appstream_add_distro_featured (priv->silo, list, cancellable, error);
+}
+
gboolean
gs_plugin_add_recent (GsPlugin *plugin,
GsAppList *list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]