blob: f9639c62f531c1d6199369450b3e76b6a9f48efb [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
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020020int DataManager_ResetDefaults(void);
21void DataManager_LoadDefaults(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040022int DataManager_LoadValues(const char* filename);
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020023int DataManager_Flush(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040024const char* DataManager_GetStrValue(const char* varName);
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020025const char* DataManager_GetCurrentStoragePath(void);
26const char* DataManager_GetSettingsStoragePath(void);
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
Vojtech Bocekfafb0c52013-07-25 22:53:02 +020035void DataManager_DumpValues(void);
36void DataManager_ReadSettingsFile(void);
Dees_Troy51a0e822012-09-05 15:24:24 -040037
38#endif // _DATA_HEADER
39