diff options
author | Simon Rettberg | 2019-05-13 14:43:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-13 14:43:35 +0200 |
commit | 6053a358dd187fd56bdd1753fbc6b8285c35cd98 (patch) | |
tree | fd263b39de63d6c3bd4dc058fcddeef2a1003d64 /src/main.h | |
parent | Initial commit (diff) | |
download | idle-daemon-6053a358dd187fd56bdd1753fbc6b8285c35cd98.tar.gz idle-daemon-6053a358dd187fd56bdd1753fbc6b8285c35cd98.tar.xz idle-daemon-6053a358dd187fd56bdd1753fbc6b8285c35cd98.zip |
Add reboot/kexec/poweroff via RPC
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |