X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d026012d8ba6198d879df68cb4bf6c92c95a633a..a52476e8ffc33c408318eabbf24fdf87e404ddaf:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 16ca40cf..8029a265 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -79,6 +79,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include extern void runMainloop(); extern void quitMainloop(int exit_code); @@ -141,6 +142,7 @@ typedef long time_t; %immutable eButton::selected; %immutable eInput::changed; %immutable eComponentScan::statusChanged; +%immutable eComponentScan::newService; %immutable pNavigation::m_event; %include @@ -182,6 +184,7 @@ typedef long time_t; %include %include %include +%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -243,4 +246,9 @@ RESULT SwigFromPython(ePtr &result, PyObject *obj) result = *res; return 0; } +PyObject *New_TestObj() +{ + TestObj *result = (TestObj *)new TestObj(); + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1); +} %}