aboutsummaryrefslogtreecommitdiff
path: root/include/apos/power.h
blob: 640f05625460cb6103a77f27ec1e672b0517f48a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef APOS_POWER_H
#define APOS_POWER_H

/**
 * @file power.h
 * Power subsystem. Will hopefully eventually be used to restart and shutdown
 * host machines.
 */

#include <apos/types.h>
#include <apos/attrs.h>

enum poweroff_type { SHUTDOWN, COLD_REBOOT, WARM_REBOOT };
stat_t poweroff(enum poweroff_type type);

#endif