4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: JuHak Park <juhaki.park@samsung.com>,
7 * JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8 * SunBong Ha <sunbong.ha@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
28 * For any sort of issue you concern as to this software,
29 * you may use following point of contact.
30 * All resources contributed on this software
31 * are orinigally written by S-Core Inc., a member of Samsung Group.
33 * SeongWon Shim <seongwon.shim@samsung.com>
39 * @brief This file is the source file of implementation of wrapping vconf function
47 #include "Common/Common_Vconf.h"
50 char *get_vconf_str(char *baseKey, char *key)
55 sprintf(path, "%s%s", baseKey, key);
56 value = vconf_get_str(path);
59 if (strcmp(value, "") == 0) {
73 char *get_vconf_str_key(char *key)
76 value = vconf_get_str(key);
79 if (strcmp(value, "") == 0) {
92 bool get_vconf_int(char *baseKey, char *key, int *value)
98 sprintf(path, "%s%s", baseKey, key);
99 result = vconf_get_int(path, &temp);
108 bool get_vconf_Int_key(char *key, int *value)
113 result = vconf_get_int(key, &temp);
122 bool set_vconf_str(char *baseKey, char *key, char *value)
127 sprintf(path, "%s%s", baseKey, key);
128 result = vconf_set_str(path, value);
137 bool set_vconf_str_key(char *key, char *value)
140 result = vconf_set_str(key, value);
148 bool set_vconf_int(char *baseKey, char *key, int value)
153 sprintf(path, "%s%s", baseKey, key);
154 result = vconf_set_int(path, value);
162 bool set_vconf_int_key(char *key, int value)
166 result = vconf_set_int(key, value);