blob: 17e1a4da0c6a61b484187849eb7e3eccfe50fcc3 [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();
26const char* DataManager_GetCurrentStorageMount();
27const char* DataManager_GetSettingsStoragePath();
28const char* DataManager_GetSettingsStorageMount();
29int 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
37void DataManager_DumpValues();
38void DataManager_ReadSettingsFile();
39
40#endif // _DATA_HEADER
41