]> git.proxmox.com Git - mirror_frr.git/blob - staticd/static_debug.h
Merge pull request #13145 from donaldsharp/do_delete
[mirror_frr.git] / staticd / static_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Staticd debug related functions
4 * Copyright (C) 2019 Volta Networks Inc.
5 * Mark Stapp
6 */
7
8 #ifndef _STATIC_DEBUG_H
9 #define _STATIC_DEBUG_H
10
11 #include <zebra.h>
12
13 #include "lib/debug.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* staticd debugging records */
20 extern struct debug static_dbg_events;
21 extern struct debug static_dbg_route;
22 extern struct debug static_dbg_bfd;
23
24 /*
25 * Initialize staticd debugging.
26 *
27 * Installs VTY commands and registers callbacks.
28 */
29 void static_debug_init(void);
30
31 /*
32 * Print staticd debugging configuration.
33 *
34 * vty
35 * VTY to print debugging configuration to.
36 */
37 int static_config_write_debug(struct vty *vty);
38
39 /*
40 * Print staticd debugging configuration, human readable form.
41 *
42 * vty
43 * VTY to print debugging configuration to.
44 */
45 int static_debug_status_write(struct vty *vty);
46
47 /*
48 * Set debugging status.
49 *
50 * vtynode
51 * vty->node
52 *
53 * onoff
54 * Whether to turn the specified debugs on or off
55 *
56 * events
57 * Debug general internal events
58 *
59 */
60 void static_debug_set(int vtynode, bool onoff, bool events, bool route,
61 bool bfd);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* _STATIC_DEBUG_H */