Get rid of power_off_when_done global variable.
[pintos-anon] / src / devices / shutdown.h
1 #ifndef DEVICES_SHUTDOWN_H
2 #define DEVICES_SHUTDOWN_H
3
4 #include <debug.h>
5
6 /* How to shut down when Pintos has nothing left to do. */
7 enum shutdown_type
8   {
9     SHUTDOWN_NONE,              /* Loop forever. */
10     SHUTDOWN_POWER_OFF,         /* Power off the machine (if possible). */
11     SHUTDOWN_REBOOT,            /* Reboot the machine (if possible). */
12   };
13
14 void shutdown (void);
15 void shutdown_configure (enum shutdown_type);
16 void shutdown_reboot (void) NO_RETURN;
17 void shutdown_power_off (void) NO_RETURN;
18
19 #endif /* devices/shutdown.h */