-/* Copyright (c) 2010-2014. The SimGrid Team.
+/* Copyright (c) 2010-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "xbt/asserts.h"
#include "xbt/dynar.h"
-#include "surf/surf_private.h"
-#include "surf/surf_resource.h"
+#include "src/surf/surf_private.h"
#include "surf/surf.h"
-#include "instr/jedule/jedule_sd_binding.h"
-#include "instr/jedule/jedule_events.h"
-#include "instr/jedule/jedule_platform.h"
-#include "instr/jedule/jedule_output.h"
+#include "simgrid/jedule/jedule_sd_binding.h"
+#include "simgrid/jedule/jedule_events.h"
+#include "simgrid/jedule/jedule_platform.h"
+#include "simgrid/jedule/jedule_output.h"
-#include "simdag/private.h"
+#include "simgrid/simdag.h"
+#include "src/simdag/simdag_private.h"
#include <stdio.h>
host_list = xbt_dynar_new(sizeof(char*), NULL);
- for(i=0; i<task->workstation_nb; i++) {
- char *hostname = sg_host_name(task->workstation_list[i]);
+ for(i=0; i<task->host_count; i++) {
+ const char *hostname = sg_host_get_name(task->host_list[i]);
xbt_dynar_push(host_list, &hostname);
}
hosts = xbt_dynar_new(sizeof(char*), NULL);
xbt_dynar_foreach(table, dynar_cursor, host_elem) {
- xbt_dynar_push_as(hosts, char*, sg_host_name(host_elem));
+ xbt_dynar_push_as(hosts, const char*, sg_host_get_name(host_elem));
}
jed_simgrid_add_resources(current_container, hosts);
void jedule_setup_platform()
{
AS_t root_comp;
- // e_surf_network_element_type_t type;
jed_simgrid_container_t root_container;