summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtins.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-12-22 11:04:08 -0500
committerColin Walters <walters@verbum.org>2011-12-22 11:04:08 -0500
commitd25f1bf73d3b992a3209bd908faff489d8309443 (patch)
treedc4889d35418145285f39f93aaffc7b3d632550a /src/ostree/ot-builtins.h
parent8a499c4a2a9899f42b57d09acbd011ca028d50a4 (diff)
downloadostree-d25f1bf73d3b992a3209bd908faff489d8309443.tar.gz
core: Use GFile for repo constructor API, and a bit more internally
Also, ensure that the repo directory GFile is absolute - this avoids a getcwd() syscall every time we construct a GFile object.
Diffstat (limited to 'src/ostree/ot-builtins.h')
-rw-r--r--src/ostree/ot-builtins.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ostree/ot-builtins.h b/src/ostree/ot-builtins.h
index cfacaad1..acf2406c 100644
--- a/src/ostree/ot-builtins.h
+++ b/src/ostree/ot-builtins.h
@@ -23,24 +23,24 @@
#ifndef __OSTREE_BUILTINS__
#define __OSTREE_BUILTINS__
-#include <glib-object.h>
+#include <gio/gio.h>
G_BEGIN_DECLS
-gboolean ostree_builtin_checkout (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_checksum (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_commit (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_compose (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_diff (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_init (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_local_clone (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_log (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_ls (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_run_triggers (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_fsck (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_show (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_rev_parse (int argc, char **argv, const char *repo, GError **error);
-gboolean ostree_builtin_remote (int argc, char **argv, const char *repo, GError **error);
+gboolean ostree_builtin_checkout (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_checksum (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_commit (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_compose (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_diff (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_init (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_local_clone (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_log (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_ls (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_run_triggers (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_fsck (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_show (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_rev_parse (int argc, char **argv, GFile *repo_path, GError **error);
+gboolean ostree_builtin_remote (int argc, char **argv, GFile *repo_path, GError **error);
G_END_DECLS