diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-31 00:09:06 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-31 00:09:06 +0100 |
commit | 9a5138ce981697e243fa0de2bc2668eaa80efb76 (patch) | |
tree | 9c177496360871ecb4751ef894762d43b31a5897 /music.h | |
parent | f1d6b1400f5192ef97f84ab4fd7ce83a60168dba (diff) |
Hacked stuff to work again.
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); }; |