2 * Copyright (c) 2011-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.
16 #ifndef __TIZEN_SYSTEM_SETTING_JSON_H__
17 #define __TIZEN_SYSTEM_SETTING_JSON_H__
21 #include <glib-object.h>
22 #include <json-glib/json-glib.h>
24 //#define USE_JSONFILE
26 JsonParser* ss_json_ringtone_open_file(char* path);
27 JsonParser* ss_json_ringtone_load_from_data();
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);
36 #endif /* __TIZEN_SYSTEM_SETTING_JSON_H__ */