Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers update-lwm2m-mbed-apis.c Source File

update-lwm2m-mbed-apis.c

00001 // ----------------------------------------------------------------------------
00002 // Copyright 2016-2018 ARM Ltd.
00003 //
00004 // SPDX-License-Identifier: Apache-2.0
00005 //
00006 // Licensed under the Apache License, Version 2.0 (the "License");
00007 // you may not use this file except in compliance with the License.
00008 // You may obtain a copy of the License at
00009 //
00010 //     http://www.apache.org/licenses/LICENSE-2.0
00011 //
00012 // Unless required by applicable law or agreed to in writing, software
00013 // distributed under the License is distributed on an "AS IS" BASIS,
00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 // See the License for the specific language governing permissions and
00016 // limitations under the License.
00017 // ----------------------------------------------------------------------------
00018 
00019 #include "update-client-lwm2m/lwm2m-monitor.h"
00020 #include "update-client-lwm2m/lwm2m-source.h"
00021 #include "update-lwm2m-mbed-apis.h"
00022 
00023 
00024 ARM_UPDATE_MONITOR ARM_UCS_LWM2M_MONITOR = {
00025     .GetVersion           = ARM_UCS_LWM2M_MONITOR_GetVersion,
00026     .GetCapabilities      = ARM_UCS_LWM2M_MONITOR_GetCapabilities,
00027     .Initialize           = ARM_UCS_LWM2M_MONITOR_Initialize,
00028     .Uninitialize         = ARM_UCS_LWM2M_MONITOR_Uninitialize,
00029 
00030     .SendState            = ARM_UCS_LWM2M_MONITOR_SendState,
00031     .SendUpdateResult     = ARM_UCS_LWM2M_MONITOR_SendUpdateResult,
00032     .SendName             = ARM_UCS_LWM2M_MONITOR_SendName,
00033     .SendVersion          = ARM_UCS_LWM2M_MONITOR_SendVersion,
00034 
00035     .SetBootloaderHash    = ARM_UCS_LWM2M_MONITOR_SetBootloaderHash,
00036     .SetOEMBootloaderHash = ARM_UCS_LWM2M_MONITOR_SetOEMBootloaderHash
00037 };
00038 
00039 ARM_UPDATE_SOURCE ARM_UCS_LWM2M_SOURCE = {
00040     .GetVersion             = ARM_UCS_LWM2M_SOURCE_GetVersion,
00041     .GetCapabilities        = ARM_UCS_LWM2M_SOURCE_GetCapabilities,
00042     .Initialize             = ARM_UCS_LWM2M_SOURCE_Initialize,
00043     .Uninitialize           = ARM_UCS_LWM2M_SOURCE_Uninitialize,
00044     .GetManifestDefaultCost = ARM_UCS_LWM2M_SOURCE_GetManifestDefaultCost,
00045     .GetManifestURLCost     = ARM_UCS_LWM2M_SOURCE_GetManifestURLCost,
00046     .GetFirmwareURLCost     = ARM_UCS_LWM2M_SOURCE_GetFirmwareURLCost,
00047     .GetKeytableURLCost     = ARM_UCS_LWM2M_SOURCE_GetKeytableURLCost,
00048     .GetManifestDefault     = ARM_UCS_LWM2M_SOURCE_GetManifestDefault,
00049     .GetManifestURL         = ARM_UCS_LWM2M_SOURCE_GetManifestURL,
00050     .GetFirmwareFragment    = ARM_UCS_LWM2M_SOURCE_GetFirmwareFragment,
00051     .GetKeytableURL         = ARM_UCS_LWM2M_SOURCE_GetKeytableURL
00052 };