]> git.puffer.fish Git - matthieu/frr.git/commit
lib: hooks: support priority ordering & reversing
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 8 Aug 2017 07:00:28 +0000 (09:00 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Aug 2017 11:25:41 +0000 (13:25 +0200)
commit08c4c73be6073282e73a9d7074212df39e27aa5c
tree250d8c9e53322475e88dc0d8d61db22c3874bcec
parent865f5bb8cb3baa2c8df576c6cd0af3d489e97b5f
lib: hooks: support priority ordering & reversing

Allow registering callbacks with a priority value used to order them
relative to each other.  Plus a reverse variant that just flips the
direction on priorities.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/hook.c
lib/hook.h