Add Ringtone List API
[platform/core/api/system-settings.git] / include / system_settings_json.h
1 /*
2  * Copyright (c) 2011 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
17
18 #ifndef __TIZEN_SYSTEM_SETTING_JSON_H__
19 #define __TIZEN_SYSTEM_SETTING_JSON_H__
20
21 #include <stdlib.h>
22 #include <string.h>
23 #include <glib-object.h>
24 #include <json-glib/json-glib.h>
25
26 //#define USE_JSONFILE
27
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32
33 JsonParser* ss_json_ringtone_open_file(char* path);
34 JsonParser* ss_json_ringtone_load_from_data();
35
36 void ss_json_ringtone_add(JsonNode *root, char* filename, char* nameval, char* pathval);
37
38 void ss_json_ringtone_print(JsonNode *root);
39
40 void ss_json_ringtone_remove(JsonNode *root,  char* filename, char* path_to_del);
41
42 bool ss_json_ringtone_contain(JsonNode *root, char* newfile);
43
44 void ss_json_ringtone_list(JsonNode *root);
45
46 /*// */
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* __TIZEN_SYSTEM_SETTING_JSON_H__ */
52
53
54