Skip to content

Commit

Permalink
undo fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 20, 2024
1 parent 8332d66 commit bfe862b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/clap/ext/draft/undo.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,19 @@ extern "C" {
/// capture a plugin state for the undo step.

typedef struct clap_undo_delta_properties {
// If true, then the plugin will provide deltas in host->change_made().
// If false, then all clap_undo_delta_properties's attributes become irrelevant.
// If set, then the plugin will provide deltas in host->change_made().
bool has_delta;

// If set, then the delta will be reusable in the future as long as the plugin is
// compatible with the given format_version.
// If true, then the deltas can be stored on disk and re-used in the future as long as the plugin
// is compatible with the given format_version.
//
// If false, then format_version must be set to CLAP_INVALID_ID.
bool are_deltas_persistent;

// This represents the delta format version that the plugin is currently using.
uint32_t format_version;
// Use CLAP_INVALID_ID for invalid value.
clap_id format_version;
} clap_undo_delta_properties_t;

// Use CLAP_EXT_UNDO_DELTA.
Expand Down

0 comments on commit bfe862b

Please sign in to comment.