clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 757fdf6ee5c0d12b8dca10becfcbfee85e01a5d4
parent 02833dba07dba1b55ca5c6d12ef3b56eac9c8352
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Thu, 29 Dec 2022 21:35:41 +0100

add error code to on_error()

Diffstat:
Minclude/clap/preset-discovery.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/clap/preset-discovery.h b/include/clap/preset-discovery.h @@ -48,8 +48,12 @@ extern "C" { */ typedef const struct clap_preset_metadata_receiver { /** If there is an error reading metadata from a file this should be called with an error - * message. */ + * message. + * os_error: the operating system error, if applicable. If not applicable set it to a non-error value: + * 0 on unix and Windows. + */ void(CLAP_ABI *on_error)(const struct clap_preset_metadata_receiver *receiver, + int32_t os_error, const char *error_message); /** Marks this file as a container file meaning that it can contain other presets. */