Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sn_coap_builder_stub.c Source File

sn_coap_builder_stub.c

00001 /*
00002  * Copyright (c) 2011-2017 ARM Limited. All Rights Reserved.
00003  */
00004 
00005 /**
00006  * \file sn_coap_builder.c
00007  *
00008  * \brief CoAP Message builder
00009  *
00010  * Functionality: Builds CoAP message
00011  *
00012  */
00013 
00014 /* * * * * * * * * * * * * * */
00015 /* * * * INCLUDE FILES * * * */
00016 /* * * * * * * * * * * * * * */
00017 
00018 #include "ns_types.h"
00019 #include "sn_coap_header.h"
00020 #include "sn_coap_builder_stub.h"
00021 
00022 sn_coap_builder_stub_def sn_coap_builder_stub;
00023 
00024 sn_coap_hdr_s *sn_coap_build_response(struct coap_s *handle, sn_coap_hdr_s *coap_packet_ptr, uint8_t msg_code)
00025 {
00026     return sn_coap_builder_stub.expectedHeader;
00027 }
00028 
00029 int16_t sn_coap_builder(uint8_t *dst_packet_data_ptr, sn_coap_hdr_s *src_coap_msg_ptr)
00030 {
00031     return sn_coap_builder_stub.expectedInt16;
00032 }
00033 
00034 uint16_t sn_coap_builder_calc_needed_packet_data_size(sn_coap_hdr_s *src_coap_msg_ptr)
00035 {
00036     return sn_coap_builder_stub.expectedUint16;
00037 }
00038 
00039 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)
00040 {
00041     return sn_coap_builder_stub.expectedInt16;
00042 }
00043