Use PBD::copy_file in Session::create() to copy the template file.
[ardour.git] / libs / ardour / ardour / port_set.h
index df6b20b37a6fc28f5d9f1ce732e76aa594804b61..34967831e7c7f1e18c4e18a1f8b9809b8d0065a2 100644 (file)
@@ -41,7 +41,8 @@ public:
        size_t num_ports() const;
        size_t num_ports(DataType type) const { return _ports[type.to_index()].size(); }
 
-       void add_port(Port* port);
+       void add(Port* port);
+       bool remove(Port* port);
 
        /** nth port */
        Port* port(size_t index) const;
@@ -139,10 +140,7 @@ public:
        };
 
        audio_iterator audio_begin() { return audio_iterator(*this, 0); }
-       audio_iterator audio_end()   { return audio_iterator(*this, _count.get(DataType::AUDIO)); }
-
-
-
+       audio_iterator audio_end()   { return audio_iterator(*this, _count.n_audio()); }
 
 private:       
        // Prevent copies (undefined)