Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] using parser callbacks to trace the platform hierarchy
[simgrid.git] / src / instr / instr_routing.c
1 /* Copyright (c) 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include "instr/instr_private.h"
8
9 #ifdef HAVE_TRACING
10 #include "surf/surfxml_parse_private.h"
11
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);
20
21 void instr_routing_define_callbacks ()
22 {
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);
31 }
32
33 static void instr_routing_parse_start_AS ()
34 {
35 }
36
37 static void instr_routing_parse_end_AS ()
38 {
39 }
40
41 static void instr_routing_parse_start_link ()
42 {
43 }
44
45 static void instr_routing_parse_end_link ()
46 {
47 }
48
49 static void instr_routing_parse_start_host ()
50 {
51 }
52
53 static void instr_routing_parse_end_host ()
54 {
55 }
56
57 static void instr_routing_parse_start_router ()
58 {
59 }
60
61 static void instr_routing_parse_end_router ()
62 {
63 }
64
65 #endif
66