summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-12 02:40:42 +0000
committerDavid Robillard <d@drobilla.net>2012-04-12 02:40:42 +0000
commitb9ee86cf97f9ba8f6139c83f57b8d5848e7f90e4 (patch)
tree160cfb488d9016646eec3083f85b3ef68bba95e9 /src/shared
parentd19cadd40c053b1074c739caa2c65b2d2fac2941 (diff)
downloadingen-b9ee86cf97f9ba8f6139c83f57b8d5848e7f90e4.tar.gz
ingen-b9ee86cf97f9ba8f6139c83f57b8d5848e7f90e4.tar.bz2
ingen-b9ee86cf97f9ba8f6139c83f57b8d5848e7f90e4.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4172 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/AtomReader.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shared/AtomReader.cpp b/src/shared/AtomReader.cpp
index 9bb614cb..f7c5d7e4 100644
--- a/src/shared/AtomReader.cpp
+++ b/src/shared/AtomReader.cpp
@@ -42,7 +42,7 @@ AtomReader::write(const LV2_Atom* msg)
const LV2_Atom_Object* obj = (const LV2_Atom_Object*)msg;
const LV2_Atom* subject = NULL;
- lv2_object_get(obj, (LV2_URID)_uris.patch_subject, &subject, NULL);
+ lv2_atom_object_get(obj, (LV2_URID)_uris.patch_subject, &subject, NULL);
const char* subject_uri = NULL;
if (subject && subject->type == _uris.atom_URI) {
subject_uri = (const char*)LV2_ATOM_BODY(subject);
@@ -55,15 +55,14 @@ AtomReader::write(const LV2_Atom* msg)
_iface.get(subject_uri);
} else if (obj->body.otype == _uris.patch_Put) {
const LV2_Atom_Object* body = NULL;
- lv2_object_get(obj, (LV2_URID)_uris.patch_body, &body, 0);
+ lv2_atom_object_get(obj, (LV2_URID)_uris.patch_body, &body, 0);
if (!body) {
Raul::warn << "Put message has no body" << std::endl;
return;
}
Ingen::Resource::Properties props;
- LV2_OBJECT_FOREACH(body, i) {
- LV2_Atom_Property_Body* p = lv2_object_iter_get(i);
+ LV2_ATOM_OBJECT_FOREACH(body, p) {
Raul::Atom val;
if (p->value.type == _uris.atom_URID) {
const LV2_Atom_URID* urid = (const LV2_Atom_URID*)&p->value;