From e2bbf175a2184bd76f6c54ccf8456babeb1a46fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Apr 2024 15:16:35 +0200 Subject: Adding upstream version 9.1. Signed-off-by: Daniel Baumann --- watchfrr/watchfrr.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 watchfrr/watchfrr.h (limited to 'watchfrr/watchfrr.h') diff --git a/watchfrr/watchfrr.h b/watchfrr/watchfrr.h new file mode 100644 index 0000000..ed915fe --- /dev/null +++ b/watchfrr/watchfrr.h @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Common definitions for watchfrr API socket. + * + * Copyright (C) 2016 David Lamparter for NetDEF, Inc. + */ + +#ifndef FRR_WATCHFRR_H +#define FRR_WATCHFRR_H + +#include "lib/memory.h" + +DECLARE_MGROUP(WATCHFRR); + +/* + * This is the name of the pathspace we are in `-N XXX` + * If the default then this is NULL + */ +extern const char *pathspace; + +extern void watchfrr_vty_init(void); + +extern pid_t integrated_write_pid; +extern void integrated_write_sigchld(int status); + +struct vty; +extern void watchfrr_status(struct vty *vty); + +/* + * Check if all daemons we are monitoring are in the DAEMON_UP state. + * + * Returns: + * True if they are all DAEMON_UP, false otherwise. + */ +extern bool check_all_up(void); + +extern void watchfrr_set_ignore_daemon(struct vty *vty, const char *dname, + bool ignore); +#endif /* FRR_WATCHFRR_H */ -- cgit v1.2.3