gcontini
2020-03-08 538760b37cf128ba6056dcb720703010925660da
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 {
@@ -35,8 +41,9 @@
   std::string sys_vendor;
   std::string bios_vendor;
   std::string bios_description;
   //detect if it's a kind of container technology (docker or lxc)
   // detect if it's a kind of container technology (docker or lxc)
   bool is_container() const;
public:
   ExecutionEnvironment();
   ~ExecutionEnvironment(){};