summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2018-04-30 14:31:33 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-24 12:56:11 +0000
commit371081d123a9263d8dbdd4dad69c0468e2db427d (patch)
treead8d4d792a63a42473a92d3a8620a46f752a36b3 /src/libostree/ostree-repo.h
parentce2995e1dc1557c4d97ef5af807eacf3ef4a22d8 (diff)
downloadostree-371081d123a9263d8dbdd4dad69c0468e2db427d.tar.gz
lib: Add a public helper method for pruning to find all ref'd commits
Prep for reworking how we do sysroot cleanup. We're going to start doing more lowlevel pruning work there, and I wanted to avoid duplicating the ref enumeration. Closes: #1566 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo.h')
-rw-r--r--src/libostree/ostree-repo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h
index 8d3a7a6f..d86d241e 100644
--- a/src/libostree/ostree-repo.h
+++ b/src/libostree/ostree-repo.h
@@ -1203,6 +1203,14 @@ struct _OstreeRepoPruneOptions {
typedef struct _OstreeRepoPruneOptions OstreeRepoPruneOptions;
_OSTREE_PUBLIC
+gboolean
+ostree_repo_traverse_reachable_refs (OstreeRepo *self,
+ guint depth,
+ GHashTable *reachable,
+ GCancellable *cancellable,
+ GError **error);
+
+_OSTREE_PUBLIC
gboolean ostree_repo_prune_from_reachable (OstreeRepo *self,
OstreeRepoPruneOptions *options,
gint *out_objects_total,