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.
Fork of mbed-client by
source/include/nsdlaccesshelper.h@1:79b6cc67d8b4, 2016-01-22 (annotated)
- Committer:
- Christopher Haster
- Date:
- Fri Jan 22 14:57:00 2016 -0600
- Revision:
- 1:79b6cc67d8b4
Initial move of mbed-client to mercurial
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Christopher Haster |
1:79b6cc67d8b4 | 1 | /* |
| Christopher Haster |
1:79b6cc67d8b4 | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
| Christopher Haster |
1:79b6cc67d8b4 | 3 | * SPDX-License-Identifier: Apache-2.0 |
| Christopher Haster |
1:79b6cc67d8b4 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
| Christopher Haster |
1:79b6cc67d8b4 | 5 | * not use this file except in compliance with the License. |
| Christopher Haster |
1:79b6cc67d8b4 | 6 | * You may obtain a copy of the License at |
| Christopher Haster |
1:79b6cc67d8b4 | 7 | * |
| Christopher Haster |
1:79b6cc67d8b4 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Christopher Haster |
1:79b6cc67d8b4 | 9 | * |
| Christopher Haster |
1:79b6cc67d8b4 | 10 | * Unless required by applicable law or agreed to in writing, software |
| Christopher Haster |
1:79b6cc67d8b4 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| Christopher Haster |
1:79b6cc67d8b4 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Christopher Haster |
1:79b6cc67d8b4 | 13 | * See the License for the specific language governing permissions and |
| Christopher Haster |
1:79b6cc67d8b4 | 14 | * limitations under the License. |
| Christopher Haster |
1:79b6cc67d8b4 | 15 | */ |
| Christopher Haster |
1:79b6cc67d8b4 | 16 | #ifndef NSDL_ACCESS_HELPER_H |
| Christopher Haster |
1:79b6cc67d8b4 | 17 | #define NSDL_ACCESS_HELPER_H |
| Christopher Haster |
1:79b6cc67d8b4 | 18 | |
| Christopher Haster |
1:79b6cc67d8b4 | 19 | #include "include/m2mnsdlinterface.h" |
| Christopher Haster |
1:79b6cc67d8b4 | 20 | |
| Christopher Haster |
1:79b6cc67d8b4 | 21 | extern M2MNsdlInterface *__nsdl_interface; |
| Christopher Haster |
1:79b6cc67d8b4 | 22 | |
| Christopher Haster |
1:79b6cc67d8b4 | 23 | #ifdef __cplusplus |
| Christopher Haster |
1:79b6cc67d8b4 | 24 | extern "C" { |
| Christopher Haster |
1:79b6cc67d8b4 | 25 | #endif |
| Christopher Haster |
1:79b6cc67d8b4 | 26 | |
| Christopher Haster |
1:79b6cc67d8b4 | 27 | uint8_t __nsdl_c_callback(struct nsdl_s * nsdl_handle, |
| Christopher Haster |
1:79b6cc67d8b4 | 28 | sn_coap_hdr_s *received_coap_ptr, |
| Christopher Haster |
1:79b6cc67d8b4 | 29 | sn_nsdl_addr_s *address, |
| Christopher Haster |
1:79b6cc67d8b4 | 30 | sn_nsdl_capab_e nsdl_capab); |
| Christopher Haster |
1:79b6cc67d8b4 | 31 | void *__nsdl_c_memory_alloc(uint16_t size); |
| Christopher Haster |
1:79b6cc67d8b4 | 32 | void __nsdl_c_memory_free(void *ptr); |
| Christopher Haster |
1:79b6cc67d8b4 | 33 | uint8_t __nsdl_c_send_to_server(struct nsdl_s * nsdl_handle, |
| Christopher Haster |
1:79b6cc67d8b4 | 34 | sn_nsdl_capab_e protocol, |
| Christopher Haster |
1:79b6cc67d8b4 | 35 | uint8_t *data_ptr, |
| Christopher Haster |
1:79b6cc67d8b4 | 36 | uint16_t data_len, |
| Christopher Haster |
1:79b6cc67d8b4 | 37 | sn_nsdl_addr_s *address_ptr); |
| Christopher Haster |
1:79b6cc67d8b4 | 38 | uint8_t __nsdl_c_received_from_server(struct nsdl_s * nsdl_handle, |
| Christopher Haster |
1:79b6cc67d8b4 | 39 | sn_coap_hdr_s *coap_header, |
| Christopher Haster |
1:79b6cc67d8b4 | 40 | sn_nsdl_addr_s *address_ptr); |
| Christopher Haster |
1:79b6cc67d8b4 | 41 | void __nsdl_c_bootstrap_done(sn_nsdl_oma_server_info_t *server_info_ptr); |
| Christopher Haster |
1:79b6cc67d8b4 | 42 | void *__socket_malloc( void * context, size_t size); |
| Christopher Haster |
1:79b6cc67d8b4 | 43 | void __socket_free(void * context, void * ptr); |
| Christopher Haster |
1:79b6cc67d8b4 | 44 | |
| Christopher Haster |
1:79b6cc67d8b4 | 45 | #ifdef __cplusplus |
| Christopher Haster |
1:79b6cc67d8b4 | 46 | } |
| Christopher Haster |
1:79b6cc67d8b4 | 47 | #endif |
| Christopher Haster |
1:79b6cc67d8b4 | 48 | |
| Christopher Haster |
1:79b6cc67d8b4 | 49 | #endif // NSDL_ACCESS_HELPER_H |
