Commit f352063c authored by Richard Hughes's avatar Richard Hughes

Add a live-update method to the plugin loader

parent b26617e4
......@@ -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;
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment