[core] optimize #include directives in core cpp files (#10717)

This commit removes unnecessary `#include` directives in core `cpp`
files that already include `instance.hpp`. The `instance.hpp` header
itself includes all necessary OT core headers and definitions as they
are contained within an `ot::Instance`.
This commit is contained in:
Abtin Keshavarzian
2024-09-18 12:03:54 -07:00
committed by GitHub
parent c6a4657178
commit 9f6921cf04
181 changed files with 19 additions and 1037 deletions
-2
View File
@@ -37,8 +37,6 @@
#include <openthread/border_router.h>
#include "border_router/routing_manager.hpp"
#include "common/debug.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -35,10 +35,6 @@
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
#include <openthread/border_routing.h>
#include <openthread/platform/border_routing.h>
#include "border_router/routing_manager.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -36,11 +36,7 @@
#if OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE && \
(OPENTHREAD_FTD || OPENTHREAD_CONFIG_CHANNEL_MANAGER_CSL_CHANNEL_SELECT_ENABLE)
#include <openthread/channel_manager.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "utils/channel_manager.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/child_supervision.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -35,10 +35,6 @@
#if OPENTHREAD_CONFIG_COAP_API_ENABLE
#include <openthread/coap.h>
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-6
View File
@@ -35,12 +35,6 @@
#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
#include <openthread/coap_secure.h>
#include <openthread/ip6.h>
#include "coap/coap_message.hpp"
#include "coap/coap_secure.hpp"
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_COMMISSIONER_ENABLE
#include <openthread/commissioner.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-6
View File
@@ -33,12 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/crypto.h>
#include <openthread/error.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "crypto/aes_ccm.hpp"
#include "crypto/ecdsa.hpp"
#include "crypto/hmac_sha256.hpp"
-5
View File
@@ -33,12 +33,7 @@
#include "openthread-core-config.h"
#include <openthread/dataset.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset_manager.hpp"
#include "meshcop/meshcop.hpp"
using namespace ot;
-1
View File
@@ -37,7 +37,6 @@
#include <openthread/dataset_ftd.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -35,11 +35,7 @@
#if OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE && OPENTHREAD_FTD
#include <openthread/dataset_updater.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset_updater.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_DIAG_ENABLE
#include <openthread/diag.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-2
View File
@@ -33,8 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/dns_client.h>
#include "instance/instance.hpp"
#include "net/dns_types.hpp"
-2
View File
@@ -34,8 +34,6 @@
#include "openthread-core-config.h"
#include "instance/instance.hpp"
#include "net/dns_types.hpp"
#include "net/dnssd_server.hpp"
using namespace ot;
-4
View File
@@ -35,11 +35,7 @@
#if OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE
#include <openthread/history_tracker.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "utils/history_tracker.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/icmp6.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-2
View File
@@ -36,10 +36,8 @@
#include <openthread/instance.h>
#include <openthread/platform/misc.h>
#include "common/as_core_type.hpp"
#include "common/new.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
#if !defined(OPENTHREAD_BUILD_DATETIME)
#ifdef __ANDROID__
-7
View File
@@ -33,14 +33,7 @@
#include "openthread-core-config.h"
#include <openthread/ip6.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "net/ip4_types.hpp"
#include "net/ip6_headers.hpp"
#include "thread/network_data_leader.hpp"
#include "utils/slaac_address.hpp"
using namespace ot;
-1
View File
@@ -37,7 +37,6 @@
#include <openthread/jam_detection.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -35,10 +35,6 @@
#if OPENTHREAD_CONFIG_JOINER_ENABLE
#include <openthread/joiner.h>
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "instance/instance.hpp"
using namespace ot;
-5
View File
@@ -33,12 +33,7 @@
#include "openthread-core-config.h"
#include <openthread/link.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "mac/mac.hpp"
#include "radio/radio.hpp"
using namespace ot;
-2
View File
@@ -34,9 +34,7 @@
#include "openthread-core-config.h"
#if OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE
#include <openthread/link_metrics.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-8
View File
@@ -35,17 +35,9 @@
#if OPENTHREAD_RADIO || OPENTHREAD_CONFIG_LINK_RAW_ENABLE
#include <string.h>
#include <openthread/diag.h>
#include <openthread/thread.h>
#include <openthread/platform/diag.h>
#include <openthread/platform/time.h>
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "mac/mac_frame.hpp"
using namespace ot;
-4
View File
@@ -33,10 +33,6 @@
#include "openthread-core-config.h"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -4
View File
@@ -33,15 +33,12 @@
#include "openthread-core-config.h"
#include <openthread/mdns.h>
#if OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE && OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE
#include "instance/instance.hpp"
#include "net/mdns.hpp"
using namespace ot;
#if OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE && OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE
otError otMdnsSetEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex)
{
return AsCoreType(aInstance).Get<Dns::Multicast::Core>().SetEnabled(aEnable, aInfraIfIndex);
-4
View File
@@ -35,11 +35,7 @@
#if OPENTHREAD_CONFIG_MESH_DIAG_ENABLE && OPENTHREAD_FTD
#include <openthread/mesh_diag.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "utils/mesh_diag.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/message.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -37,10 +37,7 @@
#include <openthread/multi_radio.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
#include "thread/radio_selector.hpp"
using namespace ot;
-9
View File
@@ -33,16 +33,7 @@
#include "openthread-core-config.h"
#include <openthread/border_router.h>
#include <openthread/ip6.h>
#include <openthread/nat64.h>
#include "border_router/routing_manager.hpp"
#include "common/debug.hpp"
#include "instance/instance.hpp"
#include "net/ip4_types.hpp"
#include "net/ip6_headers.hpp"
#include "net/nat64_translator.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/netdata.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE
#include <openthread/netdata_publisher.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/netdiag.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-1
View File
@@ -37,7 +37,6 @@
#include <openthread/network_time.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/ping_sender.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/radio_stats.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
#include <openthread/server.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-1
View File
@@ -37,7 +37,6 @@
#include <openthread/sntp.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE
#include <openthread/srp_client.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-1
View File
@@ -35,7 +35,6 @@
#include <openthread/srp_client_buffers.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_SRP_SERVER_ENABLE
#include <openthread/srp_server.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-4
View File
@@ -33,10 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/tasklet.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_CONFIG_TCP_ENABLE
#include <openthread/tcp.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-1
View File
@@ -37,7 +37,6 @@
#include <openthread/tcp_ext.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
#include "net/tcp6_ext.hpp"
-6
View File
@@ -35,13 +35,7 @@
#if OPENTHREAD_FTD || OPENTHREAD_MTD
#include <openthread/thread.h>
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/uptime.hpp"
#include "instance/instance.hpp"
#include "thread/version.hpp"
using namespace ot;
-3
View File
@@ -35,9 +35,6 @@
#if OPENTHREAD_FTD
#include <openthread/thread_ftd.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-2
View File
@@ -37,8 +37,6 @@
#include <openthread/trel.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
using namespace ot;
-3
View File
@@ -33,9 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/udp.h>
#include "common/as_core_type.hpp"
#include "instance/instance.hpp"
using namespace ot;
-5
View File
@@ -35,12 +35,7 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "thread/mle_types.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
-10
View File
@@ -35,17 +35,7 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "thread/mle_types.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
@@ -35,14 +35,7 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "thread/mle_types.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
-4
View File
@@ -35,11 +35,7 @@
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
#include "border_router/routing_manager.hpp"
#include "common/as_core_type.hpp"
#include "common/logging.hpp"
#include "instance/instance.hpp"
#include "net/icmp6.hpp"
namespace ot {
namespace BorderRouter {
@@ -42,23 +42,7 @@
#include <openthread/platform/border_routing.h>
#include <openthread/platform/infra_if.h>
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
#include "common/random.hpp"
#include "common/settings.hpp"
#include "common/type_traits.hpp"
#include "instance/instance.hpp"
#include "meshcop/extended_panid.hpp"
#include "net/ip6.hpp"
#include "net/nat64_translator.hpp"
#include "net/nd6.hpp"
#include "thread/mle_router.hpp"
#include "thread/network_data_leader.hpp"
#include "thread/network_data_local.hpp"
#include "thread/network_data_notifier.hpp"
namespace ot {
-10
View File
@@ -28,17 +28,7 @@
#include "coap.hpp"
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "net/ip6.hpp"
#include "net/udp6.hpp"
#include "thread/thread_netif.hpp"
/**
* @file
-7
View File
@@ -33,13 +33,6 @@
#include "coap_message.hpp"
#include "coap/coap.hpp"
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
namespace ot {
-5
View File
@@ -30,12 +30,7 @@
#if OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE
#include "common/log.hpp"
#include "common/new.hpp"
#include "instance/instance.hpp"
#include "meshcop/secure_transport.hpp"
#include "thread/thread_netif.hpp"
/**
* @file
-9
View File
@@ -33,16 +33,7 @@
#include "message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/heap.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
#include "instance/instance.hpp"
#include "net/checksum.hpp"
#include "net/ip6.hpp"
#if OPENTHREAD_MTD || OPENTHREAD_FTD
-5
View File
@@ -33,11 +33,6 @@
#include "notifier.hpp"
#include "border_router/routing_manager.hpp"
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
namespace ot {
-6
View File
@@ -33,13 +33,7 @@
#include "settings.hpp"
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset.hpp"
#include "thread/mle.hpp"
namespace ot {
-4
View File
@@ -33,11 +33,7 @@
#include "time_ticker.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "thread/mle_router.hpp"
namespace ot {
-3
View File
@@ -33,9 +33,6 @@
#include "timer.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "instance/instance.hpp"
namespace ot {
-2
View File
@@ -35,8 +35,6 @@
#if OPENTHREAD_CONFIG_UPTIME_ENABLE
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "instance/instance.hpp"
namespace ot {
-5
View File
@@ -42,12 +42,7 @@
#include <openthread/platform/diag.h>
#include <openthread/platform/radio.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/error.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
#include "utils/parse_cmdline.hpp"
OT_TOOL_WEAK
-1
View File
@@ -36,7 +36,6 @@
#include <openthread/platform/misc.h>
#include "common/new.hpp"
#include "radio/trel_link.hpp"
#include "utils/heap.hpp"
namespace ot {
+4
View File
@@ -46,15 +46,19 @@
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/error.hpp"
#include "common/heap.hpp"
#include "common/locator.hpp"
#include "common/log.hpp"
#include "common/message.hpp"
#include "common/non_copyable.hpp"
#include "common/random.hpp"
#include "common/serial_number.hpp"
#include "common/tasklet.hpp"
#include "common/time_ticker.hpp"
#include "common/timer.hpp"
#include "common/type_traits.hpp"
#include "common/uptime.hpp"
#include "diags/factory_diags.hpp"
#include "instance/extension.hpp"
-2
View File
@@ -35,8 +35,6 @@
#if OPENTHREAD_FTD
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
namespace ot {
-9
View File
@@ -33,16 +33,7 @@
#include "data_poll_sender.hpp"
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/message.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
#include "net/ip6.hpp"
#include "net/netif.hpp"
#include "thread/mesh_forwarder.hpp"
#include "thread/mle.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
-5
View File
@@ -35,15 +35,10 @@
#if OPENTHREAD_RADIO || OPENTHREAD_CONFIG_LINK_RAW_ENABLE
#include <string.h>
#include <openthread/diag.h>
#include <openthread/platform/diag.h>
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "mac/mac_frame.hpp"
namespace ot {
namespace Mac {
-15
View File
@@ -35,24 +35,9 @@
#include <stdio.h>
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
#include "crypto/aes_ccm.hpp"
#include "crypto/sha256.hpp"
#include "instance/instance.hpp"
#include "mac/mac_frame.hpp"
#include "radio/radio.hpp"
#include "thread/child.hpp"
#include "thread/child_table.hpp"
#include "thread/link_quality.hpp"
#include "thread/mle_router.hpp"
#include "thread/neighbor.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
namespace Mac {
+1 -4
View File
@@ -35,10 +35,7 @@
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "thread/neighbor.hpp"
#include "instance/instance.hpp"
namespace ot {
namespace Mac {
-1
View File
@@ -33,7 +33,6 @@
#include "mac_links.hpp"
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
namespace ot {
-7
View File
@@ -37,14 +37,7 @@
#include <openthread/platform/time.h>
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/random.hpp"
#include "common/time.hpp"
#include "instance/instance.hpp"
#include "mac/mac_frame.hpp"
namespace ot {
namespace Mac {
-5
View File
@@ -33,13 +33,8 @@
#include "sub_mac.hpp"
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
#if OPENTHREAD_FTD || OPENTHREAD_MTD
#include "mac/mac.hpp"
#endif
namespace ot {
namespace Mac {
-2
View File
@@ -35,8 +35,6 @@
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
namespace ot {
@@ -35,15 +35,7 @@
#if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD
#include "coap/coap_message.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
-11
View File
@@ -35,18 +35,7 @@
#if OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/heap.hpp"
#include "common/log.hpp"
#include "common/owned_ptr.hpp"
#include "common/settings.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
-14
View File
@@ -35,21 +35,7 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_COMMISSIONER_ENABLE
#include <stdio.h>
#include "coap/coap_message.hpp"
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/encoding.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "meshcop/joiner.hpp"
#include "meshcop/joiner_router.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
-9
View File
@@ -34,16 +34,7 @@
#include "dataset.hpp"
#include <stdio.h>
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "mac/mac_types.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "meshcop/timestamp.hpp"
#include "thread/mle_tlvs.hpp"
namespace ot {
namespace MeshCoP {
-11
View File
@@ -34,18 +34,7 @@
#include "dataset_manager.hpp"
#include <stdio.h>
#include "common/as_core_type.hpp"
#include "common/log.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "radio/radio.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
-18
View File
@@ -36,25 +36,7 @@
#if OPENTHREAD_FTD
#include <stdio.h>
#include <openthread/platform/radio.h>
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "common/timer.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_leader.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
-4
View File
@@ -36,11 +36,7 @@
#if (OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE || OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE) && OPENTHREAD_FTD
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "meshcop/timestamp.hpp"
namespace ot {
namespace MeshCoP {
-11
View File
@@ -35,18 +35,7 @@
#if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
-1
View File
@@ -34,7 +34,6 @@
#include "extended_panid.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
namespace ot {
-14
View File
@@ -35,21 +35,7 @@
#if OPENTHREAD_CONFIG_JOINER_ENABLE
#include <stdio.h>
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "radio/radio.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
#include "utils/otns.hpp"
namespace ot {
namespace MeshCoP {
-11
View File
@@ -35,18 +35,7 @@
#if OPENTHREAD_FTD
#include <stdio.h>
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/mle.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
-7
View File
@@ -33,16 +33,9 @@
*/
#include "meshcop.hpp"
#include <openthread/platform/toolchain.h>
#include "common/clearable.hpp"
#include "common/crc16.hpp"
#include "common/debug.hpp"
#include "common/string.hpp"
#include "crypto/sha256.hpp"
#include "instance/instance.hpp"
#include "mac/mac_types.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
-12
View File
@@ -35,19 +35,7 @@
#if OPENTHREAD_FTD
#include <stdio.h>
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/thread_tlvs.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
namespace MeshCoP {
+1 -6
View File
@@ -33,12 +33,7 @@
#include "meshcop_tlvs.hpp"
#include "common/const_cast.hpp"
#include "common/debug.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
#include "common/string.hpp"
#include "meshcop/meshcop.hpp"
#include "instance/instance.hpp"
namespace ot {
namespace MeshCoP {
-1
View File
@@ -34,7 +34,6 @@
#include "network_name.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
namespace ot {
-9
View File
@@ -35,16 +35,7 @@
#if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
#include "meshcop/meshcop_tlvs.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
namespace ot {
-12
View File
@@ -38,19 +38,7 @@
#include <mbedtls/pem.h>
#endif
#include <openthread/platform/radio.h>
#include "common/as_core_type.hpp"
#include "common/clearable.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "common/timer.hpp"
#include "crypto/mbedtls.hpp"
#include "crypto/sha256.hpp"
#include "instance/instance.hpp"
#include "thread/thread_netif.hpp"
#if OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE
-11
View File
@@ -32,21 +32,10 @@
*/
#include "tcat_agent.hpp"
#include <openthread/tcat.h>
#include "meshcop/network_name.hpp"
#if OPENTHREAD_CONFIG_BLE_TCAT_ENABLE
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
#include "thread/thread_netif.hpp"
#include "thread/uri_paths.hpp"
#include "utils/otns.hpp"
namespace ot {
namespace MeshCoP {
-7
View File
@@ -35,14 +35,7 @@
#if OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "mac/mac.hpp"
#include "net/dhcp6.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
namespace Dhcp6 {
-7
View File
@@ -35,14 +35,7 @@
#if OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "thread/mle.hpp"
#include "thread/thread_netif.hpp"
namespace ot {
namespace Dhcp6 {
-8
View File
@@ -30,15 +30,7 @@
#if OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "net/udp6.hpp"
#include "thread/network_data_types.hpp"
#include "thread/thread_netif.hpp"
/**
* @file
-7
View File
@@ -30,13 +30,6 @@
#if OPENTHREAD_CONFIG_DNS_DSO_ENABLE
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
/**
-5
View File
@@ -33,11 +33,6 @@
#include "openthread-core-config.h"
#include <openthread/instance.h>
#include <openthread/platform/dns.h>
#include "common/code_utils.hpp"
#include "common/message.hpp"
#include "instance/instance.hpp"
#if OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE
-6
View File
@@ -33,12 +33,6 @@
#include "dns_types.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -35,7 +35,6 @@
#if OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE || OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE
#include "common/code_utils.hpp"
#include "instance/instance.hpp"
namespace ot {
-10
View File
@@ -35,17 +35,7 @@
#if OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE
#include <openthread/platform/dns.h>
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "net/srp_server.hpp"
#include "net/udp6.hpp"
namespace ot {
namespace Dns {
+1
View File
@@ -45,6 +45,7 @@
#endif // OPENTHREAD_CONFIG_DNSSD_DISCOVERY_PROXY_ENABLE
#include <openthread/dnssd_server.h>
#include <openthread/platform/dns.h>
#include "border_router/infra_if.hpp"
#include "common/as_core_type.hpp"

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