summaryrefslogtreecommitdiff
path: root/app/bin/archive.h
blob: 7977bc633c3d05310f71fe7aa322c2e9475bf0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef HAVE_ARCHIVE_H
#define HAVE_ARCHIVE_H
#include "common.h"

enum ArchiveOps { ARCHIVE_READ, ARCHIVE_WRITE }; // has to be contiguous, see CleanupFiles()!

extern int log_zip;
extern const char *workingDir;
struct zip;

char *GetZipDirectoryName(enum ArchiveOps op);
BOOL_T AddDirectoryToArchive(struct zip * za, const char * dir_path, const char * prefix);
BOOL_T CreateArchive(const char * dir_path, const char * fileName);
BOOL_T UnpackArchiveFor(const char * pathName, const char * fileName, const char * tempDir, BOOL_T file_only);
#endif