MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / GetPrimaryClient

Method GetPrimaryClient

src/libcec/CECProcessor.cpp:1041–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041CECClientPtr CCECProcessor::GetPrimaryClient(void)
1042{
1043 CLockObject lock(m_mutex);
1044 std::map<cec_logical_address, CECClientPtr>::const_iterator client = m_clients.begin();
1045 if (client != m_clients.end())
1046 return client->second;
1047 return CECClientPtr();
1048}
1049
1050CCECBusDevice *CCECProcessor::GetPrimaryDevice(void)
1051{

Callers 1

InitHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected