mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Split listening for simulators and loading their plugins
Previously loadSimulatorPlugin was doing two things. First starting a listener and second loading the plugin itself. This was confusing since the sequence is to listen first and load not before a simulator is available. This change splits this up properly into two methods. listenForSimulator() is called when the plugin is started and as soon as a simulator is started, its plugin will be loaded. refs #909
This commit is contained in:
committed by
Mathew Sutcliffe
parent
aafe211b5c
commit
9dbb984e1a
@@ -178,14 +178,14 @@ namespace BlackCore
|
||||
//! Reads list of enabled simulators, starts listeners
|
||||
void restoreSimulatorPlugins();
|
||||
|
||||
//! Load plugin, if required start listeners before
|
||||
bool loadSimulatorPlugin(const BlackMisc::Simulation::CSimulatorPluginInfo &simulatorPluginInfo, bool withListeners);
|
||||
//! Load plugin and connect
|
||||
bool loadSimulatorPlugin(const BlackMisc::Simulation::CSimulatorPluginInfo &simulatorPluginInfo);
|
||||
|
||||
//! Unload plugin, if desired restart listeners
|
||||
void unloadSimulatorPlugin();
|
||||
|
||||
//! Listen for single simulator
|
||||
void listenForSimulator(const BlackMisc::Simulation::CSimulatorPluginInfo &simulatorInfo);
|
||||
bool listenForSimulator(const BlackMisc::Simulation::CSimulatorPluginInfo &simulatorInfo);
|
||||
|
||||
//! Listen for all simulators
|
||||
void listenForAllSimulators();
|
||||
|
||||
Reference in New Issue
Block a user