Skip to content

Commit 5862c82

Browse files
MariuszSkamracarlescufi
authored andcommitted
net: buf: Factor out net_buf_simple to separate source file
This moves net_buf_simple related code to separate source file. Having those in separate file makes unit testing easier as simple network buffers do not use kernel objects, thus can be used in unit tests without a need for adding any mocks. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent 3f09fd9 commit 5862c82

File tree

3 files changed

+553
-531
lines changed

3 files changed

+553
-531
lines changed

subsys/net/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
zephyr_library()
4-
zephyr_library_sources_ifdef(CONFIG_NET_BUF buf.c)
4+
zephyr_library_sources_ifdef(
5+
CONFIG_NET_BUF
6+
buf.c
7+
buf_simple.c
8+
)
59
zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
610

711
if(CONFIG_NETWORKING)

0 commit comments

Comments
 (0)