Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factory functions for all Netzones
[simgrid.git] / src / kernel / routing / WifiZone.cpp
index a6f8bc7..7071075 100644 (file)
@@ -66,4 +66,12 @@ s4u::Link* WifiZone::create_link(const std::string& name, const std::vector<doub
 }
 } // namespace routing
 } // namespace kernel
+
+namespace s4u {
+NetZone* createWifiZone(const std::string& name)
+{
+  return (new kernel::routing::WifiZone(name))->get_iface();
+}
+} // namespace s4u
+
 } // namespace simgrid