diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-03-02 15:42:42 -0300 |
|---|---|---|
| committer | Renato Westphal <renatowestphal@gmail.com> | 2019-03-29 11:32:33 -0300 |
| commit | 6a3fdeecf102f18afa95dbbe714d3b72f9e2a9dc (patch) | |
| tree | 7ddaeb98c413dc1b04f4cae0b86804903d33db65 /lib/if.c | |
| parent | 8f88441d717c0ded412543cceabf0ddd93ee9f09 (diff) | |
lib, ripd, ripngd: rename remaining delete northbound callbacks
PR #3622 renamed the "delete" northbound callback to "destroy" in
order to make the libfrr headers compatible with C++. This commit
renames a few functions that still use "delete" instead of "destroy"
in their names.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1309,8 +1309,8 @@ static int lib_interface_create(enum nb_event event, return NB_OK; } -static int lib_interface_delete(enum nb_event event, - const struct lyd_node *dnode) +static int lib_interface_destroy(enum nb_event event, + const struct lyd_node *dnode) { struct interface *ifp; @@ -1357,8 +1357,8 @@ static int lib_interface_description_modify(enum nb_event event, return NB_OK; } -static int lib_interface_description_delete(enum nb_event event, - const struct lyd_node *dnode) +static int lib_interface_description_destroy(enum nb_event event, + const struct lyd_node *dnode) { struct interface *ifp; @@ -1379,13 +1379,13 @@ const struct frr_yang_module_info frr_interface_info = { { .xpath = "/frr-interface:lib/interface", .cbs.create = lib_interface_create, - .cbs.destroy = lib_interface_delete, + .cbs.destroy = lib_interface_destroy, .cbs.cli_show = cli_show_interface, }, { .xpath = "/frr-interface:lib/interface/description", .cbs.modify = lib_interface_description_modify, - .cbs.destroy = lib_interface_description_delete, + .cbs.destroy = lib_interface_description_destroy, .cbs.cli_show = cli_show_interface_desc, }, { |
