19 #ifndef __FOTA_PLATFORM_H_ 20 #define __FOTA_PLATFORM_H_ 22 #include "fota/fota_base.h" 24 #if MBED_CLOUD_CLIENT_FOTA_ENABLE 26 #include "fota/fota_status.h" 27 #include "fota/fota_block_device.h" 28 #include "fota/fota_candidate.h" 35 #if defined(FOTA_CUSTOM_PLATFORM) && (FOTA_CUSTOM_PLATFORM) 45 int fota_platform_init_hook(
bool after_upgrade);
53 int fota_platform_start_update_hook(
const char *comp_name);
61 int fota_platform_finish_update_hook(
const char *comp_name);
70 int fota_platform_abort_update_hook(
const char *comp_name);
75 static inline int fota_platform_init_hook(
bool after_upgrade)
77 return FOTA_STATUS_SUCCESS;
80 static inline int fota_platform_start_update_hook(
const char *comp_name)
82 return FOTA_STATUS_SUCCESS;
85 static inline int fota_platform_finish_update_hook(
const char *comp_name)
87 return FOTA_STATUS_SUCCESS;
90 static inline int fota_platform_abort_update_hook(
const char *comp_name)
92 return FOTA_STATUS_SUCCESS;
95 #endif // !defined(FOTA_CUSTOM_PLATFORM) || (!FOTA_CUSTOM_PLATFORM) 101 #endif // MBED_CLOUD_CLIENT_FOTA_ENABLE 102 #endif // __FOTA_PLATFORM_H_