summaryrefslogtreecommitdiff
path: root/src/packages.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-10 00:01:14 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-10 00:01:14 +0200
commit099905d88b5046790c6c26842f6ad18d7a33405b (patch)
treedd8175bd865dec36e8cfec40c6c61f740cebf902 /src/packages.hh
parentbd6f48ebe79c5df764de616bec55dc284eb91210 (diff)
Make PackagesWriter streaming - you don't need to give count when creating it
Diffstat (limited to 'src/packages.hh')
-rw-r--r--src/packages.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/packages.hh b/src/packages.hh
index e646f92..f696212 100644
--- a/src/packages.hh
+++ b/src/packages.hh
@@ -9,9 +9,10 @@ class PackagesWriter {
public:
virtual ~PackagesWriter() {}
- static PackagesWriter* create(size_t count, std::ostream* out);
+ static PackagesWriter* create(std::ostream* out);
virtual void write(Package const& package, std::string const& data) = 0;
+ virtual void flush() = 0;
protected:
PackagesWriter() {}