diff options
Diffstat (limited to 'music.h')
-rw-r--r-- | music.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,6 +2,7 @@ #define MUSIC_H #include "http.h" +#include "http_connection.h" #include <boost/filesystem.hpp> #include <vector> @@ -13,13 +14,13 @@ class MusicListing { public: typedef boost::shared_ptr<MusicListing> p; fs::path path; - virtual void render(HTTPRequest& req, HTTPResponse& res) = 0; + virtual void render(HTTP::Connection::p req, HTTPResponse& res) = 0; }; class MusicTrack : public MusicListing { public: MusicTrack(const fs::path path); - virtual void render(HTTPRequest& req, HTTPResponse& res); + virtual void render(HTTP::Connection::p req, HTTPResponse& res); }; class MusicDirectory : public MusicListing { @@ -29,13 +30,13 @@ class MusicDirectory : public MusicListing { PathListings tracks; MusicDirectory(const fs::path root); - virtual void render(HTTPRequest& req, HTTPResponse& res); + virtual void render(HTTP::Connection::p req, HTTPResponse& res); }; namespace music { extern fs::path root_directory; void init(std::string root); - MusicListing::p get(const std::string path); + MusicListing::p get(const std::vector<std::string>& path); std::vector<MusicListing::p> find_artist(const std::string artist); }; |