Utils: Add unit-test and documentation for type_traits.hh
[senf.git] / PPI / ForwardSwitch.hh
index 4d21415..92bd13a 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:
+    void onRequest();  
        bool forward_;
     bool forward();
     bool forward(bool state);
-    void stopForwarding();
-    void startForwarding();
+    bool stopForwarding();
+    bool startForwarding();
 };
 
 }}} //namespaces
+#include "ForwardSwitch.cci"
 #endif /*FORWARDSWITCH_HH_*/