diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-08 10:50:43 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-15 13:25:44 +0200 |
commit | ce19a04aea80f45ca1da80e28bf3a1253138c691 (patch) | |
tree | c77a0afabe9f9ac0e469c65b41da391032ceb8e8 /babeld/babel_interface.c | |
parent | doc: sample code-doc in .rst+sphinx (diff) | |
download | frr-ce19a04aea80f45ca1da80e28bf3a1253138c691.tar.xz frr-ce19a04aea80f45ca1da80e28bf3a1253138c691.zip |
lib: replace if_add_hook with hook_* logic
This allows modules to register their own additional hooks on interface
creation/deletion.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'babeld/babel_interface.c')
-rw-r--r-- | babeld/babel_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index 1ae33b3a2..9fa32ee6f 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -1256,8 +1256,8 @@ void babel_if_init () { /* initialize interface list */ - if_add_hook (IF_NEW_HOOK, babel_if_new_hook); - if_add_hook (IF_DELETE_HOOK, babel_if_delete_hook); + hook_register_prio(if_add, 0, babel_if_new_hook); + hook_register_prio(if_del, 0, babel_if_delete_hook); babel_enable_if = vector_init (1); |