diff options
author | Lars Heer <l.heer@gmx.de> | 2013-09-18 05:50:03 +0200 |
---|---|---|
committer | Lars Heer <l.heer@gmx.de> | 2013-09-18 05:50:03 +0200 |
commit | ccf6e0f9c6b0481ed13e0f4794e3fbead750f385 (patch) | |
tree | ed86efb54f7ee41edfba5c89ca519b5fd10aa0d5 /wait4ncv.diff | |
download | vdr-plugin-mcli-ccf6e0f9c6b0481ed13e0f4794e3fbead750f385.tar.gz vdr-plugin-mcli-ccf6e0f9c6b0481ed13e0f4794e3fbead750f385.tar.bz2 |
added vdr-plugin-mcli-0.0.1+svn20120927
Diffstat (limited to 'wait4ncv.diff')
-rw-r--r-- | wait4ncv.diff | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/wait4ncv.diff b/wait4ncv.diff new file mode 100644 index 0000000..eebcc0b --- /dev/null +++ b/wait4ncv.diff @@ -0,0 +1,61 @@ +Index: device.c +=================================================================== +--- device.c (Revision 178) ++++ device.c (Arbeitskopie) +@@ -89,6 +89,10 @@ + DELETENULL (m_PB); + } + ++bool cMcliDevice::Ready() { ++ return m_mcli ? m_mcli->Ready() : false; ++} ++ + void cMcliDevice::SetTenData (tra_t * ten) + { + if(!ten->lastseen) { +Index: device.h +=================================================================== +--- device.h (Revision 178) ++++ device.h (Arbeitskopie) +@@ -71,6 +71,7 @@ + cMcliFilters *m_filters; + cMcliDevice (void); + virtual ~ cMcliDevice (); ++ virtual bool Ready(); + void SetMcliRef(cPluginMcli *m) + { + m_mcli=m; +Index: mcli.c +=================================================================== +--- mcli.c (Revision 178) ++++ mcli.c (Arbeitskopie) +@@ -471,6 +471,17 @@ + return NULL; + } + ++bool cPluginMcli::Ready() ++{ ++ tuner_pool_t *tp; ++ for(int i=0; i<TUNER_POOL_MAX; i++) { ++ tp=m_tuner_pool+i; ++ if(tp->type != -1) ++ return true; ++ } ++ return false; ++} ++ + int cPluginMcli::TunerCountByType (const fe_type_t type) + { + int ret=0; +Index: mcli.h +=================================================================== +--- mcli.h (Revision 178) ++++ mcli.h (Arbeitskopie) +@@ -161,6 +161,7 @@ + bool TunerSatelitePositionLookup(tuner_pool_t *tp, int pos) const; + + tuner_pool_t *TunerFindByUUID (const char *uuid); ++ bool Ready(); + int TunerCountByType (const fe_type_t type); + bool TunerPoolAdd(tuner_info_t *t); + bool TunerPoolDel(tuner_pool_t *tp); |