From 8aabe6351fdaff2bd5529be670846357e221a16a Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 15 Aug 2005 23:46:05 +0000 Subject: add pid cache --- lib/dvb/db.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/dvb/db.cpp') diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp index cdc05fcb..92293b7e 100644 --- a/lib/dvb/db.cpp +++ b/lib/dvb/db.cpp @@ -74,6 +74,19 @@ int eDVBService::checkFilter(const eServiceReferenceDVB &ref, const eDVBChannelQ return res; } +int eDVBService::getCachePID(cacheID id) +{ + std::map::iterator it = m_cache.find(id); + if ( it != m_cache.end() ) + return it->second; + return -1; +} + +void eDVBService::setCachePID(cacheID id, int pid) +{ + m_cache[id] = pid; +} + DEFINE_REF(eDVBDB); eDVBDB::eDVBDB() -- cgit v1.2.3