summaryrefslogtreecommitdiffstats
path: root/twrpTar.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-07-03 22:09:22 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-07-09 15:52:18 +0200
commit1b7a31bd65d4e6bf5e337d6280e3d5319d460bef (patch)
treeebe7d27ea5681d1b3c772a7bc2e80025e94435a6 /twrpTar.hpp
parentColor in the console (diff)
downloadandroid_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.gz
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.bz2
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.lz
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.xz
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.zst
android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.zip
Diffstat (limited to 'twrpTar.hpp')
-rw-r--r--twrpTar.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/twrpTar.hpp b/twrpTar.hpp
index 443e5f4b3..799475234 100644
--- a/twrpTar.hpp
+++ b/twrpTar.hpp
@@ -45,12 +45,13 @@ class twrpTar {
public:
twrpTar();
virtual ~twrpTar();
- int createTarFork();
- int extractTarFork();
+ int createTarFork(const unsigned long long *overall_size, const unsigned long long *other_backups_size);
+ int extractTarFork(const unsigned long long *overall_size, unsigned long long *other_backups_size);
void setfn(string fn);
void setdir(string dir);
void setsize(unsigned long long backup_size);
void setpassword(string pass);
+ unsigned long long get_size();
public:
int use_encryption;
@@ -59,6 +60,9 @@ public:
int split_archives;
int has_data_media;
string backup_name;
+ int progress_pipe_fd;
+ string partition_name;
+ string backup_folder;
private:
int extract();
@@ -75,6 +79,7 @@ private:
static void* createList(void *cookie);
static void* extractMulti(void *cookie);
int tarList(std::vector<TarListStruct> *TarList, unsigned thread_id);
+ unsigned long long uncompressedSize(string filename, int *archive_type);
int Archive_Current_Type;
unsigned long long Archive_Current_Size;
@@ -84,6 +89,7 @@ private:
int fd;
pid_t pigz_pid;
pid_t oaes_pid;
+ unsigned long long file_count;
string tardir;
string tarfn;