remove Glib::ustring from libardour; allow any characters except '/' and '\' in paths...
[ardour.git] / libs / ardour / bundle.cc
index 9878437ff88bd956e95274a731939add64bc019f..6037bfc7e920a20ff86ff2a0e1f98d8f6fa26e32 100644 (file)
@@ -165,6 +165,30 @@ Bundle::add_channel (std::string const & n, DataType t)
        emit_changed (ConfigurationChanged);
 }
 
+/** @param n Channel name */
+void
+Bundle::add_channel (std::string const & n, DataType t, PortList p)
+{
+       {
+               Glib::Mutex::Lock lm (_channel_mutex);
+               _channel.push_back (Channel (n, t, p));
+       }
+
+       emit_changed (ConfigurationChanged);
+}
+
+/** @param n Channel name */
+void
+Bundle::add_channel (std::string const & n, DataType t, std::string const & p)
+{
+       {
+               Glib::Mutex::Lock lm (_channel_mutex);
+               _channel.push_back (Channel (n, t, p));
+       }
+
+       emit_changed (ConfigurationChanged);
+}
+
 bool
 Bundle::port_attached_to_channel (uint32_t ch, std::string portname)
 {
@@ -199,7 +223,7 @@ Bundle::remove_channels ()
  *  @return true if any channel is associated with p.
  */
 bool
-Bundle::uses_port (std::string p) const
+Bundle::offers_port (std::string p) const
 {
        Glib::Mutex::Lock lm (_channel_mutex);
 
@@ -471,3 +495,4 @@ Bundle::channel_type (uint32_t c) const
        Glib::Mutex::Lock lm (_channel_mutex);
        return _channel[c].type;
 }      
+