+template<class R> class PSignal0
+{
+public:
+ PyObject *get();
+};
+
+%template(PSignal0V) PSignal0<void>;
+
+%typemap(out) PSignal0V {
+ $1 = $input->get();
+}
+
+template<class R, class P0> class PSignal1
+{
+public:
+ PyObject *get();
+};
+
+%template(PSignal1VI) PSignal1<void,int>;
+%template(PSignal1VS) PSignal1<void,const char *c>;
+
+%typemap(out) PSignal1VI {
+ $1 = $input->get();
+}
+
+%typemap(out) PSignal1VS {
+ $1 = $input->get();
+}
+
+template<class R, class P0, class P1> class PSignal2
+{
+public:
+ PyObject *get();
+};
+
+/************** temp *****************/
+
+ /* need a better place for this, i agree. */
+%{
+void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement);
+%}
+void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement);
+
+/************** debug **************/
+
+int getPrevAsciiCode();
+void runMainloop();
+void quitMainloop(int exit_code);
+eApplication *getApplication();
+int isUTF8(const std::string &);
+std::string convertUTF8DVB(const std::string &, int);
+std::string convertDVBUTF8(std::string text, int table);
+%{
+
+std::string convertDVBUTF8(std::string text, int table)
+{
+ int len = text.length();
+ return convertDVBUTF8(len?(unsigned char*)text.c_str():(unsigned char*)"", len, table, 0);
+}
+
+RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
+{
+ ePtr<gPixmap> *res;
+
+ res = 0;
+ result = 0;
+ if (SWIG_Python_ConvertPtr(obj, (void **)&res, SWIGTYPE_p_ePtrTgPixmap_t, SWIG_POINTER_EXCEPTION | 0))
+ return -1;
+ if (!res)
+ return -1;
+ result = *res;
+ return 0;
+}
+PyObject *New_TestObj()
+{
+ TestObj *result = (TestObj *)new TestObj();
+ return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1);
+}
+PyObject *New_eServiceReference(const eServiceReference &ref)
+{
+ eServiceReference *result = new eServiceReference(ref);
+ return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_eServiceReference, 1);
+}
+%}