- xbt_dict_t host_id; /* char* -> int* */
- xbt_dynar_t (*get_route)(int src, int dst);
- xbt_dict_t (*get_onelink_routes)(void);
- int (*is_router)(int id);
- void (*finalize)(void);
- int host_count;
- int router_count;
-};
-XBT_PUBLIC(void) routing_model_create(size_t size_of_link,void *loopback);
-
-
-/*
+ const char *desc;
+ AS_t (*create) ();
+ void (*end) (AS_t as);
+} s_routing_model_description_t, *routing_model_description_t;
+
+/* This enum used in the routing structure helps knowing in which situation we are. */
+typedef enum {
+ SURF_ROUTING_NULL = 0, /**< Undefined type */
+ SURF_ROUTING_BASE, /**< Base case: use simple link lists for routing */
+ SURF_ROUTING_RECURSIVE /**< Recursive case: also return gateway informations */
+} e_surf_routing_hierarchy_t;
+
+XBT_PUBLIC(void) routing_model_create(void *loopback);
+XBT_PUBLIC(void) routing_exit(void);
+XBT_PUBLIC(void) storage_register_callbacks(void);
+
+/* ***************************************** */
+/* TUTORIAL: New TAG */
+XBT_PUBLIC(void) gpu_register_callbacks(void);
+/* ***************************************** */
+
+XBT_PUBLIC(void) routing_register_callbacks(void);
+XBT_PUBLIC(void) generic_free_route(sg_platf_route_cbarg_t route); // FIXME rename to routing_route_free
+ // FIXME: make previous function private to routing again?
+
+
+XBT_PUBLIC(void) routing_get_route_and_latency(sg_routing_edge_t src, sg_routing_edge_t dst,
+ xbt_dynar_t * route, double *latency);
+
+XBT_PUBLIC(void) generic_get_graph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges, AS_t rc);
+/**