summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-11-24 15:55:33 +0000
committerRichard Hughes <richard@hughsie.com>2015-11-24 15:55:35 +0000
commitf2300e8fda0733b973b3037cd7e46baafafa26a7 (patch)
tree01805049c582597a98c171492e8b6b2b0d2f1611
parentdb785d6461232f529d3928ae98869789dc836685 (diff)
downloadappstream-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.c2
-rw-r--r--libappstream-glib/as-app.h2
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;