From 1f07948972ca1cac5854539268ca3b290b79c671 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 30 Jul 2010 02:09:39 +0000 Subject: Put Mackie surface ports into the Ardour tab of the port matrix. git-svn-id: svn://localhost/ardour2/branches/3.0@7522 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/bundle.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/bundle.h') diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index 975e407646..369b12ec9b 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -52,6 +52,9 @@ class Bundle : public PBD::ScopedConnectionList struct Channel { Channel (std::string n, DataType t) : name (n), type (t) {} Channel (std::string n, DataType t, PortList p) : name (n), type (t), ports (p) {} + Channel (std::string n, DataType t, std::string const & p) : name (n), type (t) { + ports.push_back (p); + } bool operator== (Channel const &o) const { return name == o.name && type == o.type && ports == o.ports; @@ -77,6 +80,7 @@ class Bundle : public PBD::ScopedConnectionList PortList const & channel_ports (uint32_t) const; void add_channel (std::string const &, DataType); + void add_channel (std::string const &, DataType, std::string const &); void add_channel (std::string const &, DataType, PortList); std::string channel_name (uint32_t) const; DataType channel_type (uint32_t) const; @@ -87,7 +91,7 @@ class Bundle : public PBD::ScopedConnectionList void remove_ports_from_channel (uint32_t); void remove_ports_from_channels (); bool port_attached_to_channel (uint32_t, std::string); - bool uses_port (std::string) const; + bool offers_port (std::string) const; bool offers_port_alone (std::string) const; void remove_channel (uint32_t); void remove_channels (); -- cgit v1.2.3