mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +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
|
// 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
|
// whether or not those extensions were supported as booleans to the Wine
|
||||||
// plugin host so it can expose the same interfaces there.
|
// 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 =
|
const clap::plugin::InitResponse response =
|
||||||
self->bridge_.send_main_thread_message(clap::plugin::Init{
|
self->bridge_.send_main_thread_message(clap::plugin::Init{
|
||||||
.instance_id = self->instance_id(),
|
.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
|
// This determines which extensions the host is allowed to query in
|
||||||
// `clap_plugin::get_extension()`
|
// `clap_plugin::get_extension()`
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ class clap_plugin_proxy {
|
|||||||
* The host's supported extensions. These will be populated in the
|
* The host's supported extensions. These will be populated in the
|
||||||
* `clap_plugin::init()` call.
|
* `clap_plugin::init()` call.
|
||||||
*/
|
*/
|
||||||
ClapHostExtensions extensions_;
|
ClapHostExtensions host_extensions_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ClapPluginBridge& bridge_;
|
ClapPluginBridge& bridge_;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
|
|||||||
return plugin_proxy
|
return plugin_proxy
|
||||||
.run_on_main_thread(
|
.run_on_main_thread(
|
||||||
[&, host = plugin_proxy.host_,
|
[&, host = plugin_proxy.host_,
|
||||||
audio_ports = plugin_proxy.extensions_
|
audio_ports = plugin_proxy.host_extensions_
|
||||||
.audio_ports]() {
|
.audio_ports]() {
|
||||||
return audio_ports
|
return audio_ports
|
||||||
->is_rescan_flag_supported(
|
->is_rescan_flag_supported(
|
||||||
@@ -108,7 +108,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
|
|||||||
.run_on_main_thread(
|
.run_on_main_thread(
|
||||||
[&, host = plugin_proxy.host_,
|
[&, host = plugin_proxy.host_,
|
||||||
audio_ports =
|
audio_ports =
|
||||||
plugin_proxy.extensions_.audio_ports]() {
|
plugin_proxy.host_extensions_.audio_ports]() {
|
||||||
audio_ports->rescan(host, request.flags);
|
audio_ports->rescan(host, request.flags);
|
||||||
})
|
})
|
||||||
.wait();
|
.wait();
|
||||||
@@ -125,7 +125,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
|
|||||||
return plugin_proxy
|
return plugin_proxy
|
||||||
.run_on_main_thread(
|
.run_on_main_thread(
|
||||||
[host = plugin_proxy.host_,
|
[host = plugin_proxy.host_,
|
||||||
note_ports = plugin_proxy.extensions_
|
note_ports = plugin_proxy.host_extensions_
|
||||||
.note_ports]() {
|
.note_ports]() {
|
||||||
return note_ports->supported_dialects(
|
return note_ports->supported_dialects(
|
||||||
host);
|
host);
|
||||||
@@ -141,7 +141,7 @@ ClapPluginBridge::ClapPluginBridge(const ghc::filesystem::path& plugin_path)
|
|||||||
.run_on_main_thread(
|
.run_on_main_thread(
|
||||||
[&, host = plugin_proxy.host_,
|
[&, host = plugin_proxy.host_,
|
||||||
note_ports =
|
note_ports =
|
||||||
plugin_proxy.extensions_.note_ports]() {
|
plugin_proxy.host_extensions_.note_ports]() {
|
||||||
note_ports->rescan(host, request.flags);
|
note_ports->rescan(host, request.flags);
|
||||||
})
|
})
|
||||||
.wait();
|
.wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user