diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2013-01-22 03:26:43 +0100 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-01-24 20:44:11 +0100 |
commit | 3bf2b0e63052bb5537398f38ecc5b19fec7dec39 (patch) | |
tree | 1863f58ab9caa25232741dc25dcded4368020ae4 /twrpTar.hpp | |
parent | move libexfat and fuse to be compiled with mkexfatfs (diff) | |
download | android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar.gz android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar.bz2 android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar.lz android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar.xz android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.tar.zst android_bootable_recovery-3bf2b0e63052bb5537398f38ecc5b19fec7dec39.zip |
Diffstat (limited to 'twrpTar.hpp')
-rw-r--r-- | twrpTar.hpp | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/twrpTar.hpp b/twrpTar.hpp index 554a01dbd..db9cf9bb8 100644 --- a/twrpTar.hpp +++ b/twrpTar.hpp @@ -32,30 +32,39 @@ using namespace std; class twrpTar { public: - int create(string dir, string fn); - int createTGZ(string dir, string fn); - int extract(string rootDir, string fn); + int extract(); int compress(string fn); - int extractTGZ(string rootdir, string fn); int uncompress(string fn); int addFilesToExistingTar(vector <string> files, string tarFile); - int createTar(string dir, string fn); - int openTar(string rootdir, string fn, bool gzip); + int createTar(); int addFile(string fn, bool include_root); - int closeTar(string fn, bool gzip); - int Split_Archive(string Path, string fn); + int closeTar(bool gzip); + int createTarGZThread(); + int createTarThread(); + int extractTarThread(); + int splitArchiveThread(); + void setfn(string fn); + void setdir(string dir); private: + int createTGZ(); + int create(); + int Split_Archive(); int removeEOT(string tarFile); - int extractTar(string rootdir, string fn); - int tarDirs(string dir, string fn, bool include_root); - int Generate_Multiple_Archives(string Path, string fn); - - private: + int extractTar(); + int tarDirs(bool include_root); + int Generate_Multiple_Archives(string Path); + string Strip_Root_Dir(string Path); + int extractTGZ(); + int openTar(bool gzip); int has_data_media; int Archive_File_Count; unsigned long long Archive_Current_Size; - string Strip_Root_Dir(string Path); TAR *t; FILE* p; int fd; + string tardir; + string tarfn; + string basefn; + typedef int (twrpTar::*ThreadPtr)(void); + typedef void* (*PThreadPtr)(void*); }; |