1 /* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 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 #ifndef _SURF_SURF_ROUTING_H
8 #define _SURF_SURF_ROUTING_H
12 extern xbt_lib_t host_lib;
13 extern int ROUTING_HOST_LEVEL; //Routing level
14 extern int SURF_CPU_LEVEL; //Surf cpu level
15 extern int SURF_WKS_LEVEL; //Surf workstation level
16 extern int SIMIX_HOST_LEVEL; //Simix level
17 extern int MSG_HOST_LEVEL; //Msg level
18 extern int SD_HOST_LEVEL; //Simdag level
19 extern int COORD_HOST_LEVEL; //Coordinates level
20 extern int NS3_HOST_LEVEL; //host node for ns3
22 extern xbt_lib_t link_lib;
23 extern int SD_LINK_LEVEL; //Simdag level
24 extern int SURF_LINK_LEVEL; //Surf level
25 extern int NS3_LINK_LEVEL; //link for ns3
27 extern xbt_lib_t as_router_lib;
28 extern int ROUTING_ASR_LEVEL; //Routing level
29 extern int COORD_ASR_LEVEL; //Coordinates level
30 extern int NS3_ASR_LEVEL; //host node for ns3
32 extern xbt_lib_t storage_lib;
33 extern int ROUTING_STORAGE_LEVEL; //Routing storage level
34 extern int ROUTING_STORAGE_HOST_LEVEL;
35 extern int SURF_STORAGE_LEVEL;
37 extern xbt_lib_t storage_type_lib;
38 extern int ROUTING_STORAGE_TYPE_LEVEL; //Routing storage_type level
40 /* The callbacks to register for the routing to work */
41 void routing_AS_begin(const char *AS_id, int wanted_routing_type);
42 void routing_AS_end(void);
44 void routing_cluster_add_backbone(void* bb);
46 #endif /* _SURF_SURF_H */