blob: 3137f8fa26bf0f84974a23a7ea12b85696d411ce [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001/*
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
20int DataManager_ResetDefaults();
21void DataManager_LoadDefaults();
22int DataManager_LoadValues(const char* filename);
23int DataManager_Flush();
24const char* DataManager_GetStrValue(const char* varName);
25const char* DataManager_GetCurrentStoragePath();
Dees_Troy51a0e822012-09-05 15:24:24 -040026const char* DataManager_GetSettingsStoragePath();
Dees_Troy51a0e822012-09-05 15:24:24 -040027int DataManager_GetIntValue(const char* varName);
28
29int DataManager_SetStrValue(const char* varName, char* value);
30int DataManager_SetIntValue(const char* varName, int value);
31int DataManager_SetFloatValue(const char* varName, float value);
32
33int DataManager_ToggleIntValue(const char* varName);
34
35void DataManager_DumpValues();
36void DataManager_ReadSettingsFile();
37
38#endif // _DATA_HEADER
39