Skip to content

Commit 97a8715

Browse files
committed
Add EventManagement Pointer to IMEngine Init()
1 parent 9e09780 commit 97a8715

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app/InteractionModelEngine.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ InteractionModelEngine * InteractionModelEngine::GetInstance()
6969

7070
CHIP_ERROR InteractionModelEngine::Init(Messaging::ExchangeManager * apExchangeMgr, FabricTable * apFabricTable,
7171
reporting::ReportScheduler * reportScheduler, CASESessionManager * apCASESessionMgr,
72-
SubscriptionResumptionStorage * subscriptionResumptionStorage)
72+
SubscriptionResumptionStorage * subscriptionResumptionStorage,
73+
EventManagement* eventManagement)
7374
{
7475
VerifyOrReturnError(apFabricTable != nullptr, CHIP_ERROR_INVALID_ARGUMENT);
7576
VerifyOrReturnError(apExchangeMgr != nullptr, CHIP_ERROR_INVALID_ARGUMENT);
@@ -84,7 +85,7 @@ CHIP_ERROR InteractionModelEngine::Init(Messaging::ExchangeManager * apExchangeM
8485
ReturnErrorOnFailure(mpFabricTable->AddFabricDelegate(this));
8586
ReturnErrorOnFailure(mpExchangeMgr->RegisterUnsolicitedMessageHandlerForProtocol(Protocols::InteractionModel::Id, this));
8687

87-
mReportingEngine.Init();
88+
mReportingEngine.Init(eventManagement);
8889

8990
StatusIB::RegisterErrorFormatter();
9091

src/app/InteractionModelEngine.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
132132
*/
133133
CHIP_ERROR Init(Messaging::ExchangeManager * apExchangeMgr, FabricTable * apFabricTable,
134134
reporting::ReportScheduler * reportScheduler, CASESessionManager * apCASESessionMgr = nullptr,
135-
SubscriptionResumptionStorage * subscriptionResumptionStorage = nullptr);
135+
SubscriptionResumptionStorage * subscriptionResumptionStorage = nullptr,
136+
EventManagement* eventManagement = nullptr);
136137

137138
void Shutdown();
138139

0 commit comments

Comments
 (0)