[core] move locator Get<Type> definitions to instance.hpp (#10711)

This commit moves the locator `GetProvider::Get<Type>()` and its
related `Timer` and `Tasklet` methods to `instance.hpp`. With this
change we can remove `locator_getters.hpp` header fully thus
simplifying the code.
This commit is contained in:
Abtin Keshavarzian
2024-09-16 10:10:51 -07:00
committed by GitHub
parent d7810fa04d
commit 5ff30d7cef
170 changed files with 96 additions and 244 deletions
-1
View File
@@ -420,7 +420,6 @@ openthread_core_files = [
"common/iterator_utils.hpp",
"common/linked_list.hpp",
"common/locator.hpp",
"common/locator_getters.hpp",
"common/log.cpp",
"common/log.hpp",
"common/logging.hpp",
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/backbone_router.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,7 +39,7 @@
#include <openthread/backbone_router_ftd.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -40,7 +40,7 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "meshcop/tcat_agent.hpp"
#include "radio/ble_secure.hpp"
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/border_agent.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,7 +39,7 @@
#include <openthread/channel_manager.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "utils/channel_manager.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/channel_monitor.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/child_supervision.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,7 +39,7 @@
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -41,7 +41,7 @@
#include "coap/coap_message.hpp"
#include "coap/coap_secure.hpp"
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/commissioner.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,10 +39,10 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "crypto/aes_ccm.hpp"
#include "crypto/ecdsa.hpp"
#include "crypto/hmac_sha256.hpp"
#include "instance/instance.hpp"
using namespace ot;
using namespace ot::Crypto;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/dataset.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset_manager.hpp"
#include "meshcop/meshcop.hpp"
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/dataset_ftd.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/dataset_updater.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset_updater.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/diag.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/history_tracker.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "utils/history_tracker.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/icmp6.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -37,8 +37,8 @@
#include <openthread/platform/misc.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "common/new.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
#if !defined(OPENTHREAD_BUILD_DATETIME)
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/ip6.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "net/ip4_types.hpp"
#include "net/ip6_headers.hpp"
#include "thread/network_data_leader.hpp"
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/jam_detection.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,7 +39,7 @@
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/link.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "mac/mac.hpp"
#include "radio/radio.hpp"
+1 -1
View File
@@ -37,7 +37,7 @@
#include <openthread/link_metrics.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -43,8 +43,8 @@
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "mac/mac_frame.hpp"
using namespace ot;
-1
View File
@@ -35,7 +35,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/mesh_diag.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "utils/mesh_diag.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/message.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -39,7 +39,7 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "thread/radio_selector.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/netdata.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/netdata_publisher.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/netdiag.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/network_time.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/ping_sender.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/radio_stats.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/server.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/sntp.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/srp_client.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/srp_client_buffers.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/srp_server.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -37,7 +37,7 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/tcp.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/tcp_ext.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#include "net/tcp6_ext.hpp"
#if OPENTHREAD_CONFIG_TLS_ENABLE
+1 -1
View File
@@ -39,8 +39,8 @@
#include "common/as_core_type.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/uptime.hpp"
#include "instance/instance.hpp"
#include "thread/version.hpp"
using namespace ot;
+1 -1
View File
@@ -38,7 +38,7 @@
#include <openthread/thread_ftd.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -36,7 +36,7 @@
#include <openthread/udp.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
using namespace ot;
+1 -1
View File
@@ -35,8 +35,8 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
namespace ot {
namespace BackboneRouter {
-1
View File
@@ -35,7 +35,6 @@
#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2)
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -36,7 +36,6 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -37,7 +37,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
@@ -37,7 +37,6 @@
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
+1 -1
View File
@@ -36,9 +36,9 @@
#if OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE
#include "common/array.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -37,7 +37,6 @@
#include "border_router/routing_manager.hpp"
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "common/logging.hpp"
#include "instance/instance.hpp"
#include "net/icmp6.hpp"
@@ -44,7 +44,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
-1
View File
@@ -32,7 +32,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
-1
View File
@@ -30,7 +30,6 @@
#if OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/new.hpp"
#include "instance/instance.hpp"
-75
View File
@@ -1,75 +0,0 @@
/*
* Copyright (c) 2017-2019, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file
* This file includes definitions locator getter methods.
*
*/
#ifndef LOCATOR_GETTERS_HPP_
#define LOCATOR_GETTERS_HPP_
#include "openthread-core-config.h"
#include "common/locator.hpp"
#include "common/tasklet.hpp"
#include "instance/instance.hpp"
namespace ot {
template <typename InstanceGetProvider>
template <typename Type>
inline Type &GetProvider<InstanceGetProvider>::Get(void) const
{
return static_cast<const InstanceGetProvider *>(this)->GetInstance().template Get<Type>();
}
template <typename Owner, void (Owner::*HandleTaskletPtr)(void)>
void TaskletIn<Owner, HandleTaskletPtr>::HandleTasklet(Tasklet &aTasklet)
{
(aTasklet.Get<Owner>().*HandleTaskletPtr)();
}
template <typename Owner, void (Owner::*HandleTimertPtr)(void)>
void TimerMilliIn<Owner, HandleTimertPtr>::HandleTimer(Timer &aTimer)
{
(aTimer.Get<Owner>().*HandleTimertPtr)();
}
#if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
template <typename Owner, void (Owner::*HandleTimertPtr)(void)>
void TimerMicroIn<Owner, HandleTimertPtr>::HandleTimer(Timer &aTimer)
{
(aTimer.Get<Owner>().*HandleTimertPtr)();
}
#endif
} // namespace ot
#endif // LOCATOR_GETTERS_HPP_
-1
View File
@@ -37,7 +37,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/heap.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/numeric_limits.hpp"
+1 -1
View File
@@ -37,8 +37,8 @@
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -36,7 +36,6 @@
#include "common/array.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
#include "meshcop/dataset.hpp"
+1 -1
View File
@@ -34,7 +34,7 @@
#include "tasklet.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
+1 -1
View File
@@ -171,7 +171,7 @@ public:
}
private:
static void HandleTasklet(Tasklet &aTasklet); // Implemented in `locator_getters.hpp`
static void HandleTasklet(Tasklet &aTasklet); // Implemented in `instance.hpp`
};
/**
-1
View File
@@ -35,7 +35,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
#include "thread/mle_router.hpp"
-1
View File
@@ -36,7 +36,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
+2 -2
View File
@@ -353,7 +353,7 @@ public:
}
private:
static void HandleTimer(Timer &aTimer); // Implemented in `locator_getters.hpp`
static void HandleTimer(Timer &aTimer); // Implemented in `instance.hpp`
};
/**
@@ -514,7 +514,7 @@ public:
}
private:
static void HandleTimer(Timer &aTimer); // Implemented in `locator_getters.hpp`
static void HandleTimer(Timer &aTimer); // Implemented in `instance.hpp`
};
#endif // OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
-1
View File
@@ -37,7 +37,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -45,7 +45,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
+30
View File
@@ -47,6 +47,7 @@
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/error.hpp"
#include "common/locator.hpp"
#include "common/log.hpp"
#include "common/message.hpp"
#include "common/non_copyable.hpp"
@@ -1109,6 +1110,35 @@ template <> inline FactoryDiags::Diags &Instance::Get(void) { return mDiags; }
template <> inline Utils::PowerCalibration &Instance::Get(void) { return mPowerCalibration; }
#endif
//---------------------------------------------------------------------------------------------------------------------
template <typename InstanceGetProvider>
template <typename Type>
inline Type &GetProvider<InstanceGetProvider>::Get(void) const
{
return static_cast<const InstanceGetProvider *>(this)->GetInstance().template Get<Type>();
}
template <typename Owner, void (Owner::*HandleTaskletPtr)(void)>
void TaskletIn<Owner, HandleTaskletPtr>::HandleTasklet(Tasklet &aTasklet)
{
(aTasklet.Get<Owner>().*HandleTaskletPtr)();
}
template <typename Owner, void (Owner::*HandleTimertPtr)(void)>
void TimerMilliIn<Owner, HandleTimertPtr>::HandleTimer(Timer &aTimer)
{
(aTimer.Get<Owner>().*HandleTimertPtr)();
}
#if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
template <typename Owner, void (Owner::*HandleTimertPtr)(void)>
void TimerMicroIn<Owner, HandleTimertPtr>::HandleTimer(Timer &aTimer)
{
(aTimer.Get<Owner>().*HandleTimertPtr)();
}
#endif
/**
* @}
*
-1
View File
@@ -36,7 +36,6 @@
#if OPENTHREAD_FTD
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -34,7 +34,6 @@
#include "data_poll_sender.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/message.hpp"
#include "common/num_utils.hpp"
-1
View File
@@ -40,7 +40,6 @@
#include <openthread/platform/diag.h>
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -40,7 +40,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/random.hpp"
#include "common/string.hpp"
#include "crypto/aes_ccm.hpp"
-1
View File
@@ -34,7 +34,6 @@
#include "mac_links.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -39,7 +39,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/random.hpp"
-1
View File
@@ -34,7 +34,6 @@
#include "sub_mac.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
#if OPENTHREAD_FTD || OPENTHREAD_MTD
-1
View File
@@ -36,7 +36,6 @@
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
@@ -38,7 +38,6 @@
#include "coap/coap_message.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
-1
View File
@@ -38,7 +38,6 @@
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/heap.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/owned_ptr.hpp"
#include "common/settings.hpp"
-1
View File
@@ -41,7 +41,6 @@
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "meshcop/joiner.hpp"
-1
View File
@@ -38,7 +38,6 @@
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "mac/mac_types.hpp"
-1
View File
@@ -37,7 +37,6 @@
#include <stdio.h>
#include "common/as_core_type.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -44,7 +44,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "common/timer.hpp"
-1
View File
@@ -37,7 +37,6 @@
#if (OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE || OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE) && OPENTHREAD_FTD
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -40,7 +40,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "instance/instance.hpp"
+1 -1
View File
@@ -34,8 +34,8 @@
#include "extended_panid.hpp"
#include "common/locator_getters.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
namespace ot {
namespace MeshCoP {
-1
View File
@@ -42,7 +42,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -40,7 +40,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
+1 -1
View File
@@ -38,9 +38,9 @@
#include "common/clearable.hpp"
#include "common/crc16.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/string.hpp"
#include "crypto/sha256.hpp"
#include "instance/instance.hpp"
#include "mac/mac_types.hpp"
#include "thread/thread_netif.hpp"
-1
View File
@@ -40,7 +40,6 @@
#include "coap/coap_message.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/random.hpp"
#include "instance/instance.hpp"
+1 -1
View File
@@ -34,8 +34,8 @@
#include "network_name.hpp"
#include "common/locator_getters.hpp"
#include "common/notifier.hpp"
#include "instance/instance.hpp"
namespace ot {
namespace MeshCoP {
-1
View File
@@ -39,7 +39,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "meshcop/meshcop.hpp"
-1
View File
@@ -45,7 +45,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/timer.hpp"
#include "crypto/mbedtls.hpp"
-1
View File
@@ -41,7 +41,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
#include "radio/radio.hpp"
-1
View File
@@ -38,7 +38,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "mac/mac.hpp"
-1
View File
@@ -39,7 +39,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/encoding.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "thread/mle.hpp"
-1
View File
@@ -34,7 +34,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "instance/instance.hpp"
#include "net/udp6.hpp"
-1
View File
@@ -34,7 +34,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "common/random.hpp"
-1
View File
@@ -36,7 +36,6 @@
#if OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE || OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE
#include "common/code_utils.hpp"
#include "common/locator_getters.hpp"
#include "instance/instance.hpp"
namespace ot {
-1
View File
@@ -41,7 +41,6 @@
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/string.hpp"
#include "instance/instance.hpp"
-1
View File
@@ -35,7 +35,6 @@
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/locator_getters.hpp"
#include "common/log.hpp"
#include "common/message.hpp"
#include "instance/instance.hpp"

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