diff options
author | Richard Hughes <richard@hughsie.com> | 2015-11-24 15:55:33 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-11-24 15:55:35 +0000 |
commit | f2300e8fda0733b973b3037cd7e46baafafa26a7 (patch) | |
tree | 01805049c582597a98c171492e8b6b2b0d2f1611 | |
parent | db785d6461232f529d3928ae98869789dc836685 (diff) | |
download | appstream-glib-f2300e8fda0733b973b3037cd7e46baafafa26a7.tar.gz |
Add a AS_APP_STATE_UPDATABLE_LIVE constant so we can support live updates
-rw-r--r-- | libappstream-glib/as-app.c | 2 | ||||
-rw-r--r-- | libappstream-glib/as-app.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index d54617a..a95c175 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -201,6 +201,8 @@ as_app_state_to_string (AsAppState state) return "removing"; if (state == AS_APP_STATE_UPDATABLE) return "updatable"; + if (state == AS_APP_STATE_UPDATABLE_LIVE) + return "updatable-live"; if (state == AS_APP_STATE_UNAVAILABLE) return "unavailable"; return NULL; diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index fb7d366..0e0741e 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -179,6 +179,7 @@ typedef enum { * @AS_APP_STATE_QUEUED_FOR_INSTALL: Application is queued for install * @AS_APP_STATE_INSTALLING: Application is being installed * @AS_APP_STATE_REMOVING: Application is being removed + * @AS_APP_STATE_UPDATABLE_LIVE: Application is installed and updatable live * * The application state. **/ @@ -192,6 +193,7 @@ typedef enum { AS_APP_STATE_QUEUED_FOR_INSTALL, /* Since: 0.2.2 */ AS_APP_STATE_INSTALLING, /* Since: 0.2.2 */ AS_APP_STATE_REMOVING, /* Since: 0.2.2 */ + AS_APP_STATE_UPDATABLE_LIVE, /* Since: 0.5.4 */ /*< private >*/ AS_APP_STATE_LAST } AsAppState; |