]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
95c4aff2 | 2 | /* |
896014f4 DL |
3 | * Common definitions for watchfrr API socket. |
4 | * | |
5 | * Copyright (C) 2016 David Lamparter for NetDEF, Inc. | |
95c4aff2 DL |
6 | */ |
7 | ||
9473e340 DS |
8 | #ifndef FRR_WATCHFRR_H |
9 | #define FRR_WATCHFRR_H | |
95c4aff2 | 10 | |
0a7c7856 DL |
11 | #include "lib/memory.h" |
12 | ||
bf8d3d6a | 13 | DECLARE_MGROUP(WATCHFRR); |
0a7c7856 | 14 | |
a91f5417 DS |
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 | ||
9473e340 | 21 | extern void watchfrr_vty_init(void); |
95c4aff2 DL |
22 | |
23 | extern pid_t integrated_write_pid; | |
24 | extern void integrated_write_sigchld(int status); | |
af568444 DL |
25 | |
26 | struct vty; | |
27 | extern void watchfrr_status(struct vty *vty); | |
28 | ||
470bc619 QY |
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); | |
95c4aff2 | 36 | |
cc53b605 DS |
37 | extern void watchfrr_set_ignore_daemon(struct vty *vty, const char *dname, |
38 | bool ignore); | |
d62a17ae | 39 | #endif /* FRR_WATCHFRR_H */ |