From dd79e76e41446833088482588456afed37231bff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Aug 2015 04:46:29 +0000 Subject: Server-side presets. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5703 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/URIs.hpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'ingen/URIs.hpp') diff --git a/ingen/URIs.hpp b/ingen/URIs.hpp index 3696aba2..a10cd30c 100644 --- a/ingen/URIs.hpp +++ b/ingen/URIs.hpp @@ -46,10 +46,21 @@ public: struct Quark : public Raul::URI { Quark(Ingen::Forge& forge, URIMap* map, const char* str); - operator LV2_URID() const { return id; } - operator Atom() const { return atom; } - uint32_t id; - Atom atom; + + operator LV2_URID() const { return urid.get(); } + operator Atom() const { return urid; } + + inline bool operator==(const Atom& rhs) const { + if (rhs.type() == urid.type()) { + return rhs == urid; + } else if (rhs.type() == uri.type()) { + return rhs == uri; + } + return false; + } + + Atom urid; + Atom uri; }; Ingen::Forge& forge; @@ -105,6 +116,7 @@ public: const Quark lv2_InputPort; const Quark lv2_OutputPort; const Quark lv2_Plugin; + const Quark lv2_appliesTo; const Quark lv2_binary; const Quark lv2_connectionOptional; const Quark lv2_default; @@ -151,10 +163,12 @@ public: const Quark patch_subject; const Quark patch_value; const Quark patch_wildcard; + const Quark pset_Preset; const Quark pset_preset; const Quark pprops_logarithmic; const Quark rdf_type; const Quark rdfs_Class; + const Quark rdfs_label; const Quark rdfs_seeAlso; const Quark rsz_minimumSize; const Quark time_Position; -- cgit v1.2.1