From 37bab41b681f8c91644b52baad86af97653eef3e Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Fri, 22 Dec 2023 11:08:49 +0100 Subject: [PATCH] Fix typedef and doc the return value --- include/clap/factory/draft/plugin-state-converter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/clap/factory/draft/plugin-state-converter.h b/include/clap/factory/draft/plugin-state-converter.h index a1a3d21d..f9cdd816 100644 --- a/include/clap/factory/draft/plugin-state-converter.h +++ b/include/clap/factory/draft/plugin-state-converter.h @@ -20,12 +20,14 @@ typedef struct clap_plugin_state_converter { const clap_plugin_id_t *dst_plugin_id; // Converts the input state to a state usable by the destination plugin. + // Returns true on success. // [thread-safe] bool (*convert_state)(const struct clap_plugin_state_converter *converter, const clap_istream_t *src, const clap_ostream_t *dst); // Converts a normalized value. + // Returns true on success. // [thread-safe] bool (*convert_normalized_value)(const struct clap_plugin_state_converter *converter, clap_id src_param_id, @@ -34,6 +36,7 @@ typedef struct clap_plugin_state_converter { double *dst_normalized_value); // Converts a plain value. + // Returns true on success. // [thread-safe] bool (*convert_plain_value)(const struct clap_plugin_state_converter *converter, clap_id src_param_id, @@ -56,7 +59,7 @@ typedef struct clap_plugin_state_converter_factory { // [thread-safe] const clap_plugin_state_converter_t *(*get)( const struct clap_plugin_state_converter_factory *factory, uint32_t index); -} clap_clap_converter_factory_t; +} clap_plugin_state_converter_factory_t; #ifdef __cplusplus }