Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Need to include surf/surf_routing.h now.
authorNavarrop <Pierre.Navarro@imag.fr>
Wed, 27 Apr 2011 12:17:59 +0000 (14:17 +0200)
committerNavarrop <Pierre.Navarro@imag.fr>
Wed, 27 Apr 2011 12:17:59 +0000 (14:17 +0200)
Must to test COORD_HOST_LEVEL or COORD_ASR_LEVEL
if we give the --cfg=coordonates:yes in argument.

src/surf/surf_routing.h
src/xbt/config.c

index cd96aa2..a0a891d 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _SURF_SURF_ROUTING_H
 #define _SURF_SURF_ROUTING_H
 
+#include "xbt/lib.h"
+
 extern xbt_lib_t host_lib;
 extern int ROUTING_HOST_LEVEL; //Routing level
 extern int     SURF_CPU_LEVEL;         //Surf cpu level
index f5fd93c..71f9025 100644 (file)
 #include "xbt/peer.h"
 
 #include "xbt/config.h"         /* prototypes of this module */
-#include "surf/surf.h"                 /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */
+#include "surf/surf_routing.h" /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */
+
+xbt_lib_t host_lib;
+int    COORD_HOST_LEVEL;       //Coordinates level
+xbt_lib_t as_router_lib;
+int COORD_ASR_LEVEL;   //Coordinates level
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_cfg, xbt, "configuration support");