summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-09-11 08:11:56 +0200
committerDees Troy <dees_troy@teamw.in>2013-09-12 17:36:40 +0200
commit05534209f104a435d91042fd4b816aaaae7b7b54 (patch)
tree64da042d36402180f30518f14ad460a1e970166b /twrp-functions.hpp
parentMake fixing su perms automatic (diff)
downloadandroid_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.gz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.bz2
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.lz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.xz
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.zst
android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.zip
Diffstat (limited to 'twrp-functions.hpp')
-rw-r--r--twrp-functions.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index b3019bd25..19ca10b2e 100644
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -37,7 +37,8 @@ public:
static void Update_Intent_File(string Intent); // Updates intent file
static int tw_reboot(RebootCommand command); // Prepares the device for rebooting
static void check_and_run_script(const char* script_file, const char* display_name); // checks for the existence of a script, chmods it to 755, then runs it
- static int Exec_Cmd(string cmd, string &result); //execute a command and return the result as a string by reference
+ 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 removeDir(const string path, bool removeParent); //recursively remove a directory
static int copy_file(string src, string dst, int mode); //copy file from src to dst with mode permissions
static unsigned int Get_D_Type_From_Stat(string Path); // Returns a dirent dt_type value using stat instead of dirent