Mistake on this page? Email us
fota_platform_hooks.h
1 // ----------------------------------------------------------------------------
2 // Copyright 2019-2021 Pelion Ltd.
3 //
4 // SPDX-License-Identifier: Apache-2.0
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 //
10 // http://www.apache.org/licenses/LICENSE-2.0
11 //
12 // Unless required by applicable law or agreed to in writing, software
13 // distributed under the License is distributed on an "AS IS" BASIS,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 // ----------------------------------------------------------------------------
18 
19 #ifndef __FOTA_PLATFORM_H_
20 #define __FOTA_PLATFORM_H_
21 
22 #include "fota/fota_base.h"
23 
24 #if defined(MBED_CLOUD_CLIENT_FOTA_ENABLE)
25 
26 #include "fota/fota_status.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
47 int fota_platform_init_hook(bool after_upgrade);
48 
56 int fota_platform_start_update_hook(const char *comp_name);
57 
65 int fota_platform_finish_update_hook(const char *comp_name);
66 
74 int fota_platform_abort_update_hook(const char *comp_name);
75 
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif // defined(MBED_CLOUD_CLIENT_FOTA_ENABLE)
82 #endif // __FOTA_PLATFORM_H_