Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
simple-mbed-cloud-client/mbed-cloud-client/update-client-hub/modules/lwm2m-mbed/source/update-lwm2m-mbed-apis.h@0:8f0bb79ddd48, 2021-05-04 (annotated)
- Committer:
- leothedragon
- Date:
- Tue May 04 08:55:12 2021 +0000
- Revision:
- 0:8f0bb79ddd48
nmn
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leothedragon | 0:8f0bb79ddd48 | 1 | // ---------------------------------------------------------------------------- |
leothedragon | 0:8f0bb79ddd48 | 2 | // Copyright 2016-2018 ARM Ltd. |
leothedragon | 0:8f0bb79ddd48 | 3 | // |
leothedragon | 0:8f0bb79ddd48 | 4 | // SPDX-License-Identifier: Apache-2.0 |
leothedragon | 0:8f0bb79ddd48 | 5 | // |
leothedragon | 0:8f0bb79ddd48 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
leothedragon | 0:8f0bb79ddd48 | 7 | // you may not use this file except in compliance with the License. |
leothedragon | 0:8f0bb79ddd48 | 8 | // You may obtain a copy of the License at |
leothedragon | 0:8f0bb79ddd48 | 9 | // |
leothedragon | 0:8f0bb79ddd48 | 10 | // http://www.apache.org/licenses/LICENSE-2.0 |
leothedragon | 0:8f0bb79ddd48 | 11 | // |
leothedragon | 0:8f0bb79ddd48 | 12 | // Unless required by applicable law or agreed to in writing, software |
leothedragon | 0:8f0bb79ddd48 | 13 | // distributed under the License is distributed on an "AS IS" BASIS, |
leothedragon | 0:8f0bb79ddd48 | 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
leothedragon | 0:8f0bb79ddd48 | 15 | // See the License for the specific language governing permissions and |
leothedragon | 0:8f0bb79ddd48 | 16 | // limitations under the License. |
leothedragon | 0:8f0bb79ddd48 | 17 | // ---------------------------------------------------------------------------- |
leothedragon | 0:8f0bb79ddd48 | 18 | |
leothedragon | 0:8f0bb79ddd48 | 19 | /** @file update-lwm2m-mbed-apis.h |
leothedragon | 0:8f0bb79ddd48 | 20 | * @brief This file contains forward declarations for all functions used as |
leothedragon | 0:8f0bb79ddd48 | 21 | * APIS for the update client |
leothedragon | 0:8f0bb79ddd48 | 22 | * |
leothedragon | 0:8f0bb79ddd48 | 23 | * @detail Because C++ does not support designated initialisers, this file is |
leothedragon | 0:8f0bb79ddd48 | 24 | * used to provide linkage from C++ to C structure initialisers. This pattern is |
leothedragon | 0:8f0bb79ddd48 | 25 | * necessary to ensure that the APIs are not brittle and prone to breakage if |
leothedragon | 0:8f0bb79ddd48 | 26 | * APIs are added or the API structure is changed. |
leothedragon | 0:8f0bb79ddd48 | 27 | */ |
leothedragon | 0:8f0bb79ddd48 | 28 | |
leothedragon | 0:8f0bb79ddd48 | 29 | #include "update-client-common/arm_uc_error.h" |
leothedragon | 0:8f0bb79ddd48 | 30 | #include "update-client-monitor/arm_uc_monitor.h" |
leothedragon | 0:8f0bb79ddd48 | 31 | #include "update-client-source/arm_uc_source.h" |
leothedragon | 0:8f0bb79ddd48 | 32 | #include <stdint.h> |
leothedragon | 0:8f0bb79ddd48 | 33 | |
leothedragon | 0:8f0bb79ddd48 | 34 | #ifdef __cplusplus |
leothedragon | 0:8f0bb79ddd48 | 35 | extern "C" { |
leothedragon | 0:8f0bb79ddd48 | 36 | #endif |
leothedragon | 0:8f0bb79ddd48 | 37 | |
leothedragon | 0:8f0bb79ddd48 | 38 | uint32_t ARM_UCS_LWM2M_MONITOR_GetVersion(void); |
leothedragon | 0:8f0bb79ddd48 | 39 | ARM_MONITOR_CAPABILITIES ARM_UCS_LWM2M_MONITOR_GetCapabilities(void); |
leothedragon | 0:8f0bb79ddd48 | 40 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_Initialize(void (*notification_handler)(void)); |
leothedragon | 0:8f0bb79ddd48 | 41 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_Uninitialize(void); |
leothedragon | 0:8f0bb79ddd48 | 42 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SendState(arm_uc_monitor_state_t state); |
leothedragon | 0:8f0bb79ddd48 | 43 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SendUpdateResult(arm_uc_monitor_result_t updateResult); |
leothedragon | 0:8f0bb79ddd48 | 44 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SendName(arm_uc_buffer_t *name); |
leothedragon | 0:8f0bb79ddd48 | 45 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SendVersion(uint64_t version); |
leothedragon | 0:8f0bb79ddd48 | 46 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SetBootloaderHash(arm_uc_buffer_t *hash); |
leothedragon | 0:8f0bb79ddd48 | 47 | arm_uc_error_t ARM_UCS_LWM2M_MONITOR_SetOEMBootloaderHash(arm_uc_buffer_t *hash); |
leothedragon | 0:8f0bb79ddd48 | 48 | |
leothedragon | 0:8f0bb79ddd48 | 49 | uint32_t ARM_UCS_LWM2M_SOURCE_GetVersion(void); |
leothedragon | 0:8f0bb79ddd48 | 50 | ARM_SOURCE_CAPABILITIES ARM_UCS_LWM2M_SOURCE_GetCapabilities(void); |
leothedragon | 0:8f0bb79ddd48 | 51 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_Initialize(ARM_SOURCE_SignalEvent_t cb_event); |
leothedragon | 0:8f0bb79ddd48 | 52 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_Uninitialize(void); |
leothedragon | 0:8f0bb79ddd48 | 53 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetManifestDefaultCost(uint32_t *cost); |
leothedragon | 0:8f0bb79ddd48 | 54 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetManifestDefault(arm_uc_buffer_t *buffer, |
leothedragon | 0:8f0bb79ddd48 | 55 | uint32_t offset); |
leothedragon | 0:8f0bb79ddd48 | 56 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetManifestURLCost(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 57 | uint32_t *cost); |
leothedragon | 0:8f0bb79ddd48 | 58 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetFirmwareURLCost(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 59 | uint32_t *cost); |
leothedragon | 0:8f0bb79ddd48 | 60 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetKeytableURLCost(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 61 | uint32_t *cost); |
leothedragon | 0:8f0bb79ddd48 | 62 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetManifestURL(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 63 | arm_uc_buffer_t *buffer, |
leothedragon | 0:8f0bb79ddd48 | 64 | uint32_t offset); |
leothedragon | 0:8f0bb79ddd48 | 65 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetFirmwareFragment(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 66 | arm_uc_buffer_t *buffer, |
leothedragon | 0:8f0bb79ddd48 | 67 | uint32_t offset); |
leothedragon | 0:8f0bb79ddd48 | 68 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetKeytableURL(arm_uc_uri_t *uri, |
leothedragon | 0:8f0bb79ddd48 | 69 | arm_uc_buffer_t *buffer); |
leothedragon | 0:8f0bb79ddd48 | 70 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_GetError(void); |
leothedragon | 0:8f0bb79ddd48 | 71 | arm_uc_error_t ARM_UCS_LWM2M_SOURCE_SetError(arm_uc_error_t an_error); |
leothedragon | 0:8f0bb79ddd48 | 72 | |
leothedragon | 0:8f0bb79ddd48 | 73 | |
leothedragon | 0:8f0bb79ddd48 | 74 | #ifdef __cplusplus |
leothedragon | 0:8f0bb79ddd48 | 75 | } |
leothedragon | 0:8f0bb79ddd48 | 76 | #endif |