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.
common_stub.h
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef COMMON_STUB_H 00017 #define COMMON_STUB_H 00018 00019 #include <sys/types.h> 00020 #include <netdb.h> 00021 #include "sockets/UDPSocket.h" 00022 #include "nsdlaccesshelper.h" 00023 #include "ip6string.h" 00024 #include "Ticker.h" 00025 00026 //some internal test related stuff 00027 namespace common_stub 00028 { 00029 extern socket_error_t error; 00030 extern socket_event_t* event; 00031 extern socket_addr* addr; 00032 extern bool visited; 00033 extern bool bool_value; 00034 extern void* void_value; 00035 extern int int_value; 00036 extern int int2_value; 00037 extern uint16_t uint_value; 00038 extern addrinfo* addrinfo; 00039 extern sn_coap_hdr_s *coap_header; 00040 extern sn_nsdl_dynamic_resource_parameters_s *resource; 00041 extern pthread_t thread; 00042 extern const char *char_value; 00043 void clear(); 00044 } 00045 00046 #endif // COMMON_STUB_H
Generated on Tue Jul 12 2022 21:20:26 by
 1.7.2
 1.7.2