summaryrefslogtreecommitdiffstats
path: root/src/AtomReader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 17:47:37 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 12:24:57 -0400
commite2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d (patch)
tree724dc9a1945b7ffa8a286a1f1a9f0bf6b0c11332 /src/AtomReader.cpp
parenta172e76897157e5a0d2ebd3fa3f7f77ec38a5df0 (diff)
downloadingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.tar.gz
ingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.tar.bz2
ingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.zip
Fix unit test responses and ensure events succeed
Diffstat (limited to 'src/AtomReader.cpp')
-rw-r--r--src/AtomReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp
index 2d6db912..f77d8d76 100644
--- a/src/AtomReader.cpp
+++ b/src/AtomReader.cpp
@@ -124,7 +124,7 @@ AtomReader::is_message(const URIs& uris, const LV2_Atom* msg)
}
bool
-AtomReader::write(const LV2_Atom* msg)
+AtomReader::write(const LV2_Atom* msg, int32_t default_id)
{
if (msg->type != _uris.atom_Object) {
_log.warn(fmt("Unknown message type <%1%>\n")
@@ -145,7 +145,7 @@ AtomReader::write(const LV2_Atom* msg)
const int32_t seq_id = ((number && number->type == _uris.atom_Int)
? ((const LV2_Atom_Int*)number)->body
- : 0);
+ : default_id);
_iface.set_response_id(seq_id);
if (obj->body.otype == _uris.patch_Get) {