summaryrefslogtreecommitdiff
path: root/src/packages.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-10 21:55:29 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-10 21:55:29 +0200
commitcc61af1e2c933f2178a5dc3e5a5599e74d380eb3 (patch)
tree80e034aeb4f4511f7ddb3cc990fb6eb942a657ab /src/packages.hh
parente3f7ecc6bdf7bbd1ae7ec10c387e15743842db90 (diff)
Add duration to packages and tpp format
Diffstat (limited to 'src/packages.hh')
-rw-r--r--src/packages.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/packages.hh b/src/packages.hh
index 682a75b..a10e0bd 100644
--- a/src/packages.hh
+++ b/src/packages.hh
@@ -11,9 +11,11 @@ public:
static PackagesWriter* create(std::ostream* out);
- 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 write(Package const& package, char const* data, size_t size,
+ struct timespec end) = 0;
+ void write(Package const& package, std::string const& data,
+ struct timespec end) {
+ write(package, data.data(), data.size(), end);
}
virtual void flush() = 0;
@@ -35,7 +37,7 @@ public:
public:
virtual ~Delegate() {}
- virtual void package(Package const& package) = 0;
+ virtual void package(Package const& package, struct timespec end) = 0;
virtual void data(uint32_t id, char const* data, size_t size,
bool last) = 0;