- xbt_dynar_t res = xbt_dynar_new(sizeof(xbt_dictelm_t), NULL);
- for (index = 0; index < count; index++) {
- relm = xbt_dynar_get_as(elms, index, RoutingEdge*);
- delm = xbt_lib_get_elm_or_null(host_lib, relm->getName());
+ xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t), NULL);
+ for (int index = 0; index < count; index++) {
+ sg_routing_edge_t relm =
+ xbt_dynar_get_as(elms, index, simgrid::surf::RoutingEdge*);
+ sg_host_t delm = simgrid::Host::by_name_or_null(relm->getName());