From 1f43878050528f8d4848742af97094bd6465576f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 17 Apr 2016 18:18:16 +0200 Subject: add portengine set-property API (follows jack_set_property) --- libs/ardour/ardour/port_engine.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/ardour/ardour/port_engine.h') 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. */ -- cgit v1.2.3