- struct_lnk = xbt_new0(s_surf_parsing_link_arg_t, 1);
- struct_lnk->V_link_id = xbt_strdup(A_surfxml_link_id);
- struct_lnk->V_link_bandwidth = surf_parse_get_double(A_surfxml_link_bandwidth);
- struct_lnk->V_link_bandwidth_file = tmgr_trace_new(A_surfxml_link_bandwidth_file);
- struct_lnk->V_link_latency = surf_parse_get_double(A_surfxml_link_latency);
- struct_lnk->V_link_latency_file = tmgr_trace_new(A_surfxml_link_latency_file);
+ s_sg_platf_link_cbarg_t link;
+ memset(&link,0,sizeof(link));
+
+ xbt_assert(current_property_set == NULL, "Someone forgot to reset the property set to NULL in its closing tag (or XML malformed)");
+ link.properties = current_property_set = xbt_dict_new();
+
+ link.V_link_id = A_surfxml_link_id;
+ link.V_link_bandwidth = surf_parse_get_double(A_surfxml_link_bandwidth);
+ link.V_link_bandwidth_file = tmgr_trace_new(A_surfxml_link_bandwidth_file);
+ link.V_link_latency = surf_parse_get_double(A_surfxml_link_latency);
+ link.V_link_latency_file = tmgr_trace_new(A_surfxml_link_latency_file);