diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2013-02-19 16:09:21 +0100 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-02-19 19:08:03 +0100 |
commit | 2c57d789df1e23f3c311036dc5de240867142be5 (patch) | |
tree | 7fc5220eeef70f33b74ffeaf6fddf561b17e3d8f /data.hpp | |
parent | Add MTK6575/6577 EMMC partitions backup support (diff) | |
download | android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar.gz android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar.bz2 android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar.lz android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar.xz android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.tar.zst android_bootable_recovery-2c57d789df1e23f3c311036dc5de240867142be5.zip |
Diffstat (limited to '')
-rw-r--r-- | data.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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<string, int> TStrIntPair; + typedef pair<string, unsigned long long> TStrULLPair; typedef pair<string, TStrIntPair> TNameValuePair; static map<string, TStrIntPair> mValues; + static map<string, TStrULLPair> mULLValues; static string mBackingFile; static int mInitialized; |