Commit c457b391 authored by Kalev Lember's avatar Kalev Lember

Pass GsPluginJob to plugins

parent 81f568ae
Pipeline #143586 failed with stage
in 1 minute and 32 seconds
......@@ -90,79 +90,95 @@ typedef gboolean (*GsPluginSetupFunc) (GsPlugin *plugin,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginSearchFunc) (GsPlugin *plugin,
GsPluginJob *job,
gchar **value,
GsAppList *list,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginAlternatesFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginCategoryFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsCategory *category,
GsAppList *list,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginGetRecentFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
guint64 age,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginResultsFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginCategoriesFunc) (GsPlugin *plugin,
GsPluginJob *job,
GPtrArray *list,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginActionFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginReviewFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginRefineFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GsPluginRefineFlags refine_flags,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginRefineAppFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsPluginRefineFlags refine_flags,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginRefineWildcardFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GsPluginRefineFlags refine_flags,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginRefreshFunc) (GsPlugin *plugin,
GsPluginJob *job,
guint cache_age,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginFileToAppFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GFile *file,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginUrlToAppFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
const gchar *url,
GCancellable *cancellable,
GError **error);
typedef gboolean (*GsPluginUpdateFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *apps,
GCancellable *cancellable,
GError **error);
typedef void (*GsPluginAdoptAppFunc) (GsPlugin *plugin,
GsApp *app);
typedef gboolean (*GsPluginGetLangPacksFunc) (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
const gchar *locale,
GCancellable *cancellable,
......@@ -585,13 +601,13 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_REFINE:
if (g_strcmp0 (helper->function_name, "gs_plugin_refine_wildcard") == 0) {
GsPluginRefineWildcardFunc plugin_func = func;
ret = plugin_func (plugin, app, list, refine_flags, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, app, list, refine_flags, cancellable, &error_local);
} else if (g_strcmp0 (helper->function_name, "gs_plugin_refine_app") == 0) {
GsPluginRefineAppFunc plugin_func = func;
ret = plugin_func (plugin, app, refine_flags, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, app, refine_flags, cancellable, &error_local);
} else if (g_strcmp0 (helper->function_name, "gs_plugin_refine") == 0) {
GsPluginRefineFunc plugin_func = func;
ret = plugin_func (plugin, list, refine_flags, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, list, refine_flags, cancellable, &error_local);
} else {
g_critical ("function_name %s invalid for %s",
helper->function_name,
......@@ -601,10 +617,10 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_UPDATE:
if (g_strcmp0 (helper->function_name, "gs_plugin_update_app") == 0) {
GsPluginActionFunc plugin_func = func;
ret = plugin_func (plugin, app, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, app, cancellable, &error_local);
} else if (g_strcmp0 (helper->function_name, "gs_plugin_update") == 0) {
GsPluginUpdateFunc plugin_func = func;
ret = plugin_func (plugin, list, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, list, cancellable, &error_local);
} else {
g_critical ("function_name %s invalid for %s",
helper->function_name,
......@@ -614,10 +630,10 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_DOWNLOAD:
if (g_strcmp0 (helper->function_name, "gs_plugin_download_app") == 0) {
GsPluginActionFunc plugin_func = func;
ret = plugin_func (plugin, app, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, app, cancellable, &error_local);
} else if (g_strcmp0 (helper->function_name, "gs_plugin_download") == 0) {
GsPluginUpdateFunc plugin_func = func;
ret = plugin_func (plugin, list, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, list, cancellable, &error_local);
} else {
g_critical ("function_name %s invalid for %s",
helper->function_name,
......@@ -635,7 +651,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_REMOVE_SHORTCUT:
{
GsPluginActionFunc plugin_func = func;
ret = plugin_func (plugin, app, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, app, cancellable, &error_local);
}
break;
case GS_PLUGIN_ACTION_REVIEW_SUBMIT:
......@@ -646,7 +662,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_REVIEW_DISMISS:
{
GsPluginReviewFunc plugin_func = func;
ret = plugin_func (plugin, app,
ret = plugin_func (plugin, helper->plugin_job, app,
gs_plugin_job_get_review (helper->plugin_job),
cancellable, &error_local);
}
......@@ -654,7 +670,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_GET_RECENT:
{
GsPluginGetRecentFunc plugin_func = func;
ret = plugin_func (plugin, list,
ret = plugin_func (plugin, helper->plugin_job, list,
gs_plugin_job_get_age (helper->plugin_job),
cancellable, &error_local);
}
......@@ -669,13 +685,13 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_GET_FEATURED:
{
GsPluginResultsFunc plugin_func = func;
ret = plugin_func (plugin, list, cancellable, &error_local);
ret = plugin_func (plugin, helper->plugin_job, list, cancellable, &error_local);
}
break;
case GS_PLUGIN_ACTION_SEARCH:
{
GsPluginSearchFunc plugin_func = func;
ret = plugin_func (plugin, helper->tokens, list,
ret = plugin_func (plugin, helper->plugin_job, helper->tokens, list,
cancellable, &error_local);
}
break;
......@@ -684,21 +700,21 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
{
GsPluginSearchFunc plugin_func = func;
gchar *search[2] = { gs_plugin_job_get_search (helper->plugin_job), NULL };
ret = plugin_func (plugin, search, list,
ret = plugin_func (plugin, helper->plugin_job, search, list,
cancellable, &error_local);
}
break;
case GS_PLUGIN_ACTION_GET_ALTERNATES:
{
GsPluginAlternatesFunc plugin_func = func;
ret = plugin_func (plugin, app, list,
ret = plugin_func (plugin, helper->plugin_job, app, list,
cancellable, &error_local);
}
break;
case GS_PLUGIN_ACTION_GET_CATEGORIES:
{
GsPluginCategoriesFunc plugin_func = func;
ret = plugin_func (plugin, helper->catlist,
ret = plugin_func (plugin, helper->plugin_job, helper->catlist,
cancellable, &error_local);
}
break;
......@@ -706,6 +722,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
{
GsPluginCategoryFunc plugin_func = func;
ret = plugin_func (plugin,
helper->plugin_job,
gs_plugin_job_get_category (helper->plugin_job),
list,
cancellable, &error_local);
......@@ -715,6 +732,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
{
GsPluginRefreshFunc plugin_func = func;
ret = plugin_func (plugin,
helper->plugin_job,
gs_plugin_job_get_age (helper->plugin_job),
cancellable, &error_local);
}
......@@ -722,7 +740,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_FILE_TO_APP:
{
GsPluginFileToAppFunc plugin_func = func;
ret = plugin_func (plugin, list,
ret = plugin_func (plugin, helper->plugin_job, list,
gs_plugin_job_get_file (helper->plugin_job),
cancellable, &error_local);
}
......@@ -730,7 +748,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_URL_TO_APP:
{
GsPluginUrlToAppFunc plugin_func = func;
ret = plugin_func (plugin, list,
ret = plugin_func (plugin, helper->plugin_job, list,
gs_plugin_job_get_search (helper->plugin_job),
cancellable, &error_local);
}
......@@ -738,7 +756,7 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_GET_LANGPACKS:
{
GsPluginGetLangPacksFunc plugin_func = func;
ret = plugin_func (plugin, list,
ret = plugin_func (plugin, helper->plugin_job, list,
gs_plugin_job_get_search (helper->plugin_job),
cancellable, &error_local);
}
......@@ -3024,7 +3042,7 @@ gs_plugin_loader_generic_update (GsPluginLoader *plugin_loader,
g_object_unref);
gs_plugin_job_set_app (helper->plugin_job, app);
ret = plugin_app_func (plugin, app, app_cancellable, &error_local);
ret = plugin_app_func (plugin, helper->plugin_job, app, app_cancellable, &error_local);
g_cancellable_disconnect (cancellable, cancel_handler_id);
if (!ret) {
......
......@@ -24,6 +24,7 @@
#include "gs-app.h"
#include "gs-app-list.h"
#include "gs-category.h"
#include "gs-plugin-job.h"
G_BEGIN_DECLS
......@@ -82,6 +83,7 @@ void gs_plugin_adopt_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_search (GsPlugin *plugin,
GsPluginJob *job,
gchar **values,
GsAppList *list,
GCancellable *cancellable,
......@@ -103,6 +105,7 @@ gboolean gs_plugin_add_search (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_search_files (GsPlugin *plugin,
GsPluginJob *job,
gchar **values,
GsAppList *list,
GCancellable *cancellable,
......@@ -124,6 +127,7 @@ gboolean gs_plugin_add_search_files (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_search_what_provides (GsPlugin *plugin,
GsPluginJob *job,
gchar **values,
GsAppList *list,
GCancellable *cancellable,
......@@ -145,6 +149,7 @@ gboolean gs_plugin_add_search_what_provides (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_alternates (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GCancellable *cancellable,
......@@ -185,6 +190,7 @@ gboolean gs_plugin_setup (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_installed (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -206,6 +212,7 @@ gboolean gs_plugin_add_installed (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_updates (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -226,6 +233,7 @@ gboolean gs_plugin_add_updates (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_distro_upgrades (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -246,6 +254,7 @@ gboolean gs_plugin_add_distro_upgrades (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_sources (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -265,6 +274,7 @@ gboolean gs_plugin_add_sources (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_updates_historical (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -283,6 +293,7 @@ gboolean gs_plugin_add_updates_historical (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_categories (GsPlugin *plugin,
GsPluginJob *job,
GPtrArray *list,
GCancellable *cancellable,
GError **error);
......@@ -302,6 +313,7 @@ gboolean gs_plugin_add_categories (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_category_apps (GsPlugin *plugin,
GsPluginJob *job,
GsCategory *category,
GsAppList *list,
GCancellable *cancellable,
......@@ -322,6 +334,7 @@ gboolean gs_plugin_add_category_apps (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_recent (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
guint64 age,
GCancellable *cancellable,
......@@ -349,6 +362,7 @@ gboolean gs_plugin_add_recent (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_popular (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -376,6 +390,7 @@ gboolean gs_plugin_add_popular (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_featured (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -397,6 +412,7 @@ gboolean gs_plugin_add_featured (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_unvoted_reviews (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error);
......@@ -420,6 +436,7 @@ gboolean gs_plugin_add_unvoted_reviews (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_refine (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GsPluginRefineFlags flags,
GCancellable *cancellable,
......@@ -448,6 +465,7 @@ gboolean gs_plugin_refine (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_refine_app (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsPluginRefineFlags flags,
GCancellable *cancellable,
......@@ -471,6 +489,7 @@ gboolean gs_plugin_refine_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_refine_wildcard (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GsPluginRefineFlags flags,
......@@ -493,6 +512,7 @@ gboolean gs_plugin_refine_wildcard (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_launch (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -509,6 +529,7 @@ gboolean gs_plugin_launch (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_shortcut (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -525,6 +546,7 @@ gboolean gs_plugin_add_shortcut (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_remove_shortcut (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -541,6 +563,7 @@ gboolean gs_plugin_remove_shortcut (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_update_cancel (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -570,6 +593,7 @@ gboolean gs_plugin_update_cancel (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_app_install (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -599,6 +623,7 @@ gboolean gs_plugin_app_install (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_app_remove (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -617,6 +642,7 @@ gboolean gs_plugin_app_remove (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_app_set_rating (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -650,6 +676,7 @@ gboolean gs_plugin_app_set_rating (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_update_app (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -684,6 +711,7 @@ gboolean gs_plugin_update_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_download_app (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -705,6 +733,7 @@ gboolean gs_plugin_download_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_download (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *apps,
GCancellable *cancellable,
GError **error);
......@@ -725,6 +754,7 @@ gboolean gs_plugin_download (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_app_upgrade_download (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -741,6 +771,7 @@ gboolean gs_plugin_app_upgrade_download (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_app_upgrade_trigger (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GCancellable *cancellable,
GError **error);
......@@ -758,6 +789,7 @@ gboolean gs_plugin_app_upgrade_trigger (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_submit (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -776,6 +808,7 @@ gboolean gs_plugin_review_submit (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_upvote (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -796,6 +829,7 @@ gboolean gs_plugin_review_upvote (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_downvote (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -816,6 +850,7 @@ gboolean gs_plugin_review_downvote (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_report (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -835,6 +870,7 @@ gboolean gs_plugin_review_report (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_remove (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -855,6 +891,7 @@ gboolean gs_plugin_review_remove (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_review_dismiss (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
AsReview *review,
GCancellable *cancellable,
......@@ -878,6 +915,7 @@ gboolean gs_plugin_review_dismiss (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_refresh (GsPlugin *plugin,
GsPluginJob *job,
guint cache_age,
GCancellable *cancellable,
GError **error);
......@@ -904,6 +942,7 @@ gboolean gs_plugin_refresh (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_file_to_app (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GFile *file,
GCancellable *cancellable,
......@@ -928,6 +967,7 @@ gboolean gs_plugin_file_to_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_url_to_app (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
const gchar *url,
GCancellable *cancellable,
......@@ -945,6 +985,7 @@ gboolean gs_plugin_url_to_app (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_update (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *apps,
GCancellable *cancellable,
GError **error);
......@@ -962,6 +1003,7 @@ gboolean gs_plugin_update (GsPlugin *plugin,
* Returns: %TRUE for success or if not relevant
**/
gboolean gs_plugin_add_langpacks (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
const gchar *locale,
GCancellable *cancellable,
......
......@@ -573,6 +573,7 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
gboolean
gs_plugin_url_to_app (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
const gchar *url,
GCancellable *cancellable,
......@@ -782,6 +783,7 @@ gs_plugin_refine_from_pkgname (GsPlugin *plugin,
gboolean
gs_plugin_refine_app (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsPluginRefineFlags flags,
GCancellable *cancellable,
......@@ -812,6 +814,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
gboolean
gs_plugin_refine_wildcard (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GsPluginRefineFlags refine_flags,
......@@ -869,6 +872,7 @@ gs_plugin_refine_wildcard (GsPlugin *plugin,
gboolean
gs_plugin_add_category_apps (GsPlugin *plugin,
GsPluginJob *job,
GsCategory *category,
GsAppList *list,
GCancellable *cancellable,
......@@ -891,6 +895,7 @@ gs_plugin_add_category_apps (GsPlugin *plugin,
gboolean
gs_plugin_add_search (GsPlugin *plugin,
GsPluginJob *job,
gchar **values,
GsAppList *list,
GCancellable *cancellable,
......@@ -913,6 +918,7 @@ gs_plugin_add_search (GsPlugin *plugin,
gboolean
gs_plugin_add_installed (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error)
......@@ -945,6 +951,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
gboolean
gs_plugin_add_categories (GsPlugin *plugin,
GsPluginJob *job,
GPtrArray *list,
GCancellable *cancellable,
GError **error)
......@@ -962,6 +969,7 @@ gs_plugin_add_categories (GsPlugin *plugin,
gboolean
gs_plugin_add_popular (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error)
......@@ -978,6 +986,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
gboolean
gs_plugin_add_featured (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GCancellable *cancellable,
GError **error)
......@@ -994,6 +1003,7 @@ gs_plugin_add_featured (GsPlugin *plugin,
gboolean
gs_plugin_add_recent (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
guint64 age,
GCancellable *cancellable,
......@@ -1012,6 +1022,7 @@ gs_plugin_add_recent (GsPlugin *plugin,
gboolean
gs_plugin_add_alternates (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsAppList *list,
GCancellable *cancellable,
......@@ -1030,6 +1041,7 @@ gs_plugin_add_alternates (GsPlugin *plugin,
gboolean
gs_plugin_refresh (GsPlugin *plugin,
GsPluginJob *job,
guint cache_age,
GCancellable *cancellable,
GError **error)
......
......@@ -28,6 +28,7 @@ gs_plugin_initialize (GsPlugin *plugin)
gboolean
gs_plugin_add_categories (GsPlugin *plugin,
GsPluginJob *job,
GPtrArray *list,
GCancellable *cancellable,
GError **error)
......@@ -71,6 +72,7 @@ gs_plugin_add_categories (GsPlugin *plugin,
* overview page or `gnome-software-cmd get-category-apps games/featured` */
gboolean
gs_plugin_add_category_apps (GsPlugin *plugin,
GsPluginJob *job,
GsCategory *category,
GsAppList *list,
GCancellable *cancellable,
......
......@@ -42,6 +42,7 @@ _gs_app_has_desktop_group (GsApp *app, const gchar *desktop_group)
/* adds the menu-path for applications */
gboolean
gs_plugin_refine_app (GsPlugin *plugin,
GsPluginJob *job,
GsApp *app,
GsPluginRefineFlags flags,
GCancellable *cancellable,
......
......@@ -70,6 +70,7 @@ gs_plugin_generic_updates_get_os_update (GsPlugin *plugin)
gboolean
gs_plugin_refine (GsPlugin *plugin,
GsPluginJob *job,
GsAppList *list,
GsPluginRefineFlags flags,
GCancellable *cancellable,
......