From cdcfee48b9720d589a4e2cd43725e8229ca336f9 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Wed, 27 Feb 2013 21:11:26 -0500 Subject: use md5.c for computation of md5sums create a framework for computing digests and reading digests in TWRP add space for backwards compatibility with bb md5sum Change-Id: Ia18e3f430eed5eba22e5052d39b9b8d88ecd4536 --- twrp-functions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.hpp') diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 421962281..042c56722 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -19,7 +19,6 @@ typedef enum class TWFunc { public: - static int Check_MD5(string File); static string Get_Root_Path(string Path); // Trims any trailing folders or filenames from the path, also adds a leading / if not present static string Get_Path(string Path); // Trims everything after the last / in the string static string Get_Filename(string Path); // Trims the path off of a filename @@ -41,6 +40,7 @@ public: 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 static timespec timespec_diff(timespec& start, timespec& end); // Return a diff for 2 times + static int read_file(string fn, vector& results); //read from file static int read_file(string fn, string& results); //read from file static int write_file(string fn, string& line); //write from file static int drop_caches(void); //drop linux cache memory -- cgit v1.2.3