mirror of https://github.com/GOSTSec/sgminer
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
624 B
23 lines
624 B
#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 */ |