summaryrefslogtreecommitdiff
path: root/src/packages.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-10 00:28:29 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-10 00:28:29 +0200
commit1cf5a0c07ab657adb938191ab3be788763885994 (patch)
tree36c2509bc0d9f419700c27529a793f3c5afc3f84 /src/packages.hh
parentea432e0707cd9e9e0c4f60628ea096766105e11b (diff)
Add "--tpp" option to tp-monitor to write TPP files instead of text
Diffstat (limited to 'src/packages.hh')
-rw-r--r--src/packages.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/packages.hh b/src/packages.hh
index f696212..682a75b 100644
--- a/src/packages.hh
+++ b/src/packages.hh
@@ -11,7 +11,10 @@ public:
static PackagesWriter* create(std::ostream* out);
- virtual void write(Package const& package, std::string const& data) = 0;
+ virtual void write(Package const& package, char const* data, size_t size) = 0;
+ void write(Package const& package, std::string const& data) {
+ write(package, data.data(), data.size());
+ }
virtual void flush() = 0;
protected: