typedef int (*xbt_main_func_t) (int argc, char *argv[]);
typedef double(*double_f_pvoid_t) (void *);
+typedef double(*double_f_cpvoid_t) (const void *);
SG_END_DECL()
#endif /* XBT_FUNCTION_TYPE_H */
498000000, NULL, 0.000015, NULL,
SURF_RESOURCE_ON, NULL,
SURF_LINK_FATPIPE, NULL),
- (double_f_pvoid_t)net_get_link_latency);
+ net_get_link_latency);
}
"Constant", surf_network_model);
xbt_cfg_set_string(_surf_cfg_set, "routing", "none");
- routing_model_create(sizeof(double), NULL, (double_f_pvoid_t)netcste_get_link_latency);
+ routing_model_create(sizeof(double), NULL, netcste_get_link_latency);
}
xbt_assert0(0, "Impossible to initialize GTNetS interface");
}
- routing_model_create(sizeof(network_link_GTNETS_t), NULL);
+ routing_model_create(sizeof(network_link_GTNETS_t), NULL, NULL);
}
#ifdef HAVE_LATENCY_BOUND_TRACKING
#endif
xbt_cfg_set_string(_surf_cfg_set, "routing", "none");
- routing_model_create(sizeof(double), NULL, (double_f_pvoid_t)netviva_get_link_latency);
+ routing_model_create(sizeof(double), NULL, netviva_get_link_latency);
}
xbt_dynar_t last_route;
};
-XBT_PUBLIC(void) routing_model_create(size_t size_of_link, void *loopback, double_f_pvoid_t get_link_latency_fun);
+XBT_PUBLIC(void) routing_model_create(size_t size_of_link, void *loopback, double_f_cpvoid_t get_link_latency_fun);
/**
* Resource protected methods
routing_global_t global_routing = NULL;
routing_component_t current_routing = NULL;
model_type_t current_routing_model = NULL;
-static double_f_pvoid_t get_link_latency = NULL;
+static double_f_cpvoid_t get_link_latency = NULL;
/* Prototypes of each model */
static void *model_full_create(void); /* create structures for full routing model */
*
* Make a global routing structure and set all the parsing functions.
*/
-void routing_model_create(size_t size_of_links, void *loopback, double_f_pvoid_t get_link_latency_fun )
+void routing_model_create(size_t size_of_links, void *loopback, double_f_cpvoid_t get_link_latency_fun)
{
/* config the uniq global routing */