diff options
author | Colin Walters <walters@verbum.org> | 2013-07-09 20:05:31 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-07-09 20:05:31 -0400 |
commit | 5dd0d5da40b7f2c2172f9d63d0da4d20b0fe9ec1 (patch) | |
tree | b0b059207e4a745a5b5669f380ffe75eeafee828 /src/ostree/ot-builtin-prune.c | |
parent | 2aa0251b1b3dfc1bf06840c8e1fa35e59534c9e2 (diff) | |
download | ostree-5dd0d5da40b7f2c2172f9d63d0da4d20b0fe9ec1.tar.gz |
libostree: Move prune into OstreeRepo namespace
More library work.
Diffstat (limited to 'src/ostree/ot-builtin-prune.c')
-rw-r--r-- | src/ostree/ot-builtin-prune.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ostree/ot-builtin-prune.c b/src/ostree/ot-builtin-prune.c index f52153cb..3c0a68c7 100644 --- a/src/ostree/ot-builtin-prune.c +++ b/src/ostree/ot-builtin-prune.c @@ -23,7 +23,7 @@ #include "config.h" #include "ot-builtins.h" -#include "ostree-prune.h" +#include "ostree.h" #include <glib/gi18n.h> #include <glib/gprintf.h> @@ -47,7 +47,7 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error) GCancellable *cancellable = NULL; gs_unref_object OstreeRepo *repo = NULL; gs_free char *formatted_freed_size = NULL; - OstreePruneFlags pruneflags = 0; + OstreeRepoPruneFlags pruneflags = 0; gint n_objects_total; gint n_objects_pruned; guint64 objsize_total; @@ -63,13 +63,13 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error) goto out; if (opt_refs_only) - pruneflags |= OSTREE_PRUNE_FLAGS_REFS_ONLY; + pruneflags |= OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY; if (opt_no_prune) - pruneflags |= OSTREE_PRUNE_FLAGS_NO_PRUNE; + pruneflags |= OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE; - if (!ostree_prune (repo, pruneflags, opt_depth, - &n_objects_total, &n_objects_pruned, &objsize_total, - cancellable, error)) + if (!ostree_repo_prune (repo, pruneflags, opt_depth, + &n_objects_total, &n_objects_pruned, &objsize_total, + cancellable, error)) goto out; formatted_freed_size = g_format_size_full (objsize_total, 0); @@ -77,7 +77,7 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error) g_print ("Total objects: %u\n", n_objects_total); if (n_objects_pruned == 0) g_print ("No unreachable objects\n"); - else if (pruneflags & OSTREE_PRUNE_FLAGS_NO_PRUNE) + else if (pruneflags & OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE) g_print ("Would delete: %u objects, freeing %s bytes\n", n_objects_pruned, formatted_freed_size); else |