]> git.proxmox.com Git - mirror_frr.git/blob - watchfrr/watchfrr.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / watchfrr / watchfrr.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Common definitions for watchfrr API socket.
4 *
5 * Copyright (C) 2016 David Lamparter for NetDEF, Inc.
6 */
7
8 #ifndef FRR_WATCHFRR_H
9 #define FRR_WATCHFRR_H
10
11 #include "lib/memory.h"
12
13 DECLARE_MGROUP(WATCHFRR);
14
15 /*
16 * This is the name of the pathspace we are in `-N XXX`
17 * If the default then this is NULL
18 */
19 extern const char *pathspace;
20
21 extern void watchfrr_vty_init(void);
22
23 extern pid_t integrated_write_pid;
24 extern void integrated_write_sigchld(int status);
25
26 struct vty;
27 extern void watchfrr_status(struct vty *vty);
28
29 /*
30 * Check if all daemons we are monitoring are in the DAEMON_UP state.
31 *
32 * Returns:
33 * True if they are all DAEMON_UP, false otherwise.
34 */
35 extern bool check_all_up(void);
36
37 extern void watchfrr_set_ignore_daemon(struct vty *vty, const char *dname,
38 bool ignore);
39 #endif /* FRR_WATCHFRR_H */