]> AND Public Git Repository - simgrid.git/blobdiff - src/include/surf/surf.h
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix conflict - Adrien
[simgrid.git] / src / include / surf / surf.h
index d84f0618a29b82d402c3627f5c1d27f9e0975ccd..3749e61bd41e420d62e7ca959c4de49e41feac73 100644 (file)
@@ -279,7 +279,10 @@ typedef struct surf_workstation_model_extension_public {
 typedef struct surf_vm_workstation_model_extension_public {
   s_surf_model_extension_workstation_t basic;
   void* (*create) (const char *name, void *workstation); // First operation of the VM model
-  void  (*destroy) (const char *name); // destory the vm-specific data
+  // start does not appear here as it corresponds to turn the state from created to running (see smx_vm.c)
+  int (*get_state) (void *workstation);
+  void (*set_state) (void *workstation, int state);
+  void (*destroy) (smx_host_t *host); // destory the vm-specific data
 } s_surf_model_extension_vm_workstation_t;
 
 /** \ingroup SURF_models