X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6dcb75c26bbfec04b381bb99d75404f9fe50635d..726a696a8d423d9f994767f2df01e135f07fca96:/lib/service/servicefs.h diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 479718d8..d05eef19 100644 --- a/lib/service/servicefs.h +++ b/lib/service/servicefs.h @@ -27,15 +27,17 @@ DECLARE_REF(eServiceFS); private: std::string path; friend class eServiceFactoryFS; - eServiceFS(const char *path); + eServiceFS(const char *path, const char *additional_extensions=0); + std::map > m_additional_extensions; int m_list_valid; std::list m_list; + int getServiceTypeForExtension(const char *str); + int getServiceTypeForExtension(const std::string &str); public: virtual ~eServiceFS(); - + RESULT getContent(std::list &list, bool sorted=false); - RESULT getContent(SWIG_PYOBJECT(ePyObject) list, bool sorted=false); PyObject *getContent(const char *format, bool sorted=false); RESULT getNext(eServiceReference &ptr); int compareLessEqual(const eServiceReference &, const eServiceReference &);