blob: 0ca9f4eb61db33fa0ad69b9fc9913bb63e0cb9e9 [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001/*
Dees Troy3be70a82013-10-22 14:25:12 +00002 Copyright 2012 bigbiff/Dees_Troy TeamWin
3 This file is part of TWRP/TeamWin Recovery Project.
4
5 TWRP is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 TWRP is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with TWRP. If not, see <http://www.gnu.org/licenses/>.
17*/
Dees_Troy51a0e822012-09-05 15:24:24 -040018
19#ifndef _DATA_HEADER
20#define _DATA_HEADER
21
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020022int DataManager_ResetDefaults(void);
23void DataManager_LoadDefaults(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040024int DataManager_LoadValues(const char* filename);
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020025int DataManager_Flush(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040026const char* DataManager_GetStrValue(const char* varName);
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020027const char* DataManager_GetCurrentStoragePath(void);
28const char* DataManager_GetSettingsStoragePath(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040029int DataManager_GetIntValue(const char* varName);
30
31int DataManager_SetStrValue(const char* varName, char* value);
32int DataManager_SetIntValue(const char* varName, int value);
33int DataManager_SetFloatValue(const char* varName, float value);
34
35int DataManager_ToggleIntValue(const char* varName);
36
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020037void DataManager_DumpValues(void);
38void DataManager_ReadSettingsFile(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040039
40#endif // _DATA_HEADER
41