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 OmniWheels by
sn_coap_builder_stub.c
00001 /* 00002 * Copyright (c) 2011-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 /** 00019 * \file sn_coap_builder.c 00020 * 00021 * \brief CoAP Message builder 00022 * 00023 * Functionality: Builds CoAP message 00024 * 00025 */ 00026 00027 /* * * * * * * * * * * * * * */ 00028 /* * * * INCLUDE FILES * * * */ 00029 /* * * * * * * * * * * * * * */ 00030 00031 #include "ns_types.h" 00032 #include "sn_coap_header.h" 00033 #include "sn_coap_builder_stub.h" 00034 00035 sn_coap_builder_stub_def sn_coap_builder_stub; 00036 00037 sn_coap_hdr_s *sn_coap_build_response(struct coap_s *handle, sn_coap_hdr_s *coap_packet_ptr, uint8_t msg_code) 00038 { 00039 return sn_coap_builder_stub.expectedHeader; 00040 } 00041 00042 int16_t sn_coap_builder(uint8_t *dst_packet_data_ptr, sn_coap_hdr_s *src_coap_msg_ptr) 00043 { 00044 return sn_coap_builder_stub.expectedInt16; 00045 } 00046 00047 uint16_t sn_coap_builder_calc_needed_packet_data_size(sn_coap_hdr_s *src_coap_msg_ptr) 00048 { 00049 return sn_coap_builder_stub.expectedUint16; 00050 } 00051 00052 int16_t sn_coap_builder_options_build_add_zero_length_option(uint8_t **dst_packet_data_pptr, uint8_t option_length, uint8_t option_exist, sn_coap_option_numbers_e option_number) 00053 { 00054 return sn_coap_builder_stub.expectedInt16; 00055 } 00056
Generated on Fri Jul 22 2022 04:54:00 by
 1.7.2
 1.7.2 
    