]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/emergency-action.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / core / emergency-action.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright © 2012 Michael Olbrich
6 ***/
7
8 typedef enum EmergencyAction {
9 EMERGENCY_ACTION_NONE,
10 EMERGENCY_ACTION_REBOOT,
11 EMERGENCY_ACTION_REBOOT_FORCE,
12 EMERGENCY_ACTION_REBOOT_IMMEDIATE,
13 EMERGENCY_ACTION_POWEROFF,
14 EMERGENCY_ACTION_POWEROFF_FORCE,
15 EMERGENCY_ACTION_POWEROFF_IMMEDIATE,
16 _EMERGENCY_ACTION_MAX,
17 _EMERGENCY_ACTION_INVALID = -1
18 } EmergencyAction;
19
20 #include "macro.h"
21 #include "manager.h"
22
23 int emergency_action(Manager *m, EmergencyAction action, const char *reboot_arg, const char *reason);
24
25 const char* emergency_action_to_string(EmergencyAction i) _const_;
26 EmergencyAction emergency_action_from_string(const char *s) _pure_;