]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/state.h
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / lxc / state.h
CommitLineData
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 8typedef 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
20enum {
21 REBOOT_NONE,
22 REBOOT_REQ,
23 REBOOT_INIT
24};
25
13f5be62 26extern lxc_state_t lxc_getstate(const char *name, const char *lxcpath);
0ad19a3f 27
28extern lxc_state_t lxc_str2state(const char *state);
29extern const char *lxc_state2str(lxc_state_t state);
67e571de 30extern int lxc_wait(const char *lxcname, const char *states, int timeout, const char *lxcpath);
0ad19a3f 31
32#endif