3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef DATA_ADAPTER_COMMON_INTERNAL_H_
19 #define DATA_ADAPTER_COMMON_INTERNAL_H_
21 #include "data-adapter/common.h"
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"
32 * @file common_internal.h
33 * @brief Common factor of Framework common database
36 /** @addtogroup data_adapter
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
45 void sync_agent_free_memory_folder(sync_agent_da_folder_s * folder, int count);
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
52 void sync_agent_free_memory_item(sync_agent_da_item_s * item, int count);
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
59 void sync_agent_free_memory_last_anchor(sync_agent_da_last_anchor_s * last_anchor, int count);
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
66 void sync_agent_free_memory_mapping(sync_agent_da_mapping_s * mapping, int count);
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
73 void sync_agent_free_memory_item_info(sync_agent_da_item_info_s * item_info, int count);
76 * @brief Free memory sync_agent_da_id_list_s structure
77 * @param[in] id_list sync_agent_da_id_list_s structure
79 void sync_agent_free_memory_id_list(sync_agent_da_id_list_s * id_list);
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
86 void da_free_memory_config(sync_agent_da_config_s * config, int count);
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
93 void da_free_memory_item_changelog(sync_agent_da_item_changelog_s * item_changelog, int count);
99 #endif /* DATA_ADAPTER_COMMON_INTERNAL_H_ */