]> AND Public Git Repository - simgrid.git/blobdiff - src/plugins/vm/VmHostExt.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
wifi: make room for the ns3-wifi binding
[simgrid.git] / src / plugins / vm / VmHostExt.cpp
index a4fcf09ece6f9350efcd34ec039199b59f2c7494..7bb0f604eb91747e272de929531417b5968dc588 100644 (file)
@@ -1,17 +1,20 @@
-/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2013-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "src/plugins/vm/VmHostExt.hpp"
 
-XBT_LOG_EXTERNAL_CATEGORY(surf_vm);
-XBT_LOG_DEFAULT_CATEGORY(surf_vm);
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_vm);
 
 namespace simgrid {
 namespace vm {
-VmHostExt::~VmHostExt()
+simgrid::xbt::Extension<s4u::Host, VmHostExt> VmHostExt::EXTENSION_ID;
+
+void VmHostExt::ensureVmExtInstalled()
 {
+  if (not EXTENSION_ID.valid())
+    EXTENSION_ID = simgrid::s4u::Host::extension_create<VmHostExt>();
 }
 }
 }