class Cpu;
class RoutingEdge;
class As;
+class Link;
}
}
typedef simgrid::surf::Cpu surf_Cpu;
typedef simgrid::surf::RoutingEdge surf_RoutingEdge;
typedef simgrid::surf::As surf_As;
+typedef simgrid::surf::Link Link;
#else
typedef struct surf_Cpu surf_Cpu;
typedef struct surf_RoutingEdge surf_RoutingEdge;
typedef struct surf_As surf_As;
+typedef struct Link Link;
#endif
#ifndef INCLUDE_SIMGRID_LINK_H_
#define INCLUDE_SIMGRID_LINK_H_
-
-#ifdef __cplusplus
-
-namespace simgrid {
-namespace surf {
-
-class Link;
-
-}
-}
-typedef simgrid::surf::Link Link;
-
-#else
-typedef struct Link Link;
-#endif
-
-
+#include <simgrid/forward.h>
/* C interface */
SG_BEGIN_DECL()