aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-12-09 14:31:28 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-12-09 14:31:28 +0000
commitd74be53af36f7005a29385015fd3d0a4f21014b5 (patch)
treefba3d572bc3cdcaecaa1cb97806d659190094887
parentc49fe33f5c6a185d9350d5b63762eea447dd71a6 (diff)
downloadenigma2-d74be53af36f7005a29385015fd3d0a4f21014b5.tar.gz
enigma2-d74be53af36f7005a29385015fd3d0a4f21014b5.zip
make PMT events enum accessible in python
-rw-r--r--lib/dvb/pmt.h16
-rw-r--r--lib/python/enigma_python.i2
2 files changed, 16 insertions, 2 deletions
diff --git a/lib/dvb/pmt.h b/lib/dvb/pmt.h
index 95d3cc43..086619d3 100644
--- a/lib/dvb/pmt.h
+++ b/lib/dvb/pmt.h
@@ -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
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i
index b03be7b5..e2e40bc7 100644
--- a/lib/python/enigma_python.i
+++ b/lib/python/enigma_python.i
@@ -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>