From e1ca44fbde5157f4302e3bac006914db59077fa9 Mon Sep 17 00:00:00 2001 From: navarrop Date: Mon, 14 Mar 2011 13:54:25 +0000 Subject: [PATCH 1/1] We may want to use this function in examples. after xbt_dict_foreach(global_routing->where_network_elements ... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9785 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf_private.h | 3 +++ src/surf/surf_routing.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index 026ab2f58f..e1e11d2acf 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -200,6 +200,9 @@ struct s_routing_global { xbt_dynar_t last_route; }; +XBT_PUBLIC(e_surf_network_element_type_t) get_network_element_type(const char + *name); + XBT_PUBLIC(void) routing_model_create(size_t size_of_link, void *loopback, double_f_cpvoid_t get_link_latency_fun); /** diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index f13e80a0e7..526fdfd649 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -1069,7 +1069,7 @@ static xbt_dynar_t get_onelink_routes(void) return recursive_get_onelink_routes(global_routing->root); } -static e_surf_network_element_type_t get_network_element_type(const char +e_surf_network_element_type_t get_network_element_type(const char *name) { network_element_info_t rc = NULL; -- 2.20.1