Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clean callbacks for the host parsing.
[simgrid.git] / src / surf / network_constant.c
index 4c9db11..f4251f0 100644 (file)
@@ -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 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)
 {
-  surfxml_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)