summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-31 00:09:06 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-31 00:09:06 +0100
commit9a5138ce981697e243fa0de2bc2668eaa80efb76 (patch)
tree9c177496360871ecb4751ef894762d43b31a5897 /music.h
parentf1d6b1400f5192ef97f84ab4fd7ce83a60168dba (diff)
Hacked stuff to work again.
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);
};