summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-28 21:08:58 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-28 21:08:58 +0100
commit83deeeafe2e81b42ff485e4582d4c1ac00872f50 (patch)
tree324d2e8bf8ae5cf01a1c56b3496f0ecf29749928 /music.h
parent9bcf29e9ce11bbc6a421b39eded8f4eb7d94a912 (diff)
Added a simple interface to transcoding by specifying the 'decoder' and 'encoder' query arguments.
Diffstat (limited to 'music.h')
-rw-r--r--music.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/music.h b/music.h
index 45c40fb..a86c6ac 100644
--- a/music.h
+++ b/music.h
@@ -12,13 +12,13 @@ namespace fs = boost::filesystem;
class MusicListing {
public:
fs::path path;
- virtual void render(HTTPResponse& res) = 0;
+ virtual void render(HTTPRequest& req, HTTPResponse& res) = 0;
};
class MusicTrack : public MusicListing {
public:
MusicTrack(const fs::path path);
- virtual void render(HTTPResponse& res);
+ virtual void render(HTTPRequest& req, HTTPResponse& res);
};
class MusicDirectory;
@@ -31,12 +31,12 @@ class MusicDirectory : public MusicListing {
MusicTracks tracks;
MusicDirectory(const fs::path root);
- virtual void render(HTTPResponse& res);
+ virtual void render(HTTPRequest& req, HTTPResponse& res);
};
namespace music {
extern MusicDirectory *root_directory;
- void init(const fs::path root);
+ void init(std::string root);
MusicListing *find(std::string path, MusicDirectory& root);
MusicListing *find(std::string path);
};