diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 00:43:12 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 00:43:12 +0100 |
commit | 1d05994fe1d9488193f01b47e92dcf11920c8f02 (patch) | |
tree | f4040712f6914b78004895ae6192cf2162ea0804 /music.h | |
parent | 1a8f351248c38445189a397035e8a2cb3182ea6a (diff) |
Misc changes in HTTP code.
Diffstat (limited to 'music.h')
-rw-r--r-- | music.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,8 @@ #ifndef MUSIC_H #define MUSIC_H +#include "http.h" + #include <boost/filesystem.hpp> #include <vector> #include <iostream> @@ -10,13 +12,13 @@ namespace fs = boost::filesystem; class MusicListing { public: fs::path path; - virtual void render(std::ostream& os) = 0; + virtual void render(HTTPResponse& res) = 0; }; class MusicTrack : public MusicListing { public: MusicTrack(const fs::path path); - virtual void render(std::ostream& os); + virtual void render(HTTPResponse& res); }; class MusicDirectory; @@ -29,7 +31,7 @@ class MusicDirectory : public MusicListing { MusicTracks tracks; MusicDirectory(const fs::path root); - virtual void render(std::ostream& os); + virtual void render(HTTPResponse& res); }; namespace music { |