gcontini
2020-03-08 75e4394d720c9cf8039a5e07110322c2b55bce8c
src/library/os/execution_environment.hpp
@@ -13,6 +13,12 @@
namespace license {
namespace os {
/*
 * windows bios sometimes reports vm names add execution environment detection from bios
const char *vmVendors[] = {
   "VMware", "Microsoft Corporation", "Virtual Machine", "innotek GmbH", "PowerVM", "Bochs", "KVM"};
*/
typedef enum { NONE, CONTAINER, VM } VIRTUALIZATION;
typedef enum {
@@ -37,6 +43,7 @@
   std::string bios_description;
   //detect if it's a kind of container technology (docker or lxc)
   bool is_container() const;
public:
   ExecutionEnvironment();
   ~ExecutionEnvironment(){};