diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-17 18:18:16 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-17 18:18:16 +0200 |
commit | 1f43878050528f8d4848742af97094bd6465576f (patch) | |
tree | 134d5929f8c75c0e2c66bc9300a6e11559cb1805 /libs/ardour/ardour/port_engine.h | |
parent | dc1102844a3fe8095e96cc1494115c29185f0f8f (diff) |
add portengine set-property API (follows jack_set_property)
Diffstat (limited to 'libs/ardour/ardour/port_engine.h')
-rw-r--r-- | libs/ardour/ardour/port_engine.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/port_engine.h b/libs/ardour/ardour/port_engine.h index 5d187062eb..a6fa2a5c84 100644 --- a/libs/ardour/ardour/port_engine.h +++ b/libs/ardour/ardour/port_engine.h @@ -138,6 +138,17 @@ class LIBARDOUR_API PortEngine { */ virtual int get_port_property (PortHandle, const std::string& key, std::string& value, std::string& type) const { return -1; } + /** Set the port-property value and type for a given key + * + * The API follows jack_set_property(): + * @param key The key of the property. + * @param value The value of the property. + * @param type The type of the property. + * + * @return 0 on success, -1 on error + */ + virtual int set_port_property (PortHandle, const std::string& key, const std::string& value, const std::string& type) { return -1; } + /** Return a reference to a port with the fullname @param name. Return * an "empty" PortHandle (analogous to a null pointer) if no such port exists. */ |