* @retval SMARTREPLY_ERROR_OPERATION_FAILED Operation failed because of a system error
* @retval SMARTREPLY_ERROR_OUT_OF_MEMORY Out of memory
* @see smartreply_service_get_nth_reply_message()
- * @see smartreply_service_destory_list()
+ * @see smartreply_service_destroy_list()
*/
int smartreply_service_get_replies(const char* app_id, const char* sender,
const char* message, smartreply_reply_h** candidate_list, int* count);
* @param[in] candidate_list Candidate answer list
* @param[in] count The total number of the replies
* @see smartreply_service_get_nth_reply_message()
- * @see smartreply_service_destory_list()
+ * @see smartreply_service_destroy_list()
*/
typedef void (*smartreply_service_replies_received_cb)(int request_id, int error, smartreply_reply_h* candidate_list, int count);
* @param[in] callback Callback function
* @return Incremental request ID which will also be passed by the first parameter of callback function
* @see smartreply_service_get_nth_reply_message()
- * @see smartreply_service_destory_list()
+ * @see smartreply_service_destroy_list()
* @see smartreply_service_replies_received()
*/
int smartreply_service_get_replies_async(const char* app_id, const char* sender,
*/
int smartreply_service_get_nth_reply_message_with_type(smartreply_reply_h* reply_list,
int index, char** type, char** message);
+
/**
* @brief Deletes reply_list struct
* @since_tizen 2.3.1
* @pre smartreply_service_get_replies_async()
* @pre smartreply_service_get_replies()
*/
-int smartreply_service_destory_list(smartreply_reply_h* reply_list);
+int smartreply_service_destroy_list(smartreply_reply_h* reply_list);
/**
* @brief Records users' reply to history to update future replies
int res = smartreply_service_get_nth_reply_message_with_type(reply_list, index, NULL, reply_str);
return res;
}
-EXPORT_API int smartreply_service_destory_list(smartreply_reply_h *reply_list) {
+
+EXPORT_API int smartreply_service_destroy_list(smartreply_reply_h *reply_list) {
ASSERT_NOT_NULL(reply_list);
smartreply_reply_s* _reply;