4 #define MAX_EXTRA_ARGS 32
5 #define MAX_ARGS (MAX_EXTRA_ARGS + 32)
10 const unsigned char *commit_sha1
;
12 const char **pathspec
;
16 typedef int (*write_archive_fn_t
)(struct archiver_args
*);
18 typedef void *(*parse_extra_args_fn_t
)(int argc
, const char **argv
);
22 struct archiver_args args
;
23 write_archive_fn_t write_archive
;
24 parse_extra_args_fn_t parse_extra
;
27 extern struct archiver archivers
[];
29 extern int parse_archive_args(int argc
,
33 extern void parse_treeish_arg(const char **treeish
,
34 struct archiver_args
*ar_args
,
37 extern void parse_pathspec_arg(const char **pathspec
,
38 struct archiver_args
*args
);
40 * Archive-format specific backends.
42 extern int write_tar_archive(struct archiver_args
*);
43 extern int write_zip_archive(struct archiver_args
*);
44 extern void *parse_extra_zip_args(int argc
, const char **argv
);
46 #endif /* ARCHIVE_H */