Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename surf::VirtualMachine to surf::VirtualMachineImpl
[simgrid.git] / src / surf / surf_c_bindings.cpp
index c599164..6125779 100644 (file)
@@ -4,12 +4,12 @@
 /* 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/surf/HostImpl.hpp"
-#include "surf_interface.hpp"
+#include "VirtualMachineImpl.hpp"
 #include "network_interface.hpp"
-#include "src/instr/instr_private.h"
 #include "plugins/energy.hpp"
-#include "virtual_machine.hpp"
+#include "src/instr/instr_private.h"
+#include "src/surf/HostImpl.hpp"
+#include "surf_interface.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_kernel);
 
@@ -21,8 +21,9 @@ static simgrid::surf::HostImpl *get_casted_host(sg_host_t host){ //FIXME: killme
   return host->pimpl_;
 }
 
-static simgrid::surf::VirtualMachine *get_casted_vm(sg_host_t host){
-  return static_cast<simgrid::surf::VirtualMachine*>(host->pimpl_);
+static simgrid::surf::VirtualMachineImpl* get_casted_vm(sg_host_t host)
+{
+  return static_cast<simgrid::surf::VirtualMachineImpl*>(host->pimpl_);
 }
 
 extern double NOW;