diff --git a/src/common/communication/common.h b/src/common/communication/common.h index 1bce69a4..7ea18191 100644 --- a/src/common/communication/common.h +++ b/src/common/communication/common.h @@ -154,7 +154,7 @@ class SocketHandler { * connections will be accepted when `connect()` gets called. This should * be set to `true` on the plugin side, and `false` on the Wine host side. * - * @see Sockets::connect + * @see Vst2Sockets::connect */ SocketHandler(boost::asio::io_context& io_context, boost::asio::local::stream_protocol::endpoint endpoint, diff --git a/src/common/communication/vst2.h b/src/common/communication/vst2.h index ba30b841..82218654 100644 --- a/src/common/communication/vst2.h +++ b/src/common/communication/vst2.h @@ -93,7 +93,7 @@ class DefaultDataConverter { * slightly differently: * * - We'll keep a single long lived socket connection. This works the exact same - * way as every other socket defined in the `Sockets` class. + * way as every other socket defined in the `Vst2Sockets` class. * - Aside from that the listening side will have a second thread asynchronously * listening for new connections on the socket endpoint. * @@ -124,7 +124,7 @@ class EventHandler { * connections will be accepted when `connect()` gets called. This should * be set to `true` on the plugin side, and `false` on the Wine host side. * - * @see Sockets::connect + * @see Vst2Sockets::connect */ EventHandler(boost::asio::io_context& io_context, boost::asio::local::stream_protocol::endpoint endpoint, @@ -448,7 +448,7 @@ class EventHandler { /** * This acceptor will be used once synchronously on the listening side - * during `Sockets::connect()`. When `EventHandler::receive_events()` is + * during `Vst2Sockets::connect()`. When `EventHandler::receive_events()` is * then called, we'll recreate the acceptor to asynchronously listen for new * incoming socket connections on `endpoint` using. This is important, * because on the case of `vst_host_callback` the acceptor is first accepts @@ -480,7 +480,7 @@ class EventHandler { * should be `std::jthread` and on the Wine side this should be `Win32Thread`. */ template -class Sockets { +class Vst2Sockets { public: /** * Sets up the sockets using the specified base directory. The sockets won't @@ -494,11 +494,11 @@ class Sockets { * connections will be accepted when `connect()` gets called. This should * be set to `true` on the plugin side, and `false` on the Wine host side. * - * @see Sockets::connect + * @see Vst2Sockets::connect */ - Sockets(boost::asio::io_context& io_context, - const boost::filesystem::path& endpoint_base_dir, - bool listen) + Vst2Sockets(boost::asio::io_context& io_context, + const boost::filesystem::path& endpoint_base_dir, + bool listen) : base_dir(endpoint_base_dir), host_vst_dispatch(io_context, (base_dir / "host_vst_dispatch.sock").string(), @@ -521,7 +521,7 @@ class Sockets { * Cleans up the directory containing the socket endpoints when yabridge * shuts down if it still exists. */ - ~Sockets() { + ~Vst2Sockets() { // Manually close all sockets so we break out of any blocking operations // that may still be active host_vst_dispatch.close(); diff --git a/src/plugin/bridges/vst2.h b/src/plugin/bridges/vst2.h index c9660d41..33faeb98 100644 --- a/src/plugin/bridges/vst2.h +++ b/src/plugin/bridges/vst2.h @@ -145,7 +145,7 @@ class Vst2PluginBridge { void log_init_message(); boost::asio::io_context io_context; - Sockets sockets; + Vst2Sockets sockets; /** * The thread that handles host callbacks. diff --git a/src/plugin/host-process.cpp b/src/plugin/host-process.cpp index cbde8679..b283450b 100644 --- a/src/plugin/host-process.cpp +++ b/src/plugin/host-process.cpp @@ -87,7 +87,7 @@ void HostProcess::async_log_pipe_lines(patched_async_pipe& pipe, IndividualHost::IndividualHost(boost::asio::io_context& io_context, Logger& logger, fs::path plugin_path, - const Sockets& sockets) + const Vst2Sockets& sockets) : HostProcess(io_context, logger), plugin_arch(find_vst_architecture(plugin_path)), host_path(find_vst_host(plugin_arch, false)), @@ -134,7 +134,7 @@ void IndividualHost::terminate() { GroupHost::GroupHost(boost::asio::io_context& io_context, Logger& logger, fs::path plugin_path, - Sockets& sockets, + Vst2Sockets& sockets, std::string group_name) : HostProcess(io_context, logger), plugin_arch(find_vst_architecture(plugin_path)), diff --git a/src/plugin/host-process.h b/src/plugin/host-process.h index 81e1889b..4130dc90 100644 --- a/src/plugin/host-process.h +++ b/src/plugin/host-process.h @@ -130,7 +130,7 @@ class IndividualHost : public HostProcess { IndividualHost(boost::asio::io_context& io_context, Logger& logger, boost::filesystem::path plugin_path, - const Sockets& sockets); + const Vst2Sockets& sockets); PluginArchitecture architecture() override; boost::filesystem::path path() override; @@ -172,7 +172,7 @@ class GroupHost : public HostProcess { GroupHost(boost::asio::io_context& io_context, Logger& logger, boost::filesystem::path plugin_path, - Sockets& socket_endpoint, + Vst2Sockets& socket_endpoint, std::string group_name); PluginArchitecture architecture() override; @@ -206,7 +206,7 @@ class GroupHost : public HostProcess { * The associated sockets for the plugin we're hosting. This is used to * terminate the plugin. */ - Sockets& sockets; + Vst2Sockets& sockets; /** * A thread that waits for the group host to have started and then ask it to diff --git a/src/wine-host/bridges/vst2.h b/src/wine-host/bridges/vst2.h index 4dc46e7d..983f9a0f 100644 --- a/src/wine-host/bridges/vst2.h +++ b/src/wine-host/bridges/vst2.h @@ -59,7 +59,7 @@ class Vst2Bridge { * @param plugin_dll_path A (Unix style) path to the VST plugin .dll file to * load. * @param endpoint_base_dir The base directory used for the socket - * endpoints. See `Sockets` for more information. + * endpoints. See `Vst2Sockets` for more information. * * @note The object has to be constructed from the same thread that calls * `main_context.run()`. @@ -189,7 +189,7 @@ class Vst2Bridge { * sockets will be closed first, and we can then safely wait for the * threads to exit. */ - Sockets sockets; + Vst2Sockets sockets; /** * The MIDI events that have been received **and processed** since the last