Tizen 2.1 base
[platform/core/system/sync-agent.git] / src / framework / data-adapter / common_internal.h
1 /*
2  * sync-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef DATA_ADAPTER_COMMON_INTERNAL_H_
19 #define DATA_ADAPTER_COMMON_INTERNAL_H_
20
21 #include "data-adapter/common.h"
22
23 #include "interface_service_item.h"
24 #include "interface_changelog.h"
25 #include "interface_item.h"
26 #include "interface_config.h"
27 #include "interface_folder.h"
28 #include "interface_last_anchor.h"
29 #include "interface_mapping.h"
30
31 /**
32  * @file                common_internal.h
33  * @brief       Common factor of Framework common database
34  */
35
36 /** @addtogroup data_adapter
37  *      @{
38  */
39
40 /**
41  * @brief Free memory sync_agent_da_folder_s structure
42  * @param[in]   folder sync_agent_da_folder_s structure
43  * @param[in]   count count of sync_agent_da_folder_s
44  */
45 void sync_agent_free_memory_folder(sync_agent_da_folder_s * folder, int count);
46
47 /**
48  * @brief Free memory sync_agent_da_item_s structure
49  * @param[in]   item sync_agent_da_item_s structure
50  * @param[in]   count count of sync_agent_da_item_s
51  */
52 void sync_agent_free_memory_item(sync_agent_da_item_s * item, int count);
53
54 /**
55  * @brief Free memory sync_agent_da_last_anchor_s structure
56  * @param[in]   last_anchor sync_agent_da_last_anchor_s structure
57  * @param[in]   count count of sync_agent_da_last_anchor_s
58  */
59 void sync_agent_free_memory_last_anchor(sync_agent_da_last_anchor_s * last_anchor, int count);
60
61 /**
62  * @brief Free memory sync_agent_da_mapping_s structure
63  * @param[in]   mapping sync_agent_da_mapping_s structure
64  * @param[in]   count count of countsync_agent_da_mapping_s
65  */
66 void sync_agent_free_memory_mapping(sync_agent_da_mapping_s * mapping, int count);
67
68 /**
69  * @brief Free memory sync_agent_da_item_info_s structure
70  * @param[in]   item_info sync_agent_da_item_info_s structure
71  * @param[in]   count count of sync_agent_da_item_info_s
72  */
73 void sync_agent_free_memory_item_info(sync_agent_da_item_info_s * item_info, int count);
74
75 /**
76  * @brief Free memory sync_agent_da_id_list_s structure
77  * @param[in]   id_list sync_agent_da_id_list_s structure
78  */
79 void sync_agent_free_memory_id_list(sync_agent_da_id_list_s * id_list);
80
81 /**
82  * @brief Free memory sync_agent_da_config_s structure
83  * @param[in]   config sync_agent_da_config_s structure
84  * @param[in]   count count of sync_agent_da_config_s
85  */
86 void da_free_memory_config(sync_agent_da_config_s * config, int count);
87
88 /**
89  * @brief Free memory sync_agent_da_item_changelog_s structure
90  * @param[in]   item_changelog sync_agent_da_item_changelog_s structure
91  * @param[in]   count count of sync_agent_da_item_changelog_s
92  */
93 void da_free_memory_item_changelog(sync_agent_da_item_changelog_s * item_changelog, int count);
94
95 /**
96  *      @}
97  */
98
99 #endif                          /* DATA_ADAPTER_COMMON_INTERNAL_H_ */