From 3d93d33c8a1245351473a58229055b40fce86db1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Mar 2013 02:12:09 +0000 Subject: Explicitly support bufsz block length features (fix #893). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5102 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/LV2Features.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ingen/LV2Features.hpp') diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp index 2efd62f8..61180636 100644 --- a/ingen/LV2Features.hpp +++ b/ingen/LV2Features.hpp @@ -47,6 +47,19 @@ public: Node* block) = 0; }; + class EmptyFeature : public Feature { + public: + EmptyFeature(const char* uri) : _uri(uri) {} + + virtual const char* uri() const { return _uri; } + + virtual SPtr feature(World* world, Node* block) { + return SPtr(); + } + + const char* _uri; + }; + class FeatureArray : public Raul::Noncopyable { public: typedef std::vector< SPtr > FeatureVector; -- cgit v1.2.1