summaryrefslogtreecommitdiffstats
path: root/ingen
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 /ingen
parenta172e76897157e5a0d2ebd3fa3f7f77ec38a5df0 (diff)
downloadingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.tar.gz
ingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.tar.bz2
ingen-e2f63c5d8e296a35c06d4a3fd522aa5224a6ad3d.zip
Fix unit test responses and ensure events succeed
Diffstat (limited to 'ingen')
-rw-r--r--ingen/AtomReader.hpp2
-rw-r--r--ingen/AtomSink.hpp6
-rw-r--r--ingen/TurtleWriter.hpp2
3 files changed, 7 insertions, 3 deletions
diff --git a/ingen/AtomReader.hpp b/ingen/AtomReader.hpp
index 7bb4b359..09aa672a 100644
--- a/ingen/AtomReader.hpp
+++ b/ingen/AtomReader.hpp
@@ -45,7 +45,7 @@ public:
static bool is_message(const URIs& uris, const LV2_Atom* msg);
- bool write(const LV2_Atom* msg);
+ bool write(const LV2_Atom* msg, int32_t default_id=0);
private:
void get_atom(const LV2_Atom* in, Atom& out);
diff --git a/ingen/AtomSink.hpp b/ingen/AtomSink.hpp
index 789b7d61..8228001e 100644
--- a/ingen/AtomSink.hpp
+++ b/ingen/AtomSink.hpp
@@ -30,9 +30,13 @@ public:
virtual ~AtomSink() {}
/** Write an Atom to the sink.
+ *
+ * @param default_id The default response ID to use if no
+ * patch:sequenceNumber property is present on the message.
+ *
* @return True on success.
*/
- virtual bool write(const LV2_Atom* msg) = 0;
+ virtual bool write(const LV2_Atom* msg, int32_t default_id=0) = 0;
};
} // namespace Ingen
diff --git a/ingen/TurtleWriter.hpp b/ingen/TurtleWriter.hpp
index 4ce10f3c..3a439b98 100644
--- a/ingen/TurtleWriter.hpp
+++ b/ingen/TurtleWriter.hpp
@@ -44,7 +44,7 @@ public:
virtual ~TurtleWriter();
/** AtomSink method which receives calls serialized to LV2 atoms. */
- bool write(const LV2_Atom* msg);
+ bool write(const LV2_Atom* msg, int32_t default_id=0);
/** Pure virtual text sink which receives calls serialized to Turtle. */
virtual size_t text_sink(const void* buf, size_t len) = 0;