summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ingen/LV2Features.hpp5
-rw-r--r--src/LV2Features.cpp6
2 files changed, 7 insertions, 4 deletions
diff --git a/include/ingen/LV2Features.hpp b/include/ingen/LV2Features.hpp
index 41bdf848..fe6fd707 100644
--- a/include/ingen/LV2Features.hpp
+++ b/include/ingen/LV2Features.hpp
@@ -59,10 +59,7 @@ public:
const char* uri() const override { return _uri; }
- std::shared_ptr<LV2_Feature> feature(World& world, Node* block) override
- {
- return nullptr;
- }
+ std::shared_ptr<LV2_Feature> feature(World& world, Node* block) override;
const char* _uri;
};
diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp
index c33ba4c4..73cc9382 100644
--- a/src/LV2Features.cpp
+++ b/src/LV2Features.cpp
@@ -31,6 +31,12 @@ LV2Features::Feature::free_feature(LV2_Feature* feature)
free(feature);
}
+std::shared_ptr<LV2_Feature>
+LV2Features::EmptyFeature::feature(World& world, Node* block)
+{
+ return std::make_shared<LV2_Feature>(LV2_Feature{_uri, nullptr});
+}
+
void
LV2Features::add_feature(const std::shared_ptr<Feature>& feature)
{