]> git.proxmox.com Git - mirror_frr.git/commit - lib/yang_translator.c
lib: rework the yang schema node iteration functions
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 2 Nov 2018 23:56:26 +0000 (21:56 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 26 Nov 2018 19:38:08 +0000 (17:38 -0200)
commite0ccfad220d80c1d02b327fd0ee24faf6a8d2bd4
treefcfd051fb691b38b615c3c77631dcf4e876060f5
parenta1b5f469e70333042c2a0bd7e98bc4e69f4a0237
lib: rework the yang schema node iteration functions

* Rename yang_snodes_iterate() to yang_snodes_iterate_subtree() and
  expose it in the public API.
* Rename yang_module_snodes_iterate() to yang_snodes_iterate_module().
* Rename yang_all_snodes_iterate() to yang_snodes_iterate_all().
* Make it possible to stop the iteration at any time by returning
  YANG_ITER_STOP in the iteration callbacks.
* Make the iteration callbacks accept only one user argument and not
  two.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/northbound_confd.c
lib/northbound_sysrepo.c
lib/yang.c
lib/yang.h
lib/yang_translator.c
tools/gen_northbound_callbacks.c
tools/gen_yang_deviations.c