XBT_PUBLIC(void) surf_parse_error(char *msg);
XBT_PUBLIC(double) surf_parse_get_double(const char *string);
XBT_PUBLIC(int) surf_parse_get_int(const char *string);
-XBT_PUBLIC(void) surf_parse_add_callback_config(void);
XBT_PUBLIC(void) surf_parse_models_setup(void);
/* Prototypes of the functions offered by flex */
XBT_PUBLIC(int) surf_parse_lex(void);
};
XBT_PUBLIC(void) routing_model_create(size_t size_of_link, void *loopback, double_f_cpvoid_t get_link_latency_fun);
+XBT_PUBLIC(void) routing_register_callbacks(void);
XBT_PUBLIC(void) routing_parse_Scluster(void); /* cluster bypass */
get_link_latency = get_link_latency_fun;
/* no current routing at moment */
current_routing = NULL;
+}
- /* parse generic elements */
+void routing_register_callbacks() {
sg_platf_host_add_cb(parse_S_host);
sg_platf_router_add_cb(parse_S_router);
+ surfxml_add_callback(STag_surfxml_random_cb_list, &routing_parse_Srandom);
+
surfxml_add_callback(STag_surfxml_route_cb_list,
&parse_S_route_new_and_endpoints_XML);
surfxml_add_callback(STag_surfxml_ASroute_cb_list,
#endif
}
-void surf_parse_add_callback_config(void)
-{
- surfxml_add_callback(STag_surfxml_random_cb_list, &routing_parse_Srandom);
-}
-
-
/* ************************************************** */
/* ********** PATERN FOR NEW ROUTING **************** */
/* Register classical callbacks */
surfxml_add_callback(STag_surfxml_prop_cb_list, &parse_properties_XML);
- surf_parse_add_callback_config();
+ routing_register_callbacks();
surfxml_buffer_stack_stack_ptr = 1;
surfxml_buffer_stack_stack[0] = 0;