0d913b45a47d22525e9b5b17c27b78c6fd9d2959
[platform/core/api/system-settings.git] / src / sst_json.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 #ifndef __TIZEN_SYSTEM_SETTING_JSON_H__
17 #define __TIZEN_SYSTEM_SETTING_JSON_H__
18
19 #include <stdlib.h>
20 #include <string.h>
21 #include <glib-object.h>
22 #include <json-glib/json-glib.h>
23
24 //#define USE_JSONFILE
25
26 JsonParser* ss_json_ringtone_open_file(char* path);
27 JsonParser* ss_json_ringtone_load_from_data();
28
29 void ss_json_ringtone_add(JsonNode *root, char* filename, char* nameval, char* pathval);
30 void ss_json_ringtone_print(JsonNode *root);
31 void ss_json_ringtone_remove(JsonNode *root, char* filename, char* path_to_del);
32 bool ss_json_ringtone_contain(JsonNode *root, char* newfile);
33 void ss_json_ringtone_list(JsonNode *root);
34
35
36 #endif /* __TIZEN_SYSTEM_SETTING_JSON_H__ */
37
38
39