Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make a proper extension out of the Vivaldi coordinates
[simgrid.git] / src / kernel / routing / AsVivaldi.hpp
index e8038e8..65f4d52 100644 (file)
@@ -22,6 +22,18 @@ public:
   void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
 };
 
-}}} // namespace
+namespace vivaldi {
+class XBT_PRIVATE Coords {
+public:
+  static simgrid::xbt::Extension<simgrid::s4u::Host, Coords> EXTENSION_ID;
+  explicit Coords(s4u::Host* host, const char* str);
+  virtual ~Coords();
+
+  xbt_dynar_t coords;
+};
+}
+}
+}
+} // namespace
 
 #endif /* SURF_ROUTING_VIVALDI_HPP_ */