Skip to content

Commit e9170fb

Browse files
committed
Remove dependncy to Server
Signed-off-by: Adrian Gielniewski <adrian.gielniewski@gmail.com>
1 parent cbb8887 commit e9170fb

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/app/server/Server.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -826,4 +826,9 @@ Crypto::DefaultSessionKeystore CommonCaseDeviceServerInitParams::sSessionKeystor
826826
app::DefaultICDCheckInBackOffStrategy CommonCaseDeviceServerInitParams::sDefaultICDCheckInBackOffStrategy;
827827
#endif
828828

829+
void ServerScheduleFactoryReset()
830+
{
831+
chip::Server::GetInstance().ScheduleFactoryReset();
832+
}
833+
829834
} // namespace chip

src/app/server/Server.h

+2
Original file line numberDiff line numberDiff line change
@@ -709,4 +709,6 @@ class Server
709709
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
710710
};
711711

712+
void ServerScheduleFactoryReset();
713+
712714
} // namespace chip

src/lib/shell/commands/BUILD.gn

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ source_set("commands") {
6565
}
6666

6767
if (chip_device_platform != "none") {
68-
public_deps += [ "${chip_root}/src/app/server" ]
6968
public_deps += [ "${chip_root}/src/app/onboarding-codes-utils" ]
7069
}
7170

src/lib/shell/commands/Device.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#include <platform/CHIPDeviceLayer.h>
2323

2424
namespace chip {
25+
26+
void ServerScheduleFactoryReset();
27+
2528
namespace Shell {
2629

2730
static CHIP_ERROR FactoryResetHandler(int argc, char ** argv)

0 commit comments

Comments
 (0)