From 2c57d789df1e23f3c311036dc5de240867142be5 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Tue, 19 Feb 2013 10:09:21 -0500 Subject: convert file_bps to be unsigned long long Change-Id: Ib5d9ca8f9a2a4e27d9798665b312376a7d9c571c --- data.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data.hpp') diff --git a/data.hpp b/data.hpp index 42c722033..55966a1c3 100644 --- a/data.hpp +++ b/data.hpp @@ -33,6 +33,7 @@ public: // Core get routines static int GetValue(const string varName, string& value); static int GetValue(const string varName, int& value); + static unsigned long long GetValue(const string varName, unsigned long long& value); // This is a dangerous function. It will create the value if it doesn't exist so it has a valid c_str static string& GetValueRef(const string varName); @@ -45,6 +46,7 @@ public: static int SetValue(const string varName, string value, int persist = 0); static int SetValue(const string varName, int value, int persist = 0); static int SetValue(const string varName, float value, int persist = 0); + static int SetValue(const string varName, unsigned long long value, int persist = 0); static void DumpValues(); static void update_tz_environment_variables(); @@ -52,7 +54,7 @@ public: static void SetDefaultValues(); static void Output_Version(void); // Outputs the version to a file in the TWRP folder static void ReadSettingsFile(void); - + static string GetCurrentStoragePath(void); static string& CGetCurrentStoragePath(); static string GetCurrentStorageMount(void); @@ -64,8 +66,10 @@ public: protected: typedef pair TStrIntPair; + typedef pair TStrULLPair; typedef pair TNameValuePair; static map mValues; + static map mULLValues; static string mBackingFile; static int mInitialized; -- cgit v1.2.3