Skip to content

Commit bfe862b

Browse files
committed
undo fixup
1 parent 8332d66 commit bfe862b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

include/clap/ext/draft/undo.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,19 @@ extern "C" {
5151
/// capture a plugin state for the undo step.
5252

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

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

6264
// This represents the delta format version that the plugin is currently using.
63-
uint32_t format_version;
65+
// Use CLAP_INVALID_ID for invalid value.
66+
clap_id format_version;
6467
} clap_undo_delta_properties_t;
6568

6669
// Use CLAP_EXT_UNDO_DELTA.

0 commit comments

Comments
 (0)