mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Rename the host extensions_ field
This commit is contained in:
@@ -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()`
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user