Rename the host extensions_ field

This commit is contained in:
Robbert van der Helm
2022-09-23 20:03:51 +02:00
parent 95be79adfe
commit e0c260ba23
3 changed files with 7 additions and 7 deletions
@@ -75,12 +75,12 @@ bool CLAP_ABI clap_plugin_proxy::plugin_init(const struct clap_plugin* plugin) {
// We'll store pointers to the host's extensions vtables, and then send
// whether or not those extensions were supported as booleans to the Wine
// plugin host so it can expose the same interfaces there.
self->extensions_ = ClapHostExtensions(*self->host_);
self->host_extensions_ = ClapHostExtensions(*self->host_);
const clap::plugin::InitResponse response =
self->bridge_.send_main_thread_message(clap::plugin::Init{
.instance_id = self->instance_id(),
.supported_host_extensions = self->extensions_.supported()});
.supported_host_extensions = self->host_extensions_.supported()});
// This determines which extensions the host is allowed to query in
// `clap_plugin::get_extension()`
+1 -1
View File
@@ -177,7 +177,7 @@ class clap_plugin_proxy {
* The host's supported extensions. These will be populated in the
* `clap_plugin::init()` call.
*/
ClapHostExtensions extensions_;
ClapHostExtensions host_extensions_;
private:
ClapPluginBridge& bridge_;
+4 -4
View File
@@ -91,7 +91,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
return plugin_proxy
.run_on_main_thread(
[&, host = plugin_proxy.host_,
audio_ports = plugin_proxy.extensions_
audio_ports = plugin_proxy.host_extensions_
.audio_ports]() {
return audio_ports
->is_rescan_flag_supported(
@@ -108,7 +108,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
.run_on_main_thread(
[&, host = plugin_proxy.host_,
audio_ports =
plugin_proxy.extensions_.audio_ports]() {
plugin_proxy.host_extensions_.audio_ports]() {
audio_ports->rescan(host, request.flags);
})
.wait();
@@ -125,7 +125,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
return plugin_proxy
.run_on_main_thread(
[host = plugin_proxy.host_,
note_ports = plugin_proxy.extensions_
note_ports = plugin_proxy.host_extensions_
.note_ports]() {
return note_ports->supported_dialects(
host);
@@ -141,7 +141,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
.run_on_main_thread(
[&, host = plugin_proxy.host_,
note_ports =
plugin_proxy.extensions_.note_ports]() {
plugin_proxy.host_extensions_.note_ports]() {
note_ports->rescan(host, request.flags);
})
.wait();