summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtins.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-08-25 15:11:05 -0400
committerColin Walters <walters@verbum.org>2013-08-25 15:28:23 -0400
commitedfa76fad5d2fc92d753c3317333200d552b99e9 (patch)
tree6b76d3928db6c3dbcfde5292b58b5b06f4163ebd /src/ostree/ot-builtins.h
parent6c61b1910714c5bde7f35594ab7fcd980d03c8f1 (diff)
downloadostree-edfa76fad5d2fc92d753c3317333200d552b99e9.tar.gz
main: Code cleanup by passing OstreeRepo * directly to builtins
It turns out every builtin (with one special exception) that takes a repo argument did the same thing; let's just centralize it. The special exception was "ostree init --repo=foo" where foo is expected to *not* actually be a repo. In that case, simply skip the ostree_repo_check() invocation. https://bugzilla.gnome.org/show_bug.cgi?id=706762
Diffstat (limited to 'src/ostree/ot-builtins.h')
-rw-r--r--src/ostree/ot-builtins.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtins.h b/src/ostree/ot-builtins.h
index 2231150e..cbd78471 100644
--- a/src/ostree/ot-builtins.h
+++ b/src/ostree/ot-builtins.h
@@ -22,11 +22,11 @@
#pragma once
-#include <gio/gio.h>
+#include "ostree.h"
G_BEGIN_DECLS
-#define BUILTINPROTO(name) gboolean ostree_builtin_ ## name (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error)
+#define BUILTINPROTO(name) gboolean ostree_builtin_ ## name (int argc, char **argv, OstreeRepo *repo, GCancellable *cancellable, GError **error)
BUILTINPROTO(admin);
BUILTINPROTO(cat);