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_*/