diff options
author | Robert Ancell <robert.ancell@gmail.com> | 2016-06-30 22:41:03 +1200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-06-30 11:41:03 +0100 |
commit | 8289b1555b0fe93566bad26c7d1896aa452f3ee5 (patch) | |
tree | 47fddb30d898960283485c6173152fb7b9dd59f6 | |
parent | 267f0f0bfad3cb47abca579fa7bb49bed438946f (diff) | |
download | appstream-glib-8289b1555b0fe93566bad26c7d1896aa452f3ee5.tar.gz |
Add an AS_STATE_PURCHASABLE constant so we can support purchasing apps (#114)
-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 2755e48..47456a7 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -289,6 +289,8 @@ as_app_state_to_string (AsAppState state) return "installed"; if (state == AS_APP_STATE_AVAILABLE) return "available"; + if (state == AS_APP_STATE_PURCHASABLE) + return "purchasable"; if (state == AS_APP_STATE_AVAILABLE_LOCAL) return "local"; if (state == AS_APP_STATE_QUEUED_FOR_INSTALL) diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index 6ca3cce..95e0c1c 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -250,6 +250,7 @@ typedef enum { * @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 + * @AS_APP_STATE_PURCHASABLE: Application is available for purchasing * * The application state. **/ @@ -264,6 +265,7 @@ typedef enum { 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 */ + AS_APP_STATE_PURCHASABLE, /* Since: 0.5.17 */ /*< private >*/ AS_APP_STATE_LAST } AsAppState; |