]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/virt.h
update TODO
[thirdparty/systemd.git] / src / shared / virt.h
CommitLineData
b52aae1d
LP
1/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
c2f1db8f 3#pragma once
b52aae1d
LP
4
5/***
6 This file is part of systemd.
7
8 Copyright 2011 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
b52aae1d
LP
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 18 Lesser General Public License for more details.
b52aae1d 19
5430f7f2 20 You should have received a copy of the GNU Lesser General Public License
b52aae1d
LP
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22***/
23
24int detect_vm(const char **id);
25int detect_container(const char **id);
26
27typedef enum Virtualization {
28 VIRTUALIZATION_NONE = 0,
29 VIRTUALIZATION_VM,
30 VIRTUALIZATION_CONTAINER,
31 _VIRTUALIZATION_MAX,
32 _VIRTUALIZATION_INVALID = -1
33} Virtualization;
34
35Virtualization detect_virtualization(const char **id);