MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetNodeNeighbors

Method GetNodeNeighbors

cpp/src/Driver.cpp:4933–4947  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Gets the neighbors for a node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4931// Gets the neighbors for a node
4932//-----------------------------------------------------------------------------
4933uint32 Driver::GetNodeNeighbors
4934(
4935 uint8 const _nodeId,
4936 uint8** o_neighbors
4937)
4938{
4939 uint32 numNeighbors = 0;
4940 LockGuard LG(m_nodeMutex);
4941 if( Node* node = GetNode( _nodeId ) )
4942 {
4943 numNeighbors = node->GetNeighbors( o_neighbors );
4944 }
4945
4946 return numNeighbors;
4947}
4948
4949//-----------------------------------------------------------------------------
4950// <Driver::GetNodeManufacturerName>

Callers

nothing calls this directly

Calls 1

GetNeighborsMethod · 0.80

Tested by

no test coverage detected