-
Notifications
You must be signed in to change notification settings - Fork 825
/
events.h
23 lines (20 loc) · 624 Bytes
/
events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef EVENTS_H
#define EVENTS_H
typedef struct event {
unsigned int id;
const char *event_type;
const char *runcmd;
bool reboot;
unsigned int reboot_delay;
bool quit;
const char *quit_msg;
struct event *prev, *next;
} event_t;
extern char *set_event_type(const char *event_type);
extern char *set_event_runcmd(const char *cmd);
extern char *set_event_reboot(const char *arg);
extern char *set_event_reboot_delay(const char *delay);
extern char *set_event_quit(const char *arg);
extern char *set_event_quit_message(const char *msg);
extern void event_notify(const char *event_type);
#endif /* EVENTS_H */