Skip to content

Commit

Permalink
[ncp] add a vendor hook to notify when a frame is sent and removed (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink authored and jwhui committed Jan 12, 2018
1 parent f9df5c2 commit cfdab91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ncp/ncp_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ void NcpBase::HandleFrameRemovedFromNcpBuffer(NcpFrameBuffer::FrameTag aFrameTag

SuccessOrExit(SendQueuedResponses());

#if OPENTHREAD_ENABLE_NCP_VENDOR_HOOK
VendorHandleFrameRemovedFromNcpBuffer(aFrameTag);
#endif

// Check if `HOST_POWER_STATE` property update is required.

if (mHostPowerStateHeader)
Expand Down
1 change: 1 addition & 0 deletions src/ncp/ncp_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class NcpBase

#if OPENTHREAD_ENABLE_NCP_VENDOR_HOOK
otError VendorCommandHandler(uint8_t aHeader, unsigned int aCommand);
void VendorHandleFrameRemovedFromNcpBuffer(NcpFrameBuffer::FrameTag aFrameTag);
#endif // OPENTHREAD_ENABLE_NCP_VENDOR_HOOK

otError CommandHandler_NOOP(uint8_t aHeader);
Expand Down

0 comments on commit cfdab91

Please sign in to comment.