@@ -63,8 +63,8 @@ typedef struct clap_undo_delta_properties {
63
63
uint32_t format_version ;
64
64
} clap_undo_delta_properties_t ;
65
65
66
- // Use CLAP_EXT_UNDO_DELTA
67
- // This is an optional interface, using deltas is an optimization versus making state snapshot.
66
+ // Use CLAP_EXT_UNDO_DELTA.
67
+ // This is an optional interface, using deltas is an optimization versus making a state snapshot.
68
68
typedef struct clap_plugin_undo_delta {
69
69
// Asks the plugin the delta properties.
70
70
// [main-thread]
@@ -96,12 +96,11 @@ typedef struct clap_plugin_undo_delta {
96
96
size_t delta_size );
97
97
} clap_plugin_undo_delta_t ;
98
98
99
- // Use CLAP_EXT_UNDO_CONTEXT
99
+ // Use CLAP_EXT_UNDO_CONTEXT.
100
100
// This is an optional interface, that the plugin can implement in order to know about
101
101
// the current undo context.
102
102
typedef struct clap_plugin_undo_context {
103
- // Indicate if it is currently possible to perform a redo or undo operation.
104
- // if can_* is false then it invalidates the corresponding name.
103
+ // Indicate if it is currently possible to perform an undo or redo operation.
105
104
// [main-thread & plugin-subscribed-to-undo-context]
106
105
void (CLAP_ABI * set_can_undo )(const clap_plugin_t * plugin , bool can_undo );
107
106
void (CLAP_ABI * set_can_redo )(const clap_plugin_t * plugin , bool can_redo );
@@ -113,7 +112,7 @@ typedef struct clap_plugin_undo_context {
113
112
void (CLAP_ABI * set_redo_name )(const clap_plugin_t * plugin , const char * name );
114
113
} clap_plugin_undo_context_t ;
115
114
116
- // Use CLAP_EXT_UNDO
115
+ // Use CLAP_EXT_UNDO.
117
116
typedef struct clap_host_undo {
118
117
// Begins a long running change.
119
118
// The plugin must not call this twice: there must be either a call to cancel_change() or
@@ -165,7 +164,10 @@ typedef struct clap_host_undo {
165
164
bool delta_can_undo );
166
165
167
166
// Asks the host to perform the next undo or redo step.
168
- // This operation may be asynchronous and isn't available while the host is within a change.
167
+ //
168
+ // Note: this maybe a complex and asynchronous operation, which may complete after
169
+ // this function returns.
170
+ //
169
171
// [main-thread]
170
172
void (CLAP_ABI * undo )(const clap_host_t * host );
171
173
void (CLAP_ABI * redo )(const clap_host_t * host );
0 commit comments