summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-05-14 15:29:58 +0200
committerGitHub <noreply@github.com>2019-05-14 15:29:58 +0200
commit0396d406311e94918b48dd06a34bf4f15d76415c (patch)
treef54b97c9348059c1157c60c773b186c6531b4154 /lib/routemap.h
parent98124e2d6af38e345df373f8e0f36c0f2a7d7c6a (diff)
parent097b5973d3ff7556c953329c962d0a8a813087ae (diff)
Merge pull request #4304 from donaldsharp/route_map_switch
Route map switch
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index e43e74a633..9969936a6b 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -238,7 +238,15 @@ extern route_map_result_t route_map_apply(struct route_map *map,
extern void route_map_add_hook(void (*func)(const char *));
extern void route_map_delete_hook(void (*func)(const char *));
-extern void route_map_event_hook(void (*func)(route_map_event_t, const char *));
+
+/*
+ * This is the callback for when something has changed about a
+ * route-map. The interested parties can register to receive
+ * this data.
+ *
+ * name - Is the name of the changed route-map
+ */
+extern void route_map_event_hook(void (*func)(const char *name));
extern int route_map_mark_updated(const char *name);
extern void route_map_walk_update_list(void (*update_fn)(char *name));
extern void route_map_upd8_dependency(route_map_event_t type, const char *arg,