Skip to content

Commit

Permalink
Add error message to convert_state()
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Dec 22, 2023
1 parent 37bab41 commit 40bb780
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/clap/factory/draft/plugin-state-converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ 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.
//
// error_buffer is a place holder of error_buffer_size bytes for storing a null-terminated
// error message in case of failure, which can be displayed to the user.
//
// 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);
const clap_ostream_t *dst,
char *error_buffer,
size_t error_buffer_size);

// Converts a normalized value.
// Returns true on success.
Expand Down

0 comments on commit 40bb780

Please sign in to comment.