diff options
author | Colin Walters <walters@verbum.org> | 2021-03-17 14:03:49 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-03-17 19:55:56 +0000 |
commit | 1b28e6041c33b3f1508dda458ed7ed97aed4375e (patch) | |
tree | d9e3f69b61865bc037d97c1ea22d54fd3a72f786 /src/libostree/ostree-sysroot.h | |
parent | d522f261db7e4c2379fe79a18c083426858fc355 (diff) | |
download | ostree-1b28e6041c33b3f1508dda458ed7ed97aed4375e.tar.gz |
sysroot: Add _require_booted_deployment() API
This is a common pattern that is replicated both in our code
and in rpm-ostree a lot. Let's add a canonical API.
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r-- | src/libostree/ostree-sysroot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h index 3a3b6a77..036b81e8 100644 --- a/src/libostree/ostree-sysroot.h +++ b/src/libostree/ostree-sysroot.h @@ -85,6 +85,9 @@ GPtrArray *ostree_sysroot_get_deployments (OstreeSysroot *self); _OSTREE_PUBLIC OstreeDeployment *ostree_sysroot_get_booted_deployment (OstreeSysroot *self); _OSTREE_PUBLIC +OstreeDeployment * +ostree_sysroot_require_booted_deployment (OstreeSysroot *self, GError **error); +_OSTREE_PUBLIC OstreeDeployment *ostree_sysroot_get_staged_deployment (OstreeSysroot *self); _OSTREE_PUBLIC |