4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
24 * @desc Entity for load vconf options
26 * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
30 #include <vconf/vconf.h>
36 API int load_options(resourced_options *options)
41 _E("Please provide valid argument!");
44 if (vconf_get_bool(RESOURCED_WIFI_STATISTICS_PATH, &val) == 0)
46 RESOURCED_OPTION_ENABLE : RESOURCED_OPTION_DISABLE;
48 _D("Can not get WiFi statistics settings");
52 if (vconf_get_bool(RESOURCED_DATACALL_PATH, &val) == 0)
53 options->datacall = val ?
54 RESOURCED_OPTION_ENABLE : RESOURCED_OPTION_DISABLE;
56 _D("Can not get DataCall settings");
60 if (vconf_get_int(RESOURCED_DATAUSAGE_TIMER_PATH, &val) == 0)
61 options->datausage_timer = val;
63 _D("Can not get DataUsage timer settings");
67 if (vconf_get_bool(RESOURCED_DATACALL_LOGGING_PATH, &val) == 0)
68 options->datacall_logging = val ?
69 RESOURCED_OPTION_ENABLE : RESOURCED_OPTION_DISABLE;
71 _D("Can not get DataCall logging settings");