diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2008-07-15 09:49:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-15 07:08:11 -0700 |
commit | 34533004b27df4f34e18d9e26832fcc956a39fca (patch) | |
tree | 4b08c40dda8f421a4dd27c199dc0dbf7686bc19e /archive.h | |
parent | dc6282d2013792c0df625527e12a54e40d07b122 (diff) | |
download | git-34533004b27df4f34e18d9e26832fcc956a39fca.tar.gz |
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.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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, |