From d74be53af36f7005a29385015fd3d0a4f21014b5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 9 Dec 2006 14:31:28 +0000 Subject: [PATCH] make PMT events enum accessible in python --- lib/dvb/pmt.h | 16 ++++++++++++++-- lib/python/enigma_python.i | 2 ++ 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 #include #include @@ -44,8 +45,11 @@ public: void buildCAPMT(eTable *ptr); }; +#endif + class eDVBServicePMTHandler: public Object { +#ifndef SWIG friend class eDVBCAService; eServiceReferenceDVB m_reference; ePtr 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 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 #include #include +#include #include #include #include @@ -213,6 +214,7 @@ typedef long time_t; %include %include %include +%include %include %include %include -- 2.30.2