X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f7afa0288b0d18934f8178a99320a99889e1f38b..c9197fe448d95724ea56119ac409e6460ed86b8a:/src/surf/xml/platf_private.hpp diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index bd8224396b..01dcc51d61 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -23,6 +23,7 @@ typedef size_t yy_size_t; XBT_PUBLIC(sg_netcard_t) sg_netcard_by_name_or_null(const char *name); typedef enum { + SURF_CLUSTER_DRAGONFLY=3, SURF_CLUSTER_FAT_TREE=2, SURF_CLUSTER_FLAT = 1, SURF_CLUSTER_TORUS = 0 @@ -87,8 +88,8 @@ typedef struct s_sg_platf_peer_cbarg { typedef struct s_sg_platf_route_cbarg *sg_platf_route_cbarg_t; typedef struct s_sg_platf_route_cbarg { bool symmetrical; - const char *src; - const char *dst; + sg_netcard_t src; + sg_netcard_t dst; sg_netcard_t gw_src; sg_netcard_t gw_dst; std::vector *link_list; @@ -115,8 +116,6 @@ typedef struct s_sg_platf_cluster_cbarg { const char* router_id; e_surf_link_sharing_policy_t sharing_policy; e_surf_link_sharing_policy_t bb_sharing_policy; - const char* availability_trace; //don't convert to tmgr_trace_t since there is a trace per host and some rewriting is needed - const char* state_trace; } s_sg_platf_cluster_cbarg_t; typedef struct s_sg_platf_cabinet_cbarg *sg_platf_cabinet_cbarg_t; @@ -193,7 +192,7 @@ typedef struct s_sg_platf_AS_cbarg { int routing; } s_sg_platf_AS_cbarg_t; -#define SG_PLATF_AS_INITIALIZER {NULL,0} +#define SG_PLATF_AS_INITIALIZER {nullptr,0} /********** Routing **********/ void routing_cluster_add_backbone(Link* bb); @@ -202,8 +201,8 @@ void routing_cluster_add_backbone(Link* bb); XBT_PUBLIC(void) sg_platf_begin(void); // Start a new platform XBT_PUBLIC(void) sg_platf_end(void); // Finish the creation of the platform -XBT_PUBLIC(void) sg_platf_new_AS_begin(sg_platf_AS_cbarg_t AS); // Begin description of new AS -XBT_PUBLIC(void) sg_platf_new_AS_end(void); // That AS is fully described +XBT_PUBLIC(simgrid::s4u::As*) sg_platf_new_AS_begin(sg_platf_AS_cbarg_t AS); // Begin description of new AS +XBT_PUBLIC(void) sg_platf_new_AS_seal(void); // That AS is fully described XBT_PUBLIC(void) sg_platf_new_host (sg_platf_host_cbarg_t host); // Add an host to the currently described AS XBT_PUBLIC(void) sg_platf_new_hostlink(sg_platf_host_link_cbarg_t h); // Add an host_link to the currently described AS @@ -253,8 +252,8 @@ XBT_PRIVATE void sg_instr_AS_end(void); typedef struct s_surf_parsing_link_up_down *surf_parsing_link_up_down_t; typedef struct s_surf_parsing_link_up_down { - Link* link_up; - Link* link_down; + Link* linkUp; + Link* linkDown; } s_surf_parsing_link_up_down_t;