X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72a4af247495829f4f36088d02dbc3d7dda49746..44ea423d2d27e986f35e6b8d60772b7acec89916:/src/surf/xml/platf_private.hpp diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index 3a6f7b0f2b..48ed8498d3 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -83,7 +83,8 @@ public: tmgr_trace_t state_trace; }; -struct s_sg_platf_route_cbarg_t { +class RouteCreationArgs { +public: bool symmetrical = false; sg_netpoint_t src = nullptr; sg_netpoint_t dst = nullptr; @@ -91,7 +92,6 @@ struct s_sg_platf_route_cbarg_t { sg_netpoint_t gw_dst = nullptr; std::vector link_list; }; -typedef s_sg_platf_route_cbarg_t* sg_platf_route_cbarg_t; class ClusterCreationArgs { public: @@ -207,8 +207,8 @@ XBT_PUBLIC(void) sg_platf_new_cabinet(CabinetCreationArgs* cabinet); // Add a XBT_PUBLIC(simgrid::kernel::routing::NetPoint*) // Add a router to the current Zone sg_platf_new_router(std::string, const char* coords); -XBT_PUBLIC(void) sg_platf_new_route (sg_platf_route_cbarg_t route); // Add a route -XBT_PUBLIC(void) sg_platf_new_bypassRoute (sg_platf_route_cbarg_t bypassroute); // Add a bypassRoute +XBT_PUBLIC(void) sg_platf_new_route(RouteCreationArgs* route); // Add a route +XBT_PUBLIC(void) sg_platf_new_bypassRoute(RouteCreationArgs* bypassroute); // Add a bypassRoute XBT_PUBLIC(void) sg_platf_new_trace(TraceCreationArgs* trace);