SupervisionListener &SupervisionListener::GetOwner(const Context &aContext) { #if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES SupervisionListener &listener = *static_cast<SupervisionListener *>(aContext.GetContext()); #else SupervisionListener &listener = otGetThreadNetif().GetSupervisionListener(); OT_UNUSED_VARIABLE(aContext); #endif return listener; }
AnnounceBeginServer &AnnounceBeginServer::GetOwner(const Context &aContext) { #if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES AnnounceBeginServer &server = *static_cast<AnnounceBeginServer *>(aContext.GetContext()); #else AnnounceBeginServer &server = otGetThreadNetif().GetAnnounceBeginServer(); OT_UNUSED_VARIABLE(aContext); #endif return server; }
ChildSupervisor &ChildSupervisor::GetOwner(const Context &aContext) { #if OPENTHREAD_ENABLE_MULTIPLE_INSTANCES ChildSupervisor &supervisor = *static_cast<ChildSupervisor *>(aContext.GetContext()); #else ChildSupervisor &supervisor = otGetThreadNetif().GetChildSupervisor(); OT_UNUSED_VARIABLE(aContext); #endif return supervisor; }