diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 21:08:58 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 21:08:58 +0100 |
commit | 83deeeafe2e81b42ff485e4582d4c1ac00872f50 (patch) | |
tree | 324d2e8bf8ae5cf01a1c56b3496f0ecf29749928 /music.h | |
parent | 9bcf29e9ce11bbc6a421b39eded8f4eb7d94a912 (diff) |
Added a simple interface to transcoding by specifying the 'decoder' and 'encoder' query arguments.
Diffstat (limited to 'music.h')
-rw-r--r-- | music.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); }; |