summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-01-19 21:01:57 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-03-01 22:56:47 +0100
commitddb63e27f2cdba7ab3757abdc12a34cc02095345 (patch)
treebec2a6f8f18ee1f77ad568c8da76cc419b5ff7ca /twrp-functions.hpp
parentgui: preserve order of gui_print vs gui_msg (diff)
downloadandroid_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar.gz
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar.bz2
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar.lz
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar.xz
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.tar.zst
android_bootable_recovery-ddb63e27f2cdba7ab3757abdc12a34cc02095345.zip
Diffstat (limited to 'twrp-functions.hpp')
-rw-r--r--twrp-functions.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index ebbe99d10..82a4c1b08 100644
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -52,6 +52,7 @@ public:
static int Exec_Cmd(const string& cmd, string &result); //execute a command and return the result as a string by reference
static int Exec_Cmd(const string& cmd); //execute a command
static int Wait_For_Child(pid_t pid, int *status, string Child_Name); // Waits for pid to exit and checks exit status
+ static int Wait_For_Child_Timeout(pid_t pid, int *status, const string& Child_Name, int timeout); // Waits for a pid to exit until the timeout is hit. If timeout is hit, kill the chilld.
static bool Path_Exists(string Path); // Returns true if the path exists
static Archive_Type Get_File_Type(string fn); // Determines file type, 0 for unknown, 1 for gzip, 2 for OAES encrypted
static int Try_Decrypting_File(string fn, string password); // -1 for some error, 0 for failed to decrypt, 1 for decrypted, 3 for decrypted and found gzip format