chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
basic/escape: merge utf8 and non-utf8 paths in cunescape_one
[elogind.git]
/
src
/
basic
/
virt.h
diff --git
a/src/basic/virt.h
b/src/basic/virt.h
index 622742dfe6fc70fd06bf2fe41baaf773c23b0167..fc518dd4f02f3e3e471f54adff948a96188afe5c 100644
(file)
--- a/
src/basic/virt.h
+++ b/
src/basic/virt.h
@@
-56,6
+56,7
@@
enum {
_VIRTUALIZATION_INVALID = -1
};
_VIRTUALIZATION_INVALID = -1
};
+#if 0 /// UNNEEDED by elogind
static inline bool VIRTUALIZATION_IS_VM(int x) {
return x >= VIRTUALIZATION_VM_FIRST && x <= VIRTUALIZATION_VM_LAST;
}
static inline bool VIRTUALIZATION_IS_VM(int x) {
return x >= VIRTUALIZATION_VM_FIRST && x <= VIRTUALIZATION_VM_LAST;
}
@@
-65,10
+66,15
@@
static inline bool VIRTUALIZATION_IS_CONTAINER(int x) {
}
int detect_vm(void);
}
int detect_vm(void);
+#endif // 0
int detect_container(void);
int detect_container(void);
-// UNNEEDED int detect_virtualization(void);
+#if 0 /// UNNEEDED by elogind
+int detect_virtualization(void);
+#endif // 0
int running_in_chroot(void);
int running_in_chroot(void);
+#if 0 /// UNNEEDED by elogind
const char *virtualization_to_string(int v) _const_;
int virtualization_from_string(const char *s) _pure_;
const char *virtualization_to_string(int v) _const_;
int virtualization_from_string(const char *s) _pure_;
+#endif // 0