]> git.proxmox.com Git - mirror_frr.git/blob - watchfrr/watchfrr.h
Merge pull request #3502 from donaldsharp/socket_to_me_baby
[mirror_frr.git] / watchfrr / watchfrr.h
1 /*
2 * Common definitions for watchfrr API socket.
3 *
4 * Copyright (C) 2016 David Lamparter for NetDEF, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef FRR_WATCHFRR_H
22 #define FRR_WATCHFRR_H
23
24 #include "lib/memory.h"
25
26 DECLARE_MGROUP(WATCHFRR)
27
28 extern void watchfrr_vty_init(void);
29
30 extern pid_t integrated_write_pid;
31 extern void integrated_write_sigchld(int status);
32
33 struct vty;
34 extern void watchfrr_status(struct vty *vty);
35
36 /*
37 * Check if all daemons we are monitoring are in the DAEMON_UP state.
38 *
39 * Returns:
40 * True if they are all DAEMON_UP, false otherwise.
41 */
42 extern bool check_all_up(void);
43
44 #endif /* FRR_WATCHFRR_H */