3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * @brief This file is the header file of defined vconf value
24 #ifndef COMMON_VCONF_H_
25 #define COMMON_VCONF_H_
30 * @par Description: API to get value(char*) from vconf
34 * @par Typical use case:
35 * @par Method of function operation:
36 * @par Important notes:
37 * @param[in] string type, base key
38 * @param[in] string type, key
41 * @return value on success
55 char *get_vconf_str(char *base_key, char *key);
58 * @par Description: API to get value(char*) from vconf
62 * @par Typical use case:
63 * @par Method of function operation:
64 * @par Important notes:
65 * @param[in] string type, key
68 * @return value on success
82 char *get_vconf_str_key(char *key);
85 * @par Description: API to get value(int) from vconf
89 * @par Typical use case:
90 * @par Method of function operation:
91 * @par Important notes:
92 * @param[in] string type, base key
93 * @param[in] string type, key
94 * @param[out] int type, value
96 * @return true on success
110 bool get_vconf_int(char *base_key, char *key, int *value);
113 * @par Description: API to get value(int) from vconf
117 * @par Typical use case:
118 * @par Method of function operation:
119 * @par Important notes:
120 * @param[in] string type, key
121 * @param[out] int type, value
123 * @return true on success
137 bool get_vconf_int_key(char *key, int *value);
140 * @par Description: API to set value(char*) into vconf
144 * @par Typical use case:
145 * @par Method of function operation:
146 * @par Important notes:
147 * @param[in] string type, basekey
148 * @param[in] string type, key
149 * @param[in] string type, value
151 * @return true on success
165 bool set_vconf_str(char *base_key, char *key, char *value);
168 * @par Description: API to set value(char*) into vconf
172 * @par Typical use case:
173 * @par Method of function operation:
174 * @par Important notes:
175 * @param[in] string type, key
176 * @param[in] string type, value
178 * @return true on success
192 bool set_vconf_str_key(char *key, char *value);
195 * @par Description: API to set value(int) into vconf
199 * @par Typical use case:
200 * @par Method of function operation:
201 * @par Important notes:
202 * @param[in] string type, basekey
203 * @param[in] string type, key
204 * @param[in] int type, value
206 * @return true on success
220 bool set_vconf_int(char *base_key, char *key, int value);
223 * @par Description: API to set value(int) into vconf
227 * @par Typical use case:
228 * @par Method of function operation:
229 * @par Important notes:
230 * @param[in] string type, key
231 * @param[in] int type, value
233 * @return true on success
247 bool set_vconf_int_key(char *key, int value);
249 #endif /* COMMON_VCONF_H_ */