Replace the two separate ID systems for frame providers — hash-based descriptor IDs in Target and sequential chain IDs in Thread — with a single monotonically increasing counter in Target. Provider IDs are now assigned by Target::AddScriptedFrameProviderDescriptor and used directly as the chain ID in Thread, so RegisterScriptedFrameProvider returns the same ID used by 'bt --provider'. Also add duplicate detection to emit a warning when registering a provider with the same class name and arguments twice. Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
4.6 KiB
4.6 KiB