| 2132 | } |
| 2133 | |
| 2134 | static bool CLAP_ABI clap_gui_create(const clap_plugin_t* const plugin, const char* const api, const bool is_floating) |
| 2135 | { |
| 2136 | for (size_t i=0; i<ARRAY_SIZE(kSupportedAPIs); ++i) |
| 2137 | { |
| 2138 | if (std::strcmp(kSupportedAPIs[i], api) == 0) |
| 2139 | { |
| 2140 | PluginCLAP* const instance = static_cast<PluginCLAP*>(plugin->plugin_data); |
| 2141 | return instance->createUI(is_floating); |
| 2142 | } |
| 2143 | } |
| 2144 | |
| 2145 | return false; |
| 2146 | } |
| 2147 | |
| 2148 | static void CLAP_ABI clap_gui_destroy(const clap_plugin_t* const plugin) |
| 2149 | { |