| 57 | // ============================================================================= |
| 58 | |
| 59 | void StreamManager::enumerateDevices( |
| 60 | const std::string &bindIPAddress, |
| 61 | const std::string &appDataPath, |
| 62 | const std::string &dvbPath, |
| 63 | const bool enableChildPIPE) { |
| 64 | base::MutexLock lock(_mutex); |
| 65 | |
| 66 | #ifdef NOT_PREFERRED_DVB_API |
| 67 | SI_LOG_ERROR("Not the preferred DVB API version, for correct function it should be 5.5 or higher"); |
| 68 | #endif |
| 69 | SI_LOG_INFO("Current DVB_API_VERSION: %d.%d", DVB_API_VERSION, DVB_API_VERSION_MINOR); |
| 70 | SI_LOG_INFO("Enumerating all devices..."); |
| 71 | |
| 72 | // enumerate streams (frontends) |
| 73 | input::dvb::Frontend::enumerate(_stream, appDataPath, _decrypt, dvbPath); |
| 74 | input::file::TSReader::enumerate(_stream, appDataPath); |
| 75 | input::stream::Streamer::enumerate(_stream, bindIPAddress, appDataPath); |
| 76 | if (enableChildPIPE) { |
| 77 | input::childpipe::TSReader::enumerate(_stream, appDataPath); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | std::string StreamManager::getXMLDeliveryString() const { |
| 82 | std::size_t dvb_s2 = 0u; |