From c7b7e6017c7088f247a910823f3a6e21a51ddaa9 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 15 Apr 2019 12:27:41 +0200 Subject: [PATCH] rtp: missing changes in include/ --- include/villas/hook.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/villas/hook.hpp b/include/villas/hook.hpp index 253b8784c..073a63c09 100644 --- a/include/villas/hook.hpp +++ b/include/villas/hook.hpp @@ -147,6 +147,20 @@ public: virtual void setRate(double rate, double maxRate = -1) = 0; + void parse() + { + assert(state == STATE_INITIALIZED); + + state = STATE_PARSED; + } + + void init() + { + parse(); + check(); + prepare(); + start(); + } }; class HookFactory : public plugin::Plugin {