moved local_cfg, remote_cfg ... to cw_ElemData struct

This commit is contained in:
2022-07-28 01:36:16 +02:00
parent 6ac1c87b2f
commit b894c00a7e
86 changed files with 360 additions and 243 deletions

View File

@ -27,7 +27,7 @@
#include "cw/dbg.h"
#include "cfg.h"
int update =0;
int update =1;
/*
int handle_update_req(struct conn *conn, struct cw_action_in *a, uint8_t * data,
@ -167,13 +167,15 @@ int run(struct conn * conn)
if ( !cw_result_is_ok(rc))
break;
clean_cfg(conn->remote_cfg);
printf("Saving Config\n");
mavl_merge(conn->local_cfg,conn->remote_cfg);
cw_ktv_save(conn->local_cfg,"cisco.ktv");
clean_cfg(conn->remote_cfg);
/*cw_dbg(DBG_X,"We hav a message processed");*/
update=1;
do_update(conn);