2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #include <system_info.h>
25 #include <system_info_private.h>
31 #define LOG_TAG "TIZEN_N_SYSTEM_INFO"
33 int system_info_vconf_get_value_int(const char *vconf_key, int *value)
35 return vconf_get_int(vconf_key, value);
38 int system_info_vconf_get_value_bool(const char *vconf_key, bool *value)
40 return vconf_get_bool(vconf_key, (int *)value);
43 int system_info_vconf_get_value_double(const char *vconf_key, double *value)
45 return vconf_get_dbl(vconf_key, value);
48 int system_info_vconf_get_value_string(const char *vconf_key, char **value)
50 char *str_value = NULL;
52 str_value = vconf_get_str(vconf_key);
54 if (str_value != NULL) {