mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
[ncp] add a vendor hook to notify when a frame is sent and removed (#2468)
This commit is contained in:
committed by
Jonathan Hui
parent
f9df5c2c09
commit
cfdab91f44
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user