summaryrefslogtreecommitdiffstats
path: root/twrpTar.hpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-12-02 05:10:37 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-03 19:13:26 +0100
commite0a433a94dd82d7754757efcc50f294de50bf185 (patch)
tree09c87824e5499dd65a173d8d509c6eb744ef1a6f /twrpTar.hpp
parentminui: Allow devices to blank/unblank using LCD backlight (diff)
downloadandroid_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar.gz
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar.bz2
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar.lz
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar.xz
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.tar.zst
android_bootable_recovery-e0a433a94dd82d7754757efcc50f294de50bf185.zip
Diffstat (limited to '')
-rw-r--r--twrpTar.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/twrpTar.hpp b/twrpTar.hpp
index fa3d2ced6..17f69594d 100644
--- a/twrpTar.hpp
+++ b/twrpTar.hpp
@@ -47,10 +47,10 @@ public:
virtual ~twrpTar();
int createTarFork();
int extractTarFork();
- int splitArchiveFork();
void setexcl(string exclude);
void setfn(string fn);
void setdir(string dir);
+ void setsize(unsigned long long backup_size);
unsigned long long uncompressedSize();
public:
@@ -68,22 +68,19 @@ private:
int addFile(string fn, bool include_root);
int entryExists(string entry);
int closeTar();
- int create();
- int Split_Archive();
int removeEOT(string tarFile);
int extractTar();
- int tarDirs(bool include_root);
- int Generate_Multiple_Archives(string Path);
string Strip_Root_Dir(string Path);
int openTar();
int Generate_TarList(string Path, std::vector<TarListStruct> *TarList, unsigned long long *Target_Size, unsigned *thread_id);
static void* createList(void *cookie);
static void* extractMulti(void *cookie);
- int tarList(bool include_root, std::vector<TarListStruct> *TarList, unsigned thread_id);
+ int tarList(std::vector<TarListStruct> *TarList, unsigned thread_id);
- int Archive_File_Count;
int Archive_Current_Type;
unsigned long long Archive_Current_Size;
+ unsigned long long Total_Backup_Size;
+ bool include_root_dir;
TAR *t;
int fd;
pid_t pigz_pid;
@@ -94,7 +91,6 @@ private:
string basefn;
vector <string> tarexclude;
- vector<string> split;
std::vector<TarListStruct> *ItemList;
int thread_id;