| 234 | } |
| 235 | |
| 236 | std::size_t DVBCA::findSessionNumberForRecource(const std::size_t resource) const { |
| 237 | for (std::size_t i = 0; i < MAX_SESSIONS; ++i) { |
| 238 | if (_sessions[i]._resource == resource) { |
| 239 | SI_LOG_DEBUG("Found sessionNB: %d for Resource: 0x%08X", _sessions[i]._sessionNB, _sessions[i]._resource); |
| 240 | return _sessions[i]._sessionNB; |
| 241 | } |
| 242 | } |
| 243 | return 0; |
| 244 | } |
| 245 | |
| 246 | void DVBCA::clearSessionFor(std::size_t sessionNB) { |
| 247 | _sessions[sessionNB]._resource = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected