summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/InputPort.hpp')
-rw-r--r--src/libs/engine/InputPort.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/engine/InputPort.hpp b/src/libs/engine/InputPort.hpp
index 1552642b..0b739f4b 100644
--- a/src/libs/engine/InputPort.hpp
+++ b/src/libs/engine/InputPort.hpp
@@ -22,6 +22,7 @@
#include <cstdlib>
#include <cassert>
#include <raul/List.hpp>
+#include <raul/SharedPtr.hpp>
#include "PortImpl.hpp"
#include "MidiBuffer.hpp"
using std::string;
@@ -50,10 +51,11 @@ public:
InputPort(NodeImpl* parent, const string& name, uint32_t index, uint32_t poly, DataType type, size_t buffer_size);
virtual ~InputPort() {}
- void add_connection(Raul::ListNode<ConnectionImpl*>* c);
- Raul::ListNode<ConnectionImpl*>* remove_connection(const OutputPort* src_port);
+ typedef Raul::List< SharedPtr<ConnectionImpl> > Connections;
+
+ void add_connection(Connections::Node* c);
+ Connections::Node* remove_connection(const OutputPort* src_port);
- typedef Raul::List<ConnectionImpl*> Connections;
const Connections& connections() { return _connections; }
void pre_process(ProcessContext& context);