WTP can save json now.

FossilOrigin-Name: 9670c29689c90b8e4378e10b56682028dd690d58e1a69da0f584c4c770cd2110
This commit is contained in:
7u83@mail.ru
2015-04-20 19:28:22 +00:00
parent 32fa2ae608
commit 8314c3aa98
11 changed files with 108 additions and 25 deletions

View File

@ -389,7 +389,7 @@ int mbag_tojson(char *dst, mbag_t m, struct mbag_itemdef *defs, int n)
return d-dst;
}
int tester()
int cfg_json_save()
{
struct conn * conn = get_conn();
char dst[4096];
@ -398,8 +398,7 @@ int tester()
printf("Json: %s\n",dst);
cw_save_file("cfg.save.json",dst,n);
exit(0);
cw_save_file("cfg.json",dst,n);
}