From 7c12c1089cfbee5b0a390d5f3de37f85de210263 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 18 Jan 2005 06:43:49 +0000 Subject: first version of PythonSignals - need to be finalized a bit, but work basically --- lib/python/enigma_python.i | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'lib/python/enigma_python.i') diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index c9dc42e4..15bc16e2 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -13,6 +13,7 @@ #include #include #include +#include %} #define DEBUG @@ -25,6 +26,8 @@ %include %template(eServiceCenterPtr) ePtr; +%immutable eButton::selected; + %include %include %include @@ -36,3 +39,33 @@ %include %include +template class PSignal0 +{ +public: + PyObject *get(); +}; + +template class PSignal1 +{ +public: + PyObject *get(); +}; + +template class PSignal2 +{ +public: + PyObject *get(); +}; + +%template(PSignal1VI) PSignal1; + +%typemap(out) PSignal1VI { + $1 = $input->get(); +} + +%template(PSignal0V) PSignal0; + +%typemap(out) PSignal0V { + $1 = $input->get(); +} + -- cgit v1.2.3