Skip to content

Commit

Permalink
Inet: Split EndPoint into per-implementation files (#12688)
Browse files Browse the repository at this point in the history
#### Problem

Part of #7715 _Virtualize System and Inet interfaces_

#### Change overview

Move each `UDPEndPoint` and `TCPEndPoint` implementation into a
separate file. (This follows the pattern used by `System::Layer`.)

#### Testing

CI; no change to functionality.
  • Loading branch information
kpschoedel authored and pull[bot] committed Dec 13, 2021
1 parent dfddf98 commit 1635217
Show file tree
Hide file tree
Showing 20 changed files with 4,876 additions and 4,537 deletions.
11 changes: 11 additions & 0 deletions src/inet/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ buildconfig_header("inet_buildconfig") {
defines +=
[ "INET_PLATFORM_CONFIG_INCLUDE=${chip_inet_platform_config_include}" ]
}

defines += [
"INET_TCP_END_POINT_IMPL_CONFIG_FILE=<inet/TCPEndPointImpl${chip_system_config_inet}.h>",
"INET_UDP_END_POINT_IMPL_CONFIG_FILE=<inet/UDPEndPointImpl${chip_system_config_inet}.h>",
]
}

source_set("inet_config_header") {
Expand Down Expand Up @@ -105,13 +110,19 @@ static_library("inet") {
sources += [
"TCPEndPoint.cpp",
"TCPEndPoint.h",
"TCPEndPointImpl${chip_system_config_inet}.cpp",
"TCPEndPointImpl${chip_system_config_inet}.h",
"TCPEndPointImpl.h",
]
}

if (chip_inet_config_enable_udp_endpoint) {
sources += [
"UDPEndPoint.cpp",
"UDPEndPoint.h",
"UDPEndPointImpl${chip_system_config_inet}.cpp",
"UDPEndPointImpl${chip_system_config_inet}.h",
"UDPEndPointImpl.h",
]
}

Expand Down
Loading

0 comments on commit 1635217

Please sign in to comment.