]> git.proxmox.com Git - mirror_frr.git/blame - lib/systemd.h
lib: fix route map generic error output
[mirror_frr.git] / lib / systemd.h
CommitLineData
ddd82ff6 1/* lib/systemd Code
896014f4
DL
2 * Copyright (C) 2016 Cumulus Networks, Inc.
3 * Donald Sharp
4 *
5 * This file is part of Quagga.
6 *
7 * Quagga is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * Quagga is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
ddd82ff6 21
5e244469
RW
22#ifdef __cplusplus
23extern "C" {
24#endif
25
ddd82ff6
DS
26/*
27 * Wrapper functions to systemd calls.
28 *
29 * Design point is that if systemd is not being used on this system
30 * then these functions becomes a no-op.
31 *
32 * To turn on systemd compilation, use --enable-systemd on
33 * configure run.
34 */
d62a17ae 35void systemd_send_stopping(void);
651415bd
DS
36
37/*
38 * master - The struct thread_master * to use to schedule ourself
39 * the_process - Should we send watchdog if we are not the requested
40 * process?
41 */
d62a17ae 42void systemd_send_started(struct thread_master *master, int the_process);
5e244469 43
b3ee8bcc
DS
44/*
45 * status - A status string to send to systemd
46 */
47void systemd_send_status(const char *status);
48
5e244469
RW
49#ifdef __cplusplus
50}
51#endif