Toyomasa Watarai / simple-mbed-cloud-client

Dependents:  

Committer:
MACRUM
Date:
Mon Jul 02 06:30:39 2018 +0000
Revision:
0:276e7a263c35
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MACRUM 0:276e7a263c35 1 /*
MACRUM 0:276e7a263c35 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
MACRUM 0:276e7a263c35 3 * SPDX-License-Identifier: Apache-2.0
MACRUM 0:276e7a263c35 4 * Licensed under the Apache License, Version 2.0 (the License); you may
MACRUM 0:276e7a263c35 5 * not use this file except in compliance with the License.
MACRUM 0:276e7a263c35 6 * You may obtain a copy of the License at
MACRUM 0:276e7a263c35 7 *
MACRUM 0:276e7a263c35 8 * http://www.apache.org/licenses/LICENSE-2.0
MACRUM 0:276e7a263c35 9 *
MACRUM 0:276e7a263c35 10 * Unless required by applicable law or agreed to in writing, software
MACRUM 0:276e7a263c35 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
MACRUM 0:276e7a263c35 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MACRUM 0:276e7a263c35 13 * See the License for the specific language governing permissions and
MACRUM 0:276e7a263c35 14 * limitations under the License.
MACRUM 0:276e7a263c35 15 */
MACRUM 0:276e7a263c35 16 #ifndef NSDL_ACCESS_HELPER_H
MACRUM 0:276e7a263c35 17 #define NSDL_ACCESS_HELPER_H
MACRUM 0:276e7a263c35 18 #include "mbed-client/m2mconnectionhandler.h"
MACRUM 0:276e7a263c35 19 #include "include/m2mnsdlinterface.h"
MACRUM 0:276e7a263c35 20
MACRUM 0:276e7a263c35 21 typedef Vector<M2MNsdlInterface *> M2MNsdlInterfaceList;
MACRUM 0:276e7a263c35 22
MACRUM 0:276e7a263c35 23 #ifdef __cplusplus
MACRUM 0:276e7a263c35 24 extern "C" {
MACRUM 0:276e7a263c35 25 #endif
MACRUM 0:276e7a263c35 26
MACRUM 0:276e7a263c35 27 uint8_t __nsdl_c_callback(struct nsdl_s * nsdl_handle,
MACRUM 0:276e7a263c35 28 sn_coap_hdr_s *received_coap_ptr,
MACRUM 0:276e7a263c35 29 sn_nsdl_addr_s *address,
MACRUM 0:276e7a263c35 30 sn_nsdl_capab_e nsdl_capab);
MACRUM 0:276e7a263c35 31
MACRUM 0:276e7a263c35 32 void *__nsdl_c_memory_alloc(uint16_t size);
MACRUM 0:276e7a263c35 33
MACRUM 0:276e7a263c35 34 void __nsdl_c_memory_free(void *ptr);
MACRUM 0:276e7a263c35 35
MACRUM 0:276e7a263c35 36 uint8_t __nsdl_c_send_to_server(struct nsdl_s * nsdl_handle,
MACRUM 0:276e7a263c35 37 sn_nsdl_capab_e protocol,
MACRUM 0:276e7a263c35 38 uint8_t *data_ptr,
MACRUM 0:276e7a263c35 39 uint16_t data_len,
MACRUM 0:276e7a263c35 40 sn_nsdl_addr_s *address_ptr);
MACRUM 0:276e7a263c35 41
MACRUM 0:276e7a263c35 42 uint8_t __nsdl_c_received_from_server(struct nsdl_s * nsdl_handle,
MACRUM 0:276e7a263c35 43 sn_coap_hdr_s *coap_header,
MACRUM 0:276e7a263c35 44 sn_nsdl_addr_s *address_ptr);
MACRUM 0:276e7a263c35 45
MACRUM 0:276e7a263c35 46 uint8_t __nsdl_c_auto_obs_token(struct nsdl_s *nsdl_handle, const char *path, uint8_t *token);
MACRUM 0:276e7a263c35 47
MACRUM 0:276e7a263c35 48 void *__socket_malloc( void * context, size_t size);
MACRUM 0:276e7a263c35 49
MACRUM 0:276e7a263c35 50 void __socket_free(void * context, void * ptr);
MACRUM 0:276e7a263c35 51
MACRUM 0:276e7a263c35 52 M2MNsdlInterface* get_interface(struct nsdl_s* nsdl_handle);
MACRUM 0:276e7a263c35 53
MACRUM 0:276e7a263c35 54 #ifdef __cplusplus
MACRUM 0:276e7a263c35 55 }
MACRUM 0:276e7a263c35 56 #endif
MACRUM 0:276e7a263c35 57
MACRUM 0:276e7a263c35 58 #endif // NSDL_ACCESS_HELPER_H