Skip to content

Commit

Permalink
[core] add separate neighbor.hpp, child.hpp, and router.hpp (op…
Browse files Browse the repository at this point in the history
…enthread#9376)

This commit adds separate files for `Neighbor`, `Child`, and `Router`
classes.
  • Loading branch information
abtink authored Aug 29, 2023
1 parent 7b0fe82 commit 9829267
Show file tree
Hide file tree
Showing 26 changed files with 1,208 additions and 1,019 deletions.
8 changes: 6 additions & 2 deletions src/core/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ openthread_core_files = [
"thread/announce_sender.hpp",
"thread/anycast_locator.cpp",
"thread/anycast_locator.hpp",
"thread/child.cpp",
"thread/child.hpp",
"thread/child_mask.hpp",
"thread/child_supervision.cpp",
"thread/child_supervision.hpp",
Expand Down Expand Up @@ -646,6 +648,8 @@ openthread_core_files = [
"thread/mlr_manager.cpp",
"thread/mlr_manager.hpp",
"thread/mlr_types.hpp",
"thread/neighbor.cpp",
"thread/neighbor.hpp",
"thread/neighbor_table.cpp",
"thread/neighbor_table.hpp",
"thread/network_data.cpp",
Expand Down Expand Up @@ -674,6 +678,8 @@ openthread_core_files = [
"thread/panid_query_server.hpp",
"thread/radio_selector.cpp",
"thread/radio_selector.hpp",
"thread/router.cpp",
"thread/router.hpp",
"thread/router_table.cpp",
"thread/router_table.hpp",
"thread/src_match_controller.cpp",
Expand All @@ -685,8 +691,6 @@ openthread_core_files = [
"thread/time_sync_service.hpp",
"thread/tmf.cpp",
"thread/tmf.hpp",
"thread/topology.cpp",
"thread/topology.hpp",
"thread/uri_paths.cpp",
"thread/uri_paths.hpp",
"thread/version.hpp",
Expand Down
4 changes: 3 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ set(COMMON_SOURCES
thread/announce_begin_server.cpp
thread/announce_sender.cpp
thread/anycast_locator.cpp
thread/child.cpp
thread/child_supervision.cpp
thread/child_table.cpp
thread/csl_tx_scheduler.cpp
Expand All @@ -215,6 +216,7 @@ set(COMMON_SOURCES
thread/mle_tlvs.cpp
thread/mle_types.cpp
thread/mlr_manager.cpp
thread/neighbor.cpp
thread/neighbor_table.cpp
thread/network_data.cpp
thread/network_data_leader.cpp
Expand All @@ -229,12 +231,12 @@ set(COMMON_SOURCES
thread/network_diagnostic_tlvs.cpp
thread/panid_query_server.cpp
thread/radio_selector.cpp
thread/router.cpp
thread/router_table.cpp
thread/src_match_controller.cpp
thread/thread_netif.cpp
thread/time_sync_service.cpp
thread/tmf.cpp
thread/topology.cpp
thread/uri_paths.cpp
utils/channel_manager.cpp
utils/channel_monitor.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/core/mac/data_poll_sender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "common/timer.hpp"
#include "mac/mac.hpp"
#include "mac/mac_frame.hpp"
#include "thread/topology.hpp"
#include "thread/neighbor.hpp"

namespace ot {

Expand Down
3 changes: 2 additions & 1 deletion src/core/mac/mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@
#include "crypto/sha256.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"
#include "thread/topology.hpp"

namespace ot {
namespace Mac {
Expand Down
2 changes: 1 addition & 1 deletion src/core/mac/mac_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "common/array.hpp"
#include "common/as_core_type.hpp"
#include "common/code_utils.hpp"
#include "thread/topology.hpp"
#include "thread/neighbor.hpp"

namespace ot {
namespace Mac {
Expand Down
Loading

0 comments on commit 9829267

Please sign in to comment.