fix Windows build

This commit is contained in:
SoftFever
2026-01-27 21:21:44 +08:00
parent da9f3fdf80
commit 9c21744cd1
4 changed files with 4 additions and 15 deletions

View File

@@ -205,12 +205,7 @@ int BBLPrinterAgent::set_user_selected_machine(std::string dev_id)
// ============================================================================ // ============================================================================
AgentInfo BBLPrinterAgent::get_agent_info_static() AgentInfo BBLPrinterAgent::get_agent_info_static()
{ {
return AgentInfo{ return AgentInfo{BBL_PRINTER_AGENT_ID, "Bambu Lab Printer Agent", "", "Bambu Lab printer agent"};
.id = BBL_PRINTER_AGENT_ID,
.name = "Bambu Lab Printer Agent",
.version = "",
.description = "Bambu Lab printer agent"
};
} }
// ============================================================================ // ============================================================================

View File

@@ -101,10 +101,7 @@ MoonrakerPrinterAgent::~MoonrakerPrinterAgent()
AgentInfo MoonrakerPrinterAgent::get_agent_info_static() AgentInfo MoonrakerPrinterAgent::get_agent_info_static()
{ {
return AgentInfo{.id = "moonraker", return AgentInfo{"moonraker", "Moonraker Printer Agent", MoonrakerPrinterAgent_VERSION, "Klipper/Moonraker printer agent"};
.name = "Moonraker Printer Agent",
.version = MoonrakerPrinterAgent_VERSION,
.description = "Klipper/Moonraker printer agent"};
} }
void MoonrakerPrinterAgent::set_cloud_agent(std::shared_ptr<ICloudServiceAgent> cloud) void MoonrakerPrinterAgent::set_cloud_agent(std::shared_ptr<ICloudServiceAgent> cloud)

View File

@@ -124,10 +124,7 @@ int OrcaPrinterAgent::set_user_selected_machine(std::string dev_id)
// ============================================================================ // ============================================================================
AgentInfo OrcaPrinterAgent::get_agent_info_static() AgentInfo OrcaPrinterAgent::get_agent_info_static()
{ {
return AgentInfo{.id = ORCA_PRINTER_AGENT_ID, return AgentInfo{ORCA_PRINTER_AGENT_ID, "Orca Printer Agent", OrcaPrinterAgent_VERSION, "Orca Printer Communication Protocol Agent"};
.name = "Orca Printer Agent",
.version = OrcaPrinterAgent_VERSION,
.description = "Orca Printer Communication Protocol Agent"};
} }
// ============================================================================ // ============================================================================

View File

@@ -18,7 +18,7 @@ QidiPrinterAgent::QidiPrinterAgent(std::string log_dir) : MoonrakerPrinterAgent(
AgentInfo QidiPrinterAgent::get_agent_info_static() AgentInfo QidiPrinterAgent::get_agent_info_static()
{ {
return AgentInfo{.id = "qidi", .name = "Qidi Printer Agent", .version = QidiPrinterAgent_VERSION, .description = "Qidi printer agent"}; return AgentInfo{"qidi", "Qidi Printer Agent", QidiPrinterAgent_VERSION, "Qidi printer agent"};
} }
bool QidiPrinterAgent::fetch_filament_info(std::string dev_id) bool QidiPrinterAgent::fetch_filament_info(std::string dev_id)