fix syntax error,
[enigma2.git] / lib / python / connections.cpp
1 #include <lib/python/connections.h>
2
3 PSignal::PSignal()
4 {
5         m_list = PyList_New(0);
6         Py_INCREF(m_list);
7 }
8
9 PSignal::~PSignal()
10 {
11         Py_DECREF(m_list);
12 }
13
14 void PSignal::callPython(ePyObject tuple)
15 {
16         int size = PyList_Size(m_list);
17         int i;
18         for (i=0; i<size; ++i)
19         {
20                 ePyObject b = PyList_GET_ITEM(m_list, i);
21                 ePython::call(b, tuple);
22         }
23 }
24
25 PyObject *PSignal::get()
26 {
27         Py_INCREF(m_list);
28         return m_list;
29 }