summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-23 04:10:54 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-23 04:50:25 +0200
commitd8647095529884ad1d15e4966eb9cd69f5edb66c (patch)
tree70e4f813a0e2f47ad9c05ed950e573372e19cdd2 /zebra/zserv.h
parentzebra: use hooks for client lifecycle callbacks (diff)
downloadfrr-d8647095529884ad1d15e4966eb9cd69f5edb66c.tar.xz
frr-d8647095529884ad1d15e4966eb9cd69f5edb66c.zip
zebra: cleanup for zapi_msg.c split
* Rename client_connect and client_close hooks to zapi_client_connect and zapi_client_close * Remove some more unnecessary headers * Fix a copy-paste error in zapi_msg.[ch] header comments * Fix an inclusion comment in zserv.c Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index b3f3cce7e..05262490d 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -23,6 +23,7 @@
#ifndef _ZEBRA_ZSERV_H
#define _ZEBRA_ZSERV_H
+/* clang-format off */
#include <stdint.h> /* for uint32_t, uint8_t */
#include <time.h> /* for time_t */
@@ -37,6 +38,7 @@
#include "lib/hook.h" /* for DECLARE_HOOK, DECLARE_KOOH */
#include "zebra/zebra_vrf.h" /* for zebra_vrf */
+/* clang-format on */
/* Default port information. */
#define ZEBRA_VTY_PORT 2601
@@ -143,8 +145,8 @@ struct zserv {
struct zebra_vrf *zvrf
/* Hooks for client connect / disconnect */
-DECLARE_HOOK(client_connect, (struct zserv *client), (client));
-DECLARE_KOOH(client_close, (struct zserv *client), (client));
+DECLARE_HOOK(zapi_client_connect, (struct zserv * client), (client));
+DECLARE_KOOH(zapi_client_close, (struct zserv * client), (client));
/* Zebra instance */
struct zebra_t {