summaryrefslogtreecommitdiffstats
path: root/src/main.h
blob: 5d73e5998f87d12ace7d164602ab52fe9aef7f51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _MAIN_H_
#define _MAIN_H_

#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, int *numUsers );

struct user* main_getUser( const char *terminal );

void main_queueAction( enum Shutdown action, int seconds );

void main_warnAll( const char *message );

#endif