mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b server
fix naming
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#define PUSH_UI_ITEM(item) push_ui_item(&item)
|
#define PUSH_UI_ITEM(item) push_ui_item(&item)
|
||||||
#define EXPORT_SIM(sim) \
|
#define EXPORT_SIM(sim) \
|
||||||
extern "C" Q_DECL_EXPORT Simulator_base *get_ui(Communication *com, QObject *parent) \
|
extern "C" Q_DECL_EXPORT Simulator_base *get_sim(Communication *com, QObject *parent) \
|
||||||
{ \
|
{ \
|
||||||
return new sim(com, parent); \
|
return new sim(com, parent); \
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ Simulators::Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject
|
|||||||
{
|
{
|
||||||
lib.setFileName(it.next());
|
lib.setFileName(it.next());
|
||||||
lib.load();
|
lib.load();
|
||||||
auto loaded_ui = Get_Sim(lib.resolve("get_sim"));
|
auto loaded_sim = Get_Sim(lib.resolve("get_sim"));
|
||||||
if (loaded_ui == nullptr)
|
if (loaded_sim == nullptr)
|
||||||
{
|
{
|
||||||
SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString());
|
SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto widget = loaded_ui(&m_com, this);
|
auto widget = loaded_sim(&m_com, this);
|
||||||
m_simulators.insert(std::make_pair(widget->name(), widget));
|
m_simulators.insert(std::make_pair(widget->name(), widget));
|
||||||
lib.unload();
|
lib.unload();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user