xbt_dict_t trivaNodeTypes = NULL; /* all link types defined */
xbt_dict_t trivaEdgeTypes = NULL; /* all host types defined */
-void instr_paje_init (container_t root)
+void instr_paje_init (void)
{
allContainers = xbt_dict_new_homogeneous(NULL);
trivaNodeTypes = xbt_dict_new_homogeneous(xbt_free);
trivaEdgeTypes = xbt_dict_new_homogeneous(xbt_free);
+}
+
+void instr_paje_set_root (container_t root)
+{
rootContainer = root;
}
char *getContainerIdByName (const char *name);
char *getVariableTypeIdByName (const char *name, type_t father);
container_t getRootContainer (void);
-void instr_paje_init (container_t root);
+void instr_paje_init (void);
+void instr_paje_set_root (container_t root);
void instr_paje_free (void);
type_t getRootType (void);
type_t getContainerType (const char *name, type_t father);
static void instr_routing_parse_start_AS (const char*id,const char*routing)
{
if (getRootContainer() == NULL){
+ instr_paje_init ();
container_t root = newContainer (id, INSTR_AS, NULL);
- instr_paje_init (root);
+ instr_paje_set_root (root);
+
if (TRACE_smpi_is_enabled()) {
if (!TRACE_smpi_is_grouped()){