diff --git a/CHANGELOG.md b/CHANGELOG.md index e929fb82..12d90443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,8 +33,8 @@ * CLICON_XML_CHANGELOG enables the yang changelog feature * CLICON_XML_CHANGELOG_FILE where the changelog resides -### API changes on existing features (you may need to change your code) - +* xmldb_get() removed "config" parameter: + * Change all calls to dbget from: `xmldb_get(h, db, xpath, 0|1, &xret, msd)` to `xmldb_get(h, db, xpath, &xret, msd)` * Structural change: removed datastore plugin and directory, and merged into regular clixon lib code. * The CLICON_XMLDB_PLUGIN config option is obsolete, you should remove it from your config file * All references to plugin "text.so" should be removed. diff --git a/lib/clixon/clixon_xml_map.h b/lib/clixon/clixon_xml_map.h index 5fda5af5..f4e39958 100644 --- a/lib/clixon/clixon_xml_map.h +++ b/lib/clixon/clixon_xml_map.h @@ -51,6 +51,7 @@ int xml_yang_validate_all(cxobj *xt, cbuf *cbret); int xml_yang_validate_all_top(cxobj *xt, cbuf *cbret); int xml2cvec(cxobj *xt, yang_stmt *ys, cvec **cvv0); int cvec2xml_1(cvec *cvv, char *toptag, cxobj *xp, cxobj **xt0); + int xml_diff(yang_stmt *yspec, cxobj *x0, cxobj *x1, cxobj ***first, size_t *firstlen, cxobj ***second, size_t *secondlen, diff --git a/lib/src/clixon_datastore_read.c b/lib/src/clixon_datastore_read.c index 80a6d635..afed91fe 100644 --- a/lib/src/clixon_datastore_read.c +++ b/lib/src/clixon_datastore_read.c @@ -598,7 +598,7 @@ xmldb_get1_cache(clicon_handle h, modstate_diff_t *modst) { int retval = -1; - yang_spec *yspec; + yang_stmt *yspec; cxobj *x0t = NULL; /* (cached) top of tree */ cxobj **xvec = NULL; size_t xlen;