[config-header] simplify config header file includes (#2255)

This commit simplifies the config header files includes in
OpenThread core and non-public source files. With this change the
"openthread-core-config.h" becomes the main config header file. This
header file includes all other config ones:
1) The `configure` generated `<openthread/config.h>;
2) The project specific one by `OPENTHREAD_PROJECT_CORE_CONFIG_FILE`;
3) The "openthread-core-default-config.h" defining default settings.

With the change in this commit, all header files include "openthread-
core-config.h" as the first `#include`, and in `.cpp` files, the first
`#include` continues to be the unit's corresponding header file. The
new model ensures that the configuration settings are visible and
consistent in all the source files. This commit also updates the
style guide document accordingly.
This commit is contained in:
Abtin Keshavarzian
2017-10-17 09:46:34 -07:00
committed by Jonathan Hui
parent 23f465c681
commit 2ea56446a4
226 changed files with 270 additions and 252 deletions
+4 -3
View File
@@ -43,13 +43,14 @@
- Preprocessor `#include` directives shall use brace (“<”) and (“>”) style for all public headers, including C and C++ standard library, or other first- and third-party public library headers.
- Preprocessor `#include` directives should use double quote (‘“‘) and (‘“‘) style for all private or relative headers.
- Preprocessor `#include` directives should be grouped, ordered, or sorted as follows:
- The `<openthread/config.h>` public header
- This compilation unit's corresponding header, if any
- If the unit is a core/private header file, `"openthread-core-config.h"` should be the first header file included.
- If the unit is a core/private `.c` or `.cpp` file:
- If the unit has a corresponding header file, the unit's corresponding header file should be included before any other header file.
- If the unit has no corresponding header file, then it should directly include `"openthread-core-config.h"` before any other header file.
- C++ Standard Library headers
- C Standard Library headers
- Third-party library headers
- First-party library headers
- The `"openthread-core-config.h"` private header
- Private or local headers
- Alphanumeric order within each subgroup
- The preprocessor shall not be used to redefine reserved language keywords.
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CLI interpreter.
*/
#include <openthread/config.h>
#include "cli.hpp"
#ifdef OTDLL
+1 -1
View File
@@ -34,7 +34,7 @@
#ifndef CLI_HPP_
#define CLI_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <stdarg.h>
+1 -3
View File
@@ -31,12 +31,10 @@
* This file implements a simple CLI for the CoAP service.
*/
#include <openthread/config.h>
#include "cli_coap.hpp"
#if OPENTHREAD_ENABLE_APPLICATION_COAP
#include "cli_coap.hpp"
#include <ctype.h>
#include "cli/cli.hpp"
+6
View File
@@ -34,6 +34,10 @@
#ifndef CLI_COAP_HPP_
#define CLI_COAP_HPP_
#include "openthread-core-config.h"
#if OPENTHREAD_ENABLE_APPLICATION_COAP
#include <openthread/types.h>
#include "coap/coap_header.hpp"
@@ -96,4 +100,6 @@ private:
} // namespace Cli
} // namespace ot
#endif // OPENTHREAD_ENABLE_APPLICATION_COAP
#endif // CLI_COAP_HPP_
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CLI server on the CONSOLE service.
*/
#include <openthread/config.h>
#include "cli_console.hpp"
#include <stdarg.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_CONSOLE_HPP_
#define CLI_CONSOLE_HPP_
#include "openthread-core-config.h"
#include <openthread/cli.h>
#include "cli/cli.hpp"
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CLI interpreter.
*/
#include <openthread/config.h>
#include "cli_dataset.hpp"
#include <stdio.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_DATASET_HPP_
#define CLI_DATASET_HPP_
#include "openthread-core-config.h"
#include <stdarg.h>
#include "cli/cli_server.hpp"
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the CLI interpreter Instance related functions.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <assert.h>
#include <stdio.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_SERVER_HPP_
#define CLI_SERVER_HPP_
#include "openthread-core-config.h"
#include <openthread/types.h>
namespace ot {
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CLI server on the UART service.
*/
#include <openthread/config.h>
#include "cli_uart.hpp"
#include <stdarg.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_UART_HPP_
#define CLI_UART_HPP_
#include "openthread-core-config.h"
#include <openthread/types.h>
#include "cli/cli.hpp"
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CLI server on a UDP socket.
*/
#include <openthread/config.h>
#include "cli_udp.hpp"
#include <stdarg.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_UDP_HPP_
#define CLI_UDP_HPP_
#include "openthread-core-config.h"
#include <openthread/types.h>
#include "cli/cli.hpp"
-1
View File
@@ -33,7 +33,6 @@
#include "cli_udp_example.hpp"
#include <openthread/config.h>
#include <openthread/message.h>
#include <openthread/udp.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef CLI_UDP_EXAMPLE_HPP_
#define CLI_UDP_EXAMPLE_HPP_
#include "openthread-core-config.h"
#include <openthread/udp.h>
#include <openthread/types.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Border Router API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#if OPENTHREAD_ENABLE_BORDER_ROUTER
+1
View File
@@ -31,6 +31,7 @@
* This file implements the OpenThread child supervision API.
*/
#include "openthread-core-config.h"
#include "openthread/child_supervision.h"
#include "openthread-instance.h"
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread CoAP API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/coap.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Commissioner API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/commissioner.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Crypto API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/crypto.h>
#include "common/code_utils.hpp"
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Operational Dataset API (for both FTD and MTD).
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/dataset.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Operational Dataset API (FTD only).
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#if OPENTHREAD_FTD
+2 -2
View File
@@ -31,9 +31,9 @@
* This file implements the OpenThread DHCPv6 API.
*/
#include <openthread/config.h>
#include <openthread/dhcp6_client.h>
#include "openthread-core-config.h"
#include <openthread/dhcp6_client.h>
#include <openthread/dhcp6_server.h>
#include "openthread-instance.h"
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread UDP API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/dns.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread ICMPv6 API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/icmp6.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#define WPP_NAME "instance_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/instance.h>
#include <openthread/platform/misc.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#define WPP_NAME "ip6_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/ip6.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Jam Detection API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/jam_detection.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Joiner API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/joiner.h>
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Link API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/link.h>
+2 -1
View File
@@ -34,9 +34,10 @@
#ifndef LINK_RAW_HPP_
#define LINK_RAW_HPP_
#include "openthread-core-config.h"
#include <openthread/link_raw.h>
#include "openthread-core-config.h"
#include "common/timer.hpp"
#if OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT || OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT || OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
+1 -1
View File
@@ -31,7 +31,7 @@
* This file implements the OpenThread Link Raw API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/platform/random.h>
+2 -1
View File
@@ -30,7 +30,8 @@
* @file
* This file implements the OpenThread Message API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/message.h>
+2 -1
View File
@@ -30,7 +30,8 @@
* @file
* This file implements the OpenThread Network Data API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/netdata.h>
+2 -1
View File
@@ -33,7 +33,8 @@
#define WPP_NAME "tasklet_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/tasklet.h>
#include "openthread-instance.h"
+1 -1
View File
@@ -33,7 +33,7 @@
#define WPP_NAME "thread_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/thread.h>
#include <openthread/platform/settings.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#define WPP_NAME "thread_ftd_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#if OPENTHREAD_FTD
+2 -1
View File
@@ -31,7 +31,8 @@
* This file implements the OpenThread TMF proxy API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/tmf_proxy.h>
#include "openthread-instance.h"
+2 -1
View File
@@ -31,7 +31,8 @@
* This file implements the OpenThread UDP API.
*/
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/udp.h>
#include "openthread-instance.h"
-2
View File
@@ -28,8 +28,6 @@
#define WPP_NAME "coap.tmh"
#include <openthread/config.h>
#include "coap.hpp"
#include <openthread/platform/random.h>
+2
View File
@@ -29,6 +29,8 @@
#ifndef COAP_HPP_
#define COAP_HPP_
#include "openthread-core-config.h"
#include <openthread/coap.h>
#include "coap/coap_header.hpp"
-2
View File
@@ -31,8 +31,6 @@
* This file implements the CoAP header generation and parsing.
*/
#include <openthread/config.h>
#include "coap_header.hpp"
#include <openthread/platform/random.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef COAP_HEADER_HPP_
#define COAP_HEADER_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_string.h"
#include <openthread/coap.h>
-2
View File
@@ -28,8 +28,6 @@
#define WPP_NAME "coap_secure.tmh"
#include <openthread/config.h>
#include "coap_secure.hpp"
#include "common/logging.hpp"
+2
View File
@@ -29,6 +29,8 @@
#ifndef COAP_SECURE_HPP_
#define COAP_SECURE_HPP_
#include "openthread-core-config.h"
#include "coap/coap.hpp"
#include "meshcop/dtls.hpp"
+2
View File
@@ -34,6 +34,8 @@
#ifndef CODE_UTILS_HPP_
#define CODE_UTILS_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdbool.h"
// Calculates the aligned variable size.
+2 -1
View File
@@ -34,7 +34,8 @@
#ifndef CONTEXT_HPP_
#define CONTEXT_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/platform/toolchain.h>
#include "openthread-core-config.h"
-2
View File
@@ -31,8 +31,6 @@
* This file implements CRC16 computations.
*/
#include <openthread/config.h>
#include "crc16.hpp"
namespace ot {
+2
View File
@@ -34,6 +34,8 @@
#ifndef CRC16_HPP_
#define CRC16_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
namespace ot {
+2 -2
View File
@@ -34,12 +34,12 @@
#ifndef DEBUG_HPP_
#define DEBUG_HPP_
#include "openthread-core-config.h"
#include <ctype.h>
#include <stdio.h>
#include "utils/wrap_string.h"
#include "openthread-core-config.h"
#if defined(OPENTHREAD_TARGET_DARWIN) || defined(OPENTHREAD_TARGET_LINUX)
#include <assert.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef ENCODING_HPP_
#define ENCODING_HPP_
#include "openthread-core-config.h"
#include <limits.h>
#include "utils/wrap_stdint.h"
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "locator.tmh"
#include <openthread/config.h>
#include "locator.hpp"
#include "openthread-instance.h"
+1 -2
View File
@@ -34,11 +34,10 @@
#ifndef LOCATOR_HPP_
#define LOCATOR_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/types.h>
#include "openthread-core-config.h"
#include "openthread-single-instance.h"
namespace ot {
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "logging.tmh"
#include <openthread/config.h>
#include "logging.hpp"
#include <openthread/openthread.h>
+1 -3
View File
@@ -34,7 +34,7 @@
#ifndef LOGGING_HPP_
#define LOGGING_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <ctype.h>
#include <stdio.h>
@@ -44,8 +44,6 @@
#include <openthread/types.h>
#include <openthread/platform/logging.h>
#include "openthread-core-config.h"
#ifdef WINDOWS_LOGGING
#ifdef _KERNEL_MODE
#include <wdm.h>
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "message.tmh"
#include <openthread/config.h>
#include "message.hpp"
#include "openthread-instance.h"
+1 -2
View File
@@ -34,7 +34,7 @@
#ifndef MESSAGE_HPP_
#define MESSAGE_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
#include "utils/wrap_string.h"
@@ -42,7 +42,6 @@
#include <openthread/message.h>
#include <openthread/platform/messagepool.h>
#include "openthread-core-config.h"
#include "common/code_utils.hpp"
#include "common/locator.hpp"
#include "mac/mac_frame.hpp"
+2
View File
@@ -34,6 +34,8 @@
#ifndef NEW_HPP_
#define NEW_HPP_
#include "openthread-core-config.h"
#include <stddef.h>
#include <openthread/platform/toolchain.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef SETTINGS_HPP_
#define SETTINGS_HPP_
#include "openthread-core-config.h"
#include "thread/mle.hpp"
namespace ot {
-2
View File
@@ -31,8 +31,6 @@
* This file implements the tasklet scheduler.
*/
#include <openthread/config.h>
#include "tasklet.hpp"
#include <openthread/openthread.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef TASKLET_HPP_
#define TASKLET_HPP_
#include "openthread-core-config.h"
#include <stdio.h>
#include <openthread/tasklet.h>
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "timer.tmh"
#include <openthread/config.h>
#include "timer.hpp"
#include "openthread-instance.h"
+2
View File
@@ -34,6 +34,8 @@
#ifndef TIMER_HPP_
#define TIMER_HPP_
#include "openthread-core-config.h"
#include <stddef.h>
#include "utils/wrap_stdint.h"
-2
View File
@@ -31,8 +31,6 @@
* This file implements common methods for manipulating MLE TLVs.
*/
#include <openthread/config.h>
#include "tlvs.hpp"
#include "common/code_utils.hpp"
+2
View File
@@ -34,6 +34,8 @@
#ifndef TLVS_HPP_
#define TLVS_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_string.h"
#include <openthread/types.h>
-2
View File
@@ -31,8 +31,6 @@
* This file implements the trickle timer logic.
*/
#include <openthread/config.h>
#include "trickle_timer.hpp"
#include <openthread/platform/random.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef TRICKLE_TIMER_HPP_
#define TRICKLE_TIMER_HPP_
#include "openthread-core-config.h"
#include "common/context.hpp"
#include "common/timer.hpp"
-2
View File
@@ -31,8 +31,6 @@
* This file implements AES-CCM.
*/
#include <openthread/config.h>
#include "aes_ccm.hpp"
#include "common/code_utils.hpp"
+2
View File
@@ -34,6 +34,8 @@
#ifndef AES_CCM_HPP_
#define AES_CCM_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
#include <openthread/types.h>
-2
View File
@@ -31,8 +31,6 @@
* This file implements AES-ECB.
*/
#include <openthread/config.h>
#include "aes_ecb.hpp"
namespace ot {
+2
View File
@@ -34,6 +34,8 @@
#ifndef AES_ECB_HPP_
#define AES_ECB_HPP_
#include "openthread-core-config.h"
#include <mbedtls/aes.h>
namespace ot {
+1 -2
View File
@@ -35,11 +35,10 @@
#ifndef OT_HEAP_HPP_
#define OT_HEAP_HPP_
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <stddef.h>
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
namespace ot {
-2
View File
@@ -31,8 +31,6 @@
* This file implements HMAC SHA-256.
*/
#include <openthread/config.h>
#include "hmac_sha256.hpp"
namespace ot {
+2
View File
@@ -34,6 +34,8 @@
#ifndef HMAC_SHA256_HPP_
#define HMAC_SHA256_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
#include <mbedtls/md.h>
-2
View File
@@ -31,8 +31,6 @@
* This file implements the use of mbedTLS.
*/
#include <openthread/config.h>
#include "mbedtls.hpp"
#include <mbedtls/platform.h>
+2
View File
@@ -34,6 +34,8 @@
#ifndef OT_MBEDTLS_HPP_
#define OT_MBEDTLS_HPP_
#include "openthread-core-config.h"
#if !OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
namespace ot {
-2
View File
@@ -31,8 +31,6 @@
* This file implements PBKDF2 using AES-CMAC-PRF-128
*/
#include <openthread/config.h>
#include "pbkdf2_cmac.h"
#include "common/debug.hpp"
+2
View File
@@ -35,6 +35,8 @@
#ifndef PBKDF2_CMAC_H_
#define PBKDF2_CMAC_H_
#include "openthread-core-config.h"
#include "utils/wrap_stdbool.h"
#include "utils/wrap_stdint.h"
-2
View File
@@ -31,8 +31,6 @@
* This file implements SHA-256.
*/
#include <openthread/config.h>
#include "sha256.hpp"
namespace ot {
+2
View File
@@ -34,6 +34,8 @@
#ifndef SHA256_HPP_
#define SHA256_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
#include <mbedtls/sha256.h>
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "mac.tmh"
#include <openthread/config.h>
#include "mac.hpp"
#include "utils/wrap_string.h"
+2 -1
View File
@@ -34,9 +34,10 @@
#ifndef MAC_HPP_
#define MAC_HPP_
#include "openthread-core-config.h"
#include <openthread/platform/radio.h>
#include "openthread-core-config.h"
#include "common/context.hpp"
#include "common/locator.hpp"
#include "common/tasklet.hpp"
-2
View File
@@ -31,8 +31,6 @@
* This file implements Filter IEEE 802.15.4 frame filtering based on MAC address.
*/
#include <openthread/config.h>
#include "mac_filter.hpp"
#include "openthread/types.h"
+2
View File
@@ -34,6 +34,8 @@
#ifndef MAC_FILTER_HPP_
#define MAC_FILTER_HPP_
#include "openthread-core-config.h"
#include "utils/wrap_stdint.h"
#include <openthread/types.h>
-2
View File
@@ -31,8 +31,6 @@
* This file implements IEEE 802.15.4 header generation and processing.
*/
#include <openthread/config.h>
#include "mac_frame.hpp"
#include <stdio.h>
+2 -1
View File
@@ -34,6 +34,8 @@
#ifndef MAC_FRAME_HPP_
#define MAC_FRAME_HPP_
#include "openthread-core-config.h"
#include <limits.h>
#include "utils/wrap_stdint.h"
#include "utils/wrap_string.h"
@@ -41,7 +43,6 @@
#include <openthread/types.h>
#include <openthread/platform/radio.h>
#include "openthread-core-config.h"
#include "common/encoding.hpp"
namespace ot {
@@ -33,8 +33,6 @@
#define WPP_NAME "announce_begin_client.tmh"
#include <openthread/config.h>
#include "announce_begin_client.hpp"
#include <openthread/platform/random.h>
@@ -35,6 +35,7 @@
#define ANNOUNCE_BEGIN_CLIENT_HPP_
#include "openthread-core-config.h"
#include "common/locator.hpp"
#include "coap/coap.hpp"
#include "net/ip6_address.hpp"
-2
View File
@@ -33,8 +33,6 @@
#define WPP_NAME "commissioner.tmh"
#include <openthread/config.h>
#include "commissioner.hpp"
#include <stdio.h>
+2 -1
View File
@@ -34,9 +34,10 @@
#ifndef COMMISSIONER_HPP_
#define COMMISSIONER_HPP_
#include "openthread-core-config.h"
#include <openthread/commissioner.h>
#include "openthread-core-config.h"
#include "coap/coap.hpp"
#include "coap/coap_secure.hpp"
#include "common/locator.hpp"
-2
View File
@@ -32,8 +32,6 @@
*
*/
#include <openthread/config.h>
#include "dataset.hpp"
#include <stdio.h>
+2
View File
@@ -35,6 +35,8 @@
#ifndef MESHCOP_DATASET_HPP_
#define MESHCOP_DATASET_HPP_
#include "openthread-core-config.h"
#include "common/locator.hpp"
#include "common/message.hpp"
#include "meshcop/meshcop_tlvs.hpp"
-2
View File
@@ -34,8 +34,6 @@
#define WPP_NAME "dataset_local.tmh"
#include <openthread/config.h>
#include "dataset_local.hpp"
#include <stdio.h>
+2
View File
@@ -35,6 +35,8 @@
#ifndef MESHCOP_DATASET_LOCAL_HPP_
#define MESHCOP_DATASET_LOCAL_HPP_
#include "openthread-core-config.h"
#include "common/locator.hpp"
#include "meshcop/dataset.hpp"
#include "meshcop/meshcop_tlvs.hpp"
-2
View File
@@ -34,8 +34,6 @@
#define WPP_NAME "dataset_manager.tmh"
#include <openthread/config.h>
#include "dataset_manager.hpp"
#include <stdio.h>
+2
View File
@@ -35,6 +35,8 @@
#ifndef MESHCOP_DATASET_MANAGER_HPP_
#define MESHCOP_DATASET_MANAGER_HPP_
#include "openthread-core-config.h"
#include <openthread/types.h>
#include "coap/coap.hpp"
+3 -4
View File
@@ -31,12 +31,11 @@
* This file implements MeshCoP Datasets manager to process commands.
*
*/
#if OPENTHREAD_FTD
#define WPP_NAME "dataset_manager_ftd.tmh"
#include <openthread/config.h>
#include "dataset_manager_ftd.hpp"
#if OPENTHREAD_FTD
#include <stdio.h>
+7
View File
@@ -35,9 +35,14 @@
#ifndef MESHCOP_DATASET_MANAGER_FTD_HPP_
#define MESHCOP_DATASET_MANAGER_FTD_HPP_
#include "openthread-core-config.h"
#if OPENTHREAD_FTD
#include <openthread/types.h>
#include "coap/coap.hpp"
#include "meshcop/dataset_manager.hpp"
namespace ot {
@@ -88,4 +93,6 @@ private:
} // namespace MeshCoP
} // namespace ot
#endif // OPENTHREAD_FTD
#endif // MESHCOP_DATASET_MANAGER_HPP_

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