summaryrefslogtreecommitdiff
path: root/src/fs/zip.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-24 19:10:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-24 23:31:22 +0300
commit0bb68a88e6dc6a04685825e80b4e3dca1dc097d2 (patch)
tree07a4e3bd321c5199fe4d388a1c6cb9923a147c0c /src/fs/zip.h
parentd1b37a4b299809c3eb11b073ab4eafdb773b8a45 (diff)
downloadplus-0bb68a88e6dc6a04685825e80b4e3dca1dc097d2.tar.gz
plus-0bb68a88e6dc6a04685825e80b4e3dca1dc097d2.tar.bz2
plus-0bb68a88e6dc6a04685825e80b4e3dca1dc097d2.tar.xz
plus-0bb68a88e6dc6a04685825e80b4e3dca1dc097d2.zip
Add support for extract files from zip archives.
Diffstat (limited to 'src/fs/zip.h')
-rw-r--r--src/fs/zip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/zip.h b/src/fs/zip.h
index 145be5c88..a54b08129 100644
--- a/src/fs/zip.h
+++ b/src/fs/zip.h
@@ -26,12 +26,18 @@
#include <string>
#include <vector>
+struct VirtFile;
struct ZipLocalHeader;
namespace Zip
{
bool readArchiveInfo(const std::string &restrict archiveName,
std::vector<ZipLocalHeader*> &restrict headers);
+ std::string getZlibError(const int err);
+ void reportZlibError(const std::string &text,
+ const int err);
+ uint8_t *readCompressedFile(const ZipLocalHeader *restrict const header);
+ uint8_t *readFile(const ZipLocalHeader *restrict const header);
} // namespace Zip
#endif // UTILS_ZIP_H