clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 38af34b3de742b6778eb80d4020ff0e367ec9173
parent e00773ef7ebb6eec41bc3bce4fedd834eeff66db
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Thu,  3 Mar 2022 21:16:02 +0100

It is important to be able to know ahead of time if a given api is supported

Diffstat:
Minclude/clap/ext/gui.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h @@ -77,6 +77,10 @@ typedef struct clap_gui_window { // Size (width, height) is in pixels; the corresponding windowing system extension is // responsible to define if it is physical pixels or logical pixels. typedef struct clap_plugin_gui { + // Returns true if the requested gui api is supported + // [main-thread] + CLAP_NODISCARD bool (*is_api_supported)(const clap_plugin_t *plugin, uint32_t api); + // Create and allocate all resources necessary for the gui, and for the given windowing API. // After this call, the GUI is ready to be shown but it is not yet visible. // [main-thread]