Skip to content

Commit

Permalink
rename to set_context_info_subscription()
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Apr 24, 2024
1 parent 9b58efd commit 1dcc744
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 @@ -144,15 +144,18 @@ typedef struct clap_host_undo {
void(CLAP_ABI *redo)(const clap_host_t *host);

// Subscribes to or unsubscribes from undo context info.
// The plugin may only need the context info if its GUI is shown and it wants to display
// undo/redo info.
//
// This method helps reducing the number of calls the host has to perform when updating
// the undo context info. Consider a large project with 1000+ plugins, we don't want to
// call 1000+ times update, while the plugin may only need the context info if its GUI
// is shown and it wants to display undo/redo info.
//
// Initial state is unsubscribed.
//
// wants_info: set to true to receive context info
// is_subscribed: set to true to receive context info
//
// [main-thread]
void(CLAP_ABI *set_wants_context_info)(const clap_host_t *host, bool wants_info);
void(CLAP_ABI *set_context_info_subscription)(const clap_host_t *host, bool is_subscribed);
} clap_host_undo_t;

#ifdef __cplusplus
Expand Down

0 comments on commit 1dcc744

Please sign in to comment.