lib/repo: Add OSTREE_REPO_COMMIT_STATE_NORMAL to represent most commits
authorPhilip Withnall <withnall@endlessm.com>
Wed, 8 Nov 2017 15:10:31 +0000 (15:10 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 8 Nov 2017 15:47:11 +0000 (15:47 +0000)
This allows more explicit handling of commit state in code using
libostree, rather than hard-coding a commit state of 0 for â€˜normal’.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1335
Approved by: cgwalters

src/libostree/ostree-repo.h

index 15e5f94e8ccc90fb57f041502beee105a53b2da0..9a1b65ae1e2c13ec28950eb0ddfb5ae18ccf1aae 100644 (file)
@@ -540,6 +540,7 @@ gboolean      ostree_repo_load_variant_if_exists (OstreeRepo  *self,
                                                   GError       **error);
 
 typedef enum {
+  OSTREE_REPO_COMMIT_STATE_NORMAL = 0,
   OSTREE_REPO_COMMIT_STATE_PARTIAL = (1 << 0),
 } OstreeRepoCommitState;