diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-29 22:11:03 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-29 22:11:03 +0000 |
| commit | 0ee9e6abfea296a1edced778f5c3ccd9d3f1e67b (patch) | |
| tree | 61b2fc829278abb01c59cb3f66d9f9edb993606b /lib/python | |
| parent | ce9a39dcd70a49c1348b0ffaac61e01d4f9555e2 (diff) | |
| download | enigma2-0ee9e6abfea296a1edced778f5c3ccd9d3f1e67b.tar.gz enigma2-0ee9e6abfea296a1edced778f5c3ccd9d3f1e67b.zip | |
some changes for new service groups
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/enigma_python.i | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 21c0664a..ebe934a5 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -45,6 +45,7 @@ is usually caused by not marking PSignals as immutable. #include <lib/service/iservice.h> #include <lib/service/service.h> #include <lib/service/event.h> +#include <lib/service/servicedvb.h> #include <lib/gdi/fb.h> #include <lib/gdi/font.h> #include <lib/gdi/gpixmap.h> @@ -98,6 +99,14 @@ extern int getPrevAsciiCode(); extern int isUTF8(const std::string &); extern std::string convertUTF8DVB(const std::string &, int); extern std::string convertDVBUTF8(const unsigned char *data, int len, int table, int tsidonid); +PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore) +{ + eStaticServiceDVBBouquetInformation info; + if (info.isPlayable(bouquet_ref, ignore)) + return New_eServiceReference(info.getPlayableService()); + Py_INCREF(Py_None); + return Py_None; +} %} %feature("ref") iObject "$this->AddRef(); /* eDebug(\"AddRef (%s:%d)!\", __FILE__, __LINE__); */ " @@ -273,6 +282,7 @@ int getPrevAsciiCode(); void runMainloop(); void quitMainloop(int exit_code); eApplication *getApplication(); +PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore); %{ RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj) { |
