X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fport_engine.h;h=a6fa2a5c840615c2aa95ea2277a31603cc31a4b9;hb=22bddf543421f2a75a5a807009ea3e96dcb26cac;hp=5d187062eb6f8671397a22c89a76f78a043268d7;hpb=4dc63966f0872efe768dad61eb9b8785d06b92d1;p=ardour.git 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. */