A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean callbacks for the host parsing.
[simgrid.git]
/
src
/
surf
/
network_constant.c
diff --git
a/src/surf/network_constant.c
b/src/surf/network_constant.c
index
4c9db11
..
f4251f0
100644
(file)
--- a/
src/surf/network_constant.c
+++ b/
src/surf/network_constant.c
@@
-21,14
+21,14
@@
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
static random_data_t random_latency = NULL;
static int host_number_int = 0;
static random_data_t random_latency = NULL;
static int host_number_int = 0;
-static void netcste_count_hosts(
void
)
+static void netcste_count_hosts(
surf_parsing_host_arg_t h
)
{
host_number_int++;
}
static void netcste_define_callbacks(void)
{
{
host_number_int++;
}
static void netcste_define_callbacks(void)
{
- surf
xml_add_callback(STag_surfxml_host_cb_list, &
netcste_count_hosts);
+ surf
_parse_host_add_cb(
netcste_count_hosts);
}
static int netcste_resource_used(void *resource_id)
}
static int netcste_resource_used(void *resource_id)