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.
19 #include "system_settings.h"
21 typedef struct sst_json_s sst_json_h;
23 sst_json_h* sst_json_load_ringtone();
24 void sst_json_unref(sst_json_h *handle);
25 void sst_json_get_ringtones(sst_json_h *handle, system_settings_iter_cb cb, void *user_data);
26 void sst_json_add_ringtone(sst_json_h *handle, const char *nameval, const char *pathval);
27 void sst_json_remove_ringtone(sst_json_h *handle, const char *path_to_del);
28 bool sst_json_contain_ringtone(sst_json_h *handle, const char *newfile);