From 34533004b27df4f34e18d9e26832fcc956a39fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Tue, 15 Jul 2008 09:49:40 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- archive.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'archive.h') diff --git a/archive.h b/archive.h index ddf004acdf..1b24ae310d 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, -- cgit v1.2.3