aboutsummaryrefslogtreecommitdiff
path: root/lib/nav
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-11-25 17:18:48 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-11-25 17:18:48 +0000
commit6dcb75c26bbfec04b381bb99d75404f9fe50635d (patch)
treeb4b0e4e7b92c2d6563a848279cb5b48e7e183f96 /lib/nav
parent26a6141301937e0ef501b4cd7ae61b4f2293b7e5 (diff)
downloadenigma2-6dcb75c26bbfec04b381bb99d75404f9fe50635d.tar.gz
enigma2-6dcb75c26bbfec04b381bb99d75404f9fe50635d.zip
python object refcount debugging code second try
Diffstat (limited to 'lib/nav')
-rw-r--r--lib/nav/core.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/nav/core.cpp b/lib/nav/core.cpp
index 7f76fa3f..a687eabe 100644
--- a/lib/nav/core.cpp
+++ b/lib/nav/core.cpp
@@ -1,6 +1,6 @@
#include <lib/nav/core.h>
#include <lib/base/eerror.h>
-#include <Python.h>
+#include <lib/python/python.h>
void eNavigation::serviceEvent(iPlayableService* service, int event)
{
@@ -99,11 +99,9 @@ RESULT eNavigation::stopRecordService(ePtr<iRecordableService> &service)
return -1;
}
-extern PyObject *New_iRecordableServicePtr(const ePtr<iRecordableService> &ref); // defined in enigma_python.i
-
PyObject *eNavigation::getRecordings(void)
{
- PyObject *result = PyList_New(m_recordings.size());
+ ePyObject result = PyList_New(m_recordings.size());
int pos=0;
for (std::map<ePtr<iRecordableService>, ePtr<eConnection> >::iterator it(m_recordings.begin()); it != m_recordings.end(); ++it)
PyList_SET_ITEM(result, pos++, New_iRecordableServicePtr(it->first));