aboutsummaryrefslogtreecommitdiff
path: root/include/apos
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos')
-rw-r--r--include/apos/power.h10
-rw-r--r--include/apos/types.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/include/apos/power.h b/include/apos/power.h
new file mode 100644
index 0000000..e0ca518
--- /dev/null
+++ b/include/apos/power.h
@@ -0,0 +1,10 @@
+#ifndef APOS_POWER_H
+#define APOS_POWER_H
+
+#include <apos/types.h>
+#include <apos/attrs.h>
+
+enum poweroff_type {SHUTDOWN, COLD_REBOOT, WARM_REBOOT};
+stat_t poweroff(enum poweroff_type type);
+
+#endif
diff --git a/include/apos/types.h b/include/apos/types.h
index 2f06ec4..01c5317 100644
--- a/include/apos/types.h
+++ b/include/apos/types.h
@@ -184,6 +184,7 @@ typedef uint_fast16_t vmflags_t;
/* negative error codes are reserved for general usage, positive error codes are
* allowed to be function-specific. */
enum {
+ ERR_MISC = -8, /* something */
ERR_NOINIT = -7, /* not initialized */
ERR_INVAL = -6, /* invalid value */
ERR_EXT = -5, /* already exists */