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 "CAPI_SYSTEM_INFO"
33 #define TETHERING_INFO_FILE_PATH "/etc/config/connectivity/sysinfo-tethering.xml"
35 int system_info_get_manufacturer(system_info_key_e key, system_info_data_type_e data_type, void **value)
40 ret = system_info_get_platform_string(
41 "tizen.org/system/manufacturer",
43 if (ret == SYSTEM_INFO_ERROR_NONE)
44 *value = manufacturer;
49 int system_info_get_tethering_supported(system_info_key_e key, system_info_data_type_e data_type, void **value)
55 supported = (bool *)value;
57 ret = system_info_get_platform_bool(
58 "tizen.org/feature/network.tethering",
60 if (ret == SYSTEM_INFO_ERROR_NONE)
61 *supported = tethering;