[JIRA:N_SE-30007] Get profilesNum failed.
[framework/system/oma-ds-agent.git] / include / framework / task / oma_ds_engine_controller_task.h
index f4b3ccc..c40cc40 100755 (executable)
@@ -36,6 +36,7 @@ typedef struct request_msg_info_s request_msg_info_t;
 struct request_msg_info_s {
        int sync_type;
        unsigned int request_id;
+       int profile_id;
 };
 
 #define EC_MSG_TYPE_SYNC_TASK_REQUEST          1
@@ -675,7 +676,7 @@ sync_agent_ec_task_error_e cancel_sync_request_task_process(unsigned int param_c
 sync_agent_ec_task_error_e reset_all_data_task_process(unsigned int param_cnt, sync_agent_ec_param_param_s ** param_array);
 
 /**
- * @par Description: This API is callback function which runs when reset function is requested
+ * @par Description: This API is callback function which runs when all profiles data gets.
  *
  *
  * @par Purpose:
@@ -765,6 +766,7 @@ sync_agent_ec_task_error_e refresh_from_service_task_process(unsigned int param_
  * @par Important notes:
  * @param[in]          sync_type(SYNC_MODE_MANUAL, SYNC_MODE_PERIODIC, SYNC_MODE_SAN, SYNC_MODE_AUTOCONFIG)
  * @param[in]          request id
+ * @param[in]          profile_id
  * @param[out]
  *
  * @return
@@ -780,7 +782,7 @@ sync_agent_ec_task_error_e refresh_from_service_task_process(unsigned int param_
  * @code
  * @endcode
  */
-void insert_request_msg_info(int sync_type, unsigned int request_id);
+void insert_request_msg_info(int sync_type, unsigned int request_id, int profile_id);
 
 /**
  * @par Description: API to delete request_msg_info_t structure from list
@@ -836,6 +838,33 @@ void delete_request_msg_info(unsigned int request_id);
 bool get_synchronizing_request_id(unsigned int *request_id);
 
 /**
+ * @par Description: API to get synchronizing profile id
+ *
+ *
+ * @par Purpose:
+ * @par Typical use case:
+ * @par Method of function operation:
+ * @par Important notes:
+ * @param[in]
+ * @param[out]         pProfile_id
+ *
+ * @return                             true on success
+ *                                                     false on error
+ *
+ * @par Errors:
+ *
+ * @pre None.
+ * @post
+ * @see
+ * @remarks None.
+ *
+ * @par Sample Code:
+ * @code
+ * @endcode
+ */
+bool get_synchronizing_profile_id(int *pProfile_id);
+
+/**
  * @par Description: API to get manual sync request id and delete request_msg_info_t structure from list
  *
  *