summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/bundle.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-29 19:25:26 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-29 19:25:26 +0000
commit66760a574a1fc0ccc8a798c2900a717c134838ea (patch)
treef9c576c0e5a647914a2f9c736efd6f9359ee87db /libs/ardour/ardour/bundle.h
parent21fd76ef9a0c1856e5f91c394214e244265a0f86 (diff)
Don't display empty tabs in the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@7521 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/bundle.h')
-rw-r--r--libs/ardour/ardour/bundle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h
index 39c58ed318..975e407646 100644
--- a/libs/ardour/ardour/bundle.h
+++ b/libs/ardour/ardour/bundle.h
@@ -51,6 +51,7 @@ 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) {}
bool operator== (Channel const &o) const {
return name == o.name && type == o.type && ports == o.ports;
@@ -76,6 +77,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, PortList);
std::string channel_name (uint32_t) const;
DataType channel_type (uint32_t) const;
void set_channel_name (uint32_t, std::string const &);