From 05534209f104a435d91042fd4b816aaaae7b7b54 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Wed, 11 Sep 2013 08:11:56 +0200 Subject: Add TWFunc::Exec_Cmd() with no 'result' agrument Signed-off-by: Vojtech Bocek Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9 --- twrp-functions.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'twrp-functions.hpp') 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 -- cgit v1.2.3