diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-06 23:57:33 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-12 19:57:05 +0100 |
commit | 89f4e5077bd8162dbda0e10a3bbd594c2c698d77 (patch) | |
tree | 5e1aa7b4ba59fbee99b093f3a5938bcf691fc748 /zebra/zserv.h | |
parent | zebra: add struct zmsghdr (diff) | |
download | frr-89f4e5077bd8162dbda0e10a3bbd594c2c698d77.tar.xz frr-89f4e5077bd8162dbda0e10a3bbd594c2c698d77.zip |
zebra: standardize ZAPI message handler args
A lot of the handler functions that are called directly from the ZAPI
input processing code take different argument sets where they don't need
to. These functions are called from only one place and all have the same
fundamental information available to them to do their work. There is no
need to specialize what information is passed to them; it is cleaner and
easier to understand when they all accept the same base set of
information and extract what they need inline.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index a09baeff7..74ff31bcf 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -138,6 +138,9 @@ struct zmsghdr { uint16_t command; }; +#define ZAPI_HANDLER_ARGS \ + struct zserv *client, struct zmsghdr *hdr, struct zebra_vrf *zvrf + /* Zebra instance */ struct zebra_t { /* Thread master */ |