add error code to on_error()
@@ -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. */
