diff options
-rw-r--r-- | archive.c | 6 | ||||
-rw-r--r-- | archive.h | 6 |
2 files changed, 5 insertions, 7 deletions
@@ -9,7 +9,11 @@ static const char archive_usage[] = \ #define USES_ZLIB_COMPRESSION 1 -const struct archiver archivers[] = { +const struct archiver { + const char *name; + write_archive_fn_t write_archive; + unsigned int flags; +} archivers[] = { { "tar", write_tar_archive }, { "zip", write_zip_archive, USES_ZLIB_COMPRESSION }, }; @@ -17,12 +17,6 @@ typedef int (*write_archive_fn_t)(struct archiver_args *); typedef int (*write_archive_entry_fn_t)(struct archiver_args *args, const unsigned char *sha1, const char *path, size_t pathlen, unsigned int mode, void *buffer, unsigned long size); -struct archiver { - const char *name; - write_archive_fn_t write_archive; - unsigned int flags; -}; - /* * Archive-format specific backends. */ |