summaryrefslogtreecommitdiff
path: root/wait4ncv.diff
blob: eebcc0ba14afdcd54bc11241d5f53fa407d412e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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);