diff options
author | David Robillard <d@drobilla.net> | 2007-01-07 17:51:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-07 17:51:18 +0000 |
commit | 813e0cbb39809d7cf837e6b91a75815079502f47 (patch) | |
tree | 7a01ea7c6f3959ba6c6f1ffeffa27919ddc04ba1 /src/libs/engine/Driver.h | |
parent | 99ab1c257b7456c16f82119e1faea62c61eea660 (diff) | |
download | ingen-813e0cbb39809d7cf837e6b91a75815079502f47.tar.gz ingen-813e0cbb39809d7cf837e6b91a75815079502f47.tar.bz2 ingen-813e0cbb39809d7cf837e6b91a75815079502f47.zip |
Jack MIDI port destruction.
git-svn-id: http://svn.drobilla.net/lad/ingen@240 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Driver.h')
-rw-r--r-- | src/libs/engine/Driver.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/engine/Driver.h b/src/libs/engine/Driver.h index 103c4fe6..e611eff8 100644 --- a/src/libs/engine/Driver.h +++ b/src/libs/engine/Driver.h @@ -19,6 +19,7 @@ #include <string> #include <boost/utility.hpp> +#include "raul/Path.h" namespace Ingen { @@ -40,8 +41,13 @@ public: /** Set the name of the system port */ virtual void set_name(const std::string& name) = 0; + bool is_input() { return _is_input; } + protected: - DriverPort() {} + /** is_input from the perspective outside of ingen */ + DriverPort(bool is_input) : _is_input(is_input) {} + + bool _is_input; }; @@ -72,6 +78,9 @@ public: * May return NULL if the Driver can not drive the port for some reason. */ virtual DriverPort* create_port(DuplexPort<T>* patch_port) = 0; + + virtual void add_port(DriverPort* port) = 0; + virtual DriverPort* remove_port(const Path& path) = 0; }; |