From a95e08e48c2d1f68693609627c6d6f52c6982264 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 06:14:40 +0000 Subject: Generic simple query system for both objects and plugins. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1997 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/LADSPAPlugin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/engine/LADSPAPlugin.cpp') diff --git a/src/engine/LADSPAPlugin.cpp b/src/engine/LADSPAPlugin.cpp index 2f1a7c1f..bc1f02fd 100644 --- a/src/engine/LADSPAPlugin.cpp +++ b/src/engine/LADSPAPlugin.cpp @@ -28,6 +28,16 @@ using namespace std; namespace Ingen { +const Raul::Atom& +LADSPAPlugin::get_property(const Raul::URI& uri) const +{ + if (uri.str() == "doap:name") + return _name; + else + return ResourceImpl::get_property(uri); +} + + NodeImpl* LADSPAPlugin::instantiate(const string& name, bool polyphonic, -- cgit v1.2.1