diff options
author | David Robillard <d@drobilla.net> | 2010-10-17 01:11:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-10-17 01:11:29 +0000 |
commit | 5a1ccca68baf9e8efffe3e0297730a911617693d (patch) | |
tree | 675764eb06e152f09b1d97c317d445a8050f253a /src/engine/LV2BlobFeature.hpp | |
parent | 78f786d90943cd63eb5db761e910169990c66d93 (diff) | |
download | ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.gz ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.bz2 ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.zip |
Support current versions of LV2 atom, atom-port, and context extensions.
Working use case in this revision: lolep.parse => lolep.print (set parse input
to some string, it will be parsed, send to print as an LV2 atom, then
printed to the console by print).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2631 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/LV2BlobFeature.hpp')
-rw-r--r-- | src/engine/LV2BlobFeature.hpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/engine/LV2BlobFeature.hpp b/src/engine/LV2BlobFeature.hpp index 78ed1ac0..b071a067 100644 --- a/src/engine/LV2BlobFeature.hpp +++ b/src/engine/LV2BlobFeature.hpp @@ -25,31 +25,31 @@ namespace Ingen { struct BlobFeature : public Shared::LV2Features::Feature { BlobFeature() { LV2_Blob_Support* data = (LV2_Blob_Support*)malloc(sizeof(LV2_Blob_Support)); - data->data = NULL; - data->reference_size = sizeof(LV2_Blob*); - data->lv2_blob_new = &blob_new; - data->lv2_reference_get = &reference_get; - data->lv2_reference_copy = &reference_copy; - data->lv2_reference_reset = &reference_reset; - _feature.URI = LV2_BLOB_SUPPORT_URI; - _feature.data = data; + data->data = NULL; + data->ref_size = sizeof(LV2_Blob*); + data->blob_new = &blob_new; + data->ref_get = &ref_get; + data->ref_copy = &ref_copy; + data->ref_reset = &ref_reset; + _feature.URI = LV2_BLOB_SUPPORT_URI; + _feature.data = data; } static void blob_new(LV2_Blob_Support_Data data, - LV2_Reference* reference, - LV2_Blob_Destroy destroy_func, + LV2_Atom* reference, + LV2_Blob_Destroy destroy, uint32_t type, size_t size) {} - static LV2_Blob* reference_get(LV2_Blob_Support_Data data, - LV2_Reference* ref) { return 0; } + static LV2_Blob* ref_get(LV2_Blob_Support_Data data, + LV2_Atom* ref) { return 0; } - static void reference_copy(LV2_Blob_Support_Data data, - LV2_Reference* dst, - LV2_Reference* src) {} + static void ref_copy(LV2_Blob_Support_Data data, + LV2_Atom* dst, + LV2_Atom* src) {} - static void reference_reset(LV2_Blob_Support_Data data, - LV2_Reference* ref) {} + static void ref_reset(LV2_Blob_Support_Data data, + LV2_Atom* ref) {} SharedPtr<LV2_Feature> feature(Shared::Node*) { return SharedPtr<LV2_Feature>(&_feature, NullDeleter<LV2_Feature>); |