generate ledger to main thread

This commit is contained in:
lnk
2025-06-26 16:44:21 +08:00
parent 4e6ba12b25
commit 747d6c757c
7 changed files with 93 additions and 81 deletions

View File

@@ -12,6 +12,8 @@
#include "nlohmann/json.hpp"
#include "../../client2.h"
///////////////////////////////////////////////////////////////////////////////////////////
class Front;
@@ -308,6 +310,9 @@ int parse_model_cfg_web();
void qvvr_test();
void Fileupload_test();
extern std::vector<terminal_dev> terminal_devlist;
extern std::mutex ledgermtx;
//////////////////////////////////////////////////////////////////////////////////cfg_parse的函数声明
void init_config();
@@ -403,6 +408,10 @@ void to_json(nlohmann::json& j, const FullObj& f);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
std::vector<DeviceInfo> GenerateDeviceInfoFromLedger(const std::vector<terminal_dev>& terminal_devlist);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#endif