Marco Mayer / Mbed OS Queue
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers coap_service_api_stub.c Source File

coap_service_api_stub.c

00001 /*
00002  * Copyright (c) 2015-2017 ARM Limited. All Rights Reserved.
00003  */
00004 
00005 #include <string.h>
00006 
00007 #include "ns_types.h"
00008 #include "ns_list.h"
00009 #include "ns_trace.h"
00010 #include "nsdynmemLIB.h"
00011 #include "sn_coap_header.h"
00012 #include "coap_service_api.h"
00013 #include "coap_message_handler.h"
00014 #include "eventOS_event.h"
00015 #include "eventOS_scheduler.h"
00016 #include "eventOS_event_timer.h"
00017 #include "common_functions.h"
00018 #include "net_interface.h"
00019 
00020 coap_msg_handler_t *coap_service_handle = NULL;
00021 
00022 int8_t coap_service_initialize(int8_t interface_id, uint16_t listen_port, uint8_t service_options,
00023                                  coap_service_security_start_cb *start_ptr, coap_service_security_done_cb *coap_security_done_cb)
00024 {
00025     return 0;
00026 }
00027 
00028 void coap_service_delete(int8_t service_id)
00029 {
00030 }
00031 
00032 int16_t coap_service_virtual_socket_recv(int8_t service_id, uint8_t source_addr_ptr[static 16], uint16_t port, uint8_t *data_ptr, uint16_t data_len)
00033 {
00034     return 0;
00035 }
00036 
00037 int16_t coap_service_virtual_socket_set_cb(int8_t service_id, coap_service_virtual_socket_send_cb *send_method_ptr)
00038 {
00039     return 0;
00040 }
00041 
00042 int8_t coap_service_register_uri(int8_t service_id, const char *uri, uint8_t allowed_method, coap_service_request_recv_cb *request_recv_cb)
00043 {
00044     return 0;
00045 }
00046 
00047 int8_t coap_service_unregister_uri(int8_t service_id, const char *uri)
00048 {
00049     return 0;
00050 }
00051 
00052 uint16_t coap_service_request_send(int8_t service_id, uint8_t options, const uint8_t destination_addr[static 16], uint16_t destination_port, sn_coap_msg_type_e msg_type, sn_coap_msg_code_e msg_code, const char *uri, sn_coap_content_format_e cont_type, const uint8_t *payload_ptr, uint16_t payload_len, coap_service_response_recv *request_response_cb)
00053 {
00054     return 0;
00055 }
00056 
00057 int8_t coap_service_response_send(int8_t service_id, uint8_t options, sn_coap_hdr_s *request_ptr, sn_coap_msg_code_e message_code, sn_coap_content_format_e content_type, const uint8_t *payload_ptr,uint16_t payload_len)
00058 {
00059     return 0;
00060 }
00061 
00062 uint32_t coap_service_get_internal_timer_ticks(void)
00063 {
00064     return 1;
00065 }
00066 
00067 uint16_t coap_service_id_find_by_socket(int8_t socket_id)
00068 {
00069     return 1;
00070 }