diff options
author | Mark Stapp <mjs@voltanet.io> | 2019-01-10 19:50:33 +0100 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2019-01-11 14:23:39 +0100 |
commit | 1ff8a24869413fd3ab6c09327c6ade0201a4de2b (patch) | |
tree | 120db711ea73c93dacd9966fdd1b653ab47a5950 /zebra/zebra_dplane.h | |
parent | Merge pull request #3591 from donaldsharp/sharp_v6 (diff) | |
download | frr-1ff8a24869413fd3ab6c09327c6ade0201a4de2b.tar.xz frr-1ff8a24869413fd3ab6c09327c6ade0201a4de2b.zip |
zebra: return dataplane provider plugin handle
When a dataplane provider/plugin registers, return the new
handle/object - that's needed to use some provider apis
later on.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_dplane.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h index 1d23ef0f8..1c053b85b 100644 --- a/zebra/zebra_dplane.h +++ b/zebra/zebra_dplane.h @@ -258,7 +258,8 @@ enum dplane_provider_prio { /* Provider registration: ordering or priority value, callbacks, and optional - * opaque data value. + * opaque data value. If 'prov_p', return the newly-allocated provider object + * on success. */ /* Providers offer an entry-point for incoming work, called in the context of @@ -279,7 +280,8 @@ int dplane_provider_register(const char *name, int (*fp)(struct zebra_dplane_provider *), int (*fini_fp)(struct zebra_dplane_provider *, bool early), - void *data); + void *data, + struct zebra_dplane_provider **prov_p); /* Accessors for provider attributes */ const char *dplane_provider_get_name(const struct zebra_dplane_provider *prov); |