summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2008-07-15 07:49:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-15 14:08:11 (GMT)
commit34533004b27df4f34e18d9e26832fcc956a39fca (patch)
tree4b08c40dda8f421a4dd27c199dc0dbf7686bc19e /archive.h
parentdc6282d2013792c0df625527e12a54e40d07b122 (diff)
downloadgit-34533004b27df4f34e18d9e26832fcc956a39fca.zip
git-34533004b27df4f34e18d9e26832fcc956a39fca.tar.gz
git-34533004b27df4f34e18d9e26832fcc956a39fca.tar.bz2
archive: remove args member from struct archiver
Pass struct archiver and struct archiver_args explicitly to parse_archive_args and remove the latter from the former. This allows us to get rid of struct archiver_desc and simplifies the code a bit. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/archive.h b/archive.h
index ddf004a..1b24ae3 100644
--- a/archive.h
+++ b/archive.h
@@ -21,14 +21,11 @@ typedef void *(*parse_extra_args_fn_t)(int argc, const char **argv);
struct archiver {
const char *name;
- struct archiver_args args;
write_archive_fn_t write_archive;
parse_extra_args_fn_t parse_extra;
};
-extern int parse_archive_args(int argc,
- const char **argv,
- struct archiver *ar);
+extern int parse_archive_args(int argc, const char **argv, const struct archiver **ar, struct archiver_args *args);
extern void parse_treeish_arg(const char **treeish,
struct archiver_args *ar_args,