Skip to content

Commit

Permalink
Add virtual function in CommandHandler::Callback in
Browse files Browse the repository at this point in the history
CommandResponseSender
  • Loading branch information
yyzhong-g committed Apr 26, 2024
1 parent 152c355 commit ca93da0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/CommandResponseSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ Status CommandResponseSender::CommandExists(const ConcreteCommandPath & aCommand
return mpCommandHandlerCallback->CommandExists(aCommandPath);
}

uint32_t CommandResponseSender::GetInteractionModelEngineGeneration() const {
VerifyOrReturnValue(mpCommandHandlerCallback, 0);
return mpCommandHandlerCallback->GetInteractionModelEngineGeneration();
}

CHIP_ERROR CommandResponseSender::SendCommandResponse()
{
VerifyOrReturnError(HasMoreToSend(), CHIP_ERROR_INCORRECT_STATE);
Expand Down
2 changes: 2 additions & 0 deletions src/app/CommandResponseSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class CommandResponseSender : public Messaging::ExchangeDelegate,

Protocols::InteractionModel::Status CommandExists(const ConcreteCommandPath & aCommandPath) override;

uint32_t GetInteractionModelEngineGeneration() const override;

/**
* Gets the inner exchange context object, without ownership.
*
Expand Down

0 comments on commit ca93da0

Please sign in to comment.