From 093141f6eb25ded8dce095f067d6086f06bd59de Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Wed, 18 Oct 2023 13:01:13 +0200 Subject: [PATCH] remove is_dry_run and make two functions instead --- include/clap/ext/draft/configurable-audio-ports.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/clap/ext/draft/configurable-audio-ports.h b/include/clap/ext/draft/configurable-audio-ports.h index 58c382a8..8a709d9c 100644 --- a/include/clap/ext/draft/configurable-audio-ports.h +++ b/include/clap/ext/draft/configurable-audio-ports.h @@ -31,17 +31,21 @@ typedef struct clap_audio_port_configuration_request { } clap_audio_port_configuration_request_t; typedef struct clap_plugin_configurable_audio_ports { + // Returns true if the given configurations can be applied using apply_configuration(). + // [main-thread && !active] + bool(CLAP_ABI *can_apply_configuration)( + const clap_plugin_t *plugin, + const struct clap_audio_port_configuration_request *requests, + uint32_t request_count); + // Submit a bunch of configuration requests which will atomically be applied together, // or discarded together. // - // If is_dry_run is true, then checks if the configuration can be applied. - // If is_dry_run is false, then applies the configuration. // Returns true if applied. // [main-thread && !active] bool(CLAP_ABI *apply_configuration)(const clap_plugin_t *plugin, const struct clap_audio_port_configuration_request *requests, - uint32_t request_count, - bool is_dry_run); + uint32_t request_count); } clap_plugin_configurable_audio_ports_t; #ifdef __cplusplus