diff options
Diffstat (limited to 'src/libs/engine/EventBuffer.cpp')
-rw-r--r-- | src/libs/engine/EventBuffer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/engine/EventBuffer.cpp b/src/libs/engine/EventBuffer.cpp index de15c601..9985e2b7 100644 --- a/src/libs/engine/EventBuffer.cpp +++ b/src/libs/engine/EventBuffer.cpp @@ -146,6 +146,16 @@ EventBuffer::increment() const } +/** + * \return true iff the cursor is valid (ie get_event is safe) + */ +bool +EventBuffer::is_valid() const +{ + return lv2_event_is_valid(&_iter); +} + + /** Append an event to the buffer. * * \a timestamp must be >= the latest event in the buffer, |