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 | |
| 20 | int DataManager_ResetDefaults(); |
| 21 | void DataManager_LoadDefaults(); |
| 22 | int DataManager_LoadValues(const char* filename); |
| 23 | int DataManager_Flush(); |
| 24 | const char* DataManager_GetStrValue(const char* varName); |
| 25 | const char* DataManager_GetCurrentStoragePath(); |
| 26 | const char* DataManager_GetCurrentStorageMount(); |
| 27 | const char* DataManager_GetSettingsStoragePath(); |
| 28 | const char* DataManager_GetSettingsStorageMount(); |
| 29 | int DataManager_GetIntValue(const char* varName); |
| 30 | |
| 31 | int DataManager_SetStrValue(const char* varName, char* value); |
| 32 | int DataManager_SetIntValue(const char* varName, int value); |
| 33 | int DataManager_SetFloatValue(const char* varName, float value); |
| 34 | |
| 35 | int DataManager_ToggleIntValue(const char* varName); |
| 36 | |
| 37 | void DataManager_DumpValues(); |
| 38 | void DataManager_ReadSettingsFile(); |
| 39 | |
| 40 | #endif // _DATA_HEADER |
| 41 | |