From 98f6fbd324516be294528628c148ca5f99179661 Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Wed, 21 Aug 2013 20:41:36 +0200 Subject: [PATCH] Move variable to where it belongs. --- src/include/surf/surf.h | 5 +++++ src/surf/surf.c | 1 + src/surf/surf_routing.c | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index ec366eabd3..7f16b848df 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -643,6 +643,11 @@ XBT_PUBLIC_DATA(s_surf_model_description_t) surf_new_model_description[]; */ XBT_PUBLIC_DATA(xbt_dynar_t) model_list; +/** \ingroup SURF_simulation + * \brief List of hosts for which one want to be notified if they ever restart. + */ +XBT_PUBLIC(xbt_dict_t) watched_hosts_lib; + /*******************************************/ /*** SURF Platform *************************/ /*******************************************/ diff --git a/src/surf/surf.c b/src/surf/surf.c index 3463fad79b..4e9992a34b 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -114,6 +114,7 @@ xbt_dynar_t model_list = NULL; tmgr_history_t history = NULL; lmm_system_t maxmin_system = NULL; xbt_dynar_t surf_path = NULL; +xbt_dict_t watched_hosts_lib; /* Don't forget to update the option description in smx_config when you change this */ s_surf_model_description_t surf_network_model_description[] = { diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 32f9bfa64b..a3084b6646 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -25,8 +25,6 @@ int SD_HOST_LEVEL; //Simdag level int COORD_HOST_LEVEL=0; //Coordinates level int NS3_HOST_LEVEL; //host node for ns3 -xbt_dict_t watched_hosts_lib; - /** * @ingroup SURF_build_api * @brief A library containing all known links -- 2.20.1