summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Plugin.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-29 02:03:23 +0000
committerDavid Robillard <d@drobilla.net>2011-04-29 02:03:23 +0000
commit8bc9aca63644d63de3ccccbb4752e79d3d3c7854 (patch)
tree7f8e4be2eab57edc3d422ad5a8d34c6ed6473b9d /src/server/LV2Plugin.hpp
parent77d22f06129e91f51e37c09c71c0917a0136dd7d (diff)
downloadingen-8bc9aca63644d63de3ccccbb4752e79d3d3c7854.tar.gz
ingen-8bc9aca63644d63de3ccccbb4752e79d3d3c7854.tar.bz2
ingen-8bc9aca63644d63de3ccccbb4752e79d3d3c7854.zip
Don't hide pointers behind typedefs.
Use const appropriately in API (makes it clear from the type whether objects should be freed or not). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3222 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Plugin.hpp')
-rw-r--r--src/server/LV2Plugin.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/LV2Plugin.hpp b/src/server/LV2Plugin.hpp
index 127300cf..6e25c671 100644
--- a/src/server/LV2Plugin.hpp
+++ b/src/server/LV2Plugin.hpp
@@ -61,11 +61,11 @@ public:
const std::string& library_path() const;
- LilvPlugin lilv_plugin() const { return _lilv_plugin; }
- void lilv_plugin(LilvPlugin p);
+ const LilvPlugin* lilv_plugin() const { return _lilv_plugin; }
+ void lilv_plugin(const LilvPlugin* p);
private:
- LilvPlugin _lilv_plugin;
+ const LilvPlugin* _lilv_plugin;
SharedPtr<LV2Info> _lv2_info;
};