From 25593e614eb3ef6a62a603aa4704d9a4ff49364d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Nov 2024 14:59:31 -0500 Subject: Factor out jalv_write_get_message() from process callbacks --- src/process.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/process.h') diff --git a/src/process.h b/src/process.h index 366d30e..35acd24 100644 --- a/src/process.h +++ b/src/process.h @@ -5,7 +5,9 @@ #define JALV_PROCESS_H #include "attributes.h" +#include "lv2_evbuf.h" #include "types.h" +#include "urids.h" #include #include @@ -14,6 +16,15 @@ JALV_BEGIN_DECLS // Code and data used in the realtime process thread +/** + Write a patch:Get message to an event buffer. + + This is used to request an update of plugin state when it has changed or the + UI needs updating for whatever reason. +*/ +int +jalv_write_get_message(LV2_Evbuf_Iterator* iter, const JalvURIDs* urids); + /** Run the plugin for a block of frames. -- cgit v1.2.1