summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/LV2Plugin.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-21 15:14:53 +0000
committerDavid Robillard <d@drobilla.net>2008-01-21 15:14:53 +0000
commitd6b87aa26ef482a8952437f7472b81a2240f01fd (patch)
tree620d233b902c78413dc17ee5f921633251239695 /src/libs/engine/LV2Plugin.hpp
parent2356f96fbd6c9d70dedcd0d64bf0d72786ea36bb (diff)
downloadingen-d6b87aa26ef482a8952437f7472b81a2240f01fd.tar.gz
ingen-d6b87aa26ef482a8952437f7472b81a2240f01fd.tar.bz2
ingen-d6b87aa26ef482a8952437f7472b81a2240f01fd.zip
Work on generic LV2 events.
git-svn-id: http://svn.drobilla.net/lad/ingen@1090 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Plugin.hpp')
-rw-r--r--src/libs/engine/LV2Plugin.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libs/engine/LV2Plugin.hpp b/src/libs/engine/LV2Plugin.hpp
index 19f11732..effdefdc 100644
--- a/src/libs/engine/LV2Plugin.hpp
+++ b/src/libs/engine/LV2Plugin.hpp
@@ -31,8 +31,10 @@
#include <string>
#include <iostream>
#include <slv2/slv2.h>
+#include <raul/SharedPtr.hpp>
#include "types.hpp"
#include "PluginImpl.hpp"
+#include "LV2Info.hpp"
using std::string;
using Ingen::Shared::Plugin;
@@ -49,8 +51,9 @@ class NodeImpl;
class LV2Plugin : public PluginImpl
{
public:
- LV2Plugin(const string& uri)
+ LV2Plugin(SharedPtr<LV2Info> lv2_info, const string& uri)
: PluginImpl(Plugin::LV2, uri)
+ , _lv2_info(lv2_info)
{}
NodeImpl* instantiate(const string& name,
@@ -62,11 +65,14 @@ public:
const string symbol() const;
const string name() const;
+ SharedPtr<LV2Info> lv2_info() const { return _lv2_info; }
+
SLV2Plugin slv2_plugin() const { return _slv2_plugin; }
void slv2_plugin(SLV2Plugin p) { _slv2_plugin = p; }
private:
- SLV2Plugin _slv2_plugin;
+ SLV2Plugin _slv2_plugin;
+ SharedPtr<LV2Info> _lv2_info;
};