Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Platform generation : add promotion functions
[simgrid.git] / src / surf / platf_generator_private.h
index 80a3390..0f3ab92 100644 (file)
@@ -1,13 +1,18 @@
 #ifndef SG_PLATF_GEN_PRIVATE_H
 #define SG_PLATF_GEN_PRIVATE_H
 
-#include <xbt/graph.h>
+#include "xbt/graph.h"
+#include "simgrid/platf.h"
 
-typedef struct {
+typedef struct s_context_node_t {
   unsigned long id;
   double x, y;
   int degree;
   e_platf_node_kind kind;
+  union {
+    s_sg_platf_host_cbarg_t host_parameters;
+    s_sg_platf_cluster_cbarg_t cluster_parameters;
+  };
 } s_context_node_t, *context_node_t;
 
 void platf_graph_init(unsigned long node_count);