make PMT events enum accessible in python
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 9 Dec 2006 14:31:28 +0000 (14:31 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 9 Dec 2006 14:31:28 +0000 (14:31 +0000)
lib/dvb/pmt.h
lib/python/enigma_python.i

index 95d3cc43522c36fa506ce1cf8de2ff218f27d099..086619d370eade0819ec8d77a0836173b2714b37 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __lib_dvb_dvbmid_h
 #define __lib_dvb_dvbmid_h
 
+#ifndef SWIG
 #include <map>
 #include <lib/dvb/idvb.h>
 #include <lib/dvb/dvb.h>
@@ -44,8 +45,11 @@ public:
        void buildCAPMT(eTable<ProgramMapSection> *ptr);
 };
 
+#endif
+
 class eDVBServicePMTHandler: public Object
 {
+#ifndef SWIG
        friend class eDVBCAService;
        eServiceReferenceDVB m_reference;
        ePtr<eDVBService> m_service;
@@ -79,7 +83,14 @@ class eDVBServicePMTHandler: public Object
 public:
        eDVBServicePMTHandler();
        ~eDVBServicePMTHandler();
-       
+#endif
+
+#ifdef SWIG
+private:
+       eDVBServicePMTHandler();
+public:
+#endif
+
        enum
        {
                eventNoResources,  // a requested resource couldn't be allocated
@@ -93,7 +104,7 @@ public:
                eventSOF,          // seek pre start
                eventEOF,          // a file playback did end
        };
-
+#ifndef SWIG
        Signal1<void,int> serviceEvent;
 
        struct videoStream
@@ -171,6 +182,7 @@ public:
 private:
        bool m_have_cached_program;
        program m_cached_program;
+#endif
 };
 
 #endif
index b03be7b574fa61fb4af93a0fe0ac06eaef3722be..e2e40bc77996f14f9de52b2b9e73173bdd0168b8 100644 (file)
@@ -83,6 +83,7 @@ is usually caused by not marking PSignals as immutable.
 #include <lib/dvb/epgcache.h>
 #include <lib/dvb/frontendparms.h>
 #include <lib/dvb/dvbtime.h>
+#include <lib/dvb/pmt.h>
 #include <lib/driver/avswitch.h>
 #include <lib/driver/rfmod.h>
 #include <lib/driver/misc_options.h>
@@ -213,6 +214,7 @@ typedef long time_t;
 %include <lib/dvb/dvb.h>
 %include <lib/dvb/idvb.h>
 %include <lib/dvb/frontend.h>
+%include <lib/dvb/pmt.h>
 %include <lib/driver/avswitch.h>
 %include <lib/driver/rfmod.h>
 %include <lib/driver/misc_options.h>