X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/71f8c518d2a8e283e62ed3282c051fb125540c75..c4ffa9d533441c926ec687986415b635629d496a:/examples/simdag/io/sd_io.c diff --git a/examples/simdag/io/sd_io.c b/examples/simdag/io/sd_io.c index 990144fbc1..4d8c3a4e0c 100644 --- a/examples/simdag/io/sd_io.c +++ b/examples/simdag/io/sd_io.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ #include #include -#include "simdag/simdag.h" +#include "simgrid/simdag.h" #include "xbt/ex.h" #include "xbt/log.h" @@ -15,7 +15,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(sd_io, int main(int argc, char **argv) { unsigned int ctr; - const SD_workstation_t *workstations; + const sg_host_t *workstations; int total_nworkstations; xbt_dict_t current_storage_list; char *mount_name; @@ -26,16 +26,16 @@ int main(int argc, char **argv) /* Set the workstation model to default, as storage is not supported by the * ptask_L07 model yet. */ - SD_config("workstation/model", "default"); + SD_config("host/model", "default"); SD_create_environment(argv[1]); - workstations = SD_workstation_get_list(); - total_nworkstations = SD_workstation_get_number(); + workstations = sg_host_list(); + total_nworkstations = sg_host_count(); for (ctr=0; ctr