]>
Commit | Line | Data |
---|---|---|
cc73685d CB |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | ||
f1a4a029 ÇO |
3 | #ifndef __LXC_STATE_H |
4 | #define __LXC_STATE_H | |
0ad19a3f | 5 | |
d47ff01b CB |
6 | #define MAX_STATE_LENGTH (8 + 1) |
7 | ||
0ad19a3f | 8 | typedef enum { |
dbc9832d CB |
9 | STOPPED, |
10 | STARTING, | |
11 | RUNNING, | |
12 | STOPPING, | |
13 | ABORTING, | |
14 | FREEZING, | |
15 | FROZEN, | |
16 | THAWED, | |
17 | MAX_STATE, | |
0ad19a3f | 18 | } lxc_state_t; |
19 | ||
80308d07 CB |
20 | enum { |
21 | REBOOT_NONE, | |
22 | REBOOT_REQ, | |
23 | REBOOT_INIT | |
24 | }; | |
25 | ||
13f5be62 | 26 | extern lxc_state_t lxc_getstate(const char *name, const char *lxcpath); |
0ad19a3f | 27 | |
28 | extern lxc_state_t lxc_str2state(const char *state); | |
29 | extern const char *lxc_state2str(lxc_state_t state); | |
67e571de | 30 | extern int lxc_wait(const char *lxcname, const char *states, int timeout, const char *lxcpath); |
0ad19a3f | 31 | |
32 | #endif |