Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _DATA_HEADER |
| 18 | #define _DATA_HEADER |
| 19 | |
Vojtech Bocek | fafb0c5 | 2013-07-25 22:53:02 +0200 | [diff] [blame] | 20 | int DataManager_ResetDefaults(void); |
| 21 | void DataManager_LoadDefaults(void); |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 22 | int DataManager_LoadValues(const char* filename); |
Vojtech Bocek | fafb0c5 | 2013-07-25 22:53:02 +0200 | [diff] [blame] | 23 | int DataManager_Flush(void); |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 24 | const char* DataManager_GetStrValue(const char* varName); |
Vojtech Bocek | fafb0c5 | 2013-07-25 22:53:02 +0200 | [diff] [blame] | 25 | const char* DataManager_GetCurrentStoragePath(void); |
| 26 | const char* DataManager_GetSettingsStoragePath(void); |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 27 | int DataManager_GetIntValue(const char* varName); |
| 28 | |
| 29 | int DataManager_SetStrValue(const char* varName, char* value); |
| 30 | int DataManager_SetIntValue(const char* varName, int value); |
| 31 | int DataManager_SetFloatValue(const char* varName, float value); |
| 32 | |
| 33 | int DataManager_ToggleIntValue(const char* varName); |
| 34 | |
Vojtech Bocek | fafb0c5 | 2013-07-25 22:53:02 +0200 | [diff] [blame] | 35 | void DataManager_DumpValues(void); |
| 36 | void DataManager_ReadSettingsFile(void); |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 37 | |
| 38 | #endif // _DATA_HEADER |
| 39 | |