Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the definition of surf_network_model in a lame attempt to fix windows
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 6 Apr 2018 05:54:47 +0000 (07:54 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 6 Apr 2018 05:55:00 +0000 (07:55 +0200)
src/include/surf/surf.hpp
src/surf/network_interface.hpp

index 06fab3f..3d6a2bb 100644 (file)
@@ -135,14 +135,6 @@ XBT_PUBLIC_DATA s_surf_model_description_t surf_plugin_description[];
  */
 XBT_PUBLIC_DATA s_surf_model_description_t surf_cpu_model_description[];
 
-/** \ingroup SURF_models
- *  \brief The network model
- *
- *  When creating a new API on top on SURF, you shouldn't use the network model unless you know what you are doing.
- *  Only the host model should be accessed because depending on the platform model, the network model can be NULL.
- */
-XBT_PUBLIC_DATA surf_network_model_t surf_network_model;
-
 /** \ingroup SURF_models
  *  \brief Same as network model 'LagrangeVelho', only with different correction factors.
  *
index 5c7a00e..0717913 100644 (file)
@@ -217,6 +217,11 @@ public:
 }
 }
 
+/** \ingroup SURF_models
+ *  \brief The network model
+ */
+XBT_PUBLIC_DATA simgrid::surf::NetworkModel* surf_network_model;
+
 #endif /* SURF_NETWORK_INTERFACE_HPP_ */