C-API: Add yang_parse_post() as externally accessible

This commit is contained in:
Olof Hagsand 2023-01-03 21:46:46 +01:00
parent bcca87b1a0
commit ddfcb9716c
2 changed files with 3 additions and 2 deletions

View file

@ -53,6 +53,7 @@
*/
yang_stmt *yang_parse_file(FILE *fp, const char *name, yang_stmt *ysp);
yang_stmt *yang_parse_filename(const char *filename, yang_stmt *ysp);
int yang_parse_post(clicon_handle h, yang_stmt *yspec, int modmin);
int yang_spec_parse_module(clicon_handle h, const char *module,
const char *revision, yang_stmt *yspec);
yang_stmt *yang_parse_str(char *str, const char *name, yang_stmt *yspec);

View file

@ -1455,11 +1455,11 @@ yang_sort_modules(yang_stmt *yspec,
*
* @param[in] h CLICON handle
* @param[in] yspec Yang specification.
* @param[in] modmin Perform checks after this number, prior are already complete
* @param[in] modmin Perform checks after this number, prior are already complete
* @retval 0 Everything OK
* @retval -1 Error encountered
*/
static int
int
yang_parse_post(clicon_handle h,
yang_stmt *yspec,
int modmin)