Skip to content

Commit

Permalink
[posix] move settings file related methods to a separate file (openth…
Browse files Browse the repository at this point in the history
…read#11023)

This commit refactors the settings module to move the settings file
related methods to a seperate file, so that other modules could resue
the same code to save thier settings to another settings file.
  • Loading branch information
zhanglongxia authored Dec 16, 2024
1 parent 971f05f commit 81542ca
Show file tree
Hide file tree
Showing 5 changed files with 525 additions and 345 deletions.
2 changes: 2 additions & 0 deletions src/posix/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ add_library(openthread-posix
rcp_caps_diag.cpp
resolver.cpp
settings.cpp
settings_file.cpp
spinel_manager.cpp
spi_interface.cpp
system.cpp
Expand Down Expand Up @@ -207,6 +208,7 @@ target_include_directories(openthread-posix PRIVATE

add_executable(ot-posix-test-settings
settings.cpp
settings_file.cpp
)
target_compile_definitions(ot-posix-test-settings
PRIVATE -DSELF_TEST=1 -DOPENTHREAD_CONFIG_LOG_PLATFORM=0
Expand Down
Loading

0 comments on commit 81542ca

Please sign in to comment.