Skip to content

Commit 1635217

Browse files
kpschoedelpull[bot]
authored andcommitted
Inet: Split EndPoint into per-implementation files (#12688)
#### 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.
1 parent dfddf98 commit 1635217

20 files changed

+4876
-4537
lines changed

src/inet/BUILD.gn

+11
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ buildconfig_header("inet_buildconfig") {
4949
defines +=
5050
[ "INET_PLATFORM_CONFIG_INCLUDE=${chip_inet_platform_config_include}" ]
5151
}
52+
53+
defines += [
54+
"INET_TCP_END_POINT_IMPL_CONFIG_FILE=<inet/TCPEndPointImpl${chip_system_config_inet}.h>",
55+
"INET_UDP_END_POINT_IMPL_CONFIG_FILE=<inet/UDPEndPointImpl${chip_system_config_inet}.h>",
56+
]
5257
}
5358

5459
source_set("inet_config_header") {
@@ -105,13 +110,19 @@ static_library("inet") {
105110
sources += [
106111
"TCPEndPoint.cpp",
107112
"TCPEndPoint.h",
113+
"TCPEndPointImpl${chip_system_config_inet}.cpp",
114+
"TCPEndPointImpl${chip_system_config_inet}.h",
115+
"TCPEndPointImpl.h",
108116
]
109117
}
110118

111119
if (chip_inet_config_enable_udp_endpoint) {
112120
sources += [
113121
"UDPEndPoint.cpp",
114122
"UDPEndPoint.h",
123+
"UDPEndPointImpl${chip_system_config_inet}.cpp",
124+
"UDPEndPointImpl${chip_system_config_inet}.h",
125+
"UDPEndPointImpl.h",
115126
]
116127
}
117128

0 commit comments

Comments
 (0)