2 * gps-manager replay plugin
4 * Copyright (c) 2011-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.
22 #include "gps_plugin_debug.h"
24 int setting_get_int(const char *path, int *val)
26 int ret = vconf_get_int(path, val);
30 LOG_PLUGIN(DBG_ERR, "vconf_get_int failed, [%s]", path);
36 int setting_get_double(const char *path, double *val)
38 int ret = vconf_get_dbl(path, val);
42 LOG_PLUGIN(DBG_ERR, "vconf_get_int failed, [%s]", path);
48 char *setting_get_string(const char *path)
50 return vconf_get_str(path);
53 int setting_notify_key_changed(const char *path, void *key_changed_cb)
56 if (vconf_notify_key_changed(path, key_changed_cb, NULL) != 0) {
57 LOG_PLUGIN(DBG_ERR, "Fail to vconf_notify_key_changed [%s]", path);
63 int setting_ignore_key_changed(const char *path, void *key_changed_cb)
66 if (vconf_ignore_key_changed(path, key_changed_cb) != 0) {
67 LOG_PLUGIN(DBG_ERR, "Fail to vconf_ignore_key_changed [%s]", path);