From 663a5d01b1931b97370ed8feff3ae229a9cc7ea4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Jan 2021 14:02:44 +0100 Subject: Format all code with clang-format --- src/Driver.hpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/Driver.hpp') 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; + using EventSink = std::function; - 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 -- cgit v1.2.1