添加pqdif本地台账供java程序读取

This commit is contained in:
lnk
2026-07-24 11:37:50 +08:00
parent 57b4e65627
commit 54a23099a6
3 changed files with 156 additions and 0 deletions

View File

@@ -1446,6 +1446,11 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
//////////////////////////////////////////////////////////////////////////////
if (ledger_update_xml->modify_update_num || ledger_update_xml->new_update_num || ledger_update_xml->delete_update_num){
create_ledger_log(ledger_update_xml); //写入文件
if (g_node_id == PQDIF_DATA_BASE_NODE_ID) {
if (pqdif_rebuild_config_from_current_ledger() != APR_SUCCESS) {
printf("[PQDIF][CONFIG] rebuild pqdif-config.xml failed after ledger update\n");
}
}
}
}

View File

@@ -503,6 +503,7 @@ int stringToInt(const char* str, int* result);
bool isCharPtrEmpty(const char* str);
int parse_ledger_update_xml(trigger_update_xml_t* trigger_update_xml);
int update_one_terminal_ledger(terminal* update, int i,ied_t* ied,int terminal_index,int ied_take);
int pqdif_rebuild_config_from_current_ledger();
void print_trigger_update_xml(const trigger_update_xml_t* trigger_update);
char* parse_model_cfg_web_one(ied_t* ied,char* out_model);
void Set_xml_nodeinfo_one(char* dev_type);