ota_backend_temp_part.h 911 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief OTA Temp partition backend interface
  9. */
  10. #ifndef __OTA_BACKEND_TEMP_PART_H__
  11. #define __OTA_BACKEND_TEMP_PART_H__
  12. #include <ota_backend.h>
  13. /** structure of ota backend temp part init param, Initialized by the user*/
  14. struct ota_backend_temp_part_init_param {
  15. /** device name */
  16. const char *dev_name;
  17. };
  18. /**
  19. * @brief ota backend temp part init.
  20. *
  21. * This routine init backend temp part,calls by ota app.
  22. *
  23. * @param cb call back function,to tell ota app start stop upgrade,and upgrade progress.
  24. * @param param backend temp part init param.
  25. *
  26. *return backend if init success.
  27. *return NULL if init fail.
  28. */
  29. struct ota_backend *ota_backend_temp_part_init(ota_backend_notify_cb_t cb,
  30. struct ota_backend_temp_part_init_param *param);
  31. #endif /* __OTA_BACKEND_TEMP_PART_H__ */