2 * Copyright (c) 2020 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.
22 API int system_info_get_platform_bool(const char *key, bool *value)
24 if (0 == strcmp(key, "tizen.org/feature/systemsetting.font")) {
28 if (0 == strcmp(key, "tizen.org/feature/systemsetting.incoming_call")) {
32 if (0 == strcmp(key, "tizen.org/feature/systemsetting.home_screen")) {
36 if (0 == strcmp(key, "tizen.org/feature/systemsetting.lock_screen")) {
40 if (0 == strcmp(key, "tizen.org/feature/systemsetting.notification_email")) {
44 if (0 == strcmp(key, "tizen.org/feature/network.wifi")) {
48 if (0 == strcmp(key, "tizen.org/feature/network.telephony")) {
52 if (0 == strcmp(key, "tizen.org/feature/accessibility.grayscale")) {
56 if (0 == strcmp(key, "tizen.org/feature/accessibility.negative")) {
60 if (0 == strcmp(key, "tizen.org/feature/input.rotating_bezel")) {
65 int (*fn_org)(const char *, bool *) = NULL;
66 fn_org = dlsym(RTLD_NEXT, "system_info_get_platform_bool");
67 return fn_org(key, value);
70 API int system_info_get_platform_string(const char *key, char **value)
72 if (0 == strcmp(key, "tizen.org/feature/profile")) {
73 *value = strdup("wearable");
77 int (*fn_org)(const char *, char **) = NULL;
78 fn_org = dlsym(RTLD_NEXT, "system_info_get_platform_string");
79 return fn_org(key, value);