#include <lib/service/service.h>
#include <lib/base/init_num.h>
#include <lib/base/init.h>
-#include <Python.h>
+#include <lib/python/python.h>
eServiceReference::eServiceReference(const std::string &string)
{
ret += getNum(flags);
for (unsigned int i=0; i<sizeof(data)/sizeof(*data); ++i)
ret+=":"+ getNum(data[i], 0x10);
- ret+=":"+path;
+ ret+=":"+path; /* we absolutely have a problem when the path contains a ':' (for example: http://). we need an encoding here. */
if (name.length())
ret+=":"+name;
return ret;
return -1;
}
-bool iStaticServiceInformation::isPlayable(const eServiceReference &ref, const eServiceReference &ignore)
+int iStaticServiceInformation::isPlayable(const eServiceReference &ref, const eServiceReference &ignore)
{
- return true;
+ return 0;
}
RESULT iServiceInformation::getEvent(ePtr<eServiceEvent> &evt, int m_nownext)