Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move an enum to the right location
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 17 Nov 2016 09:19:26 +0000 (10:19 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 17 Nov 2016 09:19:26 +0000 (10:19 +0100)
include/simgrid/s4u/VirtualMachine.hpp
src/include/surf/surf.h
src/plugins/vm/VirtualMachineImpl.hpp
src/simix/smx_host_private.h

index b6863b3..7c83f8c 100644 (file)
 #include <simgrid/s4u/host.hpp>
 #include <xbt/base.h>
 
-namespace simgrid {
+typedef enum {
+  SURF_VM_STATE_CREATED, /**< created, but not yet started */
+  SURF_VM_STATE_RUNNING,
+  SURF_VM_STATE_SUSPENDED, /**< Suspend/resume does not involve disk I/O, so we assume there is no transition states. */
+
+  SURF_VM_STATE_SAVING, /**< Save/restore involves disk I/O, so there should be transition states. */
+  SURF_VM_STATE_SAVED,
+  SURF_VM_STATE_RESTORING,
+} e_surf_vm_state_t;
 
+namespace simgrid {
 namespace s4u {
 
 /** @ingroup s4u_api
index 7a7a091..c4cf703 100644 (file)
@@ -139,18 +139,6 @@ typedef struct surf_model_description* surf_model_description_t;
 XBT_PUBLIC(int) find_model_description(s_surf_model_description_t * table, const char *name);
 XBT_PUBLIC(void) model_help(const char *category, s_surf_model_description_t * table);
 
-/** @ingroup SURF_vm_interface */
-/* FIXME: Where should the VM state be defined? */
-typedef enum {
-  SURF_VM_STATE_CREATED, /**< created, but not yet started */
-  SURF_VM_STATE_RUNNING,
-  SURF_VM_STATE_SUSPENDED, /**< Suspend/resume does not involve disk I/O, so we assume there is no transition states. */
-
-  SURF_VM_STATE_SAVING, /**< Save/restore involves disk I/O, so there should be transition states. */
-  SURF_VM_STATE_SAVED,
-  SURF_VM_STATE_RESTORING,
-} e_surf_vm_state_t;
-
 /***************************/
 /* Generic model object */
 /***************************/
index 53f948d..0a25e54 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <xbt/base.h>
 
+#include "simgrid/s4u/VirtualMachine.hpp"
 #include "src/surf/HostImpl.hpp"
 
 #ifndef VM_INTERFACE_HPP_
index d8f3e19..5c5b852 100644 (file)
@@ -16,6 +16,7 @@
 #include "simgrid/simix.h"
 #include "popping_private.h"
 
+#include "simgrid/s4u/VirtualMachine.hpp"
 #include "src/kernel/activity/SynchroExec.hpp"
 
 /** @brief Host datatype from SIMIX POV */