summaryrefslogtreecommitdiffstats
path: root/src/Driver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Driver.hpp')
-rw-r--r--src/Driver.hpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/Driver.hpp b/src/Driver.hpp
index 1c62697..da11765 100644
--- a/src/Driver.hpp
+++ b/src/Driver.hpp
@@ -30,40 +30,40 @@ struct PortID;
class Driver
{
public:
- using EventSink = std::function<void(const Event&)>;
+ using EventSink = std::function<void(const Event&)>;
- explicit Driver(EventSink emit_event)
- : _emit_event{std::move(emit_event)}
- {}
+ explicit Driver(EventSink emit_event)
+ : _emit_event{std::move(emit_event)}
+ {}
- Driver(const Driver&) = delete;
- Driver& operator=(const Driver&) = delete;
+ Driver(const Driver&) = delete;
+ Driver& operator=(const Driver&) = delete;
- Driver(Driver&&) = delete;
- Driver& operator=(Driver&&) = delete;
+ Driver(Driver&&) = delete;
+ Driver& operator=(Driver&&) = delete;
- virtual ~Driver() = default;
+ virtual ~Driver() = default;
- /// Connect to the underlying system API
- virtual void attach(bool launch_daemon) = 0;
+ /// Connect to the underlying system API
+ virtual void attach(bool launch_daemon) = 0;
- /// Disconnect from the underlying system API
- virtual void detach() = 0;
+ /// Disconnect from the underlying system API
+ virtual void detach() = 0;
- /// Return true iff the driver is active and connected to the system
- virtual bool is_attached() const = 0;
+ /// Return true iff the driver is active and connected to the system
+ virtual bool is_attached() const = 0;
- /// Send events to `sink` that describe the complete current system state
- virtual void refresh(const EventSink& sink) = 0;
+ /// Send events to `sink` that describe the complete current system state
+ virtual void refresh(const EventSink& sink) = 0;
- /// Make a connection between ports
- virtual bool connect(const PortID& tail_id, const PortID& head_id) = 0;
+ /// Make a connection between ports
+ virtual bool connect(const PortID& tail_id, const PortID& head_id) = 0;
- /// Remove a connection between ports
- virtual bool disconnect(const PortID& tail_id, const PortID& head_id) = 0;
+ /// Remove a connection between ports
+ virtual bool disconnect(const PortID& tail_id, const PortID& head_id) = 0;
protected:
- EventSink _emit_event; ///< Sink for emitting "live" events
+ EventSink _emit_event; ///< Sink for emitting "live" events
};
} // namespace patchage