summaryrefslogtreecommitdiff
path: root/lib/systemd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-02-10 07:24:11 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-02-10 15:06:59 -0500
commitddd82ff66cd6092b1d99dcf6013b97a1620f6d53 (patch)
tree8186a685236ce2c827c0679531ab6f10b592ff39 /lib/systemd.h
parente6a59b35055cbff52915e292bd7da156aee03787 (diff)
lib: Add library code to interact with systemd
Modify the lib/ code to include the ability to interact with systemd. Provide the ability to interact with systemd's watchdog timer as well. There is no code here that actually uses this change. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/systemd.h')
-rw-r--r--lib/systemd.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/systemd.h b/lib/systemd.h
new file mode 100644
index 0000000000..aef9c8ec82
--- /dev/null
+++ b/lib/systemd.h
@@ -0,0 +1,34 @@
+/* lib/systemd Code
+ Copyright (C) 2016 Cumulus Networks, Inc.
+ Donald Sharp
+
+This file is part of Quagga.
+
+Quagga is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+Quagga is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Quagga; see the file COPYING. If not, write to the Free
+Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
+
+/*
+ * Wrapper functions to systemd calls.
+ *
+ * Design point is that if systemd is not being used on this system
+ * then these functions becomes a no-op.
+ *
+ * To turn on systemd compilation, use --enable-systemd on
+ * configure run.
+ */
+void systemd_send_information (const char *info);
+void systemd_send_stopping (void);
+void systemd_send_started (struct thread_master *);
+