Move openthread-types.h to openthread/types.h.

This commit is contained in:
Jonathan Hui
2017-03-02 10:24:55 -08:00
parent da35770140
commit 075bff327c
125 changed files with 169 additions and 127 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\include\openthread.h" />
<ClInclude Include="..\..\include\openthread-types.h" />
<ClInclude Include="..\..\include\openthread\types.h" />
<ClInclude Include="..\..\include\openthread-windows-config.h" />
<ClInclude Include="..\..\include\openthread\link_raw.h" />
<ClInclude Include="..\..\src\core\coap\coap_base.hpp" />
@@ -530,7 +530,7 @@
<ClInclude Include="..\..\include\openthread.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\include\openthread-types.h">
<ClInclude Include="..\..\include\openthread\types.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\include\openthread-windows-config.h">
@@ -35,7 +35,7 @@
#ifndef __OTLWFIOCTL_H__
#define __OTLWFIOCTL_H__
#include <openthread-types.h>
#include <openthread/types.h>
__inline LONG ThreadErrorToNtstatus(ThreadError error) { return (LONG)-((int)error); }
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include "openthread/types.h"
#include <platform/misc.h>
#include "platform-cc2538.h"
+2 -1
View File
@@ -36,7 +36,8 @@
#define PLATFORM_CC2538_H_
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include "cc2538-reg.h"
-1
View File
@@ -32,7 +32,6 @@
*
*/
#include <openthread-types.h>
#include <openthread.h>
#include <openthread-config.h>
+1 -1
View File
@@ -32,7 +32,7 @@
*
*/
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <platform/radio.h>
+2 -1
View File
@@ -34,7 +34,8 @@
#include <stddef.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <platform/uart.h>
#include "platform-cc2538.h"
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <openthread-types.h>
#include <openthread/types.h>
#include <driverlib/aon_rtc.h>
#include <platform/alarm.h>
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include <openthread/types.h>
#include <platform/misc.h>
#include <driverlib/sys_ctrl.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#define PLATFORM_H_
#include <stdint.h>
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include <openthread/types.h>
#include "platform-cc2650.h"
otInstance *sInstance;
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include <openthread/types.h>
#include <assert.h>
#include <common/code_utils.hpp>
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include <openthread/types.h>
#include <common/code_utils.hpp>
#include <driverlib/prcm.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#include <driverlib/ioc.h>
#include <driverlib/sys_ctrl.h>
#include <openthread-types.h>
#include <openthread/types.h>
#include <common/code_utils.hpp>
#include <platform/uart.h>
+2 -1
View File
@@ -27,7 +27,8 @@
*/
#include <openthread-types.h>
#include "openthread/types.h"
#include "hw_qspi.h"
#include "qspi_automode.h"
#include "platform/alarm.h"
+3 -2
View File
@@ -26,8 +26,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <platform/misc.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include "platform/misc.h"
#include "sdk_defs.h"
void otPlatReset(otInstance *aInstance)
@@ -29,7 +29,7 @@
#ifndef PLATFORM_DA15000_H_
#define PLATFORM_DA15000_H_
#include <openthread-types.h>
#include "openthread/types.h"
/**
* This function initializes the radio service used by OpenThread.
-1
View File
@@ -36,7 +36,6 @@
#include <openthread.h>
#include "platform/alarm.h"
#include <openthread-types.h>
#include "platform-da15000.h"
#include "sdk_defs.h"
#include "hw_cpm.h"
+1 -1
View File
@@ -47,7 +47,7 @@
#include "hal/nrf_rtc.h"
#include <openthread-config.h>
#include <openthread-types.h>
#include <openthread/types.h>
#define RTC_FREQUENCY 32768ULL
+1 -1
View File
@@ -30,7 +30,7 @@
#include <string.h>
#include <assert.h>
#include <openthread-types.h>
#include <openthread/types.h>
#include <common/code_utils.hpp>
#include <platform/alarm.h>
#include <utils/flash.h>
+1 -1
View File
@@ -43,7 +43,7 @@
#include <openthread-core-config.h>
#include <openthread-config.h>
#include <openthread-types.h>
#include <openthread/types.h>
#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0)
#include <segger_rtt/SEGGER_RTT.h>
+1 -1
View File
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <openthread-types.h>
#include <openthread/types.h>
#include <platform/misc.h>
#include "device/nrf.h"
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include <openthread/types.h>
#include "platform-config.h"
+1 -1
View File
@@ -49,7 +49,7 @@
#include <openthread-core-config.h>
#include <openthread-config.h>
#include <openthread-types.h>
#include <openthread/types.h>
#define SHORT_ADDRESS_SIZE 2
#define EXTENDED_ADDRESS_SIZE 8
+1 -1
View File
@@ -35,8 +35,8 @@
#include <stddef.h>
#include <stdint.h>
#include <openthread/types.h>
#include <platform/uart.h>
#include <openthread-types.h>
#include <common/code_utils.hpp>
#include "drivers/nrf_drv_clock.h"
+2 -1
View File
@@ -28,7 +28,8 @@
#include "platform-posix.h"
#include <openthread-types.h>
#include "openthread/types.h"
#include <platform/misc.h>
void otPlatReset(otInstance *aInstance)
+1 -1
View File
@@ -36,7 +36,7 @@
#include "platform-posix.h"
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <platform/random.h>
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+2 -1
View File
@@ -37,9 +37,10 @@
#include <string.h>
#include <assert.h>
#include <openthread-types.h>
#include <openthread-core-config.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <platform/settings.h>
-1
View File
@@ -54,7 +54,6 @@ include_HEADERS = \
openthread.h \
openthread-diag.h \
openthread-icmp6.h \
openthread-types.h \
$(NULL)
install-headers: install-includeHEADERS
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_DIAG_H_
#define OPENTHREAD_DIAG_H_
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_ICMP6_H_
#define OPENTHREAD_ICMP6_H_
#include <openthread-types.h>
#include <openthread/types.h>
#include <openthread/message.h>
#ifdef __cplusplus
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_H_
#define OPENTHREAD_H_
#include <openthread-types.h>
#include "openthread/types.h"
#include "openthread/crypto.h"
#include "openthread/dataset.h"
+1
View File
@@ -46,6 +46,7 @@ openthread_headers = \
netdata.h \
tasklet.h \
thread.h \
types.h \
udp.h \
$(NULL)
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -43,7 +43,7 @@
#include <stdint.h>
#include "openthread-types.h"
#include "openthread/types.h"
#include "openthread/message.h"
#ifdef __cplusplus
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_COMMISSIONER_H_
#define OPENTHREAD_COMMISSIONER_H_
#include "openthread-types.h"
#include "openthread/types.h"
#include <platform/toolchain.h>
#ifdef __cplusplus
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_DATASET_H_
#define OPENTHREAD_DATASET_H_
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_DHCP6_CLIENT_H_
#define OPENTHREAD_DHCP6_CLIENT_H_
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+2
View File
@@ -35,6 +35,8 @@
#ifndef OPENTHREAD_DHCP6_SERVER_H_
#define OPENTHREAD_DHCP6_SERVER_H_
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
#endif
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_INSTANCE_H_
#define OPENTHREAD_INSTANCE_H_
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -41,7 +41,7 @@
#include <openthread-config.h>
#endif
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_JOINER_H_
#define OPENTHREAD_JOINER_H_
#include "openthread-types.h"
#include "openthread/types.h"
#include <platform/toolchain.h>
#ifdef __cplusplus
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_LINK_H_
#define OPENTHREAD_LINK_H_
#include "openthread-types.h"
#include "openthread/types.h"
#include "platform/radio.h"
#ifdef __cplusplus
+1 -2
View File
@@ -35,8 +35,7 @@
#ifndef LINK_RAW_H_
#define LINK_RAW_H_
#include <openthread-types.h>
//#include "openthread/types.h"
#include "openthread/types.h"
#include "platform/radio.h"
#ifdef __cplusplus
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_MESSAGE_H_
#define OPENTHREAD_MESSAGE_H_
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef NCP_H_
#define NCP_H_
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_NETDATA_H_
#define OPENTHREAD_NETDATA_H_
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_TASKLET_H_
#define OPENTHREAD_TASKLET_H_
#include "openthread-types.h"
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_THREAD_H_
#define OPENTHREAD_THREAD_H_
#include "openthread-types.h"
#include "openthread/types.h"
#include "openthread/link.h"
#include "openthread/message.h"
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OPENTHREAD_UDP_H_
#define OPENTHREAD_UDP_H_
#include "openthread-types.h"
#include "openthread/types.h"
#include "openthread/message.h"
#ifdef __cplusplus
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -41,7 +41,7 @@
#include <platform/radio.h>
#include <openthread-types.h>
#include <openthread/types.h>
#ifdef __cplusplus
extern "C" {
+2 -1
View File
@@ -36,7 +36,8 @@
#define MESSAGEPOOL_H_
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
/**
* @defgroup messagepool MessagePool
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef PLATFORM_H_
#define PLATFORM_H_
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -38,7 +38,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef OT_PLATFORM_SETTINGS_H
#define OT_PLATFORM_SETTINGS_H 1
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#ifdef __cplusplus
extern "C" {
-1
View File
@@ -34,7 +34,6 @@
#ifndef CLI_CONSOLE_HPP_
#define CLI_CONSOLE_HPP_
#include <openthread-types.h>
#include "openthread/cli.h"
#include <cli/cli_server.hpp>
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef CLI_SERVER_HPP_
#define CLI_SERVER_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
namespace Thread {
namespace Cli {
+2 -1
View File
@@ -34,7 +34,8 @@
#ifndef CLI_UART_HPP_
#define CLI_UART_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <cli/cli_server.hpp>
#include <common/tasklet.hpp>
+2 -1
View File
@@ -34,7 +34,8 @@
#ifndef CLI_UDP_HPP_
#define CLI_UDP_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <cli/cli_server.hpp>
namespace Thread {
+2 -1
View File
@@ -29,7 +29,8 @@
#ifndef COAP_BASE_HPP_
#define COAP_BASE_HPP_
#include <openthread-types.h>
#include "openthread/coap.h"
#include <coap/coap_header.hpp>
#include <common/message.hpp>
#include <net/netif.hpp>
-1
View File
@@ -29,7 +29,6 @@
#ifndef COAP_CLIENT_HPP_
#define COAP_CLIENT_HPP_
#include <openthread-types.h>
#include "openthread/coap.h"
#include <coap/coap_base.hpp>
-1
View File
@@ -36,7 +36,6 @@
#include <string.h>
#include <openthread-types.h>
#include "openthread/coap.h"
#include <common/encoding.hpp>
-1
View File
@@ -46,7 +46,6 @@
#include "openthread/message.h"
#include <openthread-core-config.h>
#include <openthread-types.h>
#include <common/code_utils.hpp>
#include <mac/mac_frame.hpp>
#include <platform/messagepool.h>
+2 -1
View File
@@ -37,7 +37,8 @@
#include <stddef.h>
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/tasklet.hpp>
#include <platform/alarm.h>
+2 -1
View File
@@ -36,7 +36,8 @@
#include <string.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/encoding.hpp>
#include <common/message.hpp>
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <crypto/aes_ecb.hpp>
namespace Thread {
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <mac/mac_frame.hpp>
namespace Thread {
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <mac/mac_frame.hpp>
namespace Thread {
+2 -1
View File
@@ -40,8 +40,9 @@
#include <stdint.h>
#include <string.h>
#include "openthread/types.h"
#include <common/encoding.hpp>
#include <openthread-types.h>
#include <platform/radio.h>
namespace Thread {
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <mac/mac_frame.hpp>
namespace Thread {
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <mac/mac_frame.hpp>
namespace Thread {
+1 -1
View File
@@ -35,7 +35,7 @@
#define ANNOUNCE_BEGIN_CLIENT_HPP_
#include <openthread-core-config.h>
#include <openthread-types.h>
#include "openthread/commissioner.h"
#include <coap/coap_client.hpp>
-1
View File
@@ -36,7 +36,6 @@
#include <stdio.h>
#include <openthread-types.h>
#include <common/code_utils.hpp>
#include <common/debug.hpp>
#include <coap/coap_header.hpp>
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef MESHCOP_DATASET_MANAGER_HPP_
#define MESHCOP_DATASET_MANAGER_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <coap/coap_server.hpp>
#include <common/timer.hpp>
-1
View File
@@ -36,7 +36,6 @@
#include <stdio.h>
#include <openthread-types.h>
#include <common/code_utils.hpp>
#include <common/debug.hpp>
#include <coap/coap_header.hpp>
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef MESHCOP_DATASET_MANAGER_FTD_HPP_
#define MESHCOP_DATASET_MANAGER_FTD_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <coap/coap_server.hpp>
+1 -1
View File
@@ -35,7 +35,7 @@
#ifndef MESHCOP_DATASET_MANAGER_MTD_HPP_
#define MESHCOP_DATASET_MANAGER_MTD_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
namespace Thread {
+2 -1
View File
@@ -34,7 +34,8 @@
#ifndef DTLS_HPP_
#define DTLS_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/message.hpp>
#include <common/timer.hpp>
#include <crypto/sha256.hpp>
+1 -1
View File
@@ -35,7 +35,7 @@
#define ENERGY_SCAN_CLIENT_HPP_
#include <openthread-core-config.h>
#include <openthread-types.h>
#include "openthread/commissioner.h"
#include <coap/coap_client.hpp>
-1
View File
@@ -34,7 +34,6 @@
#ifndef JOINER_HPP_
#define JOINER_HPP_
#include <openthread-types.h>
#include "openthread/joiner.h"
#include <coap/coap_header.hpp>
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef JOINER_ROUTER_HPP_
#define JOINER_ROUTER_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <coap/coap_header.hpp>
#include <coap/coap_client.hpp>
+1 -1
View File
@@ -35,7 +35,7 @@
#define PANID_QUERY_CLIENT_HPP_
#include <openthread-core-config.h>
#include <openthread-types.h>
#include "openthread/commissioner.h"
#include <coap/coap_client.hpp>
+2 -1
View File
@@ -33,7 +33,8 @@
#include <string.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <meshcop/timestamp.hpp>
namespace Thread {
+2 -1
View File
@@ -37,7 +37,8 @@
#include <string.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/encoding.hpp>
#include <common/message.hpp>
#include <common/tlvs.hpp>
+2 -1
View File
@@ -33,7 +33,8 @@
#define WPP_NAME "dhcp6_client.tmh"
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <common/encoding.hpp>
#include <common/logging.hpp>
+2 -1
View File
@@ -33,7 +33,8 @@
#define WPP_NAME "dhcp6_server.tmh"
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/code_utils.hpp>
#include <common/encoding.hpp>
#include <common/logging.hpp>
+2 -1
View File
@@ -34,7 +34,8 @@
#ifndef DHCP6_SERVER_HPP_
#define DHCP6_SERVER_HPP_
#include <openthread-types.h>
#include "openthread/types.h"
#include <mac/mac_frame.hpp>
#include <mac/mac.hpp>
#include <net/dhcp6.hpp>
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef ICMP6_HPP_
#define ICMP6_HPP_
#include <openthread-types.h>
#include <openthread/types.h>
#include <common/encoding.hpp>
#include <net/ip6_headers.hpp>
+1 -1
View File
@@ -36,7 +36,7 @@
#include <stdint.h>
#include <openthread-types.h>
#include "openthread/types.h"
namespace Thread {
namespace Ip6 {
+2 -1
View File
@@ -36,7 +36,8 @@
#include <stddef.h>
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/encoding.hpp>
#include <common/message.hpp>
#include <net/ip6_address.hpp>
+2 -1
View File
@@ -34,7 +34,8 @@
* This file includes definitions for MPL.
*/
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/message.hpp>
#include <common/timer.hpp>
#include <net/ip6_headers.hpp>
+2 -1
View File
@@ -34,7 +34,8 @@
* This file includes definitions for manipulating IPv6 routing tables.
*/
#include <openthread-types.h>
#include "openthread/types.h"
#include <common/message.hpp>
#include <net/ip6_address.hpp>

Some files were not shown because too many files have changed in this diff Show More