diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-14 15:10:50 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-14 15:10:50 +0000 |
| commit | 47367fb1c159557cb3676f67172b9839531c8dc9 (patch) | |
| tree | 8fcf5ec00c058528ce2fd8113b77d4f2250cd75c /lib/service/servicefs.h | |
| parent | efc5aca651306518e6f21a6bd7cbfa1928821b60 (diff) | |
| download | enigma2-47367fb1c159557cb3676f67172b9839531c8dc9.tar.gz enigma2-47367fb1c159557cb3676f67172b9839531c8dc9.zip | |
better handling for eServiceFS file extensions
Diffstat (limited to 'lib/service/servicefs.h')
| -rw-r--r-- | lib/service/servicefs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 390757a2..d05eef19 100644 --- a/lib/service/servicefs.h +++ b/lib/service/servicefs.h @@ -27,13 +27,16 @@ 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<int, std::list<std::string> > m_additional_extensions; int m_list_valid; std::list<eServiceReference> m_list; + int getServiceTypeForExtension(const char *str); + int getServiceTypeForExtension(const std::string &str); public: virtual ~eServiceFS(); - + RESULT getContent(std::list<eServiceReference> &list, bool sorted=false); PyObject *getContent(const char *format, bool sorted=false); RESULT getNext(eServiceReference &ptr); |
