summaryrefslogblamecommitdiffstats
path: root/src/main.h
blob: 2c792ac731a1a5cb461570374bb52b9831530c0f (plain) (tree)
1
2
3
4
5




                 













                         



                                                                 

                                                           
      
#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 );

struct user* main_getUser( const char *terminal );

void main_queueAction( enum Shutdown action, int seconds );

#endif