LocateUri: new library to classify URIs in a standard way

This commit is contained in:
Max Kellermann
2015-10-22 09:29:02 +02:00
parent 1a5b66b78d
commit f072cbbba7
10 changed files with 477 additions and 189 deletions

View File

@@ -29,7 +29,9 @@ class Client;
class Database;
class Storage;
class DetachedSong;
class Path;
class Error;
struct LocatedUri;
/**
* A utility class that loads a #DetachedSong object by its URI. If
@@ -66,6 +68,8 @@ public:
}
#endif
DetachedSong *LoadSong(const LocatedUri &uri, Error &error) const;
gcc_nonnull_all
DetachedSong *LoadSong(const char *uri_utf8, Error &error) const;
@@ -74,7 +78,8 @@ private:
DetachedSong *LoadFromDatabase(const char *uri, Error &error) const;
gcc_nonnull_all
DetachedSong *LoadFile(const char *path_utf8, Error &error) const;
DetachedSong *LoadFile(const char *path_utf8, Path path_fs,
Error &error) const;
};
#endif