Scheduler: Implement new timer event API
[senf.git] / PPI / ForwardSwitch.hh
index 4d21415..2b2fa71 100644 (file)
@@ -35,18 +35,20 @@ class ForwardSwitch
     SENF_PPI_MODULE(ForwardSwitch);
 public:
 
-    connector::ActiveInput<> input;
+    connector::PassiveInput<> input;
     connector::ActiveOutput<> output;
 
     ForwardSwitch(bool state);
-
-private:
-       bool forward_;
     bool forward();
     bool forward(bool state);
-    void stopForwarding();
-    void startForwarding();
+    bool stopForwarding();
+    bool startForwarding();
+private:
+    void onRequest();
+    bool forward_;
+
 };
 
 }}} //namespaces
+#include "ForwardSwitch.cci"
 #endif /*FORWARDSWITCH_HH_*/