Skip to content

Commit d01c0b2

Browse files
committed
undo: rename to reques_undo/redo
1 parent b8c9e93 commit d01c0b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

include/clap/ext/draft/undo.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,13 @@ typedef struct clap_host_undo {
168168
// Note: this maybe a complex and asynchronous operation, which may complete after
169169
// this function returns.
170170
//
171+
// Note: the host may ignore this request if there is no undo/redo step to perform,
172+
// or if the host is unable to perform undo/redo at the time (eg: a long running
173+
// change is going on).
174+
//
171175
// [main-thread]
172-
void(CLAP_ABI *undo)(const clap_host_t *host);
173-
void(CLAP_ABI *redo)(const clap_host_t *host);
176+
void(CLAP_ABI *request_undo)(const clap_host_t *host);
177+
void(CLAP_ABI *request_redo)(const clap_host_t *host);
174178

175179
// Subscribes to or unsubscribes from undo context info.
176180
//

0 commit comments

Comments
 (0)