From b9ee86cf97f9ba8f6139c83f57b8d5848e7f90e4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Apr 2012 02:40:42 +0000 Subject: Update for latest atom extension. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4172 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/AtomReader.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/shared') 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; -- cgit v1.2.1