diff options
author | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-02 14:02:44 +0100 |
commit | 663a5d01b1931b97370ed8feff3ae229a9cc7ea4 (patch) | |
tree | aba74794cb45f06734bd80bbf53d79f947008e54 /src/Driver.hpp | |
parent | 1936aace80b5594078d874e9b661a9a91e461279 (diff) | |
download | patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.gz patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.tar.bz2 patchage-663a5d01b1931b97370ed8feff3ae229a9cc7ea4.zip |
Format all code with clang-format
Diffstat (limited to 'src/Driver.hpp')
-rw-r--r-- | src/Driver.hpp | 44 |
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 |