Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
* Moving things around (private->public)
[simgrid.git] / src / include / surf / surf.h
index 6dfd902..840cd70 100644 (file)
@@ -266,12 +266,25 @@ XBT_PUBLIC_DATA(surf_network_resource_t) surf_network_resource;
  *  \param filename XML platform file name
  *
  *  This function is called by surf_workstation_resource_init_CLM03
- *  so you shouldn't call it by yourself.
+ *  or by yourself only if you plan using surf_workstation_resource_init_compound
  *
  *  \see surf_workstation_resource_init_CLM03()
  */
 XBT_PUBLIC(void) surf_network_resource_init_CM02(const char *filename);
 
+#ifdef USE_GTNETS
+/** \brief Initializes the platform with the network model GTNETS
+ *  \ingroup SURF_resources
+ *  \param filename XML platform file name
+ *
+ *  This function is called by surf_workstation_resource_init_GTNETS
+ *  or by yourself only if you plan using surf_workstation_resource_init_compound
+ *
+ *  \see surf_workstation_resource_init_GTNETS()
+ */
+XBT_PUBLIC(void) surf_network_resource_init_GTNETS(const char *filename);
+#endif
+
 /** \brief Workstation resource extension public
  *  \ingroup SURF_resources
  *
@@ -321,6 +334,16 @@ typedef struct surf_workstation_resource {
  */
 XBT_PUBLIC_DATA(surf_workstation_resource_t) surf_workstation_resource;
 
+/** \brief Initializes the platform with a compound workstation model
+ *  \ingroup SURF_resources
+ *  \param filename XML platform file name
+ *
+ *  This function should be called after a cpu_resource and a
+ *  network_resource have been set up.
+ *
+ */
+XBT_PUBLIC(void) surf_workstation_resource_init_compound(const char *filename);
+
 /** \brief Initializes the platform with the workstation model CLM03
  *  \ingroup SURF_resources
  *  \param filename XML platform file name