Skip to content

Commit

Permalink
rename define
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Jun 2, 2023
1 parent fc49437 commit 9e43929
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/icd/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ source_set("manager-srcs") {
# ICD Server Configuration
# All configurations necessary to the ICD Server featureset need to in this configuration
config("server-config") {
defines = [ "CHIP_CONFIG_ICD_SERVER_ENABLE" ]
defines = [ "CHIP_CONFIG_ENABLE_ICD_SERVER" ]
}

# servers-srcs source-set contains all the sources and configurations necessary to build the ICD Server functionality
Expand Down
8 changes: 4 additions & 4 deletions src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ CHIP_ERROR Server::Init(const ServerInitParams & initParams)
}
#endif // CHIP_CONFIG_ENABLE_SERVER_IM_EVENT

#ifdef CHIP_CONFIG_ICD_SERVER_ENABLE
#ifdef CHIP_CONFIG_ENABLE_ICD_SERVER
mICDEventManager.Init(&mICDManager);
#endif // CHIP_CONFIG_ICD_SERVER_ENABLE
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER

// This initializes clusters, so should come after lower level initialization.
InitDataModelHandler();
Expand Down Expand Up @@ -488,9 +488,9 @@ void Server::Shutdown()
mAccessControl.Finish();
Access::ResetAccessControlToDefault();
Credentials::SetGroupDataProvider(nullptr);
#ifdef CHIP_CONFIG_ICD_SERVER_ENABLE
#ifdef CHIP_CONFIG_ENABLE_ICD_SERVER
mICDEventManager.Shutdown();
#endif // CHIP_CONFIG_ICD_SERVER_ENABLE
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
mAttributePersister.Shutdown();
// TODO(16969): Remove chip::Platform::MemoryInit() call from Server class, it belongs to outer code
chip::Platform::MemoryShutdown();
Expand Down
8 changes: 4 additions & 4 deletions src/app/server/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
#endif
#include <transport/raw/UDP.h>

#ifdef CHIP_CONFIG_ICD_SERVER_ENABLE
#ifdef CHIP_CONFIG_ENABLE_ICD_SERVER
#include <app/icd/ICDEventManager.h>
#include <app/icd/ICDManager.h>
#endif // CHIP_CONFIG_ICD_SERVER_ENABLE
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER

namespace chip {

Expand Down Expand Up @@ -600,10 +600,10 @@ class Server
Inet::InterfaceId mInterfaceId;

System::Clock::Microseconds64 mInitTimestamp;
#ifdef CHIP_CONFIG_ICD_SERVER_ENABLE
#ifdef CHIP_CONFIG_ENABLE_ICD_SERVER
app::ICDEventManager mICDEventManager;
app::ICDManager mICDManager;
#endif // CHIP_CONFIG_ICD_SERVER_ENABLE
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
};

} // namespace chip

0 comments on commit 9e43929

Please sign in to comment.