src/zapit/src/zapit.cpp: add missing member functions

Avoids possible reverence compile errors.

taken from https://bitbucket.org/neutrino-images/ni-neutrino-hd
This commit is contained in:
2018-01-23 22:42:12 +01:00
parent 355d938820
commit cdfc284a7f
2 changed files with 13 additions and 0 deletions

View File

@@ -112,6 +112,9 @@ class CCamManager
void SetCITuner(int tuner); void SetCITuner(int tuner);
int GetCITuner(void) { return tunerno; }; int GetCITuner(void) { return tunerno; };
void EnableChannelFilter(bool enable) { filter_channels = enable; }; void EnableChannelFilter(bool enable) { filter_channels = enable; };
bool getUseCI() { return useCI; };
bool getChannelFilter() { return filter_channels; };
void enableMoviePlayer(bool enable) { mp = enable; };
}; };
#endif /* __capmt_h__ */ #endif /* __capmt_h__ */

View File

@@ -2623,6 +2623,16 @@ static bool zapit_parse_command(CBasicMessage::Header &rmsg, int connfd)
return CZapit::getInstance()->ParseCommand(rmsg, connfd); return CZapit::getInstance()->ParseCommand(rmsg, connfd);
} }
bool CZapit::getUseChannelFilter()
{
return CCamManager::getInstance()->getChannelFilter();
}
void CZapit::setMoviePlayer(bool enable)
{
CCamManager::getInstance()->enableMoviePlayer(enable);
}
void CZapit::run() void CZapit::run()
{ {
//if HAVE_SPARK_HARDWARE //if HAVE_SPARK_HARDWARE