[ncp] add a vendor hook to notify when a frame is sent and removed (#2468)

This commit is contained in:
Abtin Keshavarzian
2018-01-12 17:10:34 +00:00
committed by Jonathan Hui
parent f9df5c2c09
commit cfdab91f44
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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)
+1
View File
@@ -293,6 +293,7 @@ protected:
#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);