[topology] define 'Neighbor::Info', 'Child::Info', and 'Router::Info' (#5328)

This commit adds new class definitions in `topology` to represent
neighbor/child/router info.
This commit is contained in:
Abtin Keshavarzian
2020-08-03 21:33:34 -07:00
committed by GitHub
parent 5c6c798576
commit 481f69703b
8 changed files with 134 additions and 90 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ otError otThreadGetNextNeighborInfo(otInstance *aInstance, otNeighborInfoIterato
OT_ASSERT((aInfo != nullptr) && (aIterator != nullptr));
return instance.Get<Mle::MleRouter>().GetNextNeighborInfo(*aIterator, *aInfo);
return instance.Get<Mle::MleRouter>().GetNextNeighborInfo(*aIterator, *static_cast<Neighbor::Info *>(aInfo));
}
otDeviceRole otThreadGetDeviceRole(otInstance *aInstance)