summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
Diffstat (limited to 'music.h')
-rw-r--r--music.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/music.h b/music.h
index effc32c..fe3ca4a 100644
--- a/music.h
+++ b/music.h
@@ -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);
};