From d01c0b28265b98fd89596622985a4034ffad18f3 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Thu, 19 Sep 2024 09:39:47 +0200 Subject: [PATCH] undo: rename to reques_undo/redo --- include/clap/ext/draft/undo.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/clap/ext/draft/undo.h b/include/clap/ext/draft/undo.h index de51391b..4c9ee28a 100644 --- a/include/clap/ext/draft/undo.h +++ b/include/clap/ext/draft/undo.h @@ -168,9 +168,13 @@ typedef struct clap_host_undo { // Note: this maybe a complex and asynchronous operation, which may complete after // this function returns. // + // Note: the host may ignore this request if there is no undo/redo step to perform, + // or if the host is unable to perform undo/redo at the time (eg: a long running + // change is going on). + // // [main-thread] - void(CLAP_ABI *undo)(const clap_host_t *host); - void(CLAP_ABI *redo)(const clap_host_t *host); + void(CLAP_ABI *request_undo)(const clap_host_t *host); + void(CLAP_ABI *request_redo)(const clap_host_t *host); // Subscribes to or unsubscribes from undo context info. //