[gnome-software] Pass the refine flags down to the plugins
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Pass the refine flags down to the plugins
- Date: Wed, 9 Oct 2013 12:17:08 +0000 (UTC)
commit 851519ee057f167f2043572cfecfb36e0983a158
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 9 12:28:55 2013 +0100
Pass the refine flags down to the plugins
We'll need this when we start getting values other than those set by default.
src/gs-plugin-loader-sync.c | 10 +++---
src/gs-plugin-loader-sync.h | 10 +++---
src/gs-plugin-loader.c | 33 +++++++++++++----------
src/gs-plugin-loader.h | 28 ++++++++------------
src/gs-plugin.h | 8 ++++++
src/gs-self-test.c | 16 ++++++------
src/gs-shell-category.c | 2 +-
src/gs-shell-details.c | 4 +-
src/gs-shell-installed.c | 4 +-
src/gs-shell-overview.c | 6 ++--
src/gs-shell-search.c | 6 ++--
src/gs-shell-updates.c | 2 +-
src/plugins/gs-plugin-appdata.c | 1 +
src/plugins/gs-plugin-appstream.c | 1 +
src/plugins/gs-plugin-datadir-apps.c | 1 +
src/plugins/gs-plugin-datadir-filename-local.c | 1 +
src/plugins/gs-plugin-datadir-filename.c | 1 +
src/plugins/gs-plugin-desktopdb.c | 1 +
src/plugins/gs-plugin-dummy.c | 1 +
src/plugins/gs-plugin-hardcoded-kind.c | 1 +
src/plugins/gs-plugin-hardcoded-ratings.c | 1 +
src/plugins/gs-plugin-local-ratings.c | 1 +
src/plugins/gs-plugin-packagekit-history.c | 1 +
src/plugins/gs-plugin-packagekit-refine.c | 1 +
src/plugins/gs-plugin-self-test.c | 1 +
25 files changed, 81 insertions(+), 61 deletions(-)
---
diff --git a/src/gs-plugin-loader-sync.c b/src/gs-plugin-loader-sync.c
index 87d5494..b4a2688 100644
--- a/src/gs-plugin-loader-sync.c
+++ b/src/gs-plugin-loader-sync.c
@@ -47,7 +47,7 @@ gs_plugin_loader_get_installed_finish_sync (GsPluginLoader *plugin_loader,
**/
GList *
gs_plugin_loader_get_installed (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -92,7 +92,7 @@ gs_plugin_loader_get_updates_finish_sync (GsPluginLoader *plugin_loader,
**/
GList *
gs_plugin_loader_get_updates (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -137,7 +137,7 @@ gs_plugin_loader_get_popular_finish_sync (GsPluginLoader *plugin_loader,
**/
GList *
gs_plugin_loader_get_popular (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -182,7 +182,7 @@ gs_plugin_loader_get_categories_finish_sync (GsPluginLoader *plugin_loader,
**/
GList *
gs_plugin_loader_get_categories (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -228,7 +228,7 @@ gs_plugin_loader_get_category_apps_finish_sync (GsPluginLoader *plugin_loader,
GList *
gs_plugin_loader_get_category_apps (GsPluginLoader *plugin_loader,
GsCategory *category,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/gs-plugin-loader-sync.h b/src/gs-plugin-loader-sync.h
index 3bb6648..8383aa2 100644
--- a/src/gs-plugin-loader-sync.h
+++ b/src/gs-plugin-loader-sync.h
@@ -29,24 +29,24 @@
G_BEGIN_DECLS
GList *gs_plugin_loader_get_installed (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
GList *gs_plugin_loader_get_updates (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
GList *gs_plugin_loader_get_popular (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
GList *gs_plugin_loader_get_categories (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
GList *gs_plugin_loader_get_category_apps (GsPluginLoader *plugin_loader,
GsCategory *category,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index c99080a..77341d7 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -172,6 +172,7 @@ static gboolean
gs_plugin_loader_run_refine (GsPluginLoader *plugin_loader,
const gchar *function_name_parent,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -197,7 +198,7 @@ gs_plugin_loader_run_refine (GsPluginLoader *plugin_loader,
function_name_parent,
function_name);
gs_profile_start (plugin_loader->priv->profile, profile_id);
- ret = plugin_func (plugin, list, cancellable, error);
+ ret = plugin_func (plugin, list, flags, cancellable, error);
if (!ret)
goto out;
gs_plugin_status_update (plugin, NULL, GS_PLUGIN_STATUS_FINISHED);
@@ -275,6 +276,7 @@ gs_plugin_loader_run_results (GsPluginLoader *plugin_loader,
ret = gs_plugin_loader_run_refine (plugin_loader,
function_name,
list,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
cancellable,
error);
if (!ret)
@@ -413,7 +415,7 @@ typedef struct {
GList *list;
GSimpleAsyncResult *res;
GsPluginLoader *plugin_loader;
- GsPluginLoaderFlags flags;
+ GsPluginRefineFlags flags;
gchar *value;
GsCategory *category;
} GsPluginLoaderAsyncState;
@@ -526,7 +528,7 @@ gs_plugin_loader_get_updates_thread_cb (GSimpleAsyncResult *res,
GsPluginLoader *plugin_loader = GS_PLUGIN_LOADER (object);
/* do things that would block */
- if ((state->flags & GS_PLUGIN_LOADER_FLAGS_USE_HISTORY) > 0)
+ if ((state->flags & GS_PLUGIN_REFINE_FLAGS_USE_HISTORY) > 0)
method_name = "gs_plugin_add_updates_historical";
state->list = gs_plugin_loader_run_results (plugin_loader,
@@ -592,7 +594,7 @@ out:
**/
void
gs_plugin_loader_get_updates_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -715,7 +717,7 @@ out:
**/
void
gs_plugin_loader_get_installed_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -821,7 +823,7 @@ out:
**/
void
gs_plugin_loader_get_popular_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -945,7 +947,7 @@ out:
**/
void
gs_plugin_loader_get_featured_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -1059,6 +1061,7 @@ gs_plugin_loader_search_thread_cb (GSimpleAsyncResult *res,
ret = gs_plugin_loader_run_refine (plugin_loader,
function_name,
state->list,
+ state->flags,
cancellable,
&error);
if (!ret) {
@@ -1112,7 +1115,7 @@ out:
void
gs_plugin_loader_search_async (GsPluginLoader *plugin_loader,
const gchar *value,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -1262,7 +1265,7 @@ out:
**/
void
gs_plugin_loader_get_categories_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -1376,6 +1379,7 @@ gs_plugin_loader_get_category_apps_thread_cb (GSimpleAsyncResult *res,
ret = gs_plugin_loader_run_refine (plugin_loader,
function_name,
state->list,
+ state->flags,
cancellable,
&error);
if (!ret) {
@@ -1434,7 +1438,7 @@ out:
void
gs_plugin_loader_get_category_apps_async (GsPluginLoader *plugin_loader,
GsCategory *category,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -1707,7 +1711,7 @@ gs_plugin_loader_thread_func (gpointer user_data)
void
gs_plugin_loader_app_install (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GsPluginLoaderFinishedFunc func,
gpointer user_data)
@@ -1735,7 +1739,7 @@ gs_plugin_loader_app_install (GsPluginLoader *plugin_loader,
void
gs_plugin_loader_app_remove (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GsPluginLoaderFinishedFunc func,
gpointer user_data)
@@ -1763,7 +1767,7 @@ gs_plugin_loader_app_remove (GsPluginLoader *plugin_loader,
gboolean
gs_plugin_loader_app_set_rating (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -1782,7 +1786,7 @@ gs_plugin_loader_app_set_rating (GsPluginLoader *plugin_loader,
gboolean
gs_plugin_loader_app_refine (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
@@ -1793,6 +1797,7 @@ gs_plugin_loader_app_refine (GsPluginLoader *plugin_loader,
ret = gs_plugin_loader_run_refine (plugin_loader,
NULL,
list,
+ flags,
cancellable,
error);
if (!ret)
diff --git a/src/gs-plugin-loader.h b/src/gs-plugin-loader.h
index 57ea470..a9b7e1d 100644
--- a/src/gs-plugin-loader.h
+++ b/src/gs-plugin-loader.h
@@ -61,12 +61,6 @@ typedef enum
GS_PLUGIN_LOADER_ERROR_LAST
} GsPluginLoaderError;
-typedef enum {
- GS_PLUGIN_LOADER_FLAGS_NONE = 0,
- GS_PLUGIN_LOADER_FLAGS_USE_HISTORY = 1,
- GS_PLUGIN_LOADER_FLAGS_LAST
-} GsPluginLoaderFlags;
-
typedef void (*GsPluginLoaderFinishedFunc) (GsPluginLoader *plugin_loader,
GsApp *app,
gpointer user_data);
@@ -76,7 +70,7 @@ GType gs_plugin_loader_get_type (void);
GsPluginLoader *gs_plugin_loader_new (void);
void gs_plugin_loader_get_installed_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -84,7 +78,7 @@ GList *gs_plugin_loader_get_installed_finish (GsPluginLoader *plugin_loader,
GAsyncResult *res,
GError **error);
void gs_plugin_loader_get_updates_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -92,7 +86,7 @@ GList *gs_plugin_loader_get_updates_finish (GsPluginLoader *plugin_loader,
GAsyncResult *res,
GError **error);
void gs_plugin_loader_get_popular_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -100,7 +94,7 @@ GList *gs_plugin_loader_get_popular_finish (GsPluginLoader
*plugin_loader,
GAsyncResult *res,
GError **error);
void gs_plugin_loader_get_featured_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -108,7 +102,7 @@ GList *gs_plugin_loader_get_featured_finish (GsPluginLoader
*plugin_loader,
GAsyncResult *res,
GError **error);
void gs_plugin_loader_get_categories_async (GsPluginLoader *plugin_loader,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -117,7 +111,7 @@ GList *gs_plugin_loader_get_categories_finish (GsPluginLoader
*plugin_loader,
GError **error);
void gs_plugin_loader_get_category_apps_async (GsPluginLoader *plugin_loader,
GsCategory *category,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -126,7 +120,7 @@ GList *gs_plugin_loader_get_category_apps_finish (GsPluginLoader
*plugin_loader
GError **error);
void gs_plugin_loader_search_async (GsPluginLoader *plugin_loader,
const gchar *value,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -143,24 +137,24 @@ void gs_plugin_loader_set_location (GsPluginLoader
*plugin_loader,
const gchar *location);
gboolean gs_plugin_loader_app_refine (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
void gs_plugin_loader_app_install (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GsPluginLoaderFinishedFunc func,
gpointer user_data);
void gs_plugin_loader_app_remove (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GsPluginLoaderFinishedFunc func,
gpointer user_data);
gboolean gs_plugin_loader_app_set_rating (GsPluginLoader *plugin_loader,
GsApp *app,
- GsPluginLoaderFlags flags,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
GsAppState gs_plugin_loader_get_state_for_app (GsPluginLoader *plugin_loader,
diff --git a/src/gs-plugin.h b/src/gs-plugin.h
index 0a10934..74b4015 100644
--- a/src/gs-plugin.h
+++ b/src/gs-plugin.h
@@ -72,6 +72,12 @@ typedef enum {
GS_PLUGIN_ERROR_LAST
} GsPluginError;
+typedef enum {
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT = 0,
+ GS_PLUGIN_REFINE_FLAGS_USE_HISTORY = 1,
+ GS_PLUGIN_REFINE_FLAGS_LAST
+} GsPluginRefineFlags;
+
/* helpers */
#define GS_PLUGIN_ERROR 1
#define GS_PLUGIN_GET_PRIVATE(x) g_new0 (x,1)
@@ -100,6 +106,7 @@ typedef gboolean (*GsPluginActionFunc) (GsPlugin *plugin,
GError **error);
typedef gboolean (*GsPluginRefineFunc) (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
@@ -156,6 +163,7 @@ gboolean gs_plugin_add_featured (GsPlugin *plugin,
GError **error);
gboolean gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error);
gboolean gs_plugin_app_install (GsPlugin *plugin,
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index ed76a30..eca3d31 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -189,7 +189,7 @@ gs_plugin_loader_func (void)
ret = gs_plugin_loader_set_enabled (loader, "notgoingtoexist", TRUE);
g_assert (!ret);
- list = gs_plugin_loader_get_popular (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
+ list = gs_plugin_loader_get_popular (loader, GS_PLUGIN_REFINE_FLAGS_DEFAULT, NULL, &error);
g_assert_no_error (error);
g_assert (list != NULL);
g_assert_cmpint (_status_changed_cnt, ==, 1);
@@ -206,7 +206,7 @@ gs_plugin_loader_func (void)
/* get updates */
_status_changed_cnt = 0;
- list = gs_plugin_loader_get_updates (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
+ list = gs_plugin_loader_get_updates (loader, GS_PLUGIN_REFINE_FLAGS_DEFAULT, NULL, &error);
g_assert_no_error (error);
g_assert (list != NULL);
g_assert_cmpint (_status_changed_cnt, >=, 1);
@@ -233,7 +233,7 @@ gs_plugin_loader_func (void)
ret = gs_plugin_loader_set_enabled (loader, "datadir-apps", TRUE);
g_assert (ret);
- list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
+ list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_REFINE_FLAGS_DEFAULT, NULL, &error);
g_assert_no_error (error);
g_assert (list != NULL);
g_assert_cmpint (g_list_length (list), >, 50);
@@ -253,7 +253,7 @@ gs_plugin_loader_func (void)
gs_plugin_list_free (list);
/* do this again, which should be much faster */
- list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
+ list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_REFINE_FLAGS_DEFAULT, NULL, &error);
g_assert_no_error (error);
g_assert (list != NULL);
g_assert_cmpint (g_list_length (list), >, 50);
@@ -271,7 +271,7 @@ gs_plugin_loader_func (void)
gs_app_set_rating (app, 35);
ret = gs_plugin_loader_app_set_rating (loader,
app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
NULL,
&error);
g_assert_no_error (error);
@@ -281,7 +281,7 @@ gs_plugin_loader_func (void)
gs_app_set_rating (app, -1);
ret = gs_plugin_loader_app_refine (loader,
app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
NULL,
&error);
g_assert_no_error (error);
@@ -322,7 +322,7 @@ gs_plugin_loader_empty_func (void)
g_assert (ret);
/* get the list of categories */
- list = gs_plugin_loader_get_categories (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
+ list = gs_plugin_loader_get_categories (loader, GS_PLUGIN_REFINE_FLAGS_DEFAULT, NULL, &error);
g_assert_no_error (error);
g_assert (list != NULL);
@@ -342,7 +342,7 @@ gs_plugin_loader_empty_func (void)
/* find subcaegories that have no applications */
apps = gs_plugin_loader_get_category_apps (loader,
sub,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
NULL,
&error);
if (apps == NULL) {
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index 846f88e..dc7da72 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -153,7 +153,7 @@ gs_shell_category_populate_filtered (GsShellCategory *shell)
gs_plugin_loader_get_category_apps_async (priv->plugin_loader,
priv->category,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_category_get_apps_cb,
shell);
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 73372e3..ee432f9 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -437,7 +437,7 @@ gs_shell_details_app_remove_button_cb (GtkWidget *widget, GsShellDetails *shell_
g_debug ("remove %s", gs_app_get_id (priv->app));
gs_plugin_loader_app_remove (priv->plugin_loader,
priv->app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_details_removed_func,
shell_details);
@@ -455,7 +455,7 @@ gs_shell_details_app_install_button_cb (GtkWidget *widget, GsShellDetails *shell
GsShellDetailsPrivate *priv = shell_details->priv;
gs_plugin_loader_app_install (priv->plugin_loader,
priv->app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_details_installed_func,
shell_details);
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 85fe6b5..6ca1df2 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -171,7 +171,7 @@ gs_shell_installed_app_remove_cb (GsAppWidget *app_widget,
helper->app_widget = g_object_ref (app_widget);
gs_plugin_loader_app_remove (priv->plugin_loader,
app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_installed_finished_func,
helper);
@@ -289,7 +289,7 @@ gs_shell_installed_refresh (GsShellInstalled *shell_installed, gboolean scroll_u
/* get popular apps */
gs_plugin_loader_get_installed_async (priv->plugin_loader,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_installed_get_installed_cb,
shell_installed);
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index ee76a20..7682d23 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -270,19 +270,19 @@ gs_shell_overview_refresh (GsShellOverview *shell, gboolean scroll_up)
priv->refresh_count = 3;
gs_plugin_loader_get_featured_async (priv->plugin_loader,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_overview_get_featured_cb,
shell);
gs_plugin_loader_get_popular_async (priv->plugin_loader,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_overview_get_popular_cb,
shell);
gs_plugin_loader_get_categories_async (priv->plugin_loader,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_overview_get_categories_cb,
shell);
diff --git a/src/gs-shell-search.c b/src/gs-shell-search.c
index cab5ee2..66d0daa 100644
--- a/src/gs-shell-search.c
+++ b/src/gs-shell-search.c
@@ -116,7 +116,7 @@ gs_shell_search_app_remove (GsShellSearch *shell_search, GsApp *app)
g_debug ("remove %s", gs_app_get_id (app));
gs_plugin_loader_app_remove (priv->plugin_loader,
app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_search_removed_func,
shell_search);
@@ -134,7 +134,7 @@ gs_shell_search_app_install (GsShellSearch *shell_search, GsApp *app)
GsShellSearchPrivate *priv = shell_search->priv;
gs_plugin_loader_app_install (priv->plugin_loader,
app,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_search_installed_func,
shell_search);
@@ -244,7 +244,7 @@ gs_shell_search_refresh (GsShellSearch *shell_search, const gchar *value, gboole
/* search for apps */
gs_plugin_loader_search_async (priv->plugin_loader,
value,
- GS_PLUGIN_LOADER_FLAGS_NONE,
+ GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
gs_shell_search_get_search_cb,
shell_search);
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index ae146c4..f515ee3 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -194,7 +194,7 @@ gs_shell_updates_refresh (GsShellUpdates *shell_updates,
gs_container_remove_all (GTK_CONTAINER (priv->list_box_updates));
gs_plugin_loader_get_updates_async (priv->plugin_loader,
- show_historical ? GS_PLUGIN_LOADER_FLAGS_USE_HISTORY :
GS_PLUGIN_LOADER_FLAGS_NONE,
+ show_historical ? GS_PLUGIN_REFINE_FLAGS_USE_HISTORY :
GS_PLUGIN_REFINE_FLAGS_DEFAULT,
priv->cancellable,
(GAsyncReadyCallback) gs_shell_updates_get_updates_cb,
shell_updates);
diff --git a/src/plugins/gs-plugin-appdata.c b/src/plugins/gs-plugin-appdata.c
index 2de763d..f79a1ec 100644
--- a/src/plugins/gs-plugin-appdata.c
+++ b/src/plugins/gs-plugin-appdata.c
@@ -477,6 +477,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 3358405..c95e3d0 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -536,6 +536,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-datadir-apps.c b/src/plugins/gs-plugin-datadir-apps.c
index 498dfb0..c1f8e82 100644
--- a/src/plugins/gs-plugin-datadir-apps.c
+++ b/src/plugins/gs-plugin-datadir-apps.c
@@ -252,6 +252,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-datadir-filename-local.c b/src/plugins/gs-plugin-datadir-filename-local.c
index b330162..80115aa 100644
--- a/src/plugins/gs-plugin-datadir-filename-local.c
+++ b/src/plugins/gs-plugin-datadir-filename-local.c
@@ -47,6 +47,7 @@ gs_plugin_get_priority (GsPlugin *plugin)
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-datadir-filename.c b/src/plugins/gs-plugin-datadir-filename.c
index a58e6ed..346e568 100644
--- a/src/plugins/gs-plugin-datadir-filename.c
+++ b/src/plugins/gs-plugin-datadir-filename.c
@@ -138,6 +138,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-desktopdb.c b/src/plugins/gs-plugin-desktopdb.c
index 429dc24..ef344b5 100644
--- a/src/plugins/gs-plugin-desktopdb.c
+++ b/src/plugins/gs-plugin-desktopdb.c
@@ -154,6 +154,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-dummy.c b/src/plugins/gs-plugin-dummy.c
index 542b582..f202527 100644
--- a/src/plugins/gs-plugin-dummy.c
+++ b/src/plugins/gs-plugin-dummy.c
@@ -167,6 +167,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-hardcoded-kind.c b/src/plugins/gs-plugin-hardcoded-kind.c
index 3bb8974..ab6ba04 100644
--- a/src/plugins/gs-plugin-hardcoded-kind.c
+++ b/src/plugins/gs-plugin-hardcoded-kind.c
@@ -47,6 +47,7 @@ gs_plugin_get_priority (GsPlugin *plugin)
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-hardcoded-ratings.c b/src/plugins/gs-plugin-hardcoded-ratings.c
index ac16b3f..e342745 100644
--- a/src/plugins/gs-plugin-hardcoded-ratings.c
+++ b/src/plugins/gs-plugin-hardcoded-ratings.c
@@ -704,6 +704,7 @@ gs_plugin_hardcoded_ratings_setup (GsPlugin *plugin, GError **error)
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-local-ratings.c b/src/plugins/gs-plugin-local-ratings.c
index 0b2ca7a..d035fa0 100644
--- a/src/plugins/gs-plugin-local-ratings.c
+++ b/src/plugins/gs-plugin-local-ratings.c
@@ -216,6 +216,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-packagekit-history.c b/src/plugins/gs-plugin-packagekit-history.c
index c43c9db..d4eb14f 100644
--- a/src/plugins/gs-plugin-packagekit-history.c
+++ b/src/plugins/gs-plugin-packagekit-history.c
@@ -246,6 +246,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 0a846e5..5b02072 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -352,6 +352,7 @@ out:
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
diff --git a/src/plugins/gs-plugin-self-test.c b/src/plugins/gs-plugin-self-test.c
index 0da1b73..dae6e06 100644
--- a/src/plugins/gs-plugin-self-test.c
+++ b/src/plugins/gs-plugin-self-test.c
@@ -47,6 +47,7 @@ gs_plugin_get_priority (GsPlugin *plugin)
gboolean
gs_plugin_refine (GsPlugin *plugin,
GList *list,
+ GsPluginRefineFlags flags,
GCancellable *cancellable,
GError **error)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]