Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clean DTD and add tag config.
[simgrid.git] / src / surf / surfxml_parse.c
index 53db290..a9512d8 100644 (file)
@@ -88,6 +88,8 @@ xbt_dynar_t STag_surfxml_ASroute_cb_list = NULL;
 xbt_dynar_t ETag_surfxml_ASroute_cb_list = NULL;
 xbt_dynar_t STag_surfxml_bypassRoute_cb_list = NULL;
 xbt_dynar_t ETag_surfxml_bypassRoute_cb_list = NULL;
+xbt_dynar_t STag_surfxml_config_cb_list = NULL;
+xbt_dynar_t ETag_surfxml_config_cb_list = NULL;
 
 /* store the current property set for any tag */
 xbt_dict_t current_property_set = NULL;
@@ -142,6 +144,8 @@ void surf_parse_free_callbacks(void)
   xbt_dynar_free(&ETag_surfxml_bypassRoute_cb_list);
   xbt_dynar_free(&STag_surfxml_cluster_cb_list);
   xbt_dynar_free(&ETag_surfxml_cluster_cb_list);
+  xbt_dynar_free(&STag_surfxml_config_cb_list);
+  xbt_dynar_free(&ETag_surfxml_config_cb_list);
 }
 
 void surf_parse_reset_parser(void)
@@ -179,6 +183,8 @@ void surf_parse_reset_parser(void)
   ETag_surfxml_bypassRoute_cb_list = xbt_dynar_new(sizeof(void_f_void_t), NULL);
   STag_surfxml_cluster_cb_list = xbt_dynar_new(sizeof(void_f_void_t), NULL);
   ETag_surfxml_cluster_cb_list = xbt_dynar_new(sizeof(void_f_void_t), NULL);
+  STag_surfxml_config_cb_list = xbt_dynar_new(sizeof(void_f_void_t), NULL);
+  ETag_surfxml_config_cb_list = xbt_dynar_new(sizeof(void_f_void_t), NULL);
 }
 
 /* Stag and Etag parse functions */
@@ -231,6 +237,7 @@ parse_method(S,AS);               parse_method(E,AS);
 parse_method(S,ASroute);          parse_method(E,ASroute);
 parse_method(S,bypassRoute);      parse_method(E,bypassRoute);
 parse_method(S,cluster);         parse_method(E,cluster);
+parse_method(S,config);          parse_method(E,config);
 
 /* Open and Close parse file */