diff options
author | Colin Walters <walters@verbum.org> | 2017-03-20 10:35:40 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-03-20 20:16:12 +0000 |
commit | 5d413dff882efe1ee4faa6e4642d5b04598c01b8 (patch) | |
tree | eec316a2803742240319df1b47f91a259f5976f8 /src/libostree/ostree-sysroot-private.h | |
parent | ec2f52e62532017a79d70ce6ea2870d010a22b99 (diff) | |
download | ostree-5d413dff882efe1ee4faa6e4642d5b04598c01b8.tar.gz |
sysroot: Prep refactoring of cleanup logic
For future work I'm going to tweak how we handle cleanup, and
the private cleanup flags didn't really end up being used - we
only specify "prune repo or not". So fold that into a boolean for now.
The sysroot deploy logic then has a single "do_postclean" boolean, which is all
I want to expose as public API.
Closes: #744
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-sysroot-private.h')
-rw-r--r-- | src/libostree/ostree-sysroot-private.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/libostree/ostree-sysroot-private.h b/src/libostree/ostree-sysroot-private.h index b2def7fa..18fc0cb0 100644 --- a/src/libostree/ostree-sysroot-private.h +++ b/src/libostree/ostree-sysroot-private.h @@ -109,21 +109,14 @@ gboolean _ostree_sysroot_query_bootloader (OstreeSysroot *sysroot, gboolean _ostree_sysroot_bump_mtime (OstreeSysroot *sysroot, GError **error); -typedef enum { - OSTREE_SYSROOT_CLEANUP_BOOTVERSIONS = 1 << 0, - OSTREE_SYSROOT_CLEANUP_DEPLOYMENTS = 1 << 1, - OSTREE_SYSROOT_CLEANUP_PRUNE_REPO = 1 << 2, - OSTREE_SYSROOT_CLEANUP_ALL = 0xffff -} OstreeSysrootCleanupFlags; - -gboolean _ostree_sysroot_piecemeal_cleanup (OstreeSysroot *sysroot, - OstreeSysrootCleanupFlags flags, - GCancellable *cancellable, - GError **error); +gboolean _ostree_sysroot_cleanup_internal (OstreeSysroot *sysroot, + gboolean prune_repo, + GCancellable *cancellable, + GError **error); gboolean _ostree_sysroot_write_deployments_internal (OstreeSysroot *self, GPtrArray *new_deployments, - OstreeSysrootCleanupFlags cleanup_flags, + gboolean do_clean, GCancellable *cancellable, GError **error); |