feat[base]: Add toml function

1. add cfg to toml
2. add toml to cfg

Change-Id: Iab5cb8f498f8bb769a0bc90a5beca85365bc960f
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
This commit is contained in:
xiaoxu.chen 2025-07-11 16:22:27 +08:00 committed by Herman Chen
parent 9aef0ff7a7
commit 2f5e6399c3
2 changed files with 1028 additions and 54 deletions

File diff suppressed because it is too large Load diff

View file

@ -129,6 +129,11 @@ int main(int argc, char *argv[])
if (ret)
goto FILE_DONE;
ret = test_to_from(root, MPP_CFG_STR_FMT_TOML);
mpp_logi("test to / from toml string %s\n", ret ? "failed" : "success");
if (ret)
goto FILE_DONE;
FILE_DONE:
if (buf) {
munmap(buf, size);