1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef AOS_OTA_H 6 #define AOS_OTA_H 7 8 /** 9 * sys ota upgrade thread function. 10 * 11 * @param[in] ctx device information. 12 * 13 * @return 0 on success, negative error on failure. 14 */ 15 int interval_sys_upgrade_start(void *ctx); 16 17 /** 18 * submodule ota cb. 19 * 20 * 21 * @param[in] ctx submodule information. 22 * 23 * 24 * @return 0 on success, negative error on failure. 25 */ 26 int interval_module_upgrade_start(void *ctx); 27 28 /** 29 * amp_fota_image_local_copy. 30 * 31 * 32 * @param[in] image_name image name. 33 * @param[in] image_size image size. 34 * 35 * 36 * @return 0 on success, negative error on failure. 37 */ 38 int aos_fota_image_local_copy(char *image_name, int image_size); 39 40 #endif /* AOS_OTA_H */ 41