[gnome-software: 64/72] gs-plugin-loader: Make gs_plugin_loader_run_adopt() public
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 64/72] gs-plugin-loader: Make gs_plugin_loader_run_adopt() public
- Date: Wed, 15 Dec 2021 13:00:56 +0000 (UTC)
commit d77adb1f61704ad70a14c599677f9554c6f4dfc0
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Nov 24 15:47:08 2021 +0000
gs-plugin-loader: Make gs_plugin_loader_run_adopt() public
It will need to be called from `GsPluginJobRefine`.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1472
lib/gs-plugin-loader.c | 14 +++++++++++++-
lib/gs-plugin-loader.h | 3 +++
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 731b881ce..212fa81ce 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -519,7 +519,19 @@ gs_plugin_error_handle_failure (GsPluginLoaderHelper *helper,
return TRUE;
}
-static void
+/**
+ * gs_plugin_loader_run_adopt:
+ * @plugin_loader: a #GsPluginLoader
+ * @list: list of apps to try and adopt
+ *
+ * Call the gs_plugin_adopt_app() function on each plugin on each app in @list
+ * to try and find the plugin which should manage each app.
+ *
+ * This function is intended to be used by internal gnome-software code.
+ *
+ * Since: 42
+ */
+void
gs_plugin_loader_run_adopt (GsPluginLoader *plugin_loader, GsAppList *list)
{
guint i;
diff --git a/lib/gs-plugin-loader.h b/lib/gs-plugin-loader.h
index 844c59423..15dc3ea06 100644
--- a/lib/gs-plugin-loader.h
+++ b/lib/gs-plugin-loader.h
@@ -112,4 +112,7 @@ void gs_plugin_loader_claim_job_error (GsPluginLoader
*plugin_loader,
gboolean gs_plugin_loader_app_is_valid (GsApp *app,
GsPluginRefineFlags flags);
+void gs_plugin_loader_run_adopt (GsPluginLoader *plugin_loader,
+ GsAppList *list);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]