Mistake on this page? Email us
dmc_update_api.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // Copyright 2019 ARM 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 __DMC_CONNECT_UPDATE_H__
20 #define __DMC_CONNECT_UPDATE_H__
21 
26 #ifdef MBED_CLOUD_CLIENT_SUPPORT_UPDATE
27 
28 #include "update-client-hub/update_client_hub.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 void pdmc_connect_update_set_authorize_handler(void (*authorize_handler)(int32_t request, uint64_t priority));
39 
44 void pdmc_connect_update_set_error_handler(void (*error_handler)(int32_t error));
45 
50 void pdmc_connect_update_set_progress_handler(void (*progress_handler)(uint32_t progress, uint32_t total));
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 
57 #endif // MBED_CLOUD_CLIENT_SUPPORT_UPDATE
58 
59 #endif //__DMC_CONNECT_UPDATE_H__
60 
void pdmc_connect_update_set_error_handler(void(*error_handler)(int32_t error))
Set an update error handler.
void pdmc_connect_update_set_authorize_handler(void(*authorize_handler)(int32_t request, uint64_t priority))
Set an update authorization handler.
void pdmc_connect_update_set_progress_handler(void(*progress_handler)(uint32_t progress, uint32_t total))
Set an update progress handler.