From 1d05994fe1d9488193f01b47e92dcf11920c8f02 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 28 Dec 2010 00:43:12 +0100 Subject: Misc changes in HTTP code. --- music.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'music.h') diff --git a/music.h b/music.h index 0e51003..45c40fb 100644 --- a/music.h +++ b/music.h @@ -1,6 +1,8 @@ #ifndef MUSIC_H #define MUSIC_H +#include "http.h" + #include #include #include @@ -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 { -- cgit v1.2.3