[refactoring] revise interface
[platform/core/api/system-settings.git] / src / sst_vconf.h
1 /*
2  * Copyright (c) 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_vconf_get_str_ally(const char *vconf_key, char **value);
21
22 int sst_vconf_set_int(sst_interface *iface, int val);
23 int sst_vconf_set_bool(sst_interface *iface, bool val);
24 int sst_vconf_set_str(sst_interface *iface, const char *val);
25
26 int sst_vconf_get_int(sst_interface *iface, int *val);
27 int sst_vconf_get_bool(sst_interface *iface, bool *val);
28 int sst_vconf_get_str(sst_interface *iface, char **val);
29
30 int sst_vconf_set_cb(sst_interface *iface, system_settings_changed_cb cb, void *user_data);
31 int sst_vconf_unset_cb(sst_interface *iface);
32
33 int sst_vconf_add_multi_cb(sst_interface *iface, system_settings_changed_cb cb, void *user_data);
34 int sst_vconf_del_multi_cb(sst_interface *iface, system_settings_changed_cb cb);