summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-28 00:43:12 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-28 00:43:12 +0100
commit1d05994fe1d9488193f01b47e92dcf11920c8f02 (patch)
treef4040712f6914b78004895ae6192cf2162ea0804 /music.h
parent1a8f351248c38445189a397035e8a2cb3182ea6a (diff)
Misc changes in HTTP code.
Diffstat (limited to 'music.h')
-rw-r--r--music.h8
1 files changed, 5 insertions, 3 deletions
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 <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 {