C-API change yang_print: print top-level and add pretty-print parameter

Test: Fix valgrind dlclose suppresion
This commit is contained in:
Olof hagsand 2022-11-24 17:34:32 +01:00
parent 05372c86fc
commit e27336e054
8 changed files with 92 additions and 40 deletions

View file

@ -742,8 +742,10 @@ clixon_xml_parse_file(FILE *fp,
* @code
* cxobj *xt = NULL;
* cxobj *xerr = NULL;
* if (clixon_xml_parse_string(str, YB_MODULE, yspec, &xt, &xerr) < 0)
* if ((ret = clixon_xml_parse_string(str, YB_MODULE, yspec, &xt, &xerr)) < 0)
* err;
* if (ret == 0)
* // use xerr
* if (xml_rootchild(xt, 0, &xt) < 0) # If you want to remove TOP
* err;
* @endcode