summaryrefslogtreecommitdiffstats
path: root/src/AtomReader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-25 02:02:45 +0000
committerDavid Robillard <d@drobilla.net>2015-10-25 02:02:45 +0000
commita742608df99119717590b9004d562d1bf8c76ba9 (patch)
tree58f8ad8955c1d411527109bd878a7f4fdcbdae3d /src/AtomReader.cpp
parent557f9d42641f7f602f9fec4d2f3aae50b893de6b (diff)
downloadingen-a742608df99119717590b9004d562d1bf8c76ba9.tar.gz
ingen-a742608df99119717590b9004d562d1bf8c76ba9.tar.bz2
ingen-a742608df99119717590b9004d562d1bf8c76ba9.zip
Document protocol
Fix invalid use of patch:request (use patch:sequenceNumber instead). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5781 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/AtomReader.cpp')
-rw-r--r--src/AtomReader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp
index 3b56233e..12d2f1a5 100644
--- a/src/AtomReader.cpp
+++ b/src/AtomReader.cpp
@@ -328,20 +328,20 @@ AtomReader::write(const LV2_Atom* msg)
_iface.move(*subject_path, *dest_path);
} else if (obj->body.otype == _uris.patch_Response) {
- const LV2_Atom* request = NULL;
- const LV2_Atom* body = NULL;
+ const LV2_Atom* seq = NULL;
+ const LV2_Atom* body = NULL;
lv2_atom_object_get(obj,
- (LV2_URID)_uris.patch_request, &request,
+ (LV2_URID)_uris.patch_sequenceNumber, &seq,
(LV2_URID)_uris.patch_body, &body,
0);
- if (!request || request->type != _uris.atom_Int) {
- _log.warn("Response message has no request\n");
+ if (!seq || seq->type != _uris.atom_Int) {
+ _log.warn("Response message has no sequence number\n");
return false;
} else if (!body || body->type != _uris.atom_Int) {
_log.warn("Response message body is not integer\n");
return false;
}
- _iface.response(((const LV2_Atom_Int*)request)->body,
+ _iface.response(((const LV2_Atom_Int*)seq)->body,
(Ingen::Status)((const LV2_Atom_Int*)body)->body,
subject_uri ? subject_uri->c_str() : "");
} else {