diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ingen/client/PortModel.hpp | 5 | ||||
-rw-r--r-- | include/ingen/shared/URIs.hpp | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/ingen/client/PortModel.hpp b/include/ingen/client/PortModel.hpp index 4ba1acbc..ae4ac6d3 100644 --- a/include/ingen/client/PortModel.hpp +++ b/include/ingen/client/PortModel.hpp @@ -51,10 +51,13 @@ public: bool port_property(const Raul::URI& uri) const; - bool is_numeric() const { return ObjectModel::is_a("http://lv2plug.in/ns/lv2core#ControlPort"); } bool is_logarithmic() const { return port_property("http://drobilla.net/ns/ingen#logarithmic"); } bool is_integer() const { return port_property("http://lv2plug.in/ns/lv2core#integer"); } bool is_toggle() const { return port_property("http://lv2plug.in/ns/lv2core#toggled"); } + bool is_numeric() const { + return ObjectModel::is_a("http://lv2plug.in/ns/lv2core#ControlPort") + || ObjectModel::is_a("http://lv2plug.in/ns/ext/cv-port#CVPort"); + } bool has_context(const Raul::URI& context) const; diff --git a/include/ingen/shared/URIs.hpp b/include/ingen/shared/URIs.hpp index 94103832..405f1276 100644 --- a/include/ingen/shared/URIs.hpp +++ b/include/ingen/shared/URIs.hpp @@ -38,18 +38,19 @@ public: uint32_t id; }; - const Quark atom_AtomTransfer; const Quark atom_Bool; - const Quark atom_Float32; + const Quark atom_Float; const Quark atom_Int32; const Quark atom_MessagePort; const Quark atom_String; const Quark atom_ValuePort; const Quark atom_Vector; + const Quark atom_eventTransfer; const Quark atom_supports; const Quark ctx_audioContext; const Quark ctx_context; const Quark ctx_messageContext; + const Quark cv_CVPort; const Quark doap_name; const Quark ev_EventPort; const Quark ingen_Internal; |