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.
23 #include "common_internal.h"
27 #endif /* __cplusplus */
31 * @brief Support to process changed service item, effect to F/W item, change log table.
34 /** @addtogroup data_adapter
39 * @brief Handling added item to service storage, update sync-agent-framework item & change log table - currently unused function
40 * @remarks This function is called force by Agent to set item & change log table manually
41 * @param[in] fw_account_id sync-agent-framework account id
42 * @param[in] fw_item_id sync-agent-framework item id
43 * @param[in] service_item_id service item id
44 * @param[in] item_type service type - service data connector plugin's id described in sync-agent-framework config file
45 * @param[in] fw_folder_id sync-agent-framework folder id
46 * @return 1 on success, otherwise a negative error value
48 int da_changelog_add_item_internal(sync_agent_da_item_s *item);
52 * @brief Handling added item to service storage, update sync-agent-framework item & change log table
53 * @remarks This function is called force by Agent to set item & change log table manually
54 * @param[in] sync_agent_item item info
55 * @param[in] item_id as returned by sync_agent_changelog_add_item_new() - id of newly added item
56 * @return Operation result
57 * @retval SYNC_AGENT_DA_SUCCESS success
58 * @retval negative value error
60 sync_agent_da_return_e sync_agent_changelog_add_item_new(sync_agent_da_item_s * sync_agent_item, char **item_id);
63 * @brief Handling deleted item from service storage, update sync-agent-framework item & change log table - currently unused function
64 * @param[in] fw_account_id sync-agent-framework account id
65 * @param[in] fw_item_id sync-agent-framework item id
66 * @param[in] item_type service type - service data connector plugin's id described in sync-agent-framework config file
67 * @return 1 on success, otherwise a negative error value.
69 int da_changelog_delete_item_internal(int fw_account_id, char *fw_item_id, int item_type);
72 * @brief Handling deleted item from service storage, update sync-agent-framework item & change log table
73 * @param[in] fw_account_id sync-agent-framework account id
74 * @param[in] fw_item_id sync-agent-framework item id
75 * @return Operation result
76 * @retval SYNC_AGENT_DA_SUCCESS success
77 * @retval negative value error
79 sync_agent_da_return_e sync_agent_changelog_delete_item_new(int fw_account_id, char *fw_item_id);
82 * @brief Handling updated item from service storage, update sync-agent-framework item & change log table - currently unused function
83 * @param[in] fw_account_id sync-agent-framework account id
84 * @param[in] fw_item_id sync-agent-framework item id
85 * @param[in] item_type service type - service data connector plugin's id described in sync-agent-framework config file
86 * @return 1 on success, otherwise a negative error value.
88 int da_changelog_update_item_internal(int fw_account_id, char *fw_item_id, int item_type);
91 * @brief Handling updated item from service storage, update sync-agent-framework item & change log table
92 * @param[in] fw_account_id sync-agent-framework account id
93 * @param[in] fw_item_id sync-agent-framework item id
94 * @return Operation result
95 * @retval SYNC_AGENT_DA_SUCCESS success
96 * @retval negative value error
98 sync_agent_da_return_e sync_agent_changelog_update_item_new(int fw_account_id, char *fw_item_id);
106 #endif /* __cplusplus */
107 #endif /* CHANGELOG_H_ */