eitd/sectionsd.cpp: add getEventsCount()

Origin commit data
------------------
Commit: 537a60fe6b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-09-27 (Fri, 27 Sep 2013)
This commit is contained in:
[CST] Focus
2013-09-27 12:53:12 +04:00
parent 1979dd5ef4
commit 5ae7bcf60c
2 changed files with 9 additions and 0 deletions

View File

@@ -2821,3 +2821,11 @@ void CEitManager::setLanguages(const std::vector<std::string>& newLanguages)
SIlanguage::setLanguages(newLanguages);
SIlanguage::saveLanguages();
}
unsigned CEitManager::getEventsCount()
{
readLockEvents();
unsigned anzEvents = mySIeventsOrderUniqueKey.size();
unlockEvents();
return anzEvents;
}

View File

@@ -65,6 +65,7 @@ class CEitManager : public OpenThreads::Thread, public OpenThreads::Mutex
bool getLinkageDescriptorsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::LinkageDescriptorList& descriptors);
bool getNVODTimesServiceKey(const t_channel_id uniqueServiceKey, CSectionsdClient::NVODTimesList& nvod_list);
void setLanguages(const std::vector<std::string>& newLanguages);
unsigned getEventsCount();
};
#endif