apply alternative for no util-lib
[platform/core/api/system-settings.git] / src / sst_core.h
1 /*
2  * Copyright (c) 2011-2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 #pragma once
17
18 #include "sst_interface.h"
19
20 int sst_set_value(system_settings_key_e key, sst_interface_data_type data_type, void *value);
21 int sst_get_value(system_settings_key_e key, sst_interface_data_type data_type, void **value);
22 int sst_add_value(system_settings_key_e key, sst_interface_data_type data_type, void *value);
23 int sst_del_value(system_settings_key_e key, sst_interface_data_type data_type, void *value);
24 int sst_list_value(system_settings_key_e key, sst_interface_data_type data_type, bool(*system_setting_data_iterator)(int, const char*, void *), void *user_data);
25
26 int sst_get_network_wifi_notification(sst_interface *iface, void **value);
27
28 int sst_set_sound_notification(sst_interface *iface, void *value);
29 int sst_get_sound_silent_mode(sst_interface *iface, void **value);
30 int sst_set_sound_silent_mode(sst_interface *iface, void *value);
31
32 int sst_get_ads_id(sst_interface *iface, void **value);
33 int sst_set_ads_id(sst_interface *iface, void *value);
34
35 int sst_get_uds_state(sst_interface *iface, void **value);