1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "instr/instr_private.h"
10 #include "surf/surfxml_parse_private.h"
12 static void instr_routing_parse_start_AS (void);
13 static void instr_routing_parse_end_AS (void);
14 static void instr_routing_parse_start_link (void);
15 static void instr_routing_parse_end_link (void);
16 static void instr_routing_parse_start_host (void);
17 static void instr_routing_parse_end_host (void);
18 static void instr_routing_parse_start_router (void);
19 static void instr_routing_parse_end_router (void);
21 void instr_routing_define_callbacks ()
23 surfxml_add_callback(STag_surfxml_AS_cb_list, &instr_routing_parse_start_AS);
24 surfxml_add_callback(ETag_surfxml_AS_cb_list, &instr_routing_parse_end_AS);
25 surfxml_add_callback(STag_surfxml_link_cb_list, &instr_routing_parse_start_link);
26 surfxml_add_callback(ETag_surfxml_link_cb_list, &instr_routing_parse_end_link);
27 surfxml_add_callback(STag_surfxml_host_cb_list, &instr_routing_parse_start_host);
28 surfxml_add_callback(ETag_surfxml_host_cb_list, &instr_routing_parse_end_host);
29 surfxml_add_callback(STag_surfxml_router_cb_list, &instr_routing_parse_start_router);
30 surfxml_add_callback(ETag_surfxml_router_cb_list, &instr_routing_parse_end_router);
33 static void instr_routing_parse_start_AS ()
37 static void instr_routing_parse_end_AS ()
41 static void instr_routing_parse_start_link ()
45 static void instr_routing_parse_end_link ()
49 static void instr_routing_parse_start_host ()
53 static void instr_routing_parse_end_host ()
57 static void instr_routing_parse_start_router ()
61 static void instr_routing_parse_end_router ()