mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
ENH: update version to 01.07.01.51
Change-Id: I073dc8bae007202c18af863ae6a0f327eb76774f Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
73c64535c7
commit
2aca9da207
3 changed files with 21 additions and 1 deletions
|
@ -105,6 +105,7 @@ func_track_enable NetworkAgent::track_enable_ptr = nullptr;
|
|||
func_track_event NetworkAgent::track_event_ptr = nullptr;
|
||||
func_track_header NetworkAgent::track_header_ptr = nullptr;
|
||||
func_track_update_property NetworkAgent::track_update_property_ptr = nullptr;
|
||||
func_track_get_property NetworkAgent::track_get_property_ptr = nullptr;
|
||||
|
||||
|
||||
NetworkAgent::NetworkAgent()
|
||||
|
@ -256,6 +257,7 @@ int NetworkAgent::initialize_network_module(bool using_backup)
|
|||
track_event_ptr = reinterpret_cast<func_track_event>(get_network_function("bambu_network_track_event"));
|
||||
track_header_ptr = reinterpret_cast<func_track_header>(get_network_function("bambu_network_track_header"));
|
||||
track_update_property_ptr = reinterpret_cast<func_track_update_property>(get_network_function("bambu_network_track_update_property"));
|
||||
track_get_property_ptr = reinterpret_cast<func_track_get_property>(get_network_function("bambu_network_track_get_property"));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -360,6 +362,7 @@ int NetworkAgent::unload_network_module()
|
|||
track_event_ptr = nullptr;
|
||||
track_header_ptr = nullptr;
|
||||
track_update_property_ptr = nullptr;
|
||||
track_get_property_ptr = nullptr;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1252,4 +1255,18 @@ int NetworkAgent::track_update_property(std::string name, std::string value, std
|
|||
return ret;
|
||||
}
|
||||
|
||||
int NetworkAgent::track_get_property(std::string name, std::string& value, std::string type)
|
||||
{
|
||||
if (!this->enable_track)
|
||||
return 0;
|
||||
|
||||
int ret = 0;
|
||||
if (network_agent && track_get_property_ptr) {
|
||||
ret = track_get_property_ptr(network_agent, name, value, type);
|
||||
if (ret)
|
||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << boost::format("error network_agnet=%1%, ret = %2%") % network_agent % ret;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
} //namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue