aboutsummaryrefslogtreecommitdiff
path: root/src/control_connection.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-11-30 16:52:54 +0100
commit3abece6f0a7edca476ee0c493f30dda8f8bcefd5 (patch)
treee794f512a262cca92db6d0a5f9d41b6be64d9db0 /src/control_connection.hpp
parent9c2231c8fb45f32c7b1d23e14125bc58ea405e60 (diff)
downloadwanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.tar.xz
wanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.zip
core: stop ownership circles in connection
Diffstat (limited to 'src/control_connection.hpp')
-rw-r--r--src/control_connection.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control_connection.hpp b/src/control_connection.hpp
index ea2475c..679a2ff 100644
--- a/src/control_connection.hpp
+++ b/src/control_connection.hpp
@@ -40,14 +40,14 @@ struct control_connection : keyed<control_connection>, std::enable_shared_from_t
*
* @returns <code>true</code> iff. the listener was not already in the listener set
*/
- bool add(std::shared_ptr<listener> listener);
+ bool add(listener * listener);
/**
* @brief Remove the given listener from this control connection's listener set
*
* @return <code>true</code> iff. the listener was previously registered with this control connection
*/
- bool remove(std::shared_ptr<listener> listener);
+ bool remove(listener * listener);
/**
* @brief Start I/O processing for this control connection
@@ -71,7 +71,7 @@ struct control_connection : keyed<control_connection>, std::enable_shared_from_t
boost::asio::streambuf m_out{};
std::istream m_input{&m_in};
std::ostream m_output{&m_out};
- std::set<std::shared_ptr<listener>> m_listeners{};
+ std::set<listener *> m_listeners{};
bool m_running{};
};