summaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 1ff924a..2c792ac 100644
--- a/src/main.h
+++ b/src/main.h
@@ -3,8 +3,24 @@
#include <time.h>
+enum Shutdown {
+ REBOOT = 0,
+ POWEROFF,
+ KEXEC,
+ SUSPEND,
+ SHUTDOWN_ENUM_END,
+};
+
+struct time {
+ int hour;
+ int minute;
+ enum Shutdown action;
+};
+
void main_getStatus( const char **nextAction, time_t *deadline );
struct user* main_getUser( const char *terminal );
+void main_queueAction( enum Shutdown action, int seconds );
+
#endif