aboutsummaryrefslogtreecommitdiff
path: root/src/rc/broadcast.h
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-10-05 14:10:59 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-10-18 17:56:36 -0500
commit3f918161aafa61c1c2005709fda0b9bec4c412d8 (patch)
tree59599206d03d457a365c823927c6d4b190155d72 /src/rc/broadcast.h
parent710c874e6e3bc57b1561eb8f2108244bf24ed32e (diff)
openrc-shutdown: Add scheduled shutdown and the ability to cancel a shutdown
You can now schedule a shutdown for a certain time or a cpecific number of minutes into the future. When a shutdown is running, you can now cancel it with ^c from the keyboard or by running "openrc-shutdown -c" from another shell.
Diffstat (limited to 'src/rc/broadcast.h')
-rw-r--r--src/rc/broadcast.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rc/broadcast.h b/src/rc/broadcast.h
new file mode 100644
index 00000000..5f948272
--- /dev/null
+++ b/src/rc/broadcast.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2018 Sony Interactive Entertainment Inc.
+ *
+ * This file is part of OpenRC. It is subject to the license terms in
+ * the LICENSE file found in the top-level directory of this
+ * distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+ * This file may not be copied, modified, propagated, or distributed
+ * except according to the terms contained in the LICENSE file.
+ */
+
+#ifndef BROADCAST_H
+#define BROADCAST_H
+
+void broadcast(char *text);
+
+#endif