main: Use macro to reduce duplication among builtin prototypes
Just less code.
This commit is contained in:
parent
326be41d12
commit
16c36fbc34
|
|
@ -26,27 +26,31 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
gboolean ostree_builtin_admin (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
#define BUILTINPROTO(name) gboolean ostree_builtin_ ## name (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error)
|
||||||
gboolean ostree_builtin_cat (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
|
||||||
gboolean ostree_builtin_config (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(admin);
|
||||||
gboolean ostree_builtin_checkout (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(cat);
|
||||||
gboolean ostree_builtin_checksum (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(config);
|
||||||
gboolean ostree_builtin_commit (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(checkout);
|
||||||
gboolean ostree_builtin_diff (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(checksum);
|
||||||
gboolean ostree_builtin_init (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(commit);
|
||||||
gboolean ostree_builtin_log (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(diff);
|
||||||
gboolean ostree_builtin_pull (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(init);
|
||||||
gboolean ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(log);
|
||||||
gboolean ostree_builtin_ls (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(pull);
|
||||||
gboolean ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(pull_local);
|
||||||
gboolean ostree_builtin_refs (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(ls);
|
||||||
gboolean ostree_builtin_reset (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(prune);
|
||||||
gboolean ostree_builtin_fsck (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(refs);
|
||||||
gboolean ostree_builtin_show (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(reset);
|
||||||
gboolean ostree_builtin_rev_parse (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(fsck);
|
||||||
gboolean ostree_builtin_remote (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(show);
|
||||||
gboolean ostree_builtin_write_refs (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(rev_parse);
|
||||||
gboolean ostree_builtin_trivial_httpd (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error);
|
BUILTINPROTO(remote);
|
||||||
|
BUILTINPROTO(write_refs);
|
||||||
|
BUILTINPROTO(trivial_httpd);
|
||||||
|
|
||||||
|
#undef BUILTINPROTO
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue