summaryrefslogtreecommitdiff
path: root/src/basic/virt.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-27 00:07:27 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:57 +0100
commit7f4b3c5ea39957231839421f2d3a65f5a18e4083 (patch)
tree54c8575b4d090a8b136a710ee4c92873a2e9c489 /src/basic/virt.h
parent4e731273edfe852a3eee2949cd20f49fd5b4f6d7 (diff)
util-lib: move running_in_chroot() into virt.[ch]
It's a very weak kind of virtualization, after all.
Diffstat (limited to 'src/basic/virt.h')
-rw-r--r--src/basic/virt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/virt.h b/src/basic/virt.h
index 449e069901..ed83608019 100644
--- a/src/basic/virt.h
+++ b/src/basic/virt.h
@@ -67,5 +67,7 @@ int detect_vm(void);
int detect_container(void);
int detect_virtualization(void);
+int running_in_chroot(void);
+
const char *virtualization_to_string(int v) _const_;
int virtualization_from_string(const char *s) _pure_;