[gnome-software] Add a live-update method to the plugin loader
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add a live-update method to the plugin loader
- Date: Wed, 25 Nov 2015 16:47:18 +0000 (UTC)
commit f352063c540465e6184f2fd2921e3bf406cf7f91
Author: Richard Hughes <richard hughsie com>
Date: Wed Nov 25 16:36:35 2015 +0000
Add a live-update method to the plugin loader
src/gs-plugin-loader.c | 5 +++++
src/gs-plugin-loader.h | 1 +
src/gs-plugin.h | 4 ++++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index f0b7eab..0c3cdb8 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2604,6 +2604,11 @@ gs_plugin_loader_app_action_async (GsPluginLoader *plugin_loader,
state->state_success = AS_APP_STATE_UNKNOWN;
state->state_failure = AS_APP_STATE_UNKNOWN;
break;
+ case GS_PLUGIN_LOADER_ACTION_UPDATE:
+ state->function_name = "gs_plugin_app_update";
+ state->state_success = AS_APP_STATE_INSTALLED;
+ state->state_failure = AS_APP_STATE_UPDATABLE_LIVE;
+ break;
case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
state->function_name = "gs_plugin_app_upgrade_download";
state->state_success = AS_APP_STATE_UNKNOWN;
diff --git a/src/gs-plugin-loader.h b/src/gs-plugin-loader.h
index cfa03c3..dd034f1 100644
--- a/src/gs-plugin-loader.h
+++ b/src/gs-plugin-loader.h
@@ -55,6 +55,7 @@ typedef enum
typedef enum {
GS_PLUGIN_LOADER_ACTION_INSTALL,
GS_PLUGIN_LOADER_ACTION_REMOVE,
+ GS_PLUGIN_LOADER_ACTION_UPDATE,
GS_PLUGIN_LOADER_ACTION_SET_RATING,
GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD,
GS_PLUGIN_LOADER_ACTION_UPGRADE_TRIGGER,
diff --git a/src/gs-plugin.h b/src/gs-plugin.h
index f64c6e6..94037ce 100644
--- a/src/gs-plugin.h
+++ b/src/gs-plugin.h
@@ -251,6 +251,10 @@ gboolean gs_plugin_app_set_rating (GsPlugin *plugin,
GsApp *app,
GCancellable *cancellable,
GError **error);
+gboolean gs_plugin_app_update (GsPlugin *plugin,
+ GsApp *app,
+ GCancellable *cancellable,
+ GError **error);
gboolean gs_plugin_app_upgrade_download (GsPlugin *plugin,
GsApp *app,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]