Move the MainContext to HostBridge

We'll use this to create a watchdog timer that shuts down the sockets
when the native host gets terminated.
This commit is contained in:
Robbert van der Helm
2021-05-01 15:06:13 +02:00
parent 564e047b4b
commit b22f207aee
6 changed files with 16 additions and 22 deletions
+5 -2
View File
@@ -18,8 +18,11 @@
#include "../editor.h"
HostBridge::HostBridge(boost::filesystem::path plugin_path)
: plugin_path(plugin_path), generic_logger(Logger::create_wine_stderr()) {}
HostBridge::HostBridge(MainContext& main_context,
boost::filesystem::path plugin_path)
: plugin_path(plugin_path),
main_context(main_context),
generic_logger(Logger::create_wine_stderr()) {}
void HostBridge::handle_win32_events() {
MSG msg;